/* =========================================================
   BLACKBEADS — POLISH LAYER (enhance.css)
   Loads after style.css. Keeps the original look & feel and
   adds: accessibility, responsive refinements, touch UX,
   search, bottom navigation, consistent info pages, and
   the generic WordPress templates.
   Specificity note: page templates carry inline <style>
   blocks that load after this file, so rules that must win
   against them are prefixed with `body`.
   ========================================================= */

/* ---------- 0. Tokens & base ---------- */
:root{
  --header-h:80px;              /* sticky nav row (topbar scrolls away) */
  --topbar-h:34px;
  --muted:#6b645d;              /* AA-contrast secondary text on ivory */
  --ring:0 0 0 3px rgba(200,162,74,.42);
  --ease:cubic-bezier(.2,.7,.2,1);
  --safe-b:env(safe-area-inset-bottom,0px);
}
html{
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
  scroll-padding-top:calc(var(--header-h) + 16px);
}
body{
  text-rendering:optimizeLegibility;
  -webkit-tap-highlight-color:transparent;
  font-kerning:normal;
}
img,video,iframe{ max-width:100%; }
h1,h2,h3{ text-wrap:balance; }
p,li{ text-wrap:pretty; }
button,a,input,select,textarea,summary{ touch-action:manipulation; }
.p-price .now,.price-block .now,.cart-total-row span:last-child,.sum-row span:last-child{ font-variant-numeric:tabular-nums; }

/* Generic content container (several templates use it but it was undefined).
   :where() keeps specificity at zero so any component rule still wins. */
:where(.container){ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:32px; box-sizing:border-box; }
@media(max-width:760px){ :where(.container){ padding-inline:20px; } }
@media(max-width:380px){ :where(.container){ padding-inline:16px; } }

.screen-reader-text{
  position:absolute!important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;
}
.skip-link{
  position:fixed; left:16px; top:-90px; z-index:10001;
  background:var(--ink); color:var(--ivory); padding:12px 20px; border-radius:100px;
  font-weight:700; font-size:14px; transition:top .2s ease;
}
.skip-link:focus{ top:12px; outline:2px solid var(--gold); outline-offset:3px; }
#main-content:focus{ outline:none; }

/* ---------- 1. Focus (keyboard users) ---------- */
body :focus-visible{
  outline:2px solid var(--oxblood); outline-offset:3px;
  box-shadow:0 0 0 5px rgba(200,162,74,.35);
  border-radius:6px;
}
body .btn:focus-visible,body .tab-btn:focus-visible,body .pill:focus-visible,
body .navicon-btn:focus-visible,body .burger:focus-visible,body .p-wish:focus-visible,
body .foot-social a:focus-visible,body input[type=search]:focus-visible{ border-radius:100px; }
body .navicon-btn:focus-visible,body .burger:focus-visible,body .p-wish:focus-visible,body .foot-social a:focus-visible{ border-radius:50%; }
.hero :focus-visible,.newsletter :focus-visible,.topbar :focus-visible{ outline-color:var(--gold-light); box-shadow:none; }
body .field input:focus-visible,body .field select:focus-visible,body .field textarea:focus-visible{ outline:none; box-shadow:var(--ring); }

/* ---------- 2. Header ---------- */
/* Only the nav row stays pinned; the announcement bar scrolls away (no layout jump). */
body header#siteHeader{
  top:calc(-1 * var(--topbar-h));
  background:rgba(250,248,245,.95);
  -webkit-backdrop-filter:saturate(1.5) blur(16px); backdrop-filter:saturate(1.5) blur(16px);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ body header#siteHeader{ background:var(--ivory); } }
