/* =====================================================================
   Cozzi Cotton – NAVBAR STYLES
   Applied to Oscar 2.0.4 one-tier header (≥ release 1.6.1-d)
      Updated 2025-06-29 — primary sans: Inter; headings serif: Lora (see :root --ff-sans/--ff-serif)
   ===================================================================== */

/* -------- 1.  GLOBAL TYPE, COLOUR & SCALE -------------------------- */

:root {

    /* Brand palette */
    --cozzicotton-primary: #B89658;
    --cozzicotton-primary-hover: #947844;
    --text-default: #212529;

    /* Font-family stacks */
    --ff-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --ff-nav: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

    /* Desktop base sizes */
    --fs-nav: 14px;
    --fs-menu: 14px;
    --fs-util: 14px;
    --fs-nav-tier2: 16px;
    --lh-default: 20px;
    --clr-neutral-100: #ffffff;

    --overlay-bg: rgba(8, 8, 10, 0.92);
    --overlay-panel-bg: transparent; /* keep content on the same dark canvas */
    --overlay-z: 2000; /* above header & hero */
    --overlay-padding-top: 70px;
}

@media (max-width: 991px) {
    :root {
        --fs-nav: 15px;
        --fs-menu: 13px;
        --fs-util: 15px;
    }
}

@media (max-width: 767px) {
    :root {
        --fs-nav: 14px;
        --fs-menu: 13px;
        --fs-util: 14px;
    }
}

body {
    font-family: var(--ff-sans), sans-serif;
    color: var(--text-default);
}

/* -------- 2.  TYPOGRAPHY RULES ------------------------------------- */

.navbar-nav > li > a {
    font-family: var(--ff-sans), sans-serif;
    font-weight: 600;
    font-size: var(--fs-nav);
    line-height: 1.35;
    letter-spacing: .02em;
    color: var(--text-default);
    transition: color .2s ease;
}

.navbar-nav.navbar-right > li > a {
    font-family: var(--ff-sans), sans-serif;
    font-weight: 600;
    font-size: var(--fs-util);
    line-height: 1.4;
    letter-spacing: .02em;
}

.dropdown-menu > li > a {
    font-family: var(--ff-sans), sans-serif;
    font-weight: 500;
    font-size: var(--fs-menu);
    line-height: 20px;
    letter-spacing: 0;
    transition: color .2s ease;
    color: #333333 !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.open > a,
.navbar-nav > li.active > a,
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    color: var(--cozzicotton-primary) !important;
}

/* -------- 3.  NAVBAR FRAME ---------------------------------------- */
/* NOTE: The base `.navbar` background below (white) is overridden later:
   - Home (over hero): lines 614–617 make it transparent.
   - Non-home pages: lines 745–753 set a dark semi-transparent background.
   Keep this base as a fallback/default outside those scopes. */
.navbar {
    background: #ffffff;
    border-bottom: none;
    padding: 4px 0;
    margin-bottom: 0;
    transition: padding .2s ease;
    box-shadow: none !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 2px 15px 2px;
}

.navbar-brand img {
    height: auto;
    max-height: 52px;
}

@media (max-width: 767px) {
    .navbar-header .navbar-brand {
        padding: 0 10px;
    }

    .navbar-header .navbar-brand img {
        max-height: 48px;
    }
}

.navbar-toggle {
    margin: 12px 15px 0 0;
    border: none;
    background-color: transparent !important; /* base state */
    -webkit-tap-highlight-color: transparent; /* Android/iOS tap highlight */
}

.navbar-toggle .icon-bar {
    background: var(--text-default);
}

/* -------- 4.  SEARCH ------------------------------------------------ */

.navbar-form.navbar-left {
    margin: 0 0 0 30px;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}

.navbar-form .form-control,
.navbar-form .btn {
    font-family: var(--ff-sans), sans-serif;
    font-size: var(--fs-util);
}

.navbar-form .form-control {
    width: 260px;
    border: 1px solid #ced4da;
    border-radius: 20px 20px 20px 20px;
    box-shadow: none;
}

.navbar-form .btn {
    border: 1px solid #ced4da;
    border-radius: 20px 20px 20px 20px;
    background: #e9ecef;
    color: var(--text-default);
}


