/* Cascina Bonfiglio — SEZIONE: Header
   Tutto ciò che riguarda la top bar + nav sta qui, così è isolato.
*/

.cb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--cb-white);
    background: transparent;
}

/* Sulla homepage/listing l'header si sovrappone alla hero (overlay).
   Si stacca dal flusso così la hero parte da y=0 e la nav bianca resta
   leggibile sulla foto scura. Al primo scroll il sentinel sopra l'header
   triggera .is-stuck → header torna sticky con bg bianco. */
body.home .cb-header,
body.cb-home .cb-header,
body.cb-listing-page .cb-header,
body.cb-chisiamo-body .cb-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
body.home .cb-header.is-stuck,
body.cb-home .cb-header.is-stuck,
body.cb-listing-page .cb-header.is-stuck,
body.cb-chisiamo-body .cb-header.is-stuck {
    position: fixed;
}

/* Variante Figma "Stato=Sticky" (nodo 23:835): quando l'header è
   effettivamente incollato al top (classe .is-stuck applicata via JS
   observer), bg bianco + testo/logo dark per leggibilità su qualsiasi
   contenuto dietro. Attiva solo dove il default ha bg trasparente. */
body.home .cb-header.is-stuck,
body.cb-home .cb-header.is-stuck,
body.cb-listing-page .cb-header.is-stuck,
body.cb-chisiamo-body .cb-header.is-stuck {
    background: #ffffff;
}
body.home .cb-header.is-stuck .cb-nav__item > a,
body.cb-home .cb-header.is-stuck .cb-nav__item > a,
body.cb-listing-page .cb-header.is-stuck .cb-nav__item > a,
body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__item > a,
body.home .cb-header.is-stuck .cb-nav__cart > a,
body.cb-home .cb-header.is-stuck .cb-nav__cart > a,
body.cb-listing-page .cb-header.is-stuck .cb-nav__cart > a,
body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__cart > a { color: #000; }
body.home .cb-header.is-stuck .cb-nav__item > a:hover,
body.cb-home .cb-header.is-stuck .cb-nav__item > a:hover,
body.cb-listing-page .cb-header.is-stuck .cb-nav__item > a:hover,
body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__item > a:hover,
body.home .cb-header.is-stuck .cb-nav__item:hover > a,
body.cb-home .cb-header.is-stuck .cb-nav__item:hover > a,
body.cb-listing-page .cb-header.is-stuck .cb-nav__item:hover > a,
body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__item:hover > a { color: var(--cb-green); }
body.home .cb-header.is-stuck .cb-nav__logo img,
body.cb-home .cb-header.is-stuck .cb-nav__logo img,
body.cb-listing-page .cb-header.is-stuck .cb-nav__logo img,
body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__logo img { display: none; }
body.home .cb-header.is-stuck .cb-nav__logo::before,
body.cb-home .cb-header.is-stuck .cb-nav__logo::before,
body.cb-listing-page .cb-header.is-stuck .cb-nav__logo::before,
body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__logo::before {
    content: "";
    display: block;
    width: 118px;
    height: 87px;
    background: url("../img/logo-dark.svg") center/contain no-repeat;
}

/* Su scheda prodotto e pagine interne: header su sfondo beige (Figma
   Stato=Default-beige, fondo #fff5e6), testo scuro, logo variante "dark". */
body.cb-scheda-body .cb-header,
body.error404 .cb-header { background: #fff5e6; color: #000; }
body.cb-scheda-body .cb-nav__item > a,
body.error404 .cb-nav__item > a { color: #000; }
body.cb-scheda-body .cb-nav__item > a:hover,
body.cb-scheda-body .cb-nav__item:hover > a,
body.error404 .cb-nav__item > a:hover,
body.error404 .cb-nav__item:hover > a { color: var(--cb-green); }
body.cb-scheda-body .cb-nav__cart > a,
body.error404 .cb-nav__cart > a { color: #000; }
body.cb-scheda-body .cb-nav__logo img,
body.error404 .cb-nav__logo img { display: none; }
body.cb-scheda-body .cb-nav__logo::before,
body.error404 .cb-nav__logo::before {
    content: "";
    display: block;
    width: 118px;
    height: 87px;
    background: url("../img/logo-dark.svg") center/contain no-repeat;
}

/* ---------- TOP BAR verde ---------- */
.cb-topbar {
    background: var(--cb-green);
    color: var(--cb-white);
    min-height: var(--cb-topbar-h);
    font-family: var(--cb-font-body);
}
.cb-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--cb-topbar-h);
    width: 100%;
    max-width: var(--cb-maxw);
    margin: 0 auto;
    padding: 0 var(--cb-gutter);
    box-sizing: border-box;
}
.cb-topbar__shipping {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
}
.cb-topbar__shipping--link {
    color: inherit;
    text-decoration: none;
    transition: opacity .15s ease;
}
.cb-topbar__shipping--link:hover { opacity: .8; text-decoration: underline; }
.cb-topbar__points {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cb-white);
}
.cb-topbar__points-icon {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: var(--cb-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- NAV principale ----------
   Allineata al contenuto sotto: stessi maxw/gutter del .cb-container. */
.cb-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 24px var(--cb-gutter);
    min-height: var(--cb-nav-height);
    max-width: var(--cb-maxw);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.cb-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
}
.cb-nav__list--left  { justify-content: flex-start; }
.cb-nav__list--right { justify-content: flex-end; }

.cb-nav__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cb-nav__item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px 10px 0px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cb-white);
    transition: color .2s ease;
    white-space: nowrap;
}
.cb-nav__item > a:hover,
.cb-nav__item:hover > a { color: var(--cb-green); }