.topbar{
  height:var(--topbar-h); padding:0 16px; display:flex; align-items:center; justify-content:center; position:relative;
  background:linear-gradient(90deg,#111 0%,#1d1612 50%,#111 100%); letter-spacing:.06em;
}
.topbar-text{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar-link{ position:absolute; right:max(32px,calc((100% - var(--maxw))/2 + 32px)); color:var(--gold-light); font-weight:700; font-size:12px; }
.topbar-link:hover{ text-decoration:underline; text-underline-offset:3px; }
@media(max-width:900px){ .topbar-link{ display:none; } }
@media(max-width:480px){ .topbar{ font-size:11.5px; letter-spacing:.03em; } .topbar-sub{ display:none; } }

body .navrow{ min-height:72px; }
body .navicon-btn{ width:42px; height:42px; }
body .navicon-btn:active{ background:rgba(17,17,17,.1); }
body .badge{ top:3px; right:1px; min-width:16px; height:16px; padding:0 4px; width:auto; border-radius:100px; line-height:1; font-style:normal; box-shadow:0 0 0 2px var(--ivory); }
nav.mainnav a{ letter-spacing:.01em; }
@media(max-width:1180px){ nav.mainnav{ gap:22px; } }
/* Switch to the drawer menu before the nav row can overflow (was 900px). */
@media(max-width:1024px){
  body nav.mainnav{ display:none; }
  body .burger{ display:flex; }
  body .navrow{ padding:12px 16px; gap:8px; }
  body .navicons{ gap:2px; }
}
@media(max-width:900px){ :root{ --header-h:64px; } body .navrow{ min-height:60px; } }
@media(max-width:380px){ body .navicon-btn{ width:38px; height:38px; } .brand-name{ font-size:19px; } }

/* ---------- 3. Search overlay ---------- */
.bb-search{ position:fixed; inset:0; z-index:500; visibility:hidden; opacity:0; transition:opacity .25s ease, visibility 0s linear .25s; }
.bb-search.show{ visibility:visible; opacity:1; transition-delay:0s; }
.bb-search__backdrop{ position:absolute; inset:0; background:rgba(17,17,17,.5); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.bb-search__panel{
  position:relative; width:min(760px,calc(100% - 32px)); margin:calc(var(--topbar-h) + 30px) auto 0;
  background:var(--ivory); border-radius:var(--radius-lg); box-shadow:var(--shadow-soft);
  padding:18px 18px 20px; transform:translateY(-14px); transition:transform .32s var(--ease);
}
.bb-search.show .bb-search__panel{ transform:none; }
.bb-search__form{ display:flex; align-items:center; gap:10px; background:#fff; border:1.5px solid var(--line); border-radius:100px; padding:6px 8px 6px 18px; transition:border-color .2s ease, box-shadow .2s ease; }
.bb-search__form:focus-within{ border-color:var(--gold); box-shadow:var(--ring); }
.bb-search__form>svg{ width:20px; height:20px; flex-shrink:0; color:#777; }
.bb-search__form input{ flex:1; min-width:0; border:0; background:transparent; font-size:16px; padding:10px 0; box-shadow:none!important; outline:none!important; -webkit-appearance:none; appearance:none; }
.bb-search__form input::-webkit-search-cancel-button{ display:none; }
.bb-search__close{ width:40px; height:40px; border:0; background:transparent; border-radius:50%; display:grid; place-items:center; flex-shrink:0; }
.bb-search__close:hover{ background:rgba(17,17,17,.06); }
.bb-search__close svg{ width:18px; height:18px; }
.bb-search__quick{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; }
.bb-search__quick span{ font-size:11px; text-transform:uppercase; letter-spacing:.12em; font-weight:800; color:var(--muted); margin-right:4px; }
.bb-search__quick a{ padding:8px 14px; border-radius:100px; background:var(--sand); font-size:13px; font-weight:700; transition:background-color .2s ease, color .2s ease; }
.bb-search__quick a:hover{ background:var(--ink); color:var(--ivory); }
@media(max-width:600px){
  .bb-search__panel{ margin-top:12px; padding:14px; border-radius:20px; }
  .bb-search__form .btn{ display:none; }
  .bb-search__form{ padding-left:14px; }
}
body.bb-search-open{ overflow:hidden; }

/* ---------- 4. Mobile drawer menu ---------- */
/* Closed drawers sit off-screen but their shadow used to bleed in at the viewport edges. */
.mobile-menu:not(.show),.cart-drawer:not(.show){ box-shadow:none!important; visibility:hidden; }
.mobile-menu,.cart-drawer{ transition-property:transform,visibility; }
.mobile-menu,.cart-drawer,.filters{ overscroll-behavior:contain; }
.mobile-menu{ padding-bottom:var(--safe-b); }
.mm-label{ color:#6f6a64; }
.mobile-menu nav a,.mobile-menu nav button{ min-height:48px; }
.mm-foot a{ min-height:34px; }
.mm-whatsapp svg{ flex-shrink:0; }

/* ---------- 5. Buttons ---------- */
.btn{ line-height:1.2; text-align:center; -webkit-user-select:none; user-select:none; }
.btn:focus-visible{ outline-offset:3px; }
.btn-primary:hover:not(:disabled){ background:#1d1d1d; }
.btn.is-loading{ pointer-events:none; color:transparent!important; }
.btn.is-loading::after{ content:''; position:absolute; width:18px; height:18px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:bb-spin .7s linear infinite; }
.btn-outline.is-loading::after{ border-color:rgba(17,17,17,.2); border-top-color:var(--ink); }
.btn-light-outline{ border-color:rgba(250,248,245,.55); color:var(--ivory); background:transparent; }
.btn-light-outline:hover{ background:var(--ivory); color:var(--ink); border-color:var(--ivory); }
.cta-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; position:relative; }
@media(max-width:520px){ .cta-actions{ flex-direction:column; } .cta-actions .btn{ width:100%; } }
@keyframes bb-spin{ to{ transform:rotate(360deg); } }
@keyframes bb-rise{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:none; } }

/* ---------- 6. Product cards ---------- */
body .p-card{ border:1px solid rgba(17,17,17,.05); }
body .p-media{ background:var(--sand); }
body .p-name{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; min-height:2.6em; line-height:1.3; }
body .p-price .was{ color:#767676; }
body .p-wish{ width:38px; height:38px; top:10px; right:10px; box-shadow:0 2px 8px rgba(17,17,17,.12); }
body .p-wish svg{ width:17px; height:17px; }
body .p-quickadd{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-height:40px; }
body .p-card:focus-within .p-quickadd{ bottom:10px; }
body .p-quickadd:disabled{ cursor:not-allowed; }
@media(hover:hover){ body .p-quickadd{ bottom:-70px; } }
/* Touch screens have no hover: keep add-to-bag reachable and kill sticky hover transforms. */
@media(hover:none){
  body .p-card:hover{ transform:none; box-shadow:0 2px 10px -4px rgba(17,17,17,.08); }
  body .p-card:hover .p-media img{ transform:none; }
  body .p-quickadd{ bottom:10px; background:rgba(17,17,17,.92); font-size:11.5px; padding:10px 8px; }
  body .product-grid.list-view .p-quickadd{ bottom:auto; }
}
@media(max-width:700px){
  body .p-info{ padding:12px 12px 14px; }
  body .p-name{ font-size:14px; }
  body .p-cat{ font-size:10px; }
  body .p-badge{ top:10px; left:10px; font-size:9.5px; padding:4px 9px; }
}

/* ---------- 7. Forms ---------- */
body .field input,body .field select,body .field textarea{ min-height:48px; font-size:15px; }
body .field textarea{ min-height:110px; }
body .field input::placeholder,body .field textarea::placeholder{ color:#8d867f; }
body .field input:focus,body .field select:focus,body .field textarea:focus{ box-shadow:var(--ring); }
body .field select,body select#sortSelect{
  -webkit-appearance:none; appearance:none; padding-right:40px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/16px;
}
body select#sortSelect{ min-height:44px; }
/* 16px inputs stop iOS Safari zooming the page on focus. */
@media(max-width:900px){
  body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]),
  body select,body textarea{ font-size:16px; }
}
body .qty-btn{ width:30px; height:30px; }
body .checkbox-row input,body .filter-chk input{ width:18px; height:18px; }
body .filter-chk{ min-height:36px; }

/* ---------- 8. Cart drawer & toast ---------- */
.cart-drawer{ padding-bottom:var(--safe-b); }
.cart-items{ overscroll-behavior:contain; }
.cart-close,.toast__close{ min-width:40px; min-height:40px; display:grid; place-items:center; border-radius:50%; }
.cart-close:hover{ background:rgba(17,17,17,.06); }
.cart-empty .btn{ min-height:44px; }

/* ---------- 9. Footer ---------- */
body .site-footer{ margin-top:64px; background:linear-gradient(180deg,var(--sand),#eadfcd); }
.foot-contact{ list-style:none; margin:0 0 22px; padding:0; display:grid; gap:6px; font-size:13.5px; }
.foot-contact a{ color:var(--ink); font-weight:600; transition:color .2s ease; }
.foot-contact a:hover{ color:var(--oxblood); }
body .foot-col a{ padding:4px 0; }
body .foot-col a:hover{ padding-left:3px; }
.foot-bottom,.foot-copy,.foot-top-link{ color:#5a544e; }
body .foot-bottom{ padding-bottom:calc(22px + var(--safe-b)); }
@media(max-width:900px){ body .site-footer{ margin-top:48px; } }
@media(max-width:760px){
  body .foot-social a{ width:42px; height:42px; }
}

/* ---------- 11. Home page ---------- */
body .hero{ min-height:82vh; min-height:82svh; }
@media(max-width:900px){ body .hero{ min-height:640px; } }
@media(max-width:560px){ body .hero{ min-height:600px; } }
@media(prefers-reduced-motion:no-preference){
  .hero-text>*{ animation:bb-rise .9s var(--ease) both; }
  .hero-text>*:nth-child(2){ animation-delay:.07s; }
  .hero-text>*:nth-child(3){ animation-delay:.14s; }
  .hero-text>*:nth-child(4){ animation-delay:.21s; }
  .hero-text>*:nth-child(5){ animation-delay:.28s; }
}
.hero-shopnow::after{ content:'\2192'; margin-left:12px; transition:transform .25s ease; }
.hero-shopnow:hover::after{ transform:translateX(4px); }
@media(max-width:900px){
  .hero-trust div{ background:rgba(10,8,7,.38); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); padding:7px 12px; border-radius:100px; }
}
@media(min-width:900px){ .cat-row{ justify-content:center; } }
@media(min-width:1100px){ .cat-item{ width:168px; } .cat-circle{ width:168px; height:168px; } .cat-item span{ font-size:14px; } }
.cat-item span{ display:block; }
.tabs{ overflow-x:auto; scrollbar-width:none; max-width:100%; }
.tabs::-webkit-scrollbar{ display:none; }
.tab-btn{ white-space:nowrap; }
@media(hover:hover){ .tab-btn:not(.active):hover{ border-color:var(--ink); color:var(--ink); } }
.insta-item{ display:block; position:relative; }
.insta-item::after{ content:''; position:absolute; inset:0; background:linear-gradient(0deg,rgba(17,17,17,.28),transparent 55%); opacity:0; transition:opacity .3s ease; }
@media(hover:hover){ .insta-item:hover::after{ opacity:1; } }
body .newsletter .btn-gold:hover{ background:var(--ivory); color:var(--ink); }
.reveal{ will-change:opacity,transform; }
.reveal.in{ will-change:auto; }

/* ---------- 12. Shop ---------- */
@media(min-width:981px){
  body .filters{ max-height:calc(100vh - var(--header-h) - 32px); overflow-y:auto; scrollbar-width:thin; padding-right:6px; }
  /* Drawer-only controls: the sidebar is always visible on desktop. */
  body .filters-mobile-head,body .filter-toggle-btn,body #filtersMobileOpen{ display:none!important; }
}
body .clear-filters{ display:block; margin:14px 0 4px; }
@media(max-width:980px){
  body .filters{ padding-bottom:calc(20px + var(--safe-b)); }
  body .filters-apply-bar{ padding-bottom:calc(4px + var(--safe-b)); }
}
body .view-toggle button{ min-width:42px; min-height:40px; }
body .pill button{ width:24px; height:24px; }
body .filter-group summary{ min-height:32px; }
body.filters-open{ overflow:hidden; }
body .no-results{ color:var(--muted); }

/* ---------- 13. Product page ---------- */
body .sticky-atc{ padding-bottom:calc(12px + var(--safe-b)); }
body .qty-selector button{ min-width:44px; min-height:44px; }
body .price-block .was,body .tax-note{ color:#767676; }
body .rating-row span,body .zoom-hint{ color:var(--muted); }
body .thumb{ transition:border-color .2s ease, transform .2s ease; }
@media(hover:hover){ body .thumb:hover{ transform:translateY(-2px); } }
body .accordion summary,body .bb-breakdown summary{ border-radius:8px; }

/* ---------- 14. Muted-text contrast fixes ---------- */
.breadcrumb{ color:var(--muted); }
.empty-state p,.story-stats div span,.trust-strip div,.love-summary-copy span:last-child{ color:var(--muted); }

/* ---------- 15. Info, policy, contact & tracking pages — brand-consistent ---------- */
.info-page{ background:var(--ivory); color:var(--ink); }
.info-hero{ background:linear-gradient(180deg,#fff 0,var(--ivory) 100%); position:relative; }
.info-hero::after{ content:''; display:block; width:56px; height:2px; margin:30px auto 0; background:linear-gradient(90deg,var(--gold),var(--oxblood)); border-radius:2px; }
.info-hero .eyebrow,.mini-label{ color:var(--oxblood); }
.info-hero p{ color:#5f5852; }
.policy-aside a,.contact-list a,.track-help a,.map-mobile-action a,.support-card strong{ color:var(--oxblood); }
.policy-aside p,.policy-card p,.contact-list p,.track-help p,.support-card p,.track-panel>p{ color:#5f5852; }
.policy-aside{ top:calc(var(--header-h) + 24px); }
.policy-card p{ font-size:15.5px; }
.policy-note{ background:var(--sand); }
.support-icon{ background:rgba(200,162,74,.16); color:var(--oxblood); }
.support-icon svg{ width:26px; height:26px; }
.support-card:hover{ border-color:rgba(200,162,74,.5); }
.track-steps span.done,.result-progress .complete:before,.result-progress .current:before{ background:var(--oxblood); }
.track-tabs{ background:var(--sand); }
.track-form input{ border-color:rgba(17,17,17,.15); }
.track-form input:focus{ outline:none; border-color:var(--gold); box-shadow:var(--ring); }
.contact-help{ background:#1b1613; }
.help-links a{ transition:background-color .25s ease, border-color .25s ease, transform .25s ease; }
.help-links a:hover{ background:rgba(255,255,255,.06); border-color:rgba(200,162,74,.55); transform:translateY(-2px); }
@media(max-width:600px){ .info-hero::after{ margin-left:0; } .support-hero::after{ margin-left:auto; } }

/* ---------- 16. Generic WordPress templates (page, post, search, archive, 404) ---------- */
.bb-page .container{ max-width:860px; }
.bb-entry__head{ margin-bottom:32px; }
.bb-entry__head h1{ font-size:clamp(32px,5vw,54px); line-height:1.08; }
.bb-entry__media{ margin:0 0 32px; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-soft); }
.bb-entry__media img{ width:100%; height:auto; }
.bb-entry__content{ font-size:16.5px; line-height:1.8; color:#3d3835; overflow-wrap:break-word; }
.bb-entry__content>*+*{ margin-top:1.1em; }
.bb-entry__content h2,.bb-entry__content h3,.bb-entry__content h4{ margin-top:1.8em; line-height:1.2; color:var(--ink); }
.bb-entry__content h2{ font-size:clamp(24px,3.4vw,32px); }
.bb-entry__content h3{ font-size:clamp(20px,2.6vw,24px); }
.bb-entry__content a{ color:var(--oxblood); text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(92,26,34,.35); }
.bb-entry__content a:hover{ text-decoration-color:currentColor; }
.bb-entry__content img{ height:auto; border-radius:var(--radius-md); }
.bb-entry__content blockquote{ margin-inline:0; padding:6px 0 6px 22px; border-left:3px solid var(--gold); font-family:'Fraunces',serif; font-size:1.15em; color:var(--ink); }
.bb-entry__content ul,.bb-entry__content ol{ padding-left:1.3em; }
.bb-entry__content table{ display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; }
.bb-entry__content th,.bb-entry__content td{ padding:10px 14px; border:1px solid var(--line); text-align:left; }
.bb-results{ display:grid; gap:0; }
.bb-result{ padding:26px 0; border-bottom:1px solid var(--line); }
.bb-result h2{ font-size:clamp(20px,2.6vw,26px); margin-bottom:8px; }
.bb-result h2 a:hover{ color:var(--oxblood); }
.bb-result p{ color:var(--muted); line-height:1.7; margin:0; }
.navigation.pagination{ margin-top:40px; }
.navigation.pagination .nav-links{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.navigation.pagination .page-numbers{ min-width:42px; height:42px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid var(--line); border-radius:100px; background:#fff; font-weight:700; font-size:13.5px; transition:background-color .2s ease, color .2s ease; }
.navigation.pagination a.page-numbers:hover{ background:var(--sand); }
.navigation.pagination .page-numbers.current{ background:var(--ink); color:var(--ivory); border-color:var(--ink); }
.bb-notfound{ padding:clamp(48px,9vw,110px) 0; }
.bb-notfound__inner{ max-width:640px; margin-inline:auto; text-align:center; }
.bb-notfound__code{ font-family:'Fraunces',serif; font-weight:500; font-size:clamp(96px,24vw,200px); line-height:.9; letter-spacing:-.04em; background:linear-gradient(135deg,var(--gold) 0%,var(--oxblood) 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:10px; }
.bb-notfound h1{ font-size:clamp(28px,5vw,44px); margin:8px 0 14px; }
.bb-notfound p{ color:var(--muted); line-height:1.7; }
.bb-notfound__actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:26px; }
@media(max-width:520px){ .bb-notfound__actions{ flex-direction:column; } .bb-notfound__actions .btn{ width:100%; } }
.bb-searchform{ display:flex; gap:10px; max-width:520px; margin:28px auto 0; }
.bb-searchform input{ flex:1; min-width:0; min-height:48px; padding:12px 20px; border:1.5px solid var(--line); border-radius:100px; background:#fff; font-size:15px; -webkit-appearance:none; appearance:none; }
.bb-searchform input:focus{ outline:none; border-color:var(--gold); box-shadow:var(--ring); }
@media(max-width:480px){ .bb-searchform{ flex-direction:column; } .bb-searchform .btn{ width:100%; } }

/* ---------- 17. Safety net: never let content cause sideways scroll ---------- */
.policy-card table,.bb-long-description table{ display:block; max-width:100%; overflow-x:auto; }
pre,code{ max-width:100%; overflow-x:auto; }

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}

/* ---------- 19. Print (order receipts, policies) ---------- */
@media print{
  header#siteHeader,.topbar,.site-footer,.toast,.cart-drawer,.cart-overlay,.mobile-menu,.mobile-menu-overlay,.bb-search,.skip-link,.sticky-atc{ display:none!important; }
  body{ background:#fff!important; color:#000; }
  .reveal{ opacity:1!important; transform:none!important; }
  a[href^="http"]:not(.btn)::after{ content:' (' attr(href) ')'; font-size:.85em; color:#555; }
}

/* Search dialog: position beneath the visible sticky header on every page.
   --bb-search-offset is measured from the actual header by enhance.js. */
.bb-search{ z-index:1000; overflow-y:auto; overscroll-behavior:contain; }
.bb-search__panel{
  margin-top:var(--bb-search-offset, 132px);
  margin-bottom:24px;
  max-height:calc(100dvh - var(--bb-search-offset, 132px) - 24px);
  overflow-y:auto;
}
@media(max-width:600px){
  .bb-search__panel{
    margin-top:var(--bb-search-offset, 92px);
    max-height:calc(100dvh - var(--bb-search-offset, 92px) - 16px);
  }
}