.navbar-form .btn:hover,
.navbar-form .btn:focus {
    background: var(--cozzicotton-primary);
    color: #fff;
}

/* -------- 5.  ICON BADGES ------------------------------------------ */

.badge-cart {
    background: #adb5bd;
    font-size: 11px;
    vertical-align: top;
    margin-left: 4px;
}

.badge-cart:not(.empty) {
    background: var(--cozzicotton-primary);
}

/* -------- 6.  RESPONSIVE TWEAKS ------------------------------------ */

@media (max-width: 991px) {
    .navbar-nav {
        margin: 0;
        width: 100%;
    }

    .navbar-nav > li {
        width: 100%;
    }

    .navbar-nav > li > a {
        padding: 10px 15px;
    }

    .navbar-form.navbar-left {
        display: none;
    }
}

/* -------- 7.  ACCESSIBILITY STATES --------------------------------- */

.navbar a:focus {
    outline: none;
}

.navbar a:focus-visible {
    outline: 2px dashed var(--cozzicotton-primary);
    outline-offset: 2px;
}

.navbar-nav > li > a:active,
.navbar-nav > li.open > a {
    background: transparent !important;
}

/* -------- 8.  DESKTOP HOVER DROPDOWN ------------------------------- */
@media (min-width: 992px) {
    .navbar-nav li.dropdown:hover > .dropdown-menu {
        display: block !important;
    }

    .navbar-primary.navbar-fixed-top .nav > li.premium > a,
    .navbar-primary .nav > li.premium > a {
        color: #d4af37 !important; /* force gold on hero/overlay navbar */
        font-weight: 600;
    }

    .navbar-primary .nav > li.premium > a:hover,
    .navbar-primary .nav > li.premium > a:focus {
        color: var(--cozzicotton-primary, #B89658) !important; /* brand orange on hover */
    }
}

/* =================================================================== */

/* ───────────── Tier 2 specific styling ───────────── */
.navbar-primary {
    border: 0;
    font-size: 15px;
    line-height: 24px;
}

.navbar-primary .nav > li > a {
    /*padding: 6px 12px;*/
    font-family: var(--ff-sans), sans-serif;
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally just in case */
    height: 36px;
    line-height: 1; /* Reset to avoid vertical misalignment */
    padding-top: 7px;
    padding-bottom: 5px;
    font-size: var(--fs-nav-tier2);
    font-weight: 500;
    letter-spacing: .02em;
}


.navbar-primary .navbar-toggle .icon-bar {
    transition: transform .2s ease, opacity .2s ease;
}

.navbar-primary .navbar-toggle:not(.collapsed) .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navbar-primary .navbar-toggle:not(.collapsed) .icon-bar:nth-child(2) {
    opacity: 0;
}

.navbar-primary .navbar-toggle:not(.collapsed) .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


@media (max-width: 991px) {
    .navbar-primary .navbar-toggle {
        display: block;
    }

    .navbar-collapse {
        transition: none !important;
        -webkit-transition: none !important;
    }

    #style-navbar.collapse {
        overflow: hidden;
    }

    #style-navbar.collapse.in {
        height: auto !important;
        display: block !important;
    }

    #style-navbar.collapse:not(.in) {
        display: none !important;
    }
}


.dropdown-menu .sub-link {
    font-family: var(--ff-sans), sans-serif;
    font-weight: 400;
    font-size: var(--fs-menu);
    line-height: 20px;
}


#main-navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


.cozzicotton-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.cozzicotton-search-wrapper {
    flex-grow: 1;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start; /* Or center */

}

.cozzicotton-search-wrapper form {
    width: 100%;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .cozzicotton-search-wrapper.desktop-only {
        display: none !important;
    }
}

.cozzicotton-search-wrapper .input-group {
    width: 100%;
    display: flex;
}

