:root {
    --color-primary: #056839;
    --color-text-base: #212326;
    --color-text-heading: #1a1b18;
    --color-border: #d2d5d9;
    --color-mint-shadow: #a8e8e2;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-base);
}

.font-heading {
    font-family: 'Quicksand', sans-serif;
    color: var(--color-text-heading);
}

.text-primary-green {
    color: var(--color-primary);
}

.bg-primary-green {
    background-color: var(--color-primary);
}

.border-primary-green {
    border-color: var(--color-primary);
}

.shadow-mint {
    box-shadow: 0 4px 14px 0 rgba(168, 232, 226, 0.4);
}

.shadow-mint-hover:hover {
    box-shadow: 0 6px 20px 0 rgba(168, 232, 226, 0.6);
}

/* ── Announce Bar ── */
.nav-announce-bar {
    background: #056839;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    position: relative;
    overflow: hidden;
}

.nav-announce-track {
    flex: 1;
    text-align: center;
    overflow: hidden;
    position: relative;
    height: 36px;
}

.nav-announce-slide {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(100%);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    font-family: 'Quicksand', sans-serif;
    transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s;
    opacity: 0;
}

.nav-announce-slide.active {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.nav-announce-slide.out-left {
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
}

.nav-announce-prev, .nav-announce-next {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0 12px;
    line-height: 36px;
    transition: color .2s;
}

.nav-announce-prev:hover, .nav-announce-next:hover {
    color: #fff;
}

/* ── Row 2 — White Bar ── */
.nav-row2 {
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 70px;
    gap: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
    border-bottom: 1px solid #e5e7eb;
}

/* Search */
.nav-search-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    z-index: 20;
}

.nav-search-box {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    padding: 0 14px;
    height: 46px;
    transition: background .2s, border-color .2s;
}

.nav-search-box:focus-within {
    background: #fff;
    border-color: #056839;
}

.nav-search-box:focus-within .nav-search-icon {
    color: #056839;
}

.nav-search-box:focus-within .nav-search-input {
    color: #1a1b18;
}

.nav-search-box:focus-within .nav-search-input::placeholder {
    color: #9ca3af;
}

.nav-search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #4b5563;
}

.nav-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none !important;
    box-shadow: none !important;
    font-size: 13px;
    color: #1a1b18;
    padding: 0 8px;
    font-family: 'Inter', sans-serif;
}

.nav-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-search-input::placeholder {
    color: #6b7280;
}

.nav-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: #056839;
    font-weight: 700;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* Search Panel */
.nav-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 780px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16);
    border: 1px solid #e5e7eb;
    z-index: 9999;
    animation: nspFadeInCenter .18s ease;
}

@keyframes nspFadeInCenter {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nsp-inner {
    display: flex;
}

.nsp-left {
    width: 200px;
    flex-shrink: 0;
    padding: 20px 0 20px 20px;
}

.nsp-divider {
    width: 1px;
    background: #f3f4f6;
    margin: 16px 0;
}

.nsp-right {
    flex: 1;
    padding: 20px 20px 20px 20px;
}

.nsp-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: 'Quicksand', sans-serif;
}

.nsp-cat-link {
    display: block;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    padding: 5px 0;
    transition: color .15s;
}

.nsp-cat-link:hover {
    color: #056839;
}

.nsp-cat-link strong {
    color: #056839;
}

.nsp-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nsp-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px;
    border-radius: 8px;
    transition: background .15s;
}

.nsp-product-card:hover {
    background: #f0fdf4;
}

.nsp-product-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #e5e7eb;
    flex-shrink: 0;
}

.nsp-product-img-ph {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.nsp-product-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1b18;
    line-height: 1.35;
    margin-bottom: 2px;
}

.nsp-product-price {
    font-size: 12px;
    color: #056839;
    font-weight: 700;
}

.nsp-no-result {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.nsp-no-result a {
    color: #056839;
    font-weight: 600;
}

/* Logo Left styling */
.nav-row2 {
    position: relative;
}

.nav-logo-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Right icons */
.nav-row2-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-icon-wrap {
    position: relative;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    color: #056839;
    transition: opacity .2s;
    position: relative;
    text-decoration: none;
}

.nav-icon-btn svg {
    width: 22px;
    height: 22px;
}

.nav-icon-btn:hover {
    background: none;
    opacity: .75;
}

.nav-cart-btn {
    margin-left: 4px;
}

.nav-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

/* User dropdown */
.nav-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
    border: 1px solid #e5e7eb;
    min-width: 175px;
    overflow: hidden;
    animation: nspFadeIn .18s ease;
    z-index: 9999;
}

.nav-user-menu.open {
    display: block;
}

.num-greeting {
    padding: 12px 18px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    font-family: 'Quicksand', sans-serif;
}

.num-divider {
    height: 1px;
    background: #f3f4f6;
}

.num-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    transition: background .12s, color .12s;
}

.num-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #9ca3af;
}

.num-item:hover {
    background: #f0fdf4;
    color: #056839;
}

.num-item:hover svg {
    color: #056839;
}

.num-logout {
    color: #ef4444;
}

.num-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.num-logout svg {
    color: #fca5a5;
}

/* ── Row 3 — Category Bar ── */
.nav-catbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    overflow: visible;
}

.nav-catbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
}

.nav-cat-item {
    position: relative;
}

.nav-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    height: 44px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s;
    font-family: 'Quicksand', sans-serif;
    position: relative;
}

.nav-cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #056839;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .22s ease;
}

