:root {
    --primary-green: #6da32d;
    --hover-green: #5a8a24;
    --light-bg: #f3f8ee;
    --text-gray: #666;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}






/* Top Bar */
.top-bar {
    background: #f8f8f8;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-gray);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-promo {
    color: var(--primary-green);
    font-weight: bold;
    margin-left: 15px;
}

.top-right a {
    text-decoration: none;
    color: inherit;
    margin-left: 15px;
}

.top-right a:hover {
    color: #6da32d;
}

.top-right a:hover i {
    color: #6da32d;
}

/* Header Alignment */
.main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 160px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    cursor: pointer;
}

.logo span {
    color: var(--primary-green);
}

.desktop-nav {
    display: flex;
    gap: 50px;
}

.desktop-nav a {
    text-decoration: none;
    color: #444;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.desktop-nav a:hover,
.nav-active {
    color: var(--primary-green);
}

.ai-link {
    color: var(--primary-green) !important;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.icon-link {
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons i {
    font-size: 15px;
    color: #333 !important;
    transition: color 0.3s ease, transform 0.2s ease;
}

.header-icons a:hover i {
    color: var(--primary-green) !important;
    transform: translateY(-2px);
}



.mobile-only {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Search Row */
.search-row {
    margin-top: 20px;
}

.search-wrapper {
    display: flex;
    max-width: 590px;
    margin: 0 auto;
}

.search-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    outline: none;
}

.search-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 6px 6px 0;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Content Layout */
.main-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.category-header {
    background: var(--primary-green);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.category-list {
    list-style: none;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.category-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    cursor: pointer;
    color: #555;
}

.category-list li:hover {
    color: var(--primary-green);
    padding-left: 20px;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    flex: 1;
    background: var(--light-bg);
    border-radius: 20px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.tag {
    background: #fff;
    color: var(--primary-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.hero-section h1 {
    font-size: 48px;
    margin: 20px 0;
    line-height: 1.1;
    color: #333;
}

.hero-section h1 span {
    color: var(--primary-green);
}

.hero-section p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-green {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    font-size: 12px;
    color: #888;
    font-weight: bold;
}

/* Decorative Shapes */
.shape {
    position: absolute;
    border: 1px solid #dcebc7;
    border-radius: 50%;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.mobile-nav a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: var(--light-bg);
    color: var(--primary-green);
}

.mobile-nav.active {
    display: flex;
}

/* PRODUCTS SECTION */
.products-section {
    margin-top: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.products-header h2 {
    font-size: 22px;
    color: #333;
}

.products-header a {
    font-size: 13px;
    text-decoration: none;
    color: var(--primary-green);
    font-weight: bold;
}

/* GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARD */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.product-card .sku {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-green);
}

.product-card .price span {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

.product-card button {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border: none;
    background: var(--primary-green);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.info-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card i {
    font-size: 30px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.info-card h4 {
    margin: 10px 0;
    color: #333;
}

.info-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* Footer Styles */
.main-footer {
    background-color: #fcfcfc;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
}

.footer-col h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.footer-col h3 a:hover {
    color: var(--primary-green);
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: left;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    width: 100%;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--text-gray);
    transition: 0.3s;
    display: block;
    margin-bottom: 8px;
}

.footer-col ul a:hover {
    color: var(--primary-green);
}

.footer-col p i {
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
    width: 100%;
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */

/* ===== BELOW 320px NOT SUPPORTED ===== */
.screen-warning {
    display: none;
}



@media (max-width: 319px) {
    body>*:not(.screen-warning) {
        display: none !important;
    }

    .screen-warning {
        display: flex;
        height: 100vh;
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
        font-size: 14px;
        font-weight: 600;
        color: #444;
        background: #f5f6fa;
    }
}

/* ===== EXTRA SMALL (Portrait smartphones) < 576px ===== */
@media (min-width: 320px) and (max-width: 575.98px) {
    .container {

        padding: 0 12px;
    }

    /* Top bar adjustments */
    .top-left span:first-child {
        display: none !important;
    }

    .top-left {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .shipping-promo {
        font-size: 14px;
        white-space: nowrap;
        margin-left: 0;
    }

    .top-right a {
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .top-right i {
        font-size: 12px;
    }

    /* Header */
    .header-flex {
        gap: 10px;
        justify-content: space-between;


    }

    .logo {
        font-size: 24px;


    }



    .header-icons i {
        font-size: 20px;
        margin-right: 5px;
    }

    .header-icons {

        gap: 15px;
    }

    .mobile-only {
        display: block;
        font-size: 24px;
    }

    .desktop-nav {
        display: none;
    }

    /* Search */
    .search-row {
        margin-top: 15px;
    }

    .search-wrapper {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e0e0e0;
    }

    .search-wrapper input {
        height: 42px;
        padding: 0 12px;
        font-size: 13px;
        border: none;
        border-radius: 0;
    }

    .search-btn {
        height: 42px;
        padding: 0 16px;
        border-radius: 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    /* Main Layout */
    .main-layout {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 12px;
    }

    .category-header {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .category-list {
        display: none;
        margin-top: 8px;
        border-radius: 10px;


    }

    .category-list.active {
        display: block;
    }

    /* Hero - hidden on extra small */
    .hero-section {
        display: none;
    }

    /* Products */
    .products-header {
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        padding: 12px;
        border-radius: 12px;
    }

    .product-card img {
        height: 120px;
        border-radius: 8px;
    }

    .product-card h3 {
        font-size: 12px;
        line-height: 1.3;
    }

    .product-card .sku {
        font-size: 11px;
    }

    .product-card .price {
        font-size: 14px;
    }

    .product-card .price span {
        font-size: 11px;
    }

    .product-card button {
        padding: 8px;
        font-size: 12px;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0;
    }

    /* Footer */
    .main-footer {
        background: #f5f6fa;
        padding: 25px 12px 15px;
        margin-top: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-col {
        background: #ffffff;
        border-radius: 12px;
        padding: 16px;
        align-items: flex-start;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    .footer-col h3 {
        font-size: 14px;
        margin-bottom: 10px;
        font-weight: 600;
        color: #222;
    }

    .footer-col p {
        font-size: 12.5px;
        line-height: 1.6;
        color: #555;
    }

    .footer-col ul li {
        margin-bottom: 6px;
    }

    .footer-col ul a {
        font-size: 13px;
        color: #444;
    }

    .footer-col p i {
        color: var(--primary-green);
        margin-right: 6px;
    }

    .social-links {
        gap: 12px;
        margin-top: 8px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 14px;
        background: #f1f1f1;
        border: none;
    }

    .footer-bottom {
        text-align: center;
        font-size: 11.5px;
        color: #777;
        margin-top: 15px;
        padding-top: 10px;
        border-top: none;
    }

    /* Mobile Navigation */
    .mobile-nav {

        display: none;
    }

    .mobile-nav.active {
        display: flex;
    }



}

/* ===== SMALL (Landscape smartphones & large phablets) 576px – 767px ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Top bar - show support email in landscape */
    .top-left span:first-child {
        display: inline !important;
    }

    .top-bar .container {
        justify-content: space-between;
        padding: 5px 15px;
    }

    /* Header */
    .header-flex {
        gap: 40px;
    }

    .mobile-only {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    /* Main Layout */
    .main-layout {
        flex-direction: column;
        gap: 25px;
    }

    .sidebar {
        width: 100%;
    }

    .category-list {
        display: none;
    }

    .category-list.active {
        display: block;
    }

    /* Hero */
    .hero-section {
        padding: 40px 30px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .trust-badges {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-col {
        align-items: flex-start;
    }

    .footer-col h3,
    .footer-col p,
    .footer-col li {
        text-align: left;
    }

    /* Mobile Navigation */
    .mobile-nav {
        display: none;
    }

    .mobile-nav.active {
        display: flex;
    }
}

/* ===== MEDIUM (Tablets portrait) 768px – 991px ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 95%;
    }

    /* Header */
    .header-flex {
        gap: 30px;
        justify-content: space-between;
    }

    .desktop-nav {
        gap: 20px;
    }

    .desktop-nav a {
        font-size: 12px;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-nav {
        display: flex !important;
    }

    /* Main Layout */
    .main-layout {
        flex-direction: column;
        gap: 30px;
    }

    .sidebar {
        width: 100%;

    }

    .category-list {
        display: none;
    }

    /* OPEN on click */
    .category-list.active {
        display: block;
    }

    /* Hero */
    .hero-section {
        padding: 50px 40px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }

    .footer-col {
        align-items: flex-start;
    }

    /* Mobile Navigation - hide on tablets */
    .mobile-nav {
        display: none !important;
    }
}

/* ===== LARGE (Small laptops, Tablets landscape) 992px – 1199px ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 1100px;
    }

    /* Header */
    .header-flex {
        gap: 100px;
    }

    .desktop-nav {
        gap: 40px;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-nav {
        display: flex !important;
    }

    /* Main Layout - keep row layout */
    .main-layout {
        flex-direction: row !important;
    }

    .sidebar {
        width: 260px !important;
    }

    .category-list {
        display: block !important;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 30px;
    }

    /* Mobile Navigation - hide */
    .mobile-nav {
        display: none !important;
    }
}

/* ===== EXTRA LARGE (Standard Desktop) 1200px – 1399px ===== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1200px;
    }

    /* Header */
    .header-flex {
        gap: 160px;
    }

    .desktop-nav {
        gap: 50px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Mobile Navigation - hide */
    .mobile-nav {
        display: none !important;
    }
}

/* ===== XXL / ULTRA (Large Desktop & Widescreen) ≥ 1400px ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    /* Header */
    .header-flex {
        gap: 200px;
    }

    .desktop-nav {
        gap: 50px;
    }

    /* Hero */
    .hero-section {
        padding: 80px 60px;
    }

    .hero-section h1 {
        font-size: 52px;
    }

    /* Products */
    .products-grid {
        gap: 35px;
    }

    /* Info Grid */
    .info-grid {
        gap: 25px;
    }

    /* Mobile Navigation - hide */
    .mobile-nav {
        display: none !important;
    }
}

/* ===== GENERAL RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .top-bar .container {
        justify-content: space-between;
        padding: 5px 15px;
        flex-wrap: wrap;
    }

    .top-left {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }

    .top-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Ensure proper sidebar behavior for desktop */
@media (min-width: 992px) {
    .main-layout {
        flex-direction: row !important;
    }

    .sidebar {
        width: 260px !important;
    }

    .category-list {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-nav {
        display: flex !important;
    }
}


.product-name {
    line-height: 15px;
    height: 30px;
    /* 2 lines × 20px */
    overflow: hidden;
}

.stock {
    margin-top: -5px;
    margin-bottom: 5px;
    font-size: 12px;
}




.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



#sortFilter {

    height: 30px;
    padding: 4px;

}