/* Fix Bootstrap default form float/margins in flex context */
.cozzicotton-search-wrapper .navbar-form {
    float: none !important;
    margin: 0 !important;
    width: auto !important;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.cozzicotton-search-wrapper .form-group {
    flex-grow: 1;
    margin: 0;
}

.cozzicotton-search-wrapper .input-group input {
    flex-grow: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cozzicotton-search-wrapper .input-group-btn > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    padding-left: 15px;
}


@media (max-width: 991px) {
    /* hide when collapsed (no .in class) */
    #main-navbar-collapse.collapse:not(.in) {
        display: none !important;
        height: 0;
        overflow: hidden;
    }

    /* show when expanded (.in class) */
    #main-navbar-collapse.collapse.in {
        display: block !important;
        height: auto !important;
    }
}


/* in your NavBarStyles.css under your “@media (max-width: 991px)” section */

@media (max-width: 991px) {
    .header-icons {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 1.5rem;
        flex-direction: row-reverse; /* ← flips the order */
    }

    .header-icons .mobile-icon {
        font-size: 1.75rem;
        color: var(--text-default);
        padding: 0.5rem;
        position: relative;
    }

    .header-icons .badge {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(25%, -25%);
        font-size: 0.85rem;
        background: var(--cozzicotton-primary);
        color: #fff;
    }

    /* Non-home pages → force icons and burger to white */
    body:not(.header-over-hero) .header-icons .mobile-icon {
        color: rgba(255, 255, 255, 0.94);
    }

    body:not(.header-over-hero) .navbar-toggle .icon-bar {
        background: rgba(255, 255, 255, 0.94);
    }
}


/* =================================================================== */
/* MOBILE ICON TAP/FOCUS FEEDBACK                                      */
/* =================================================================== */

/* Make sure the hit area is big enough */
.header-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* a ~44×44px touch target */
    border-radius: 0.25rem; /* gentle rounding */
    transition: background-color 0.15s ease, transform 0.1s ease;
}

/* Light “ripple” on tap/active */
.header-icons a:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

/* Keep a strong focus indicator for keyboard & a11y */
.header-icons a:focus-visible {
    outline: 2px solid var(--cozzicotton-primary);
    outline-offset: 2px;
}

/* Remove the default focus/hover underline we already stripped */
.header-icons a:hover,
.header-icons a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}


@media (max-width: 991px) {
    .mobile-big-search {
        display: block;
        background: transparent;
        border-bottom: 0;
        padding: 8px 0;
    }

    /* Non-home pages (no .header-over-hero): give the row a dark navbar bg */
    body:not(.header-over-hero) .mobile-big-search {
        background: rgba(0, 0, 0, 0.90); /* same as your default navbar */
    }

    /* Match the dark pill input & button used in the default navbar */
    body:not(.header-over-hero) .mobile-big-search .navbar-form .form-control {
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.22);
    }

    body:not(.header-over-hero) .mobile-big-search .navbar-form .form-control::placeholder {
        color: rgba(255, 255, 255, 0.28);
    }

    body:not(.header-over-hero) .mobile-big-search .navbar-form .input-group-btn .btn,
    body:not(.header-over-hero) .mobile-big-search .navbar-form .btn {
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.22);
    }

    body:not(.header-over-hero) .mobile-big-search .navbar-form .btn:hover,
    body:not(.header-over-hero) .mobile-big-search .navbar-form .btn:focus {
        background: var(--cozzicotton-primary);
        border-color: var(--cozzicotton-primary);
        color: #fff;
    }

    /* container is already display:flex; justify-content:center; */
    .mobile-big-search .cozzicotton-search-wrapper {
        display: flex;
        justify-content: center;
        padding: 0 15px; /* match your container gutters */
    }

    .mobile-big-search .cozzicotton-search-wrapper .input-group {
        flex: 1 1 auto; /* ← grow to fill available space */
        max-width: calc(100% - 80px);
        width: auto; /* ← let flex determine actual width */
    }

    /* Home/hero variant: translucent field & button below 992px */
    body.header-over-hero .mobile-big-search .navbar-form .form-control {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.16);
    }

    body.header-over-hero .mobile-big-search .navbar-form .form-control::placeholder {
        color: rgba(255, 255, 255, 0.65);
    }

    body.header-over-hero .mobile-big-search .navbar-form .input-group-btn .btn,
    body.header-over-hero .mobile-big-search .navbar-form .btn {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.16);
    }

    body.header-over-hero .mobile-big-search .navbar-form .btn:hover,
    body.header-over-hero .mobile-big-search .navbar-form .btn:focus {
        background: var(--cozzicotton-primary);
        border-color: var(--cozzicotton-primary);
        color: #fff;
    }

}

