:root {
    --primary-green: #245B3B;
    --dark-green: #19472D;
    --light-green: #EDF4EE;
    --text-dark: #1b2a21;
    --text-muted: #6b756f;
    --alert-red: #e5322d;
}

/* ================= Main Navbar ================= */
.main-navbar {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 3px 14px rgba(25, 71, 45, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.main-navbar.is-scrolled {
    box-shadow: 0 6px 22px rgba(25, 71, 45, 0.14);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 76px;
}

/* ================= Logo ================= */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 200px;
    height: 58px;
    object-fit: contain;
    display: block;
}

/* ================= Content Wrapper ================= */
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 28px;
}

/* ================= Links ================= */
.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: 12px;
}

.nav-links .nav-link {
    position: relative;
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 600;
    padding: 8px 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-links .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--primary-green);
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
    transform: scaleX(1);
}

/* ================= Search ================= */
.nav-search {
    display: flex;
    align-items: center;
    width: 220px;
    flex-shrink: 0;
    background: #eef1ef;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 0 12px;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-search:focus-within {
    background: #ffffff;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(36, 91, 59, 0.1);
}

.nav-search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.nav-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-dark);
    padding: 11px 8px;
}

.nav-search-input::placeholder {
    color: var(--text-muted);
}

/* ================= Actions ================= */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

/* Notifications */
.notify-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--primary-green);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.25s ease;
}

.notify-btn:hover {
    background: var(--light-green);
}

.notify-icon {
    width: 24px;
    height: 24px;
}

.notify-count {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: var(--alert-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-divider {
    width: 1px;
    height: 34px;
    background: #d9dfdb;
}

/* Account */
.nav-account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary-green);
    color: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.account-avatar:hover {
    background: var(--dark-green);
    transform: scale(1.05);
}

.account-avatar svg {
    width: 22px;
    height: 22px;
}

.account-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.account-text a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.account-text a:hover {
    color: var(--primary-green);
}

.account-slash {
    margin: 0 3px;
    color: var(--text-muted);
}

/* ================= Mobile Toggle ================= */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--light-green);
    color: var(--primary-green);
    cursor: pointer;
    transition: background 0.25s ease;
}

.mobile-toggle:hover {
    background: #dfeee2;
}

.mobile-toggle .icon-close {
    display: none;
}

.mobile-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.mobile-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* ================= Keyboard Focus ================= */
.nav-link:focus-visible,
.account-avatar:focus-visible,
.account-text a:focus-visible,
.notify-btn:focus-visible,
.mobile-toggle:focus-visible,
.brand-logo:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 3px;
}

/* ================= Responsive ================= */
@media (max-width: 1399px) {
    .nav-links {
        gap: 24px;
    }

    .nav-search {
        width: 190px;
    }
}

@media (max-width: 1199px) {
    .navbar-container,
    .nav-content {
        gap: 18px;
    }

    .brand-logo-img {
        width: 170px;
        height: 50px;
    }

    .nav-links {
        gap: 18px;
        margin-left: 0;
    }

    .nav-links .nav-link {
        font-size: 14px;
    }

    .nav-search {
        width: 150px;
    }

    .nav-actions {
        gap: 12px;
    }

    .account-text {
        display: none;
    }
}

@media (max-width: 991px) {
    .navbar-container {
        flex-wrap: wrap;
        gap: 0;
        min-height: 68px;
    }

    .brand-logo-img {
        width: 190px;
        height: 54px;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .nav-content {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
        padding: 8px 0 20px;
        border-top: 1px solid #e3e9e5;
    }

    .nav-content.show {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin-left: 0;
        padding-top: 8px;
    }

    .nav-links .nav-link {
        display: block;
        font-size: 15.5px;
        padding: 13px 14px;
        border-radius: 10px;
    }

    .nav-links .nav-link::after {
        display: none;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: var(--light-green);
    }

    .nav-search {
        width: 100%;
    }

    .nav-actions {
        justify-content: space-between;
        gap: 12px;
    }

    .nav-divider {
        display: none;
    }

    .nav-account {
        flex: 1;
    }

    .account-text {
        display: inline;
        font-size: 14.5px;
    }
}

@media (max-width: 400px) {
    .brand-logo-img {
        width: 155px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-navbar,
    .nav-links .nav-link,
    .nav-links .nav-link::after,
    .nav-search,
    .notify-btn,
    .account-avatar,
    .mobile-toggle {
        transition: none;
    }
}





/* Header cart icon */
.header-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    color: #285c35;
    text-decoration: none;
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}

.header-cart-btn:hover {
    color: #174523;
    background: #edf5e9;
}

.header-cart-icon {
    font-size: 22px;
}

.header-cart-count {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4af37;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 768px) {
    .header-cart-btn {
        width: 38px;
        height: 38px;
    }

    .header-cart-icon {
        width: 21px;
        height: 21px;
    }
}




.account-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.account-dropdown-link:hover {
    background: #f5f7fa;
    color: #0A4D9E;
}

.account-dropdown-link i {
    width: 18px;
}





