:root{
    --brand:#2E7D32;
    --brand-soft:#E8F5E9;
    --text:#1F2937;
    --muted:#64748B;
    --bg:#F6F8FB;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
}

a{
    color:inherit;
    text-decoration:none;
}

/* HEADER */

.navbar{
    background:#fff;
    padding:18px 32px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #E2E8F0;
    position:sticky;
    top:0;
    z-index:999;
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
}

.brand-logo{
    width:40px;
    height:40px;
    border-radius:12px;
    background:var(--brand);
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:bold;
    font-size:18px;
}

.brand-name{
    font-size:22px;
    font-weight:800;
    white-space:nowrap;
}

.header-right{
    display:flex;
    align-items:center;
    gap:18px;
}

.main-nav{
    display:flex;
    align-items:center;
    gap:10px;
}

.nav-item,
.dropdown-toggle{
    color:var(--muted);
    font-weight:700;
    background:none;
    border:none;
    font:inherit;
    cursor:pointer;
    padding:10px 14px;
    border-radius:18px;
}

.nav-item:hover,
.dropdown-toggle:hover,
.nav-item.active{
    color:var(--brand);
    background:rgba(46,125,50,.10);
}

/* DROPDOWN */

.nav-dropdown{
    position:relative;
}

.dropdown-menu{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    min-width:190px;
    background:#fff;
    border-radius:18px;
    box-shadow:0 24px 50px rgba(15,23,42,.12);
    border:1px solid rgba(15,23,42,.06);
    padding:12px 0;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:.25s ease;
    z-index:1000;
}

.dropdown-menu a{
    display:block;
    padding:10px 18px;
    font-weight:600;
    white-space:nowrap;
}

.dropdown-menu a:hover{
    background:rgba(46,125,50,.08);
    color:var(--brand);
}

.nav-dropdown:hover .dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* SEARCH */

.search-wrapper{
    position:relative;
}

.navbar-search{
    width:320px;
    height:46px;
    border:1px solid #E2E8F0;
    border-radius:999px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 16px;
    background:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.04);
}

.navbar-search button{
    border:none;
    background:transparent;
    cursor:pointer;
    display:flex;
}

.navbar-search svg{
    width:18px;
    height:18px;
    fill:#111827;
}

.navbar-search input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
}

.live-search-results{
    position:absolute;
    top:55px;
    right:0;
    width:360px;
    background:#fff;
    border-radius:18px;
    box-shadow:0 20px 45px rgba(0,0,0,.12);
    overflow:hidden;
    display:none;
    z-index:2000;
}

.live-search-item{
    display:flex;
    gap:12px;
    align-items:center;
    padding:12px;
    border-bottom:1px solid #F1F5F9;
}

.live-search-item img{
    width:55px;
    height:55px;
    object-fit:contain;
    background:#F8FAFC;
    border-radius:10px;
}

.live-search-item strong{
    display:block;
    font-size:14px;
}

.live-search-item span{
    color:var(--brand);
    font-size:13px;
    font-weight:bold;
}

/* ICONS */

.icon-button{
    width:44px;
    height:44px;
    border-radius:50%;
    border:1px solid #E5E7EB;
    background:#fff;
    color:var(--brand);
    display:grid;
    place-items:center;
    cursor:pointer;
    position:relative;
    flex-shrink:0;
}

.icon-button svg{
    width:24px;
    height:24px;
}

.cart-badge{
    position:absolute;
    top:-4px;
    right:-4px;
    min-width:18px;
    height:18px;
    border-radius:50%;
    background:#DC2626;
    color:#fff;
    font-size:11px;
    font-weight:700;
    display:grid;
    place-items:center;
}

/* FOOTER */

.footer{
    background:#1F2937;
    color:#fff;
    text-align:center;
    padding:34px 20px;
}

.footer p{
    margin:0;
}

/* WHATSAPP */

.whatsapp-float{
    position:fixed;
    bottom:24px;
    right:24px;
    width:64px;
    height:64px;
    border-radius:50%;
    background:var(--brand);
    display:grid;
    place-items:center;
    box-shadow:0 18px 35px rgba(46,125,50,.24);
    z-index:1000;
}

.whatsapp-float svg{
    width:28px;
    height:28px;
    fill:#fff;
}

/* MOBILE */

.mobile-menu-btn{
    display:none;
    width:44px;
    height:44px;
    border:none;
    border-radius:12px;
    background:var(--brand-soft);
    color:var(--brand);
    font-size:24px;
    cursor:pointer;
    flex-shrink:0;
}

.mobile-overlay{
    display:none;
}

/* RESPONSIVE */

@media(max-width:900px){

    .navbar{
        padding:14px 18px;
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        gap:12px;
    }

    .mobile-menu-btn{
        display:grid;
        place-items:center;
        order:1;
    }

    .brand{
        order:2;
        flex:1;
        min-width:0;
    }

    .brand-name{
        font-size:20px;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .cart-button{
        order:3;
    }

    .header-right{
    position:fixed;
    top:0;
    left:0;
    width:300px;
    max-width:85%;
    height:100vh;
    background:#fff;
    z-index:3000;
    padding:28px 22px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:22px;
    overflow-y:auto;
    box-shadow:20px 0 50px rgba(0,0,0,.18);
    transition:.30s ease;
    transform:translateX(-110%);
    }

     .header-right.active{
        transform:translateX(0);
          }

    .main-nav{
        width:100%;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .nav-dropdown,
    .nav-item,
    .dropdown-toggle{
        width:100%;
    }

    .dropdown-toggle{
        text-align:left;
    }

    .dropdown-menu{
        position:static;
        width:100%;
        display:block;
        opacity:1;
        visibility:visible;
        transform:none;
        border:none;
        box-shadow:none;
        padding:6px 0 6px 14px;
        margin-top:4px;
    }

    .dropdown-menu a{
        padding:8px 12px;
        font-size:14px;
    }

    .search-wrapper,
    .navbar-search{
        width:100%;
    }

    .live-search-results{
        width:100%;
        left:0;
        right:0;
    }

       .mobile-overlay.active{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        z-index:2500;
    }

    .dropdown-menu{
        position:static;
        display:none;
        opacity:1;
        visibility:visible;
        transform:none;
        border:none;
        box-shadow:none;
        padding:6px 0 6px 15px;
        margin-top:4px;
    }

    .dropdown-menu.mobile-open{
        display:block;
    }

    .whatsapp-float{
        width:56px;
        height:56px;
        right:18px;
        bottom:18px;
    }

    .mobile-close-btn{
        display:grid;
        place-items:center;
        width:40px;
        height:40px;
        border:none;
        border-radius:12px;
        background:#FEE2E2;
        color:#991B1B;
        font-size:26px;
        cursor:pointer;
        margin-left:auto;
    }
}

@media(max-width:480px){
    .brand-logo{
        width:38px;
        height:38px;
    }

    .brand-name{
        font-size:18px;
    }

    .navbar{
        padding:12px 14px;
    }
}

.mobile-close-btn{
    display:none;
}