@media (min-width: 992px) {
    .mobile-big-search {
        display: none !important;
    }
}

/* -------- SAFETY GUARD: HIDE DESKTOP SEARCH ON MOBILE -------- */
@media (max-width: 991px) {
    #main-navbar-collapse .navbar-form {
        display: none !important;
    }
}

/* =========================================================
   HOME ONLY: Transparent header over hero
   Triggered by: <body class="... header-over-hero">
   ========================================================= */

/* Put the whole header block above the hero */
body.header-over-hero .header {
    position: absolute; /* sit on top of hero */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* above hero images */
    isolation: isolate;
}

body.header-over-hero .header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 110px; /* covers Tier-1 + Tier-2 on most screens */
    pointer-events: none;
    z-index: -1; /* sits behind header content */
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.12) 55%,
            rgba(0, 0, 0, 0.00) 100%
    );
}

/* Tweak veil height responsively */
@media (max-width: 991px) {
    body.header-over-hero .header::before {
        height: 90px;
    }
}

@media (min-width: 1200px) {
    body.header-over-hero .header::before {
        height: 120px;
    }
}

/* Make both tiers transparent (Tier 1 + Tier 2) */
body.header-over-hero .navbar,
body.header-over-hero .navbar.navbar-primary {
    background: transparent !important;
    /*border-color: transparent !important;*/
    box-shadow: none !important;
}

/* Keep !important only where you truly need it */
body.header-over-hero .navbar .navbar-brand,
body.header-over-hero .navbar .navbar-text {
    color: rgba(255, 255, 255, 0.94) !important;
}

/* Links: NO !important so hover can override */
body.header-over-hero .navbar .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.94);
}

/* Icons inside links: NO !important so hover can override */
body.header-over-hero .navbar .navbar-nav > li > a .fa {
    color: rgba(255, 255, 255, 0.94);
}

/* Mobile icons row (account / wishlist / cart) */
body.header-over-hero .header-icons .mobile-icon {
    color: #ffffff !important;
}

body.header-over-hero .navbar-toggle .icon-bar {
    background: #ffffff;
}

/* Search (desktop Tier 1) — make it usable on dark images */
body.header-over-hero #main-navbar-collapse .navbar-form .form-control {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

body.header-over-hero #main-navbar-collapse .navbar-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

body.header-over-hero #main-navbar-collapse .input-group-btn .btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Home header search button — real hover */
body.header-over-hero #main-navbar-collapse .input-group-btn .btn:hover,
body.header-over-hero #main-navbar-collapse .input-group-btn .btn:focus {
    background: var(--cozzicotton-primary);
    border-color: var(--cozzicotton-primary);
    color: #fff;
}

/* Tier 2 “Need help?” + separator on mobile */
body.header-over-hero .navbar.navbar-primary .navbar-right > li > a {
    color: #fff;
}