.cb-nav__caret {
    display: inline-flex;
    opacity: .85;
    transform: translateY(1px);
}

.cb-nav__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 184px;
    max-width: 184px;
}
.cb-nav__logo img {
    width: 70%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

/* Carrello */
.cb-nav__cart > a {
    position: relative;
    padding: 10px 0px 10px 10px;
}
.cb-nav__cart-count {
    position: absolute;
    top: 4px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--cb-green);
    color: var(--cb-white);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cb-nav__cart-count:empty,
.cb-nav__cart-count[data-count="0"] { display: none; }
.cb-nav__cart-count.is-zero { display: none; }

/* Topbar actions: punti + account allineati a destra */
.cb-topbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

/* Account icon nella topbar */
.cb-topbar__account {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cb-topbar__account-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: var(--cb-white);
    color: var(--cb-green);
    transition: filter .2s ease;
}
.cb-topbar__account-link:hover { filter: brightness(.95); }
.cb-topbar__account.is-logged .cb-topbar__account-link::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--cb-green-dark, #6f9a48);
    border: 2px solid #fff;
}
.cb-topbar__account.has-dropdown:hover > .cb-dropdown,
.cb-topbar__account.has-dropdown:focus-within > .cb-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
    pointer-events: auto;
}
.cb-dropdown--account {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
}
.cb-topbar__account.has-dropdown:hover > .cb-dropdown--account,
.cb-topbar__account.has-dropdown:focus-within > .cb-dropdown--account {
    transform: translateX(-50%) translateY(0);
}
.cb-dropdown--account .cb-dropdown__hello {
    padding: 10px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-green-dark);
    border-bottom: 1px solid #f1e7d6;
    margin-bottom: 4px;
    list-style: none;
}
.cb-dropdown--account .cb-dropdown__logout {
    color: #8a3924 !important;
    border-top: 1px solid #f1e7d6;
    margin-top: 4px;
}

/* Hamburger mobile (nascosto su desktop) */
.cb-nav__toggle {
    display: none !important;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
}
@media (max-width: 1180px) {
    .cb-nav__toggle { display: inline-block !important; }
}
.cb-nav__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0px;
    background: var(--cb-white);
    transition: transform .2s ease, opacity .2s ease;
}

/* Menu mobile — gli stili del drawer veri sono più sotto (≥527).
   Qui solo layout di base lista. */
.cb-mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---------- Dropdown sub-categorie ---------- */
.cb-nav__item.has-dropdown { position: relative; }

.cb-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #fff;
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 12px;
    min-width: 220px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    transition-delay: 0s, 0s, .15s;
    z-index: 60;
    pointer-events: none;
    list-style: none;
}
.cb-dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}
.cb-nav__item.has-dropdown:hover > .cb-dropdown,
.cb-nav__item.has-dropdown:focus-within > .cb-dropdown,
.cb-topbar__account.has-dropdown:hover > .cb-dropdown,
.cb-topbar__account.has-dropdown:focus-within > .cb-dropdown {
    transition-delay: 0s;
}
.cb-nav__item.has-dropdown:hover > .cb-dropdown,
.cb-nav__item.has-dropdown:focus-within > .cb-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.cb-dropdown li { list-style: none; margin: 0; }
.cb-dropdown a {
    display: block;
    padding: 10px 18px;
    font-family: var(--cb-font-body);
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--cb-brown);
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.cb-dropdown a:hover { background: rgba(168, 199, 128, .14); color: var(--cb-green-dark); }


