/* ===========================
   La Femeia — Custom Header (v1)
   Save as assets/bb-header.css
   The cart drawer styles now live in assets/cart.css
   =========================== */

:root{
  --bb-bg: #F8F4EE;
  --bb-beige: #E8D8C3;
  --bb-accent: #C9A46A;
  --bb-accent-hover: #A67E45;
  --bb-text: #1A1A1A;
  --bb-muted: #776A5C;
  --bb-line: rgba(157, 119, 72, .22);
  --bb-ease: cubic-bezier(.22, .61, .36, 1);
--bb-serif: 'Cormorant Garamond', Georgia, serif;
--bb-sans: 'DM Sans', Arial, sans-serif;

  /* Bar heights. The spacer always uses --bb-h, so shrinking never moves the page. */
  --bb-h: 76px;
  --bb-h-s: 60px;
  --bb-overhang: 0px; /* how far the desktop logo hangs below the bar */
}

/* A fixed scrollbar gutter stops the page (and the fixed bar) from shifting sideways
   when a drawer locks scrolling */
html{ scrollbar-gutter: stable; scroll-padding-top: calc(var(--bb-h-s) + 16px); }
body.bb-lock{ overflow:hidden; }

/* Custom scrollbar, shared by search results, menu and cart */
.bb-search-results, .bb-nav{
  scrollbar-width:thin;
  scrollbar-color:#D8C29E transparent;
}
.bb-search-results::-webkit-scrollbar, .bb-nav::-webkit-scrollbar{ width:6px; }
.bb-search-results::-webkit-scrollbar-track, .bb-nav::-webkit-scrollbar-track{ background:transparent; margin:8px 0; }
.bb-search-results::-webkit-scrollbar-thumb, .bb-nav::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, #E8D8C3, #C9A46A);
  border-radius:999px; border:2px solid transparent; background-clip:padding-box;
}
.bb-search-results::-webkit-scrollbar-thumb:hover, .bb-nav::-webkit-scrollbar-thumb:hover{ background:var(--bb-accent-hover); background-clip:padding-box; }

/* ---------- BAR ----------
   position:fixed + spacer = no layout shift. No backdrop-filter/transform here,
   or the fixed mobile drawer inside would be clipped to the bar. */
.bb-header-spacer{ height: var(--bb-h); }

.bb-header{
  --logo: 56px;
  position:fixed; top:0; left:0; right:0; z-index:999;
  height:var(--bb-h);
  background:var(--bb-bg);
  border-bottom:1px solid var(--bb-line);
  font-family:var(--bb-sans);
  transition:height .35s var(--bb-ease), box-shadow .35s var(--bb-ease);
}
.bb-header.is-scrolled{ --logo: 40px; height:var(--bb-h-s); box-shadow:0 10px 28px -18px rgba(26, 26, 26, .24); }
body.admin-bar .bb-header{ top:32px; }
@media (max-width:782px){ body.admin-bar .bb-header{ top:46px; } }

.bb-header-inner{
  height:100%; max-width:1360px; margin:0 auto; padding:0 32px;
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; column-gap:24px;
}

/* ---------- LOGO (center). Size is reserved, so it can never cause a jump ---------- */
.bb-logo{ grid-column:2; justify-self:center; width:var(--logo); height:var(--logo); transition:width .35s var(--bb-ease), height .35s var(--bb-ease); }
.bb-logo a{ display:block; width:100%; height:100%; }
.bb-logo img{ display:block; width:100%; height:100%; object-fit:contain; }

/* ---------- LOGO: desktop badge that hangs below the bar ----------
   Big at the top; on scroll the bar squeezes and the badge squeezes in place, still hanging below the bar.
   Phones keep the simple centered logo above. */
@media (min-width:901px){
  :root{ --bb-overhang: 30px; }

  .bb-header{ --badge: 104px; --badge-top: 10px; }
  /* On scroll the badge squeezes in place (same top, still centered) and still hangs 25px below the slimmer 60px bar */
  .bb-header.is-scrolled{ --badge: 75px; }

  .bb-header-inner{ position:relative; }

  .bb-logo{
    grid-column:auto; grid-row:auto; /* otherwise the grid column becomes its reference box and it drifts off-center */
    position:absolute; left:50%; top:var(--badge-top); z-index:2;
    width:var(--badge); height:var(--badge); margin-left:calc(var(--badge) / -2);
    border-radius:50%; background:#fff; border:1px solid var(--bb-line);
    box-shadow:0 16px 32px -16px rgba(26, 26, 26, .24);
    transition:width .4s var(--bb-ease), height .4s var(--bb-ease), top .4s var(--bb-ease), margin-left .4s var(--bb-ease), box-shadow .4s var(--bb-ease);
  }
  .bb-logo a{ display:flex; align-items:center; justify-content:center; border-radius:50%; }
  .bb-logo img{ box-sizing:border-box; padding:calc(var(--badge) * .08); }
}

/* Slightly smaller badge on narrower desktops so it never touches the menu */
@media (min-width:901px) and (max-width:1200px){
  :root{ --bb-overhang: 20px; }
  .bb-header{ --badge: 90px; --badge-top: 8px; }
  .bb-header.is-scrolled{ --badge: 76px; }
}

/* ---------- NAV (left, desktop) ---------- */
.bb-nav{ grid-column:1; justify-self:start; display:flex; }
.bb-drawer-head, .bb-drawer-foot{ display:none; }