body.header-over-hero .help-separator {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Cart badge stays visible on images */
body.header-over-hero .navbar .badge {
    background: #fff;
    color: #333;
}

/* === 1) SPACING — HOME ONLY === */
.navbar .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Tier 1 (logo + search + login/cart) height */
.navbar.navbar-default {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Tier 2 (categories strip) height */
.navbar.navbar-primary {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Category item spacing */
.navbar.navbar-primary .nav > li > a {
    padding: 10px 18px;
}

/* Search button hover */
.navbar .btn.btn-default:hover,
.navbar .btn.btn-default:focus {
    background-color: var(--cozzicotton-primary);
    border-color: var(--cozzicotton-primary);
    color: #fff; /* make text/icon white for contrast */
}

/* ===== Single separator BETWEEN Tier-1 and Tier-2 (desktop only, global) ===== */
@media (min-width: 992px) {
    /* Remove stray borders from both tiers */
    .navbar.navbar-default {
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
    }

    .navbar.navbar-primary {
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;

        /* One clean line BETWEEN tiers */
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
}

/* Home only: lighter separator over hero image */
@media (min-width: 992px) {
    body.header-over-hero .navbar.navbar-primary {
        border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    }
}

/* Default navbar background for all pages */
.navbar,
.navbar.navbar-primary {
    background: rgba(0, 0, 0, 0.90) !important; /* semi-transparent black */
    box-shadow: none !important;

    font-size: var(--fs-nav); /* use the same variable as home */
    font-family: var(--ff-sans), sans-serif; /* Inter (shared stack) */
    color: var(--clr-neutral-100); /* match home text color */
}

/* Default navbar text color on dark header (all non-home pages) */
.navbar .navbar-brand,
.navbar .navbar-text {
    color: rgba(255, 255, 255, 0.94) !important;
}

.navbar .navbar-nav > li > a,
.navbar .navbar-nav > li > a .fa {
    color: rgba(255, 255, 255, 0.94);
}

/* Dark search pill to suit dark navbar (non-home) */
.navbar .navbar-form .form-control {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.navbar .navbar-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.navbar .navbar-form .input-group-btn .btn,
.navbar .navbar-form .btn {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.navbar .navbar-form .input-group-btn .btn:hover,
.navbar .navbar-form .btn:hover,
.navbar .navbar-form .input-group-btn .btn:focus,
.navbar .navbar-form .btn:focus {
    background: var(--cozzicotton-primary);
    border-color: var(--cozzicotton-primary);
    color: #fff;
}

/* Full-width, no rounded corners */
.header .navbar,
.header .navbar.navbar-primary {
    border-radius: 0 !important; /* kill the white “ears” */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 991px) {
    /* Prevent the height tween that causes the “pre-position” flash */
    #style-navbar.collapsing {
        height: auto !important;
        overflow: visible !important;
        transition: none !important;
        -webkit-transition: none !important;
    }

    /* Also be explicit when fully open */
    #style-navbar.collapse.in {
        height: auto !important;
        overflow: visible !important;
    }
}


@media (max-width: 991px) {
    /* No divider line for the mobile tier-2 bar */
    .navbar.navbar-primary {
        border-top: 0 !important;
        box-shadow: none !important; /* in case a theme adds an inset line */
    }

    /* Ensure the stacked menu doesn’t add a top offset */
    #style-navbar.navbar-collapse {
        padding-top: 0 !important;
        position: relative;
        z-index: 1060; /* below the toggle */
    }

    /* Be explicit about stacked nav margins in the mobile menu */
    #style-navbar .navbar-nav {
        margin: 0 !important; /* kill theme margin that can pop in at the end */
    }

    /* Optional: the “Need help?” separator inside the mobile list */
    .help-separator {
        display: none !important; /* so no line ever appears under 992px */
    }
}

/* ===== XS-specific fixes (<= 767px) ===== */
@media (max-width: 767px) {

    /* Kill Bootstrap’s thin line + inset line on the collapsing panel */
    #style-navbar,
    .navbar-collapse,
    .navbar-default .navbar-collapse,
    .navbar-inverse .navbar-collapse {
        border-top: 0 !important;
        box-shadow: none !important;
    }

    /* Remove the -15px gutter shift that mis-centers the collapsed panel */
    .navbar .container-fluid > .navbar-collapse,
    .navbar .container > .navbar-collapse {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Center the stacked items and remove floats (prevents odd alignment) */
    #style-navbar .navbar-nav {
        float: none !important;
        margin: 0 !important;
        text-align: center;
    }

    #style-navbar .navbar-nav > li {
        float: none !important;
    }

    #style-navbar .navbar-nav > li > a {
        padding: 12px 0 !important;
    }

    /* Make sure the burger stays clickable above the open panel */
    .navbar-toggle {
        position: relative;
        z-index: 1061; /* above the collapse */
    }

    /* Remove inner padding so the list sits truly centered */
    .navbar .container-fluid > .navbar-collapse,
    .navbar .container > .navbar-collapse,
    #style-navbar.navbar-collapse {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important; /* you already set this, keep it */
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* XS: center only the main list */
    #style-navbar > ul.navbar-nav:not(.navbar-right) {
        float: none !important;
        margin: 0 !important;
        padding-left: 0 !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    #style-navbar > ul.navbar-nav:not(.navbar-right) > li {
        float: none !important;
        width: auto;
    }

    #style-navbar > ul.navbar-nav:not(.navbar-right) > li > a {
        display: inline-block;
        padding: 12px 0 !important;
        text-align: center;
    }

    /* XS: keep the desktop-only list hidden */
    #style-navbar > ul.navbar-nav.navbar-right.hidden-xs.hidden-sm {
        display: none !important;
    }
}