/* ---------- Responsive ----------
   Sotto desktop le sezioni interne hanno padding 0 60px / 0 24px / 0 20px.
   Allinea l'header allo stesso padding orizzontale così l'edge sinistro/
   destro coincide a ogni viewport. */
@media (max-width: 1500px) {
    .cb-nav { padding: 22px var(--cb-gutter); }
    .cb-topbar__inner { padding: 0 var(--cb-gutter); }
    .cb-nav__list { gap: 18px; }
    .cb-nav__item > a { font-size: 13px; letter-spacing: 0.03em; }
}

@media (max-width: 1380px) {
    .cb-nav { padding: 20px var(--cb-gutter); }
    .cb-topbar__inner { padding: 0 var(--cb-gutter); }
    .cb-nav__list { gap: 14px; }
    .cb-nav__item > a { font-size: 12.5px; padding: 10px 2px; letter-spacing: 0.02em; }
    .cb-nav__logo { width: 150px; max-width: 150px; }
    body.cb-scheda-body .cb-nav__logo::before,
    body.home .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-home .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-listing-page .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__logo::before { width: 100px; height: 74px; }
}

@media (max-width: 1280px) {
    .cb-nav { padding: 18px var(--cb-gutter); }
    .cb-topbar__inner { padding: 0 var(--cb-gutter); }
    .cb-nav__list { gap: 10px; }
    .cb-nav__item > a { font-size: 11.5px; padding: 10px 0px; letter-spacing: 0.01em; }
    .cb-nav__logo { width: 140px; max-width: 140px; }
}