.bb-menu{ display:flex; gap:30px; list-style:none; margin:0; padding:0; }
.bb-menu li{ position:relative; }
.bb-menu a{
  position:relative; display:inline-block; padding:8px 0;
  color:var(--bb-text); text-decoration:none;
  font-size:14.5px; font-weight:400; letter-spacing:.03em;
  transition:color .3s;
}
.bb-menu > li > a::after{
  content:''; position:absolute; left:0; right:0; bottom:2px; height:1px;
  background:var(--bb-accent-hover); transform:scaleX(0); transform-origin:left;
  transition:transform .45s var(--bb-ease);
}
.bb-menu > li > a:hover, .bb-menu > li.current-menu-item > a, .bb-menu > li.current-menu-ancestor > a{ color:var(--bb-accent-hover); }
.bb-menu > li > a:hover::after, .bb-menu > li.current-menu-item > a::after,
.bb-menu > li.current-menu-ancestor > a::after, .bb-menu > li:focus-within > a::after{ transform:scaleX(1); }

.bb-menu .sub-menu{
  position:absolute; top:100%; left:-18px; z-index:10;
  min-width:210px; margin:10px 0 0; padding:10px 0; list-style:none;
  background:#fff; border:1px solid var(--bb-line); border-radius:6px;
  box-shadow:0 22px 40px -20px rgba(26, 26, 26, .18);
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .3s var(--bb-ease), transform .3s var(--bb-ease), visibility .3s;
}
.bb-menu li:hover > .sub-menu, .bb-menu li:focus-within > .sub-menu{ opacity:1; visibility:visible; transform:none; }
.bb-menu .sub-menu a{ display:block; padding:9px 22px; font-size:14px; color:var(--bb-muted); }
.bb-menu .sub-menu a:hover{ color:var(--bb-accent-hover); background:var(--bb-bg); }

/* ---------- RIGHT: search + actions ---------- */
.bb-right{ grid-column:3; justify-self:end; display:flex; align-items:center; gap:18px; }
.bb-actions{ display:flex; align-items:center; gap:6px; }

/* Search (fixed width: it never changes size, so nothing around it moves) */
.bb-search{ position:relative; width:210px; transition:opacity .3s var(--bb-ease), transform .3s var(--bb-ease), visibility .3s; }
.bb-search form{
  display:flex; align-items:center; gap:6px; height:42px; margin:0;
  padding:0 14px 0 18px; background:#fff; border:1px solid var(--bb-line); border-radius:999px;
  transition:border-color .3s, box-shadow .3s;
}
.bb-search form:focus-within{ border-color:var(--bb-accent); box-shadow:0 0 0 4px rgba(201, 164, 106, .15); }
.bb-search input[type="search"]{
  flex:1; width:100%; min-width:0; height:auto; min-height:0; margin:0; padding:0;
  border:0 !important; outline:none !important; box-shadow:none !important; background:transparent;
  color:var(--bb-text); font:400 14px var(--bb-sans);
}
.bb-search input::placeholder{ color:var(--bb-muted); }
.bb-search button{
  display:flex; align-items:center; padding:0; border:0; background:transparent;
  color:var(--bb-accent); cursor:pointer; transition:color .2s;
}
.bb-search button:hover{ color:var(--bb-accent-hover); }

.bb-search-results{
  position:absolute; top:100%; right:0; z-index:100;
  width:360px; max-height:420px; margin-top:12px;
  overflow-y:auto; overscroll-behavior:contain;
  background:#fff; border:1px solid var(--bb-line); border-radius:8px;
  box-shadow:0 28px 50px -24px rgba(26, 26, 26, .20);
  display:none;
}
.bb-search-results.is-active{ display:block; animation:bb-pop .3s var(--bb-ease); }
@keyframes bb-pop{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }

.bb-search-item{
  display:flex; align-items:center; gap:16px; padding:14px 18px;
  text-decoration:none; border-bottom:1px solid var(--bb-line); transition:background .25s;
}
.bb-search-item:hover{ background:var(--bb-bg); }
.bb-search-item:last-child{ border-bottom:0; }
.bb-search-item img{ width:56px; height:56px; object-fit:cover; border-radius:4px; flex-shrink:0; }
.bb-search-info{ flex:1; min-width:0; }
.bb-search-title{ display:block; margin:0 0 4px; font:500 1rem/1.3 var(--bb-serif); color:var(--bb-text); }
.bb-search-price{ font-size:.85rem; font-weight:500; color:var(--bb-accent-hover); }
.bb-search-no-results{ padding:28px 20px; text-align:center; color:var(--bb-muted); font-size:.9rem; }

/* Search toggle (phones only, shown after the bar shrinks) */
.bb-search-toggle{
  display:none; align-items:center; justify-content:center; width:42px; height:42px; padding:0;
  border:0; background:transparent; color:var(--bb-text); cursor:pointer;
}

/* Cart */
.bb-cart a{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:42px; height:42px; color:var(--bb-text); transition:color .3s;
}
.bb-cart a:hover{ color:var(--bb-accent-hover); }
.bb-cart-count{
  position:absolute; top:3px; right:0;
  min-width:17px; padding:1px 5px; border-radius:999px;
  background:var(--bb-accent-hover); color:#fff;
  font-size:10.5px; font-weight:500; line-height:1.5; text-align:center;
  transition:transform .3s var(--bb-ease);
}
.bb-cart-count[data-count="0"]{ display:none; }

/* Socials */
.bb-socials{ display:flex; gap:2px; margin-left:8px; padding-left:14px; border-left:1px solid var(--bb-line); }
.bb-socials a, .bb-drawer-foot a{
  display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%;
  color:var(--bb-text); opacity:.75; transition:opacity .3s, background .3s, color .3s;
}
.bb-socials a:hover, .bb-drawer-foot a:hover{ opacity:1; background:var(--bb-beige); color:var(--bb-accent-hover); }

.bb-header a:focus-visible, .bb-header button:focus-visible{ outline:2px solid var(--bb-accent-hover); outline-offset:3px; }