/* Lock page scroll while menu is open */
html.menu-open, html.menu-open body {
    overflow: hidden !important;
    height: 100%;
}

/* ─── FULL-SCREEN MOBILE MENU OVERLAY ───────────────────────────────── */
@media (max-width: 991px) {
    .mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: var(--overlay-z);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        background: var(--overlay-bg);
        padding-top: 0;
        min-height: 100dvh;

        transition: opacity 180ms ease, visibility 180ms ease;
        overscroll-behavior: contain;
    }

    .mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-overlay__scrim {
        position: absolute;
        inset: 0;
    }

    .mobile-overlay__panel {
        position: relative;
        max-width: 720px;
        margin: 0 auto;
        padding: 0 0 28px;
        background: var(--overlay-panel-bg);
        transform: translateY(0);
        transition: transform 180ms ease;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    }

    .mobile-overlay.is-open .mobile-overlay__panel {
        transform: translateY(0);
    }

    .mobile-overlay__inner {
        outline: none; /* focus lands here when opened */
        padding: 0 10px;
    }

    /* Search block inside overlay — reuse your search partial markup */
    .mobile-overlay__search .navbar-form {
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent; /* ensure no subtle bg strip */
    }

    /* some Bootstrap themes add hairlines via pseudo-elements — be explicit */
    .mobile-overlay__search .navbar-form::before,
    .mobile-overlay__search .navbar-form::after {
        content: none !important;
        display: none !important;
    }


    .mobile-overlay__search input[type="search"] {
        width: 100%;
        height: 44px;
        border-radius: 22px;
    }

    /* Main list */
    .mobile-overlay__list > li > a {
        display: block;
        padding: 12px 4px;
        font-size: 18px;
        line-height: 28px;
        color: #eee;
    }

    .mobile-overlay__list > li > a:hover,
    .mobile-overlay__list > li > a:focus {
        text-decoration: none;
        color: #fff;
    }

    /* Utility section */
    .mobile-overlay__utility {
        margin-top: 18px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-overlay__utility > li.premium > a {
        color: #d4af37; /* your gold */
        font-weight: 600;
    }

    .mobile-overlay__utility > li.divider {
        height: 8px;
    }

    /* Ensure the old collapse never peeks through while overlay is open */
    html.menu-open #style-navbar.collapse.in {
        display: none !important;
    }


    /* target the form-control explicitly (covers search input in the partial) */
    .mobile-overlay__search .navbar-form .form-control {
        height: 44px; /* match the pill height */
        border-top-left-radius: 22px;
        border-bottom-left-radius: 22px;
    }

    /* equalize the button; override Bootstrap’s default padding/line-height */
    .mobile-overlay__search .navbar-form .input-group-btn > .btn,
    .mobile-overlay__search .navbar-form .btn {
        height: 44px; /* match input */
        line-height: 44px; /* centers the “Search” label */
        padding: 0 16px; /* comfortable side padding */
        border-top-right-radius: 22px;
        border-bottom-right-radius: 22px;
    }

    /* Force full-width search pill inside mobile overlay (phones & tablet) */
    .mobile-overlay__search .navbar-form .input-group {
        width: 100% !important;
        max-width: none;
        margin: 0;
        flex: 1 1 auto;
    }

    /* Respect reduced motion */
    @media (prefers-reduced-motion: reduce) {
        .mobile-overlay,
        .mobile-overlay__panel {
            transition: none !important;
        }
    }

    /* Overlay top bar: logo left, actions (account/cart/close) right */
    .mobile-overlay__topbar {
        position: sticky; /* stays visible if the menu scrolls */
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px calc(10px + env(safe-area-inset-right, 0px)) 8px calc(10px + env(safe-area-inset-left, 0px));
        background: linear-gradient(to bottom, rgba(8, 8, 10, 0.92) 60%, rgba(8, 8, 10, 0));

    }

    .mobile-overlay__brand img {
        display: block;
        height: 34px; /* compact mark */
        width: auto;
    }

    .mobile-overlay__actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-overlay__action {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px; /* ≥44×44 tap targets */
        height: 44px;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 20px; /* icon size */
        line-height: 1;
        border-radius: 8px;
    }

    .mobile-overlay__action:focus-visible {
        outline: 2px solid var(--cozzicotton-primary);
        outline-offset: 2px;
    }

    /* Cart badge inside overlay actions */
    .overlay-icon-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 9px;
        background: var(--cozzicotton-primary);
        color: #fff;
        font-size: 11px;
        line-height: 18px;
        text-align: center;
    }

    /* The close button is now part of the actions row (not absolutely positioned) */
    .mobile-overlay__close {
        position: static;
        top: auto;
        right: auto;
    }

    .mobile-overlay__search {
        margin-top: 12px;
    }

    /* Unify icon sizing in the topbar */
    .mobile-overlay__actions .fa,
    .mobile-overlay__close .fa {
        font-size: 24px; /* same visual weight as user/cart */
    }

    /* Optional: subtle active/hover feedback */
    .mobile-overlay__action:active {
        transform: scale(0.96);
    }

    .mobile-overlay__action:hover {
        color: rgba(255, 255, 255, 0.98);
    }
}

