/* ===== NAVBAR ===== */
.navbar {
    /* background: #152339; */
    position: relative;
    border-top: 1px solid #3053a2;
    z-index: 100;
    padding: 0;
}

.nav-inner {
    /* max-width:1280px; */
    width: 100%;
    margin: 0 auto;
    /* padding:0 24px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}



/* Primary nav (desktop) */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.primary-nav>li {
    position: relative;
}

.primary-nav>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.primary-nav>li>a:hover,
.primary-nav>li.open>a {
    color: #b28f3b;
}

.caret {
    width: 9px;
    height: 9px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform .15s ease;
    opacity: .6;
}

.primary-nav>li.open .caret {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 4px;
    display: flex;
}

.icon-btn:hover {
    color: #ffe3a0;
}

.badge-1 {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #d5b978;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Hamburger (mobile only) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 9999;
    position: relative;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    display: block;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
    .primary-nav>li.has-mega {
        position: static;
    }
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    /* Full screen width */
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    padding: 40px 0;
    border-radius: 0;
    /* Clean flat layout like the screenshot */
    z-index: 999;
}

li.open .mega-menu {
    display: block;
}

/* Inner container to keep content centered & readable */
.mega-grid {
    max-width: 1320px;
    /* Match your site layout max-width */
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns */
    gap: 40px;
}

/* Column Header with bottom line divider (matches your screenshot) */
.mega-col h4 {
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    text-transform: none;
    /* Matching exact style in reference image */
    border-bottom: 1px solid #eaeaea;
}

.mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-col a {
    color: #555555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.mega-col a:hover {
    color: #000000;
    padding-left: 0;
    /* Clean hover without shift */
}

.mega-promo {
    grid-column: span 1;
    background: #f7f4f0;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
    min-height: 180px;
}

.mega-promo span {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mega-promo strong {
    font-size: 15px;
    color: var(--ink);
}

.mega-promo a.shop-link {
    font-size: 13px;
    font-weight: 600;
    color: #ae8a33;
    text-decoration: underline;
}

/* ===== SIMPLE DROPDOWN ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 10px;
    list-style: none;
    margin: 0;
}

li.open .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    color: #152339;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: #f7f4f0;
    color: var(--accent);
}

/* ===================================================================
     RESPONSIVE — collapses to off-canvas mobile menu below 991px
     =================================================================== */
@media (max-width: 991px) {
    .navbar {
        border-top: none;
    }
    .nav-inner {
        height: auto;
        
    }

    .hamburger {
        display: flex;
        order: -1;
    }

    .primary-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100vh - 64px);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 8px 0 24px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .25s ease;
        border-top: 1px solid var(--line);
    }

    .primary-nav.mobile-open {
        transform: translateX(0);
    }

    .primary-nav>li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .primary-nav>li>a {
        color: #000;
        width: 100%;
        padding: 10px 24px;
        justify-content: space-between;
        border-bottom: none;
    }

    nav>li.open>a {
        color: #ae8a33;
    }

    /* mega menu + dropdown become inline accordions on mobile */
    .mega-menu,
    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 24px 16px;
        background: #fbfaf9;
        display: none;
    }

    li.open .mega-menu,
    li.open .dropdown-menu {
        display: block;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mega-promo {
        order: 99;
        min-height: auto;
    }

    .nav-icons {
        gap: 16px;
    }

    .nav-icons .icon-btn:nth-child(2) {
        display: none;
    }

    /* hide account icon on very small nav for breathing room, optional */
}

@media (max-width: 420px) {
    .mega-grid {
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 0px;
    }
}


@media (max-width: 420px) {
    .nav-icons .icon-btn:nth-child(2) {
        display: flex;
    }

    .nav-icons {
        gap: 12px;
    }
}

/* overlay behind mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 90;
}

.nav-overlay.active {
    display: block;
}

/* Hamburger (mobile only) */
/* .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #f7f4f0;
    display: block;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
} */