/* ---------- HAMBURGER ---------- */
.bb-toggle{
  display:none; flex-direction:column; justify-content:center; gap:6px;
  width:44px; height:44px; padding:0 10px; margin:0 0 0 -10px;
  background:transparent; border:0; cursor:pointer;
}
.bb-toggle span{ display:block; height:1.5px; background:var(--bb-text); transition:width .3s var(--bb-ease); }
.bb-toggle span:nth-child(1){ width:24px; }
.bb-toggle span:nth-child(2){ width:16px; }
.bb-toggle span:nth-child(3){ width:20px; }
.bb-toggle:hover span{ width:24px; }

/* ---------- OVERLAY (menu drawer) ---------- */
.bb-nav-overlay{
  position:fixed; inset:0; z-index:1000; background:rgba(26, 26, 26, .5);
  opacity:0; visibility:hidden; transition:opacity .45s var(--bb-ease), visibility .45s;
}
.bb-nav-overlay.bb-open{ opacity:1; visibility:visible; }

/* ---------- MEDIUM SCREENS ---------- */
@media (max-width:1200px){
  .bb-menu{ gap:22px; }
  .bb-search{ width:170px; }
  .bb-socials{ display:none; }
}

/* ---------- PHONES + SMALL TABLETS ---------- */
@media (max-width:900px){
  :root{ --bb-h: 118px; --bb-h-s: 62px; }

  .bb-header{ --logo: 46px; }
  .bb-header.is-scrolled{ --logo: 38px; }
  /* Reopen the search row on demand, even when the bar is small */
  .bb-header.is-search-open{ height:var(--bb-h); }

  .bb-header-inner{
    padding:6px 16px 8px; column-gap:0; row-gap:8px;
    grid-template-columns:88px 1fr 88px; grid-template-rows:52px 44px;
  }
  .bb-toggle{ display:flex; grid-column:1; grid-row:1; }
  .bb-logo{ grid-column:2; grid-row:1; }
  .bb-right{ display:contents; }
  .bb-actions{ grid-column:3; grid-row:1; justify-self:end; gap:0; }
  .bb-cart a{ margin-right:-6px; }
  .bb-socials{ display:none; }

  .bb-search{ grid-column:1 / -1; grid-row:2; width:100%; }
  .bb-search form{ height:44px; padding:0 16px 0 20px; }
  .bb-search input[type="search"]{ font-size:16px; } /* 16px stops iOS zoom */
  .bb-search-results{ left:0; right:0; width:auto; max-height:60vh; }

  /* Once the bar shrinks, hide the search row and show the search icon instead */
  .bb-header.is-scrolled:not(.is-search-open) .bb-search{ opacity:0; visibility:hidden; transform:translateY(-6px); pointer-events:none; }
  .bb-header.is-scrolled:not(.is-search-open) .bb-search-toggle{ display:flex; }

  /* Menu becomes a left drawer */
  .bb-nav{
    position:fixed; top:0; left:0; bottom:0; z-index:1001;
    flex-direction:column; justify-content:flex-start;
    width:min(86vw, 380px); background:var(--bb-bg);
    overflow-y:auto; overscroll-behavior:contain;
    box-shadow:30px 0 60px -30px rgba(26, 26, 26, .24);
    transform:translateX(-100%); visibility:hidden;
    transition:transform .5s var(--bb-ease), visibility .5s;
  }
  .bb-nav.bb-open{ transform:none; visibility:visible; }

  .bb-drawer-head{ display:flex; align-items:center; justify-content:space-between; padding:24px 24px 20px; border-bottom:1px solid var(--bb-line); }
  .bb-drawer-title{ font:400 1.5rem/1 var(--bb-serif); color:var(--bb-text); }
  .bb-nav-close{
    display:flex; align-items:center; justify-content:center; width:38px; height:38px; padding:0;
    border:1px solid var(--bb-line); border-radius:50%; background:transparent; color:var(--bb-text); cursor:pointer;
    transition:color .3s, border-color .3s, background .3s;
  }
  .bb-nav-close:hover{ color:var(--bb-accent-hover); border-color:var(--bb-accent-hover); background:#fff; }

  .bb-menu{ flex-direction:column; gap:0; padding:8px 24px; }
  .bb-menu > li{ border-bottom:1px solid var(--bb-line); }
  .bb-menu a{ display:block; padding:18px 0; font:400 1.3rem/1.2 var(--bb-serif); letter-spacing:0; }
  .bb-menu > li > a::after{ display:none; }
  .bb-menu .sub-menu{
    position:static; min-width:0; margin:0; padding:0 0 12px 16px;
    background:transparent; border:0; box-shadow:none; opacity:1; visibility:visible; transform:none;
  }
  .bb-menu .sub-menu a{ padding:9px 0; font:400 .95rem var(--bb-sans); color:var(--bb-muted); background:transparent !important; }

  .bb-drawer-foot{
    display:flex; gap:10px; margin-top:auto;
    padding:22px 24px calc(22px + env(safe-area-inset-bottom, 0px)); border-top:1px solid var(--bb-line);
  }
}

@media (prefers-reduced-motion:reduce){
  .bb-header, .bb-header *, .bb-nav, .bb-nav-overlay{ transition-duration:.01s !important; animation:none !important; }
}
/* ============================================================
   LA FEMEIA — PREMIUM HEADER V4
   Layout: brand | navigation | product search | cart
   Keeps the original AJAX search, cart and WordPress selectors.
   ============================================================ */
:root { --bb-h:82px; --bb-h-s:66px; --bb-overhang:0px; }
.bb-header { background:#fbf8f4; border-bottom:1px solid rgba(142,111,77,.15); }
.bb-header-inner { max-width:1380px; padding:0 34px; display:flex; gap:clamp(20px,3vw,48px); align-items:center; }
.bb-logo, .bb-header.is-scrolled .bb-logo { position:static; inset:auto; grid-column:auto; grid-row:auto; margin:0; flex:0 0 auto; width:74px; height:67px; border:0; border-radius:0; background:transparent; box-shadow:none; transition:width .3s,height .3s; }
.bb-header.is-scrolled .bb-logo { width:60px; height:55px; }
.bb-logo a { display:flex; justify-content:flex-start; align-items:center; width:100%; height:100%; border-radius:0; }
.bb-logo img { width:100%; height:100%; padding:0; object-fit:contain; }
.bb-nav { grid-column:auto; flex:1 1 auto; min-width:0; justify-self:auto; }
.bb-menu { gap:clamp(16px,2vw,32px); align-items:center; }
.bb-menu > li > a { color:#342d27; font-size:13px; font-weight:600; letter-spacing:.045em; padding:14px 0; white-space:nowrap; }
.bb-menu > li > a::after { height:2px; bottom:7px; border-radius:2px; background:#bc9464; }
.bb-menu > li.current-menu-item > a, .bb-menu > li > a:hover { color:#a47949; }
.bb-menu .sub-menu { margin-top:0; padding:8px; background:#fffdf9; border-radius:14px; box-shadow:0 20px 56px rgba(41,30,18,.12); }
.bb-menu .sub-menu a { border-radius:7px; }
.bb-right { grid-column:auto; flex:0 1 390px; display:flex; align-items:center; gap:12px; justify-self:auto; min-width:0; }
.bb-search { flex:1 1 auto; width:auto; min-width:0; }
.bb-search form { height:48px; border-radius:13px; padding:0 8px 0 18px; gap:9px; background:#fff; border:1px solid #e8ddce; box-shadow:0 2px 12px rgba(74,49,24,.025); }
.bb-search form:focus-within { border-color:#c7a575; box-shadow:0 0 0 3px rgba(201,164,106,.12),0 5px 20px rgba(74,49,24,.035); }
.bb-search input[type="search"] { font:400 13.5px var(--bb-sans); letter-spacing:0; }
.bb-search input::placeholder { color:#a09890; }
.bb-search button[type="submit"] { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; background:#f8f2ea; border-radius:9px; color:#9f774d; transition:background .2s,color .2s,transform .2s; }
.bb-search button[type="submit"]:hover { background:#2e2823; color:#fff; transform:translateY(-1px); }
.bb-search-results { width:min(420px,calc(100vw - 32px)); right:0; border-radius:14px; border:1px solid #eadfce; box-shadow:0 24px 55px rgba(41,30,18,.15); margin-top:8px; }
.bb-search-item { border-color:#f0e8df; }
.bb-search-item img { border-radius:9px; }
.bb-actions { gap:0; flex-shrink:0; }
.bb-cart a { width:48px; height:48px; margin:0; border:1px solid #eadfce; background:#fff; border-radius:13px; color:#352d27; box-shadow:0 3px 12px rgba(74,49,24,.035); transition:border-color .25s,background .25s,color .25s,transform .25s; }
.bb-cart a:hover { border-color:#b99765; color:#fff; background:#29231f; transform:translateY(-2px); }
.bb-cart-count { top:-7px; right:-7px; min-width:19px; height:19px; padding:1px 5px; font:600 10px/17px var(--bb-sans); background:#bd9967; box-shadow:0 0 0 3px #fbf8f4; }
.bb-toggle { display:none; }
.bb-drawer-head,.bb-drawer-foot,.bb-drawer-intro { display:none; }
.bb-socials { display:none; }
@media(min-width:901px) and (max-width:1150px) {
  .bb-header-inner { gap:20px; padding:0 22px; }
  .bb-logo { width:65px; height:60px; }
  .bb-menu { gap:15px; }
  .bb-menu > li > a { font-size:12px; }
  .bb-right { flex-basis:310px; }
}
@media(max-width:900px) {
  :root { --bb-h:132px; --bb-h-s:68px; }
  .bb-header { --logo:54px; }
  .bb-header.is-scrolled { --logo:46px; }
  .bb-header.is-search-open { height:var(--bb-h); }
  .bb-header-inner { display:grid; grid-template-columns:50px 1fr 50px; grid-template-rows:64px 46px; column-gap:10px; row-gap:4px; padding:7px 18px 11px; max-width:100%; }
  .bb-header.is-scrolled:not(.is-search-open) .bb-header-inner { grid-template-rows:54px 0; padding-top:7px; padding-bottom:7px; }
  .bb-toggle { grid-column:1; grid-row:1; display:flex; width:44px; height:44px; margin:0; padding:0; gap:5px; align-items:center; justify-content:center; border-radius:12px; border:1px solid #e8ddce; background:#fffdfb; box-shadow:0 2px 8px rgba(74,49,24,.035); }
  .bb-toggle span { width:20px!important; max-width:20px; height:1.7px; transform-origin:center; border-radius:4px; }
  .bb-toggle span:nth-child(2) { width:15px!important; }
  .bb-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(6.7px) rotate(45deg); }
  .bb-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
  .bb-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-6.7px) rotate(-45deg); }
  .bb-logo,.bb-header.is-scrolled .bb-logo { position:static; grid-column:2; grid-row:1; justify-self:center; width:63px; height:57px; margin:0; border:0; background:transparent; box-shadow:none; }
  .bb-header.is-scrolled .bb-logo { width:54px; height:49px; }
  .bb-right { display:contents; }
  .bb-actions { grid-column:3; grid-row:1; justify-self:end; display:flex; align-items:center; }
  .bb-cart a { width:44px; height:44px; border-radius:12px; }
  .bb-cart-count { top:-5px; right:-5px; }
  .bb-search { grid-column:1 / -1; grid-row:2; width:100%; opacity:1; visibility:visible; transform:none; }
  .bb-search form { width:100%; height:46px; border-radius:12px; padding:0 7px 0 16px; }
  .bb-search input[type="search"] { font-size:16px; }
  .bb-search-results { left:0; right:0; width:100%; max-height:55vh; }
  .bb-search-toggle { display:none; width:42px; height:42px; border-radius:12px; border:1px solid #eadfce; background:#fff; margin-right:6px; color:#4a3b31; }
  .bb-header.is-scrolled:not(.is-search-open) .bb-search { opacity:0; visibility:hidden; transform:translateY(-8px); pointer-events:none; }
  .bb-header.is-scrolled:not(.is-search-open) .bb-search-toggle { display:flex; }
  .bb-nav { position:fixed; z-index:1002; top:0; left:0; bottom:0; display:flex; flex-direction:column; width:min(88vw,385px); max-width:100%; min-width:0; overflow-x:hidden; overflow-y:auto; background:#faf7f2; border-radius:0 24px 24px 0; box-shadow:22px 0 70px rgba(28,21,14,.16); transform:translateX(calc(-100% - 18px)); opacity:.92; visibility:hidden; transition:transform .52s var(--bb-ease),opacity .52s var(--bb-ease),visibility .52s; }
  .bb-nav.bb-open { transform:translateX(0); opacity:1; visibility:visible; }
  .bb-nav-overlay { position:fixed; inset:0; z-index:1001; background:rgba(27,23,19,.42); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); opacity:0; visibility:hidden; transition:opacity .4s,visibility .4s; }
  .bb-nav-overlay.bb-open { opacity:1; visibility:visible; }
  .bb-drawer-head { display:flex; align-items:center; justify-content:space-between; padding:35px 26px 22px; border-bottom:1px solid #e8ddce; }
  .bb-drawer-brand { display:flex; flex-direction:column; gap:7px; }
  .bb-drawer-kicker { color:#b58e5d; font:700 10px/1 var(--bb-sans); letter-spacing:.2em; }
  .bb-drawer-title { color:#29231f; font:400 43px/.95 var(--bb-serif); letter-spacing:-.025em; }
  .bb-nav-close { display:grid; place-items:center; width:42px; height:42px; border:1px solid #e6daca; border-radius:12px; background:#fff; color:#342b22; }
  .bb-nav-close:hover { background:#29231f; color:#fff; }
  .bb-drawer-intro { display:block; margin:23px 26px 10px; color:#85786c; font:400 13px/1.5 var(--bb-sans); }
  .bb-menu { display:flex; flex-direction:column; align-items:stretch; gap:4px; padding:10px 16px 25px; margin:0; }
  .bb-menu > li { border:0; opacity:0; transform:translateX(-16px); transition:opacity .3s,transform .45s var(--bb-ease); }
  .bb-nav.bb-open .bb-menu > li { opacity:1; transform:none; }
  .bb-nav.bb-open .bb-menu > li:nth-child(1){transition-delay:.08s}
  .bb-nav.bb-open .bb-menu > li:nth-child(2){transition-delay:.13s}
  .bb-nav.bb-open .bb-menu > li:nth-child(3){transition-delay:.18s}
  .bb-nav.bb-open .bb-menu > li:nth-child(4){transition-delay:.23s}
  .bb-nav.bb-open .bb-menu > li:nth-child(n+5){transition-delay:.28s}
  .bb-menu > li > a { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 17px; border-radius:12px; font:400 28px/1 var(--bb-serif); color:#342c26; letter-spacing:-.01em; white-space:normal; }
  .bb-menu > li > a::after { content:'↗'; position:static; display:block; transform:none!important; height:auto; width:auto; background:none; font:400 19px/1 var(--bb-sans); color:#c4a681; opacity:.85; }
  .bb-menu > li > a:hover,.bb-menu > li.current-menu-item > a { background:#f1e8dc; color:#8b683f; }
  .bb-menu .sub-menu { position:static; display:block; opacity:1; visibility:visible; transform:none; box-shadow:none; background:transparent; border:0; min-width:0; margin:0 0 6px 14px; padding:0; }
  .bb-menu .sub-menu a { display:block; padding:9px 16px; font:500 13px/1.3 var(--bb-sans); }
  .bb-drawer-foot { margin-top:auto; display:flex; flex-direction:column; gap:15px; padding:20px 26px calc(28px + env(safe-area-inset-bottom,0px)); background:#f3ebe1; border-top:1px solid #e6d8c6; }
  .bb-drawer-shop { display:flex; align-items:center; justify-content:space-between; text-decoration:none; border-radius:12px; padding:15px 16px; color:#fff!important; background:#2b2622; font:600 12px/1 var(--bb-sans); letter-spacing:.035em; }
  .bb-drawer-shop span { font-size:19px; }
  .bb-drawer-foot p { margin:0; color:#8f8071; font:400 12px/1.4 var(--bb-sans); text-align:center; }
  body.admin-bar .bb-nav { top:0; }
}
@media(max-width:480px) {
  .bb-header-inner { padding-left:14px; padding-right:14px; }
  .bb-logo { width:58px; height:54px; }
  .bb-drawer-head { padding-top:29px; }
}
@media(prefers-reduced-motion:reduce) {
  .bb-nav.bb-open .bb-menu > li { opacity:1; transform:none; }
  .bb-nav-overlay { backdrop-filter:none; }
}

/* ================================================
   La Femeia Header v4.1 — desktop brand / centered navigation / actions
   Applies only above mobile breakpoint; mobile drawer layout is unchanged.
   ================================================ */
@media (min-width: 901px) {
  .bb-header-inner {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(340px, auto) minmax(335px, 1fr);
    column-gap: clamp(18px, 2.4vw, 40px);
    align-items: center;
  }
  .bb-logo,
  .bb-header.is-scrolled .bb-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
  }
  .bb-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    justify-content: center;
    width: max-content;
    min-width: 0;
    flex: initial;
  }
  .bb-menu {
    justify-content: center;
  }
  .bb-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: min(100%, 390px);
    min-width: 0;
    flex: initial;
  }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .bb-header-inner {
    grid-template-columns: minmax(64px, 1fr) minmax(300px, auto) minmax(250px, 1fr);
    column-gap: 16px;
  }
  .bb-right { width: min(100%, 310px); }
}


/* =====================================================
   La Femeia v4.2 — mobile drawer footer & scroll safety.
   Override the generic .bb-drawer-foot a icon sizing.
   ===================================================== */
@media (max-width: 900px) {
  .bb-nav {
    box-sizing: border-box;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overscroll-behavior: contain;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .bb-drawer-foot {
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 20px 24px max(24px, env(safe-area-inset-bottom, 0px));
    min-width: 0;
    align-items: stretch;
  }
  .bb-drawer-foot a.bb-drawer-shop {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 15px 18px;
    margin: 0;
    opacity: 1;
    border: 1px solid #2b2622;
    border-radius: 12px;
    background: #2b2622;
    color: #fff !important;
    font: 600 13px/1.4 var(--bb-sans);
    letter-spacing: .01em;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    transition: background .25s var(--bb-ease), transform .25s var(--bb-ease);
  }
  .bb-drawer-foot a.bb-drawer-shop:hover,
  .bb-drawer-foot a.bb-drawer-shop:focus-visible {
    opacity: 1;
    background: #514338;
    color: #fff !important;
    transform: translateY(-1px);
  }
  .bb-drawer-shop span {
    flex: 0 0 auto;
    margin-left: 12px;
    font-size: 20px;
    line-height: 1;
  }
  .bb-drawer-foot p {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center;
    overflow-wrap: break-word;
  }
  /* Added fifth menu entry My account: keep drawer content scrollable. */
  .bb-menu { flex-shrink: 0; }
  .bb-drawer-head { flex-shrink: 0; }
  .bb-drawer-intro { flex-shrink: 0; }
}


/* ============================================================
   V4.3 / SOCIAL LINKS — desktop beside cart, mobile drawer foot.
   Overrides earlier social icon / drawer link rules intentionally.
   ============================================================ */
@media (min-width: 1151px) {
  .bb-header .bb-actions .bb-socials--header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 7px 0 0;
    padding: 0 16px 0 0;
    border: 0;
    border-right: 1px solid rgba(154, 120, 74, .2);
  }
  .bb-header .bb-actions .bb-socials--header a.bb-social-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #766653;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    opacity: 1;
    box-shadow: none;
    transition: background .24s ease,color .24s ease,border-color .24s ease,transform .24s ease;
  }
  .bb-header .bb-actions .bb-socials--header a.bb-social-link:hover,
  .bb-header .bb-actions .bb-socials--header a.bb-social-link:focus-visible {
    background: #f4e9da;
    border-color: #e6d6c0;
    color: #9a784a;
    transform: translateY(-2px);
  }
}
@media (max-width: 1150px) {
  .bb-header .bb-socials--header { display: none !important; }
}
.bb-header .bb-social-link svg { display: block; width: 18px; height: 18px; }
.bb-drawer-socials { display: none; }
@media (max-width: 900px) {
  .bb-header .bb-drawer-foot .bb-drawer-socials {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 15px 0 5px;
    border-top: 1px solid #e4d5c3;
    width: 100%;
  }
  .bb-header .bb-drawer-foot .bb-drawer-socials__label {
    font: 700 10px/1.4 var(--bb-sans);
    letter-spacing: .16em;
    color: #9a784a;
  }
  .bb-header .bb-drawer-foot .bb-drawer-socials__icons {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 10px;
  }
  /* Higher specificity is critical: base CSS assigns icon sizes to every drawer link. */
  .bb-header .bb-nav .bb-drawer-foot .bb-drawer-socials__icons a.bb-social-link {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2d2bd;
    border-radius: 13px;
    background: #fffaf4;
    color: #80654b;
    opacity: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(49, 35, 24, .03);
    transition: background .24s ease, color .24s ease, transform .24s ease;
  }
  .bb-header .bb-nav .bb-drawer-foot .bb-drawer-socials__icons a.bb-social-link:hover,
  .bb-header .bb-nav .bb-drawer-foot .bb-drawer-socials__icons a.bb-social-link:focus-visible {
    background: #29231f;
    color: #fff;
    transform: translateY(-2px);
  }
}

/* ============================================================
   V4.4 — Tighter desktop header alignment
   Logo | centered navigation in available space | search + socials + cart
   Mobile layout remains untouched.
   ============================================================ */
@media (min-width: 901px) {
  .bb-header .bb-header-inner {
    grid-template-columns: 80px minmax(0, 1fr) minmax(0, 490px);
    column-gap: clamp(16px, 1.8vw, 30px);
  }
  .bb-header .bb-nav {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
  }
  .bb-header .bb-menu {
    justify-content: center;
    gap: clamp(17px, 1.65vw, 29px);
  }
  .bb-header .bb-right {
    grid-column: 3;
    justify-self: end;
    width: 100%;
    max-width: 490px;
    min-width: 0;
  }
}
@media (min-width: 901px) and (max-width: 1250px) {
  .bb-header .bb-header-inner {
    grid-template-columns: 65px minmax(0, 1fr) minmax(0, 320px);
    column-gap: 16px;
  }
  .bb-header .bb-menu { gap: 14px; }
  .bb-header .bb-menu > li > a { font-size: 12px; }
  .bb-header .bb-right { max-width: 320px; }
}

/* =========================================================
   LA FEMEIA V4.5 — Editorial brand + unified live search
   Append after existing V4.4 styles. Mobile drawer remains unchanged.
   ========================================================= */
.bb-header .bb-logo {
  display:flex;
  align-items:center;
  gap:10px;
  overflow:visible;
}
.bb-header .bb-logo a { flex:0 0 auto; width:70px; height:67px; }
.bb-header .bb-logo img { width:100%; height:100%; object-fit:contain; }
.bb-header .bb-logo-wordmark {
  display:block;
  flex:0 0 auto;
  color:#b39a77;
  font:500 27px/.9 'Cormorant Garamond',Georgia,serif;
  letter-spacing:.055em;
  white-space:nowrap;
}
.bb-header.is-scrolled .bb-logo a { width:56px; height:55px; }
.bb-header.is-scrolled .bb-logo-wordmark { font-size:24px; }
@media (min-width:901px) {
  .bb-header .bb-header-inner {
    grid-template-columns:minmax(200px,auto) minmax(0,1fr) minmax(275px,410px);
    column-gap:clamp(12px,1.4vw,24px);
    max-width:1480px;
  }
  .bb-header .bb-logo,.bb-header.is-scrolled .bb-logo { width:auto;height:auto; }
  .bb-header .bb-nav { min-width:0; }
  .bb-header .bb-menu { gap:clamp(10px,1.15vw,19px); }
  .bb-header .bb-menu > li > a { font-size:clamp(11px,.75vw,13px); }
  .bb-header .bb-right { max-width:440px; }
}
@media (min-width:901px) and (max-width:1220px) {
  .bb-header .bb-header-inner { grid-template-columns:110px minmax(0,1fr) minmax(230px,290px); }
  .bb-header .bb-logo-wordmark { display:none; }
  .bb-header .bb-logo a { width:64px; height:61px; }
}
@media (max-width:900px) {
  .bb-header .bb-logo,.bb-header.is-scrolled .bb-logo { display:flex; gap:5px; width:auto;height:auto; max-width:100%; align-items:center;justify-self:center; }
  .bb-header .bb-logo a { width:49px;height:52px; }
  .bb-header.is-scrolled .bb-logo a { width:42px;height:45px; }
  .bb-header .bb-logo-wordmark { font-size:21px; letter-spacing:.035em; }
  .bb-header.is-scrolled .bb-logo-wordmark { font-size:19px; }
}
@media (max-width:380px) { .bb-header .bb-logo-wordmark { font-size:17px; } }

.bb-header .bb-search-results { padding:6px 0; background:#fffdfa; }
.bb-header .lf-search-heading {
  padding:11px 18px 8px;
  color:#9a784a;
  background:#f8f3ec;
  border-top:1px solid #eee2d5;
  font:700 10px/1.3 var(--bb-sans);
  letter-spacing:.16em;
  text-transform:uppercase;
}
.bb-header .lf-search-heading:first-child { border-top:0; }
.bb-header .lf-search-result { gap:11px; min-width:0; padding:11px 14px; }
.bb-header .lf-search-result img,.bb-header .lf-search-result__placeholder {
  display:grid; place-items:center; width:52px;height:52px;
  flex:0 0 52px; border-radius:9px; background:#eee4d7; object-fit:cover;
}
.bb-header .lf-search-result__placeholder { color:#b6956b; font:500 22px var(--bb-serif); }
.bb-header .lf-search-result .bb-search-title { font:500 17px/1.15 var(--bb-serif); margin-bottom:5px; }
.bb-header .lf-search-result .bb-search-price { font:400 11px/1.3 var(--bb-sans); }
.bb-header .lf-search-result__tag {
  flex:0 0 auto; padding:5px 7px; border-radius:99px;
  background:#f0e7db; color:#8f714b; font:600 9px/1.3 var(--bb-sans);
  letter-spacing:.04em;
}
.bb-header .lf-search-result:focus-visible { background:#f8f0e5; outline:2px solid #b99260; outline-offset:-2px; }
@media(max-width:900px) {
  .bb-header .bb-search-results { max-height:min(58dvh,440px); }
  .bb-header .lf-search-result__tag { font-size:9px; }
}

/* ===============================================================
   LA FEMEIA V4.6 — TEXT-ONLY WORDMARK / TRUE MOBILE CENTERING
   Works with the current header.php (.bb-logo > a > .bb-logo-wordmark).
   Retains existing mobile drawer, unified search, cart and socials.
   =============================================================== */
.bb-header .bb-header-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1350px;
    margin-inline: auto;
}

/* Remove all legacy image-logo dimensions and badge positioning. */
.bb-header .bb-logo,
.bb-header.is-scrolled .bb-logo {
    position: static;
    inset: auto;
    transform: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
    height: auto;
    min-width: 0;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.bb-header .bb-logo a,
.bb-header.is-scrolled .bb-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
}
.bb-header .bb-logo .bb-logo-wordmark {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 33px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .03em;
    color: #a88454;
    white-space: nowrap;
    transition: color .25s ease, font-size .3s ease;
}
.bb-header .bb-logo a:hover .bb-logo-wordmark,
.bb-header .bb-logo a:focus-visible .bb-logo-wordmark { color: #8f6d42; }
.bb-header.is-scrolled .bb-logo .bb-logo-wordmark { font-size: 29px; }

@media (min-width: 901px) {
    .bb-header .bb-header-inner {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr) minmax(0, 440px);
        column-gap: clamp(16px, 1.6vw, 28px);
        align-items: center;
    }
    .bb-header .bb-logo, .bb-header.is-scrolled .bb-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }
    .bb-header .bb-nav {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        justify-content: center;
        min-width: 0;
    }
    .bb-header .bb-right {
        grid-column: 3;
        grid-row: 1;
        width: 100%;
        max-width: 440px;
        min-width: 0;
        justify-self: end;
    }
}
@media (min-width: 901px) and (max-width: 1250px) {
    .bb-header .bb-header-inner {
        grid-template-columns: max-content minmax(0, 1fr) minmax(0, 300px);
        column-gap: 12px;
        padding-inline: 20px;
    }
    .bb-header .bb-logo .bb-logo-wordmark { font-size: 25px; }
    .bb-header.is-scrolled .bb-logo .bb-logo-wordmark { font-size: 24px; }
    .bb-header .bb-menu { gap: clamp(8px, 1vw, 14px); }
    .bb-header .bb-menu > li > a { font-size: 11px; }
    .bb-header .bb-right { max-width: 300px; }
}

@media (max-width: 900px) {
    /* Absolute centering avoids the right-hand search + cart controls
       shifting the wordmark when the header shrinks on scroll. */
    .bb-header .bb-header-inner,
    .bb-header.is-scrolled .bb-header-inner {
        position: relative;
        max-width: 1350px;
        grid-template-columns: 50px minmax(0, 1fr) 104px;
    }
    .bb-header .bb-logo,
    .bb-header.is-scrolled .bb-logo {
        position: absolute;
        top: 7px;
        left: 50%;
        grid-column: auto;
        grid-row: auto;
        justify-self: auto;
        align-self: auto;
        z-index: 1;
        width: max-content;
        height: 64px;
        max-width: calc(100% - 200px);
        transform: translateX(-50%);
        justify-content: center;
        pointer-events: auto;
    }
    .bb-header .bb-logo .bb-logo-wordmark {
        font-size: 25px;
        letter-spacing: .015em;
    }
    .bb-header.is-scrolled .bb-logo { top: 7px; height: 54px; }
    .bb-header.is-scrolled .bb-logo .bb-logo-wordmark { font-size: 23px; }
    .bb-header .bb-toggle { position: relative; z-index: 2; }
    .bb-header .bb-actions { position: relative; z-index: 2; }
    .bb-header .bb-search { z-index: 3; }
}
@media (max-width: 480px) {
    .bb-header .bb-header-inner,
    .bb-header.is-scrolled .bb-header-inner {
        grid-template-columns: 46px minmax(0, 1fr) 100px;
    }
    .bb-header .bb-logo .bb-logo-wordmark { font-size: 22px; }
    .bb-header.is-scrolled .bb-logo .bb-logo-wordmark { font-size: 21px; }
}
@media (max-width: 380px) {
    .bb-header .bb-logo .bb-logo-wordmark,
    .bb-header.is-scrolled .bb-logo .bb-logo-wordmark { font-size: 18px; letter-spacing: 0; }
    .bb-header .bb-actions { gap: 0; }
    .bb-header .bb-search-toggle, .bb-header .bb-cart a { width: 40px; height: 40px; }
}

/* ==================================================
   LA FEMEIA — PREMIUM ANNOUNCEMENT MARQUEE
   Fixed above the custom Blocksy child header
   ================================================== */

:root {
    --lf-announcement-h: 34px;
    --lf-announcement-bg: #29231f;
    --lf-announcement-text: #f4e9d7;
}

/* Announcement bar */
.lf-announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;

    height: var(--lf-announcement-h);
    overflow: hidden;
    display: flex;
    align-items: center;

    background: var(--lf-announcement-bg);
    border-bottom: 1px solid rgba(201,164,106,.25);

    color: var(--lf-announcement-text);
    font-family: 'DM Sans', Arial, sans-serif;
}

/* Smooth continuous track */
.lf-announcement-marquee {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    min-width: 100%;

    animation: lf-announcement-scroll 34s linear infinite;
    will-change: transform;
}

/* Repeated content blocks */
.lf-announcement-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 0 0 auto;
    min-width: 100vw;
    gap: 52px;
    padding: 0 26px;
}

/* Individual messages */
.lf-announcement-group span {
    flex: 0 0 auto;
    white-space: nowrap;

    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* Seamless marquee */
@keyframes lf-announcement-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Move the existing fixed header below the bar */
body .bb-header {
    top: var(--lf-announcement-h);
}

/* Reserve space for both fixed elements */
body .bb-header-spacer {
    height: calc(var(--bb-h) + var(--lf-announcement-h));
}

/* WordPress admin toolbar compatibility */
body.admin-bar .lf-announcement-bar {
    top: 32px;
}

body.admin-bar .bb-header {
    top: calc(32px + var(--lf-announcement-h));
}

/* Mobile */
@media (max-width: 900px) {
    :root {
        --lf-announcement-h: 30px;
    }

    .lf-announcement-group {
        gap: 32px;
        padding: 0 16px;
    }

    .lf-announcement-group span {
        font-size: 9px;
        letter-spacing: .09em;
    }

    .lf-announcement-marquee {
        animation-duration: 27s;
    }
}

/* WordPress mobile admin toolbar */
@media (max-width: 782px) {
    body.admin-bar .lf-announcement-bar {
        top: 46px;
    }

    body.admin-bar .bb-header {
        top: calc(46px + var(--lf-announcement-h));
    }
}

/* Pause for accessibility */
.lf-announcement-bar:hover .lf-announcement-marquee,
.lf-announcement-bar:focus-within .lf-announcement-marquee {
    animation-play-state: paused;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .lf-announcement-marquee {
        width: 100%;
        animation: none !important;
        will-change: auto;
        justify-content: center;
    }

    .lf-announcement-group {
        justify-content: center;
        min-width: 0;
        padding: 0 12px;
    }

    .lf-announcement-group:first-child span:not(:first-child),
    .lf-announcement-group[aria-hidden="true"] {
        display: none;
    }
}