/* ===== LAPTOP STRETTO (≤ 1180px): switch a hamburger per evitare nav su 2 righe ===== */
@media (max-width: 1180px) {
    .cb-nav__item .cb-dropdown,
    .cb-topbar__account .cb-dropdown { display: none !important; }

    .cb-topbar__inner { gap: 16px; padding: 0 var(--cb-gutter); }
    .cb-topbar__shipping { font-size: 13px; letter-spacing: 0.04em; }
    .cb-topbar__points-label { display: none; }
    .cb-nav {
        grid-template-columns: auto 1fr auto;
        grid-auto-flow: dense;
        padding: 14px var(--cb-gutter);
        min-height: 72px;
    }
    .cb-nav__list--left,
    .cb-nav__list--right { display: none; }
    .cb-nav__list--right { display: inline-flex; justify-content: flex-end; }
    .cb-nav__list--right > :not(.cb-nav__cart) { display: none; }
    .cb-nav__logo { width: 132px; max-width: 132px; margin: 0 auto; grid-column: 2; justify-self: center; }
    .cb-nav__toggle { grid-column: 1; justify-self: start; display: inline-block !important; }
    .cb-nav__list--right { grid-column: 3; justify-self: end; }
    .cb-nav__cart { justify-self: end; display: inline-flex; }

    /* Cliente: "barra in alto trasparente che poi diventa bianca in navigazione".
       Pagine con hero (home/listing/chisiamo): header trasparente in overlay
       sopra la hero, e solo a scroll (.is-stuck) bg bianco con icone scure. */
    body.home .cb-header,
    body.cb-home .cb-header,
    body.cb-listing-page .cb-header,
    body.cb-chisiamo-body .cb-header { background: transparent; }
    /* Default (NON stuck): icone/hamburger bianchi sopra l'hero. */
    body.home .cb-header:not(.is-stuck) .cb-nav__cart > a,
    body.cb-home .cb-header:not(.is-stuck) .cb-nav__cart > a,
    body.cb-listing-page .cb-header:not(.is-stuck) .cb-nav__cart > a,
    body.cb-chisiamo-body .cb-header:not(.is-stuck) .cb-nav__cart > a { color: #fff; }
    body.home .cb-header:not(.is-stuck) .cb-nav__toggle span,
    body.cb-home .cb-header:not(.is-stuck) .cb-nav__toggle span,
    body.cb-listing-page .cb-header:not(.is-stuck) .cb-nav__toggle span,
    body.cb-chisiamo-body .cb-header:not(.is-stuck) .cb-nav__toggle span { background: #fff; }
    /* Stuck (post-scroll): icone scure, logo scuro (gestito già dalle regole .is-stuck più sopra). */
    body.home .cb-header.is-stuck .cb-nav__cart > a,
    body.cb-home .cb-header.is-stuck .cb-nav__cart > a,
    body.cb-listing-page .cb-header.is-stuck .cb-nav__cart > a,
    body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__cart > a { color: #000; }
    body.home .cb-header.is-stuck .cb-nav__toggle span,
    body.cb-home .cb-header.is-stuck .cb-nav__toggle span,
    body.cb-listing-page .cb-header.is-stuck .cb-nav__toggle span,
    body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__toggle span { background: #2C1A0E; }
    body.home .cb-header.is-stuck .cb-nav__logo img,
    body.cb-home .cb-header.is-stuck .cb-nav__logo img,
    body.cb-listing-page .cb-header.is-stuck .cb-nav__logo img,
    body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__logo img { display: none; }
    body.home .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-home .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-listing-page .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__logo::before {
        content: "";
        display: block;
        width: 132px;
        height: 96px;
        background: url("../img/logo-dark.svg") center/contain no-repeat;
    }
    /* Scheda prodotto e altre pagine senza hero: header bianco fisso (no overlay). */
    body.cb-scheda-body .cb-nav__toggle span { background: #2C1A0E; }
}

/* ===== TABLET (≤ 1024px): identico a 1180 ===== */
@media (max-width: 1024px) {
    .cb-nav__item .cb-dropdown,
    .cb-topbar__account .cb-dropdown { display: none !important; }

    .cb-topbar__inner { gap: 16px; padding: 0 var(--cb-gutter); }
    .cb-topbar__shipping { font-size: 13px; letter-spacing: 0.04em; }
    .cb-topbar__points-label { display: none; }
    .cb-nav {
        grid-template-columns: auto 1fr auto;
        grid-auto-flow: dense;
        padding: 14px var(--cb-gutter);
        min-height: 72px;
    }
    .cb-nav__list--left,
    .cb-nav__list--right { display: none; }
    .cb-nav__list--right { display: inline-flex; justify-content: flex-end; }
    .cb-nav__list--right > :not(.cb-nav__cart) { display: none; }
    .cb-nav__logo { width: 132px; max-width: 132px; margin: 0 auto; grid-column: 2; justify-self: center; }
    .cb-nav__toggle { grid-column: 1; justify-self: start; display: inline-block !important; }
    .cb-nav__list--right { grid-column: 3; justify-self: end; }
    .cb-nav__cart { justify-self: end; display: inline-flex; }
}

/* ===== MOBILE (≤ 640px) ===== */
@media (max-width: 640px) {
    :root { --cb-nav-height: 60px; --cb-topbar-h: 36px; }
    .cb-topbar { font-size: 12px; }
    .cb-topbar__inner { gap: 12px; min-height: var(--cb-topbar-h); padding: 0 var(--cb-gutter); }
    .cb-topbar__shipping { font-size: 11.5px; letter-spacing: 0.02em; line-height: 1.25; text-align: center; }
    /* Su mobile mando il testo topbar su 2 righe: nascondo il "·" e
       trasformo i due span line in block (uno sopra l'altro). */
    .cb-topbar__shipping-sep { display: none; }
    .cb-topbar__shipping-line { display: block; }
    .cb-topbar__points { font-size: 11px; gap: 6px; letter-spacing: 0.04em; }
    .cb-topbar__points-icon { width: 22px; height: 22px; }
    .cb-topbar__actions { gap: 10px; }
    .cb-topbar__account-link { width: 22px; height: 22px; }
    .cb-topbar__account-link svg { width: 14px; height: 14px; }

    .cb-nav { padding: 10px var(--cb-gutter); min-height: var(--cb-nav-height); gap: 10px; }
    .cb-nav__logo { width: 88px; max-width: 88px; }
    .cb-nav__logo img { max-height: 48px; width: auto; }
    body.home .cb-nav__logo::before,
    body.cb-home .cb-nav__logo::before,
    body.cb-listing-page .cb-nav__logo::before,
    body.cb-chisiamo-body .cb-nav__logo::before,
    body.home .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-home .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-listing-page .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-chisiamo-body .cb-header.is-stuck .cb-nav__logo::before,
    body.cb-scheda-body .cb-nav__logo::before { width: 88px; height: 48px; }
    .cb-nav__cart > a { padding: 6px 0px; }
    .cb-nav__cart > a svg { width: 22px; height: 22px; }
    .cb-nav__cart-count { top: 0; right: -2px; min-width: 14px; height: 14px; font-size: 9px; }
    .cb-nav__toggle { width: 36px; height: 36px; }
    .cb-nav__toggle span { width: 22px; margin: 4px 0px; }

    /* Su scheda prodotto (cream bg) topbar resta verde, nav cream */
    body.cb-scheda-body .cb-header { background: #fff5e6; }
}

@media (max-width: 380px) {
    .cb-topbar__shipping { font-size: 10.5px; }
    .cb-topbar__points { font-size: 10px; }
    .cb-nav__logo { width: 96px; max-width: 96px; }
}

/* ============================================================ */
/* MOBILE DRAWER (off-canvas da sinistra)                          */
/* ============================================================ */
.cb-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 6, .55);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 200;
    pointer-events: none;
}
.cb-mobile-backdrop[hidden] { display: none; }
.cb-mobile-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cb-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    height: 100vh;
    width: min(86vw, 360px);
    background: #ffffff;
    color: var(--cb-brown);
    z-index: 210;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: 6px 0 24px rgba(0,0,0,.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.cb-mobile-menu[hidden] { display: none; }
.cb-mobile-menu.is-open { transform: translateX(0); }

.cb-mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #f1e7d6;
}
.cb-mobile-menu__logo { display: inline-flex; align-items: center; }
.cb-mobile-menu__logo img { width: 96px; height: auto; }
.cb-mobile-menu__close {
    background: transparent;
    border: 0;
    padding: 6px;
    color: var(--cb-brown);
    cursor: pointer;
    border-radius: 6px;
}
.cb-mobile-menu__close:hover { background: rgba(168,199,128,.16); }

.cb-mobile-menu__nav { padding: 6px 0; }
.cb-mobile-menu__list { display: flex; flex-direction: column; }
.cb-mobile-menu__row { border-bottom: 1px solid #f5ecdc; }
.cb-mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    font-family: var(--cb-font-body);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cb-brown);
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}
.cb-mobile-menu__link:hover,
.cb-mobile-menu__link[aria-expanded="true"] { color: var(--cb-green-dark); }
.cb-mobile-menu__chev { transition: transform .2s ease; opacity: .7; }
.cb-mobile-menu__link[aria-expanded="true"] .cb-mobile-menu__chev { transform: rotate(180deg); }
.cb-mobile-menu__sub {
    background: #fbf6ec;
    padding: 4px 0 8px;
}
.cb-mobile-menu__sub[hidden] { display: none; }
.cb-mobile-menu__sublink {
    display: block;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 400;
    color: var(--cb-brown);
    text-transform: none;
    letter-spacing: 0;
}
.cb-mobile-menu__sublink:hover { color: var(--cb-green-dark); }
.cb-mobile-menu__sublink--all {
    font-weight: 700;
    color: var(--cb-green-dark);
}

.cb-mobile-menu__account {
    margin: 0 !important;
    padding: 12px 18px 8px;
}
.cb-mobile-menu__account li { margin: 0; }
.cb-mobile-menu__hello {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cb-green-dark);
    padding: 4px 0 8px;
}
.cb-mobile-menu__account a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-brown) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: none;
}
.cb-mobile-menu__account a:hover { color: var(--cb-green-dark) !important; }
.cb-mobile-menu__logout { color: #8a3924 !important; }

.cb-mobile-menu__foot {
    margin-top: auto;
    padding: 14px 18px 22px;
    border-top: 1px solid #f1e7d6;
    background: var(--cb-cream);
}
.cb-mobile-menu__ship {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-green-dark);
    text-align: center;
    letter-spacing: 0.04em;
}

/* Hamburger animation when drawer is open */
body.cb-menu-open { overflow: hidden; }
body.cb-menu-open .cb-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.cb-menu-open .cb-nav__toggle span:nth-child(2) { opacity: 0; }
body.cb-menu-open .cb-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