/* ─────────────────────────────────────────────────────────────
   Mini-basket dropdown (header) — brand-consistent buttons/text
   ───────────────────────────────────────────────────────────── */

/* Ensure readable text on the white dropdown */
.navbar .dropdown-menu {
    color: var(--cozzicotton-primary-hover);
    background-color: #fff;
}

/* Some Bootstrap themes add gradients; kill them inside the menu */
.navbar .dropdown-menu .btn {
    background-image: none;
}

/* Primary action (Checkout) — Cozzi Cotton orange */
.navbar .dropdown-menu .btn.btn-primary {
    background-color: var(--cozzicotton-primary);
    border-color: var(--cozzicotton-primary);
    color: #fff;
}

.navbar .dropdown-menu .btn.btn-primary:hover,
.navbar .dropdown-menu .btn.btn-primary:focus {
    background-color: var(--cozzicotton-primary-hover); /* darker shade of #B89658 */
    border-color: var(--cozzicotton-primary-hover);
    color: #fff;
}

/* Secondary action (View cart) — neutral pill, not blue */
.navbar .dropdown-menu .btn.btn-info,
.navbar .dropdown-menu .btn.btn-default {
    background-color: #f5f5f5;
    border: 1px solid #e5e7eb;
    color: var(--cozzicotton-primary-hover);
}

.navbar .dropdown-menu .btn.btn-info:hover,
.navbar .dropdown-menu .btn.btn-default:hover,
.navbar .dropdown-menu .btn.btn-info:focus,
.navbar .dropdown-menu .btn.btn-default:focus {
    background-color: #ebebeb;
    border-color: #d6d6d6;
    color: #1A1A1A;
}

/* Empty state text (sometimes 'text-muted') */
.navbar .dropdown-menu .text-muted {
    color: #6B7280;
}

/* ───────────────────────────────
   Mini-basket product title/price
   ─────────────────────────────── */

/* Product title link inside the quick basket list */
/* Product title link inside the quick basket list */
.navbar .dropdown-menu.basket-mini-item a {
    color: #1A1A1A; /* black */
    text-decoration: none;
}

.navbar .dropdown-menu.basket-mini-item a:hover,
.navbar .dropdown-menu.basket-mini-item a:focus {
    color: #000;
}

/* Any price printed in the mini-basket (item and total use .price_color) */
.navbar .dropdown-menu .price_color {
    color: #B89658 !important; /* brand orange */
    font-weight: 600;
}
/* ───────────────────────────────
   Quick cart dropdown width (override Oscar 400px)
   Target: match production-like compact width
   ─────────────────────────────── */

.navbar .basket-mini .dropdown-menu {
    width: 320px !important;      /* <-- adjust if you want 300/340 */
    max-width: 320px !important;
    min-width: 320px !important;
}

/* keep right alignment consistent */
.navbar .basket-mini .dropdown-menu.dropdown-menu-right {
    right: 0;
    left: auto;
}