.nav-cat-link:hover, .nav-cat-link.active {
    color: #056839;
}

.nav-cat-link:hover::after, .nav-cat-link.active::after {
    transform: scaleX(1);
}

.nav-cat-chevron {
    width: 10px;
    height: 10px;
    opacity: .6;
    transition: transform .2s;
}

.nav-cat-item:hover .nav-cat-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

@keyframes cpdFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Category Product Dropdown ── */
.cat-prod-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
    border: 1px solid #e5e7eb;
    z-index: 9990;
    min-width: 520px;
    max-width: 640px;
    padding: 18px 20px 20px;
    animation: cpdFadeIn .35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cat-item:hover .cat-prod-dropdown {
    display: block;
}

.cpd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.cpd-title {
    font-size: 13px;
    font-weight: 800;
    color: #056839;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.cpd-view-all {
    font-size: 12px;
    font-weight: 700;
    color: #056839;
    text-decoration: none;
    opacity: .75;
    transition: opacity .15s;
}

.cpd-view-all:hover {
    opacity: 1;
}

.cpd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cpd-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px;
    border-radius: 10px;
    transition: background .15s;
}

.cpd-card:hover {
    background: #f0fdf4;
}

.cpd-img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.cpd-img-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #d1fae5;
}

.cpd-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cpd-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1b18;
    line-height: 1.35;
    white-space: normal;
}

.cpd-price {
    font-size: 12px;
    font-weight: 700;
    color: #056839;
}

.cpd-old {
    font-weight: 400;
    color: #9ca3af;
    margin-right: 3px;
    font-size: 11px;
}

/* ── Scroll-driven card animations ── */
.scroll-animate-item {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── Banner hero slider ── */
.banner-slider-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.banner-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
}

/* Slide text animation */
.banner-slide .slide-text {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.banner-slide.active .slide-text {
    opacity: 1;
    transform: translateY(0);
}

/* Dot indicators */
.banner-dot {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.banner-dot.active {
    background: white;
    width: 52px;
}

/* ═════════════════════════════════════════════════
   MOBILE CATEGORY SCROLL
═════════════════════════════════════════════════ */

@media (max-width: 768px) {

    .nav-catbar {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;

        /* Hide scrollbar */
        scrollbar-width: none;
        position: relative;
    }

    .nav-catbar::-webkit-scrollbar {
        display: none;
    }

    .nav-catbar-inner {
        width: max-content;
        min-width: 100%;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        padding: 0 10px;
        gap: 2px;
    }

    .nav-cat-link {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Right fade effect */
    .nav-catbar::after {
        content: '';

        position: sticky;
        right: 0;
        top: 0;

        width: 40px;
        height: 100%;

        pointer-events: none;

        background: linear-gradient(
            to right,
            rgba(5,104,57,0),
            rgba(5,104,57,1)
        );
    }
}
/* ═════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
═════════════════════════════════════════════════ */

.scroll-to-top-btn {

    position: fixed;

    /* CENTER RIGHT */
    top: 50%;
    right: 20px;

    transform: translateY(-50%);

    width: 56px;
    height: 56px;

    border: none;
    border-radius: 50%;

    background: #056839;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 9999;

    padding: 0;

    line-height: 0;

    box-shadow: 0 8px 25px rgba(5,104,57,0.35);

    /* FADE EFFECT */
    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease,
        background 0.25s ease;
}

/* SHOW BUTTON */
.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(-50%);
}

/* HOVER EFFECT */
.scroll-to-top-btn:hover {
    background: #044d2a;

    transform: translateY(-50%) scale(1.08);
}

/* ICON */
.scroll-to-top-btn svg {

    width: 24px;
    height: 24px;

    stroke: #fff;
    stroke-width: 2.5;

    display: block;

    flex-shrink: 0;
}

/* ═════════════════════════════════════════════════
   PERFECT MOBILE NAVBAR
═════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* NAVBAR */
    .nav-row2 {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 10px 12px;
        height: auto;
        gap: 10px;
    }

    /* LOGO */
    .nav-logo-left {
        flex: 0 0 auto;
        z-index: 5;
    }

    .nav-logo-link img,
    .nav-logo-img {
        height: 28px;
        width: auto;
    }

    /* RIGHT ICONS */
    .nav-row2-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 2px;
        margin-left: auto;
        z-index: 5;
    }

    .nav-icon-btn {
        width: 34px;
        height: 34px;
    }

    .nav-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    /* SEARCH WRAP */
    .nav-search-wrap {
        position: relative !important;
        left: unset !important;
        top: unset !important;
        transform: none !important;

        width: 100%;
        order: 3;
        margin-top: 2px;
    }

    /* SEARCH BAR */
    .nav-search-box {
        width: 100%;
        height: 40px;
        border-radius: 50px;
        padding: 0 14px;
        background: rgba(255,255,255,0.12);
    }

    .nav-search-input {
        font-size: 13px;
    }

    /* SEARCH PANEL */
    .nav-search-panel {
        width: 100%;
        left: 0 !important;
        transform: none !important;
        max-width: 100%;
    }

    /* CATEGORY BAR */
    .nav-catbar {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-catbar::-webkit-scrollbar {
        display: none;
    }

    .nav-catbar-inner {
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
        padding: 0 10px;
    }

    .nav-cat-link {
        flex-shrink: 0;
        padding: 0 12px;
        font-size: 12px;
        height: 40px;
    }

    /* HIDE DROPDOWNS */
    .cat-prod-dropdown {
        display: none !important;
    }
}