/* ==========================================================================
   Aroma D'or — phone experience
   Loaded only below 860 px (media attribute on the <link>), after style.css.
   Nothing in this file can reach a laptop screen.
   Plan: docs/Aromador-Mobile-Experience-Plan.pdf, progress: docs/MOBILE_PROGRESS.md
   ========================================================================== */

/* ---------- M1 · critical fixes ---------- */

/* 1. The floating WhatsApp button covered prices and buttons on 8 pages.
      Phones get WhatsApp from the menu, the footer and the contact page instead. */
.wa-fab { display: none !important; }

/* 2. Form controls under 16 px make iPhones zoom the page when tapped. */
input, select, textarea, .input, .select, .textarea, .toolbar .select { font-size: 16px; }

/* 3. Product card: the badges and the heart used to sit on top of each other. */
.card .tags { flex-direction: column; align-items: flex-start; gap: 4px; max-width: calc(100% - 60px); }

/* 4. Filter chip rows scroll sideways in one line instead of wrapping into a wall. */
#coll-chips, #faq-cats, #room-chips {
  flex-wrap: nowrap; justify-content: flex-start !important; overflow-x: auto; scroll-snap-type: x proximity;
  margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; scrollbar-width: none;
}
#coll-chips::-webkit-scrollbar, #faq-cats::-webkit-scrollbar, #room-chips::-webkit-scrollbar { display: none; }
#coll-chips > *, #faq-cats > *, #room-chips > * { flex: none; scroll-snap-align: start; }
.chip { min-height: 44px; }

/* 5. The checkout progress bar had no styling at all. */
.steps-bar { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.steps-bar span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.steps-bar span.on { color: var(--ink); }
.steps-bar i { flex: 1; height: 2px; min-width: 14px; border-radius: 1px; background: var(--line-2); }

/* 6. The cart used to build itself after load and push everything down (layout shift 0.47). */
#cart-root { min-height: 62svh; }

/* 7. Narrow phones (320 px): keep the menu button on screen. */
.header .bar { gap: 8px; }
.header .actions { flex: none; }
.logo { min-width: 0; }
.logo .wordmark { max-width: 128px; height: auto; }
@media (max-width: 360px) { .logo .by { display: none; } .header .actions { gap: 0; } }

/* 8. Small touch targets. */
.card .wish, .card .add { width: 44px; height: 44px; }
.card .wish { top: 6px; right: 6px; }
.line .rm, .rm { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
.check { min-height: 44px; }
.check input, .radio-card input { width: 24px; height: 24px; }
.crumbs a, .link { display: inline-flex; align-items: center; min-height: 44px; }
.qty { height: 44px; } .qty button { width: 44px; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer .bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.toc a { min-height: 44px; display: inline-flex; align-items: center; }
.logo { min-height: 44px; justify-content: center; }
.crumbs a { padding-inline: 8px; margin-inline: -8px; }
.eyebrow { min-height: 24px; }
a.eyebrow { min-height: 44px; }
/* chip rows that live inside a section header: a full-width row of their own */
.sec-head > .chips { display: flex; flex: 0 0 auto; width: calc(100% + 2 * var(--gut)); max-width: none; }
.crumbs { align-items: center; row-gap: 0; }
.crumbs span { display: inline-flex; align-items: center; }

/* ==========================================================================
   M2 · foundation: tokens, type scale, touch size, safe areas, reusable parts
   ========================================================================== */
:root {
  --header-h: 60px;
  --tab-h: 64px;
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
  --gut: 16px;
  --r-lg: 22px;
}
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-tap-highlight-color: transparent; }
a, button, summary, label, input, select, textarea, [role=button] { touch-action: manipulation; }
body { font-size: 16px; line-height: 1.55; overflow-wrap: break-word; }

/* type scale: body 16, copy 15, labels never under 12 */
h1, .h1 { font-size: 32px; line-height: 1.04; }
h2, .h2 { font-size: 32px; }
h3, .h3 { font-size: 24px; }
.lead { font-size: 16px; line-height: 1.6; }
.small { font-size: 14px; }
.tiny, .muted.tiny { font-size: .875rem; }
.eyebrow { font-size: 14px; letter-spacing: .18em; }
.announce { font-size: 14px; }
.announce .track { padding: 8px 0; }
.card .brand, .tag, .tag.gold, .tag.sale { font-size: 14px; }
.tag { height: 24px; padding: 0 9px; letter-spacing: .08em; }
.card .meta { font-size: .875rem; }
.card .name { font-size: 18px; }
.card .foot { padding-top: 8px; }
.price { font-size: 16px; }
.price s, .price small { font-size: 14px; }
.stars, .check .n, .usp span, .hero .trust span, .line .sub, .opt span, .radio-card span, .q-opt span, .fam-tile p, .review small,
.crumbs, .field .msg, .quote .who, .stat span, .table td, .footer .bottom, .tile p, .step p, .feature p, .toolbar .small, .meter span:last-child,
.pyr-row .chips span, .sum-line span, .active-f button, .active-f a, .footer .contact-li, .footer li a, .acc .ans { font-size: 14px; }
.field label, .label { font-size: .875rem; letter-spacing: .04em; }
.f-group h4, .footer h4, .pyr-row b, .table th, .meter, .track-steps small { font-size: 14px; }
.chip { font-size: 14px; padding: 0 18px; }
.btn { font-size: 1rem; min-height: 52px; }
.btn-sm { font-size: 14px; min-height: 44px; }
.track-steps b { font-size: 14px; }
.usp b, .float-card, .float-card b { font-size: 14px; }
.meter { grid-template-columns: 90px 1fr 72px; }
.pyr-row { grid-template-columns: 64px 1fr; }

/* touch size: every control is 44 px or more */
.icon-btn { width: 48px; height: 48px; }
.header .actions { gap: 0; }
.btn-sm, .chip, .filter-toggle, .toolbar .select { min-height: 44px; }
.input, .select, .textarea { min-height: 54px; font-size: 16px; }
.opt { min-height: 56px; }
.footer .social a { width: 48px; height: 48px; }
.pager .btn { min-width: 112px; }

/* notches and the home indicator */
.header { padding-top: var(--sat); }
.drawer-foot, .search-panel .inner { padding-bottom: calc(18px + var(--sab)); }
.sticky-buy { padding-bottom: calc(10px + var(--sab)); }
.toasts { bottom: calc(var(--sab) + 16px); }
.drawer, .search-panel { max-height: 100dvh; }
.drawer { height: 100dvh; }

/* ---- reusable parts used by the next phases ---- */

/* bottom sheet: one pattern for filters, quick add, sort, governorate, scent notes */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-height: min(88dvh, 720px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -20px rgba(12, 9, 6, .45);
  transform: translateY(104%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; overscroll-behavior: contain; }
.sheet.show { transform: none; visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
.sheet.dragging { transition: none; }
.sheet .grab { flex: none; width: 100%; height: 28px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet .grab::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 10px; }
.sheet-head h3 { font-size: 1.5rem; }
.sheet-body { flex: 1; overflow-y: auto; padding: 4px 20px 16px; overscroll-behavior: contain; }
.sheet-foot { flex: none; padding: 12px 20px calc(14px + var(--sab)); border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }
body.sheet-open { overflow: hidden; }

/* pinned bar: the one important button, always under the thumb */
.pinbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gut) calc(10px + var(--sab)); background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.pinbar .t { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.pinbar .t small { font-size: 14px; color: var(--muted); }
.pinbar .t b { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.pinbar .btn { flex: 1.3; }
body.has-pinbar { padding-bottom: calc(76px + var(--sab)); }

/* skeletons reserve space so nothing jumps while content arrives */
.skel { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--r-sm); min-height: 16px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: skel 1.3s infinite; }
@keyframes skel { to { transform: translateX(100%); } }

/* press feedback: a touch screen has no hover */
.btn:active, .chip:active, .card:active, .tile:active, .q-opt:active, .opt:active { transform: scale(.98); }
.card:hover, .tile:hover, .feature:hover, .fam-tile:hover .art, .q-opt:hover { transform: none; box-shadow: none; }
.card:hover .art svg, .card:hover .art.photo img { transform: none; }
.tile:hover .bg, .tile:hover svg.deco { transform: none; }

@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } .skel::after { animation: none; } }

/* M2 follow-ups found by the audit */
.announce, .announce span { font-size: .875rem; }
.price s, .price small, .tile .go, .btn-sm { font-size: .875rem; }
.occ .picks { display: grid; gap: 0; }
.occ .picks a { display: flex; align-items: center; min-height: 44px; }
input[type=file] { min-height: 48px; padding-block: 12px; font-size: 16px; }
.link.small { min-width: 44px; justify-content: center; }
.footer .bottom a { padding-inline: 10px; margin-inline: -10px; }
.footer .contact-li a { display: inline-flex; align-items: center; min-height: 44px; }
.nl-bar .nl-consent input { width: 24px; height: 24px; flex: none; margin: 0; }
.nl-bar .nl-consent { align-items: center; min-height: 44px; }
#steps { min-height: 560px; }
.usp.mini span span, .usp.mini b { font-size: 14px; }
.footer .bottom { gap: 0 12px; }
.footer .bottom a { min-width: 44px; justify-content: center; }
.footer .credit { padding-bottom: 24px; padding-right: 64px; font-size: 14px; color: var(--on-dark); }
.footer .credit a { display: inline; padding-block: 14px; margin-block: -14px; }
.footer li a { min-width: 48px; }

/* ==========================================================================
   M3 · navigation: tab bar, slim header, full-screen search, menu
   ========================================================================== */

/* header: logo, search, WhatsApp, menu. Cart lives in the tab bar, theme in the menu. */
#site-header { display: contents; }
.header { top: 0; transition: transform .28s var(--ease), border-color .3s, box-shadow .3s; will-change: transform; }
.header.hide { transform: translateY(-110%); }
.header .bar { height: var(--header-h); }
.header .actions a[data-open="cart"], .header .actions [data-theme-toggle], .header .actions a[href*="wishlist"] { display: none; }
.logo .wordmark { max-width: 124px; }
.logo .by { display: none; }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 6px calc(6px + var(--sab)); background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; border-radius: 14px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .02em; transition: color .2s, background-color .2s; }
.tabbar a:active { background: var(--gold-soft); }
.tabbar a.on { color: var(--ink); }
.tabbar a.on .ico::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brand); }
.tabbar .ico { position: relative; display: grid; place-items: center; }
.tabbar .ico svg { width: 24px; height: 24px; }
.tabbar a.on .ico svg { stroke-width: 2; }
.tabbar .badge-count { top: -6px; right: -10px; }
body { padding-bottom: calc(var(--tab-h) + var(--sab)); }
body.has-sticky, body.has-pinbar, body.no-tabbar { padding-bottom: 0; }
body.has-sticky .tabbar, body.has-pinbar .tabbar, body.no-tabbar .tabbar { display: none; }
body.has-sticky .sticky-buy { z-index: 70; }
.footer { padding-bottom: 0; }
.toasts { bottom: calc(var(--tab-h) + var(--sab) + 12px); }
body.has-sticky .toasts, body.has-pinbar .toasts { bottom: calc(84px + var(--sab)); }

/* full-screen search */
.search-panel { inset: 0; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
.search-panel .inner { padding-top: calc(10px + var(--sat)); padding-bottom: calc(24px + var(--sab)); }
.search-box { gap: 10px; padding: 4px 4px 4px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); min-height: 58px; }
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.search-box svg { width: 22px; height: 22px; }
.search-box input { font-family: var(--text); font-size: 16px; font-weight: 500; }
.search-results { gap: 2px; }
.s-hit { min-height: 72px; padding: 8px; }
.s-hit b { font-size: 1rem; }
.s-hit span { font-size: .875rem; }

/* menu: big rows, thumb-friendly */
.drawer.left { width: min(92vw, 400px); }
.drawer-head { padding: calc(12px + var(--sat)) 16px 12px 20px; }
.m-nav a, .m-nav summary { min-height: 56px; font-size: 1.5rem; }
.m-nav .sub a { min-height: 52px; font-size: 16px; }
.drawer-body { padding: 8px 20px 18px; }
.drawer-foot { gap: 10px; }
@media (max-width: 374px) {
  .header .bar { gap: 2px; }
  .header .icon-btn { width: 44px; height: 44px; }
  .logo .wordmark { max-width: 108px; }
}
.logo { display: inline-flex; align-items: center; }
.tabbar a { font-size: .8125rem; }

/* ==========================================================================
   M4 · home page: the same sections in the same order, each one compact.
   The owner keeps full control of order and content in the Home Page Builder.
   ========================================================================== */
.sec-head { margin-bottom: 16px; gap: 6px 12px; }
.section { padding-block: 34px; }
.section.tight { padding-block: 28px; }
[data-sec="tiles"] .sec-head .eyebrow, [data-sec="bestsellers"] .sec-head .eyebrow, [data-sec="families"] .sec-head .eyebrow,
[data-sec="brands"] .sec-head .eyebrow, [data-sec="home"] .sec-head .eyebrow, [data-sec="why"] .sec-head .eyebrow { display: none; }
[data-sec] .sec-head h2 { font-size: 32px; }
[data-sec] .sec-head .lead { display: none; }
[data-sec] .sec-head { flex-wrap: nowrap; align-items: flex-end; }
[data-sec] .sec-head > .link { flex: none; font-size: 14px; padding-bottom: 2px; min-height: 44px; }
[data-sec] .sec-head.center { flex-wrap: wrap; justify-content: flex-start; text-align: left; }
[data-sec] .sec-head.center > div { justify-items: start; }

/* hero: bottle first, headline, two buttons */
[data-sec="hero"] .inner { display: flex; flex-direction: column; gap: 14px; padding-block: 12px 22px; }
[data-sec="hero"] .inner > div:nth-child(2) { order: -1; }
[data-sec="hero"] .hero-art { width: 100%; max-width: none; height: 196px; aspect-ratio: auto; border-radius: 30px; margin: 0; }
[data-sec="hero"] .hero-art .ring { inset: -8px; border-radius: 36px; }
[data-sec="hero"] .hero-art svg.bottle, [data-sec="hero"] .hero-mono { width: auto; height: 82%; max-width: 44%; }
[data-sec="hero"] .float-card.b { display: none; }
[data-sec="hero"] .float-card.a { left: 10px; top: auto; bottom: 10px; padding: 8px 12px; gap: 8px; font-size: 14px; animation: none; }
[data-sec="hero"] .float-card.a b { font-size: .875rem; }
[data-sec="hero"] .float-card .ic { width: 28px; height: 28px; }
[data-sec="hero"] .float-card .ic svg { width: 15px; height: 15px; }
[data-sec="hero"] .eyebrow { font-size: 14px; letter-spacing: .14em; }
[data-sec="hero"] h1 { margin: 10px 0 8px; font-size: 32px; }
[data-sec="hero"] .lead { font-size: 1rem; }
[data-sec="hero"] .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
[data-sec="hero"] .cta .btn { padding-inline: 10px; gap: 8px; font-size: 14px; }
[data-sec="hero"] .trust { display: none; }

/* trust strip: four short promises in one swipeable line */
[data-sec="usp"] { padding-block: 0 8px; }
[data-sec="usp"] .usp { display: flex; gap: 8px; border: 0; background: none; border-radius: 0; overflow-x: auto; scroll-snap-type: x proximity;
  margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut); scrollbar-width: none; }
[data-sec="usp"] .usp::-webkit-scrollbar { display: none; }
[data-sec="usp"] .usp div { flex: none; scroll-snap-align: start; gap: 10px; padding: 0 16px 0 12px; min-height: 48px; border: 1px solid var(--line) !important; border-radius: 99px; background: var(--surface); }
[data-sec="usp"] .usp svg { width: 20px; height: 20px; }
[data-sec="usp"] .usp b { font-size: 14px; white-space: nowrap; }
[data-sec="usp"] .usp span > span { display: none; }

/* category tiles: a swipeable row */
[data-sec="tiles"] .tiles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
[data-sec="tiles"] .tiles::-webkit-scrollbar { display: none; }
[data-sec="tiles"] .tile, [data-sec="tiles"] .tile.t1, [data-sec="tiles"] .tile.t2, [data-sec="tiles"] .tile.t3, [data-sec="tiles"] .tile.t4, [data-sec="tiles"] .tile.t5 { flex: 0 0 76%; min-height: 188px; padding: 18px; scroll-snap-align: start; border-radius: 22px; }
[data-sec="tiles"] .tile h3 { font-size: 24px; max-width: 70%; }
[data-sec="tiles"] .tile p { font-size: 14px; max-width: 74%; }
[data-sec="tiles"] .tile .go { display: none; }
[data-sec="tiles"] .tile svg.deco { max-width: 84px; top: 14%; right: 6%; }

/* product rails on the home page */
[data-sec] .scroller { grid-auto-columns: 46%; gap: 12px; padding-bottom: 8px; margin-bottom: 0; }
[data-sec] .grid.g-4[data-products] { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 8px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
[data-sec] .grid.g-4[data-products]::-webkit-scrollbar { display: none; }
[data-sec] .grid.g-4[data-products] > * { scroll-snap-align: start; }

/* moods */
[data-sec="families"] .fam-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
[data-sec="families"] .fam-grid::-webkit-scrollbar { display: none; }
[data-sec="families"] .fam-tile { flex: 0 0 38%; scroll-snap-align: start; text-align: left; }
[data-sec="families"] .fam-tile .art { aspect-ratio: 1 / 1.1; margin-bottom: 10px; }
[data-sec="families"] .fam-tile h3 { font-size: 18px; }
[data-sec="families"] .fam-tile p { font-size: .875rem; }

/* The Collection */
[data-sec="collection"] { padding-block: 34px; }
[data-sec="collection"] .split { gap: 22px; }
[data-sec="collection"] .coll-stage { gap: 10px; }
[data-sec="collection"] .coll-stage .art, [data-sec="collection"] .coll-stage .art:nth-child(2) { aspect-ratio: 1 / 1.45; }
[data-sec="collection"] .stack { gap: 14px !important; }
[data-sec="collection"] .ticks li:nth-child(3) { display: none; }
[data-sec="collection"] .row { display: grid; grid-template-columns: 1fr; gap: 10px; }
[data-sec="collection"] .row .btn-outline-light { display: none; }

/* brands: one swipeable line */
[data-sec="brands"] .sec-head { margin-bottom: 12px; }
[data-sec="brands"] .brands { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; gap: 8px; scrollbar-width: none; }
[data-sec="brands"] .brands::-webkit-scrollbar { display: none; }
[data-sec="brands"] .brands a { flex: none; padding: 0 20px; min-height: 48px; display: inline-flex; align-items: center; font-size: 18px; }

/* scent finder banner */
[data-sec="finder"] .banner { padding: 26px 22px; gap: 12px; border-radius: 24px; }
[data-sec="finder"] .banner h2 { font-size: 32px; max-width: none; }
[data-sec="finder"] .banner p { font-size: 1rem; }
[data-sec="finder"] .banner .row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
[data-sec="finder"] .banner .btn { width: 100%; }

/* why us + contact: compact two-by-two cards */
[data-sec="why"] .grid.g-4, [data-sec="contact"] .grid.g-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
[data-sec="why"] .feature, [data-sec="contact"] .feature { padding: 16px; gap: 8px; border-radius: 18px; }
[data-sec="why"] .feature .ic, [data-sec="contact"] .feature .ic { width: 40px; height: 40px; border-radius: 12px; }
[data-sec="why"] .feature .ic svg, [data-sec="contact"] .feature .ic svg { width: 20px; height: 20px; }
[data-sec="why"] .feature h3, [data-sec="contact"] .feature h3 { font-size: 18px; }
[data-sec="why"] .feature p, [data-sec="contact"] .feature p { font-size: .875rem; line-height: 1.45; }
[data-sec="contact"] .split { gap: 22px; }
[data-sec="contact"] .row { display: grid; grid-template-columns: 1fr; gap: 10px; }
[data-sec="contact"] .row .btn { width: 100%; }
[data-sec="hero"] .inner { align-items: stretch; }
[data-sec="hero"] .hero-art { height: 184px; }

/* tighter first screen: the first product must show within the first two screens */
[data-sec="hero"] .hero-art { height: 172px; }
[data-sec="tiles"], [data-sec="bestsellers"] { padding-block: 26px; }
[data-sec="tiles"] .sec-head, [data-sec="bestsellers"] .sec-head { margin-bottom: 12px; }
[data-sec="tiles"] .tile, [data-sec="tiles"] .tile.t1, [data-sec="tiles"] .tile.t2, [data-sec="tiles"] .tile.t3, [data-sec="tiles"] .tile.t4, [data-sec="tiles"] .tile.t5 { min-height: 168px; }
[data-sec="tiles"] .tiles { padding-bottom: 2px; }

/* footer: short and calm. Shop and Company are tappable rows, the shop details stay open. */
.footer { padding-top: 34px; }
.footer .top { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; }
.footer .top > div:first-child { padding-bottom: 20px; }
.footer .lockup img { width: 160px; }
.footer .top p.mt-2 { margin-top: 12px; }
.footer .social { margin-top: 16px; }
.footer .top.acc-on > .fold { border-top: 1px solid rgba(244, 236, 223, .12); }
.footer .top.acc-on > .fold h4 { margin: 0; }
.footer .fold-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: left; cursor: pointer; }
.footer .fold-btn::after { content: "+"; font-size: 1.5rem; font-weight: 300; letter-spacing: 0; color: var(--gold-light); transition: transform .25s var(--ease); }
.footer .fold.open .fold-btn::after { transform: rotate(45deg); }
.footer .top.acc-on > .fold ul { display: none; padding-bottom: 10px; }
.footer .top.acc-on > .fold.open ul { display: block; }
.footer .top.acc-on > .fold li { margin-bottom: 0; }
.footer .top > div:last-child { border-top: 1px solid rgba(244, 236, 223, .12); padding-top: 20px; }
.footer .top > div:last-child h4 { margin-bottom: 8px; }
.footer .nl-bar { padding: 22px 0; gap: 14px; }
.footer .nl-bar .row { flex-wrap: nowrap; }

/* hero art: bottle on the right, the signature-blend card on the left, nothing covering the bottle */
[data-sec="hero"] .hero-art { place-items: center end; padding-right: 13%; }
[data-sec="hero"] .hero-art svg.bottle, [data-sec="hero"] .hero-mono { height: 88%; max-width: 34%; animation: none; }
[data-sec="hero"] .float-card.a { left: 12px; top: 50%; bottom: auto; transform: translateY(-50%); max-width: 56%; }
[data-sec="hero"] .eyebrow { font-size: 14px; letter-spacing: .12em; }
[data-sec="tiles"] .tile p { max-width: 60%; }
[data-sec="tiles"] .tile h3 { max-width: 62%; }
[data-sec="tiles"] .tile h3 { font-size: 24px; }

/* ==========================================================================
   M5 · shop and collections: compact card, pinned filter row, filter sheet, load more
   ========================================================================== */

/* page head: title only, the first product is on the first screen */
.page-hero { padding-block: 10px 6px; }
.page-hero .crumbs { display: none; }
.page-hero h1 { font-size: 32px; margin: 4px 0 4px; }
#shop-lead { display: none; }
.section.tight[style*="padding-top:0"] { padding-top: 0 !important; }

/* pinned filter row: Filters, Sort, count. Sticks under the header, moves to the top when the header slides away. */
.shop { gap: 0; }
.toolbar { position: sticky; top: var(--header-h); z-index: 45; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  margin: 0 calc(-1 * var(--gut)) 10px; padding: 8px var(--gut); background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: top .28s var(--ease); }
body.hdr-off .toolbar { top: -140px; }
.toolbar .row { display: contents; }
.toolbar .filter-toggle { order: 1; flex: none; min-height: 46px; padding-inline: 16px; font-size: 14px; }
.toolbar .select { order: 2; flex: 1; min-width: 0; min-height: 46px; width: auto; font-size: 16px; padding-left: 16px; }
.toolbar #count { order: 3; flex: none; font-size: .875rem; white-space: nowrap; }
.toolbar .sr { position: absolute; }
.active-f { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)) 10px; padding: 0 var(--gut); scrollbar-width: none; }
.active-f::-webkit-scrollbar { display: none; }
.active-f > * { flex: none; min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 374px) { .toolbar #count { display: none; } }

/* filters open as a bottom sheet */
#panel-filters { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: auto; max-height: 90dvh; border-radius: 22px 22px 0 0; transform: translateY(104%); box-shadow: 0 -20px 50px -20px rgba(12, 9, 6, .45); }
#panel-filters.show { transform: none; }
#panel-filters .drawer-head { padding: 14px 20px 10px; position: relative; }
#panel-filters .drawer-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--line-2); }
#panel-filters .drawer-head h3 { font-size: 24px; margin-top: 8px; }
#panel-filters .drawer-body { padding: 4px 20px 12px; }
#panel-filters .drawer-foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 12px 20px calc(14px + var(--sab)); }
#panel-filters .f-group { padding-bottom: 14px; gap: 4px; }
#panel-filters .f-group h4 { margin-bottom: 4px; }
#panel-filters .check { min-height: 48px; font-size: 1rem; }
#panel-filters .check .n { font-size: .875rem; }
#panel-filters .range { height: 44px; }

/* the card: photo first, name, price, one add button */
.grid.g-3, .grid.g-4 { gap: 10px; }
.card { border-radius: 18px; }
.card .art { aspect-ratio: 1 / 1.06; }
.card .tags .tag:nth-child(n+2) { display: none; }
.card .tags { top: 8px; left: 8px; max-width: calc(100% - 60px); }
.card .wish { width: 40px; height: 40px; top: 6px; right: 6px; box-shadow: 0 2px 8px rgba(28, 23, 18, .12); }
.card .wish::after { content: ""; position: absolute; inset: -4px; }
.card .body { padding: 10px 12px 12px; gap: 2px; }
.card .brand { letter-spacing: .1em; }
.card .name { font-size: 18px; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.24em; }
.card .meta { font-size: .875rem; }
.card .foot { padding-top: 6px; }
.card .price { display: grid; line-height: 1.15; }
.card .price s { margin: 0; }
.card .add { width: 44px; height: 44px; }
.card .stars { font-size: 14px; }

/* load more */
.pager { flex-direction: column; gap: 10px; margin-top: 22px; }
.pager a[rel="prev"], .pager > span { display: none; }
.pager a[data-more] { width: 100%; min-height: 52px; font-size: 1rem; }
.pager a[data-more]::before { content: ""; }
#grid { min-height: 40vh; }

/* quick add sheet (built by mobile.js for products that come in more than one size) */
.qa { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 4px 0 14px; }
.qa .art { width: 84px; height: 96px; border-radius: 14px; aspect-ratio: auto; }
.qa .art svg { width: 70%; height: 80%; }
.qa h4 { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.qa .brand { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.qa-opts { display: grid; gap: 10px; margin: 4px 0 14px; }
.qa-opts .opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; border-radius: 14px; text-align: left; }
.qa-opts .opt[disabled] { opacity: .45; }
.qa-opts .opt b { font-size: 16px; }
.qa-opts .opt span { font-size: 14px; }
.qa-opts .opt s { margin-left: 6px; color: var(--muted); font-weight: 500; }
.qa-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qa-qty .qty { height: 52px; }
.qa-qty .qty button { width: 52px; font-size: 18px; }
.qa-qty .qty output { min-width: 32px; font-size: 16px; }

/* a grid item may shrink below its content, so a one-line toolbar can never widen the page */
.shop { grid-template-columns: minmax(0, 1fr); }
.shop > div { min-width: 0; }
.toolbar #count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card .brand { font-size: .875rem; letter-spacing: .05em; }
.card .tag, .card .tag.gold, .card .tag.sale { font-size: .875rem; letter-spacing: .03em; height: 26px; }

/* ==========================================================================
   M6 · product page: photo, price, size and Add to cart on the first screen
   ========================================================================== */
#pdp-root > .crumbs { display: none; }
#pdp-wrap { padding-top: 0; }
.pdp { gap: 0; }
.pdp .gallery { margin-inline: calc(-1 * var(--gut)); }
.pdp .gallery .art, .pdp .gallery .art.photo { aspect-ratio: 1 / .84; border-radius: 0 0 28px 28px; }
.pdp .gallery .art svg { width: 44%; height: 76%; }
.pdp .gallery .tags { top: 14px !important; left: 16px !important; }
.pdp .gallery .tags .tag:nth-child(n+2) { display: none; }
.pdp .gallery .thumbs, .pdp .gallery .usp.mini { display: none; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(28, 23, 18, .25); transition: width .25s var(--ease), background-color .25s; }
.gal-dots i.on { width: 22px; border-radius: 4px; background: var(--ink); }
#pdp-main { touch-action: pan-y; }

.pdp .info { gap: 14px; padding-top: 18px; }
.pdp .info > .stack:first-child { gap: 6px !important; }
.pdp h1 { font-size: 32px; }
.pdp .info > .stack:first-child .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut); scrollbar-width: none; }
.pdp .info > .stack:first-child .chips::-webkit-scrollbar { display: none; }
.pdp .info > .stack:first-child .chips > * { flex: none; min-height: 40px; display: inline-flex; align-items: center; }
.pdp .price { font-size: 2rem; line-height: 1; }
.pdp .info > .lead:not(.lead-m) { display: none; }
.lead-m { display: block; font-size: 16px; color: var(--ink-2); }
.pdp .info > .stack .label { font-size: 14px; }
.pdp .opts { gap: 8px; }
.pdp .opt { min-width: 0; flex: 1 1 28%; }
.buy { gap: 8px; flex-wrap: nowrap; }
.buy .btn { flex: 1 1 auto; min-width: 0; padding-inline: 12px; }
.buy .qty.lg { flex: none; }
.buy .qty.lg button { width: 44px; }
.buy .wish { flex: none; }
#wa { min-height: 52px; }

.usp-m { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut); scrollbar-width: none; }
.usp-m::-webkit-scrollbar { display: none; }
.usp-m span { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 14px; font-weight: 700; }
.usp-m svg { width: 20px; height: 20px; color: var(--gold); }

/* notes read like a pyramid, one tier per row */
.pyr-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; border-left: 3px solid var(--brand); border-radius: 4px 14px 14px 4px; }
.pyr-row b { font-size: 14px; }
.pyr-row .chips span { font-size: 14px; padding: 6px 14px; }
.meter { grid-template-columns: 92px 1fr 80px; }
.acc summary { min-height: 56px; padding-block: 12px; }
.sticky-buy { gap: 10px; }
.sticky-buy .btn { min-height: 48px; padding-inline: 18px; white-space: nowrap; }

/* ==========================================================================
   M7 · cart and checkout: the total and the main button are always under the thumb
   ========================================================================== */
.page-hero .steps-bar + * { margin-top: 0; }
body.has-pinbar .tabbar { display: none; }
body.has-pinbar .toasts { bottom: calc(88px + var(--sab)); }

/* cart */
.checkout { gap: 14px; }
.panel { padding: 18px; border-radius: 22px; }
.panel .h3, .panel h2.h3 { font-size: 24px; }
.line { grid-template-columns: 76px 1fr; gap: 4px 14px; padding: 16px 0; align-items: start; }
.line .thumb { width: 76px; height: 88px; grid-row: span 2; }
.line h4 { font-size: 18px; }
.line .sub { font-size: 14px; margin: 2px 0 10px; }
.line .right { grid-column: 2; display: flex; justify-content: space-between; align-items: center; justify-items: initial; gap: 12px; margin-top: -2px; }
.line .price { font-size: 18px; }
.line .rm { font-size: 14px; }
.checkout .summary .btn-block[href*="checkout"] { display: none; }
.ship-bar { font-size: 14px; }
.summary .ticks { display: none; }
#cart-pin .btn { flex: 1 1 auto; }

/* checkout */
.steps-bar { margin-top: 12px; }
.form-grid { gap: 14px; }
.field .input, .field .select { min-height: 54px; }
.textarea { min-height: 84px !important; }
.radio-card { padding: 14px 16px; min-height: 64px; }
.radio-card input { width: 24px; height: 24px; }
.fold-row summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font-weight: 700; }
.fold-row summary::-webkit-details-marker { display: none; }
.fold-row summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--gold); transition: transform .25s var(--ease); }
.fold-row[open] summary::after { transform: rotate(45deg); }
.panel:has(.fold-row) { padding-block: 4px; }
.panel:has(.fold-row) .row { flex-wrap: nowrap; }
.panel:has(.fold-row) .row .input { max-width: none !important; flex: 1; min-width: 0; }
.summary .sum-line { grid-template-columns: 56px 1fr auto; }
#place { display: none; }
#co-pin .btn { flex: 1.3; }
#co-pin .btn svg { display: block; }
#cart-root { min-height: 100svh; }
#cart-root:has(.empty) { min-height: 50svh; }
#cart-root:has(.line) { min-height: 0; }

/* ==========================================================================
   M8 · the perfume experience: finder, page heroes, notes, photo card, motion
   ========================================================================== */

/* Scent Finder: one question per screen, big rows, Back / Next pinned to the bottom */
#sf-lead { display: none; }
.page-hero.center, .page-hero:has(#sf-title) { padding-block: 12px 4px; }
.quiz-progress { gap: 5px; margin-bottom: 18px; }
.quiz-progress i { height: 5px; }
.q-step h2 { font-size: 32px; }
.q-opts { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.q-opt { grid-template-columns: 52px 1fr; grid-template-areas: "em t" "em d"; column-gap: 12px; row-gap: 0; align-items: center; min-height: 72px; padding: 12px 16px; }
.q-opt .em { grid-area: em; font-size: 2rem; text-align: center; }
.q-opt b { grid-area: t; font-size: 18px; }
.q-opt span:last-child { grid-area: d; font-size: 14px; }
.q-opt.on { box-shadow: inset 0 0 0 2px var(--gold); }
#quiz { padding-bottom: 96px; }
#quiz-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; gap: 12px; flex-wrap: nowrap;
  padding: 10px var(--gut) calc(10px + var(--sab)); background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
#quiz-nav .btn { min-height: 52px; }
#quiz-nav #next { flex: 1; }
#quiz-nav #step-n { flex: none; font-size: .875rem; }
body:has(#quiz:not(.hidden)) .tabbar { display: none; }
body:has(#quiz:not(.hidden)) { padding-bottom: 0; }
.match { grid-template-columns: 104px 1fr; gap: 14px; padding: 14px; }

/* page heroes (gifts, collection, Home, ...): bottle first, short, two buttons side by side */
.hero:not([data-sec]) .inner { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-block: 10px 22px; }
.hero:not([data-sec]) .inner > div:nth-child(2) { order: -1; }
.hero:not([data-sec]) .hero-art { width: 100%; max-width: none; height: 168px; aspect-ratio: auto; border-radius: 28px; margin: 0; place-items: center end; padding-right: 13%; }
.hero:not([data-sec]) .hero-art .ring { inset: -8px; border-radius: 34px; }
.hero:not([data-sec]) .hero-art svg.bottle, .hero:not([data-sec]) .hero-mono { width: auto; height: 88%; max-width: 34%; animation: none; }
.hero:not([data-sec]) .float-card.b { display: none; }
.hero:not([data-sec]) .float-card.a { left: 12px; top: 50%; bottom: auto; transform: translateY(-50%); max-width: 56%; padding: 8px 12px; gap: 8px; font-size: .875rem; animation: none; }
.hero:not([data-sec]) .crumbs { display: none; }
.hero:not([data-sec]) h1 { font-size: 32px !important; margin: 8px 0 8px; }
.hero:not([data-sec]) .lead { font-size: 1rem; }
.hero:not([data-sec]) .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hero:not([data-sec]) .cta .btn { padding-inline: 10px; font-size: 14px; }
.hero:not([data-sec]) .trust { display: none; }

/* scent notes: tap one to see every scent that has it */
.pyr-row .chips span { position: relative; }
.pyr-row .chips span a { color: inherit; }
.pyr-row .chips span a::after { content: ""; position: absolute; inset: -6px -4px; }


/* motion: quick and quiet (under 200 ms for taps, 350 ms for reveals) */
.reveal { transform: translateY(14px); transition: opacity .35s var(--ease), transform .35s var(--ease); transition-delay: 0s; }
.reveal.in { transform: none; }
.btn, .chip, .q-opt, .opt, .tabbar a, .icon-btn { transition-duration: .15s; }
.drawer, .search-panel { transition: transform .3s var(--ease), visibility 0s .3s; }
.drawer.show, .search-panel.show { transition: transform .3s var(--ease), visibility 0s; }
.q-step { animation-duration: .25s; }
.toast { animation-duration: .25s; }

/* contrast: small text and the green button reach 4.5:1 on a phone in daylight (Lighthouse accessibility) */
:root:not([data-theme="dark"]) { --muted: #62594e; --gold: #735f3d; --wa: #15803f; }

/* ==========================================================================
   CALM PASS (docs/Aromador-Mobile-Calm-Pass.pdf)
   C1 · foundations: one type scale, one rhythm, quiet boxes.
   Sizes 12 / 14 / 16 / 18 / 24 / 32 (12 only for the tab bar). Space: 20 at the sides, 56 between sections,
   24 between groups, 16 across and 28 down between cards. Text colours: ink, muted, gold, white on dark, green.
   ========================================================================== */
:root { --gut: 20px; --ink-2: var(--ink); --sec: 28px; }
:root:not([data-theme="dark"]) { --accent: var(--gold); --ok: var(--wa); }

/* type: every size comes from the scale */
body { font-size: 16px; }
h1, .h1 { font-size: 32px; line-height: 1.1; }
h2, .h2 { font-size: 24px; line-height: 1.15; }
h3, .h3 { font-size: 18px; line-height: 1.25; }
h4 { font-size: 16px; }
.lead { font-size: 16px; line-height: 1.6; }
.small, .tiny, .muted.tiny, .crumbs, .announce, .announce span { font-size: 14px; }
.tabbar a, .tabbar .badge-count, .badge-count { font-size: 12px; }
.price, .price s, .price small, .btn, .btn-sm { font-size: 16px; }
.price s, .price small, .btn-sm { font-size: 14px; }

/* no capital-letter labels with a leading line; a plain, quiet label stays only in a page header */
.eyebrow { display: none; }
.page-hero .eyebrow { display: block; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; min-height: 0; }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { display: none; }
.card .brand, .tag, .qa .brand, .label, .field label, .pyr-row b, .table th, .footer h4, .f-group h4, .track-steps b, .tile .go,
.steps-bar, .sum-line.grand, .badge, .status { text-transform: none; letter-spacing: 0; }
.footer h4 { font-size: 16px; font-weight: 700; color: var(--on-dark); }
.tag { font-size: 14px; }

/* colour: dark surfaces speak in one white, light surfaces in ink, muted, gold and one green */
:root:not([data-theme="dark"]) .btn-primary { color: var(--on-dark); }
:root:not([data-theme="dark"]) .btn-light, :root:not([data-theme="dark"]) .btn-gold { color: var(--ink); }
.btn-wa { color: var(--on-dark); }
.section.dark, .section.dark .lead, .section.dark .muted, .section.dark em, .banner, .banner p, .banner em, .tile, .tile p,
.footer, .footer p, .footer li a, .footer .bottom, .footer .bottom a, .footer .contact-li, .footer .contact-li a, .footer .nl-bar p { color: var(--on-dark); }

/* rhythm */
.section, .section.tight { padding-block: var(--sec); }
.section.alt, .section.dark { padding-block: 36px; }
.sec-head, [data-sec] .sec-head { margin-bottom: 20px; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.sec-head > div { gap: 8px; }
.sec-head > .link { flex: 0 0 100%; order: 3; }
.see-all { display: inline-flex; align-items: center; margin-top: 12px; font-weight: 700; font-size: 16px; }
.grid { gap: 24px 16px; }
.grid.g-2, .grid.g-3, .grid.g-4 { column-gap: 16px; row-gap: 28px; }
.stack { gap: 24px; }
.badge-count { color: var(--on-dark); background: var(--ink); }

/* sizes that only style.css set: moved onto the scale */
h1[style*="font-size"] { font-size: 32px !important; }
.footer p, .footer li a, .footer .contact-li, .footer .bottom, .footer .nl-bar p { font-size: 14px; }
.link, .link.small { font-size: 16px; }
.opt b, .radio-card b, .check span, .sum-line, .sum-line span, .sum-line b { font-size: 16px; }
.opt span, .radio-card span, .check .n { font-size: 14px; }
.sum-line.grand, .sum-line.grand span, .sum-line.grand b, .grand span { font-size: 24px; }
.qty output { font-size: 16px; }
.qty button { font-size: 18px; }
.ticks li, .step p, .timeline p, .t p, .feature p { font-size: 16px; }
.ticks li b, .step h3, .t h3, .stat span { font-size: 16px; }
.sticky-buy .t b { font-size: 18px; }
.pdp .price s { font-size: 16px; }
.step h3, .acc.big summary, .feature h3, .t h3, a.feature h3 { font-size: 18px; }
.step h3 { font-size: 24px; }
.acc summary { font-size: 18px; }
.span.yr, .t .yr, .yr { font-size: 24px; }
h2.h3, .panel h2.h3, .panel .h3, h2.h3 em, .h3 em { font-size: 24px; }
.stat b { font-size: 32px; }
h2[style*="font-size"], h3[style*="font-size"] { font-size: 24px !important; }
.price s[style] { font-size: 16px !important; }
.totals, .totals div, .totals span { font-size: 16px; }
.totals .grand, .totals .grand span, .totals .grand b { font-size: 24px; }

/* C3 first step, needed here so no text is cut off with three dots: the scent line leaves the card on phones */
.card .meta { display: none; }
.dark .crumbs, .dark .crumbs a, .dark .crumbs span, .section.dark .crumbs * { color: var(--on-dark); }

/* ==========================================================================
   C2 · the bars and the menu step back
   ========================================================================== */
:root { --header-h: 56px; --tab-h: 56px; }

/* announcement: one still line on the home page and the shop. Several messages fade from one to the next (mobile.js). */
body:not([data-pg="home"]):not([data-pg="shop"]) .announce { display: none; }
.announce { height: 32px; }
.announce .track { animation: none; width: auto; display: grid; padding: 0; height: 32px; }
.announce .track span { grid-area: 1 / 1; justify-content: center; align-items: center; height: 32px; padding-inline: 20px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.announce .track span::before { display: none; }
.announce .track:not([data-cyc]) span:first-child, .announce .track span.on { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .announce .track span { transition: none; } }

/* header: 56 px, logo, search, WhatsApp, menu */
.header { box-sizing: border-box; height: calc(56px + var(--sat)); padding-top: var(--sat); }
.header .bar { height: 100%; }
.header .icon-btn { width: 44px; height: 44px; }
.back-cart { display: grid; }
.back-cart svg { transform: scaleX(-1); }
body[data-pg="checkout"] .header [data-open="search"], body[data-pg="checkout"] .header .burger { display: none; }

/* tab bar: 56 px plus the safe area */
.tabbar { box-sizing: border-box; height: calc(56px + var(--sab)); padding: 0 6px var(--sab); align-items: start; }
.tabbar a { min-height: 0; height: 55px; gap: 2px; }
.tabbar .ico svg { width: 22px; height: 22px; }
.tabbar a.on .ico::after { bottom: -6px; }

/* menu: big serif for the main pages, small sans for the rest, nothing the tab bar already has */
.m-nav { display: flex; flex-direction: column; }
.m-nav > details { order: 0; }
.m-nav > a { order: 1; }
.m-nav a[href*="wishlist"] { display: none; }
.m-nav > a[href*="about"], .m-nav > a[href*="business"], .m-nav > a[href*="contact"], .m-nav > a[href*="faq"] { font: 600 16px/1.3 var(--text); min-height: 48px; color: var(--ink); }
.m-nav > a[href*="about"] { order: 2; margin-top: 12px; }
.m-nav > a[href*="business"] { order: 3; }
.m-nav > a[href*="contact"] { order: 4; }
.m-nav > a[href*="faq"] { order: 5; }
.menu-tools { display: flex; align-items: center; }
.menu-theme { display: grid; }
.drawer-foot [data-theme-toggle] { display: none; }
.drawer-foot .btn-wa { background: transparent; color: var(--wa); border: 1px solid var(--wa); box-shadow: none; }

/* pinned bars: 64 px at most, the main button 50 px tall */
.pinbar, #quiz-nav { padding: 6px var(--gut) calc(6px + var(--sab)); }
.pinbar .btn, #cart-pin .btn, #co-pin .btn, #quiz-nav .btn { min-height: 50px; }
.sticky-buy { padding: 6px var(--gut) calc(6px + var(--sab)); }
.sticky-buy .btn { min-height: 50px; }
body.has-pinbar { padding-bottom: calc(64px + var(--sab)); }
.sticky-buy { box-sizing: border-box; height: calc(64px + var(--sab)); align-items: center; }

/* ==========================================================================
   C3 · the product card: photo, heart, brand, name, price line, add. Six parts, room between cards.
   ========================================================================== */
.grid.g-3, .grid.g-4 { column-gap: 16px; row-gap: 28px; }
.card { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.card .art { aspect-ratio: 4 / 5; border-radius: 16px; }
.card .body { padding: 10px 0 0; gap: 2px; }
.card .row.between { justify-content: flex-start; }
.card .stars { display: none; }
.card .brand { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.card .name { font-size: 18px; line-height: 1.2; min-height: 0; }   /* a one-line name takes one line: no empty second line between the title and the price */
.card .foot { padding-top: 8px; gap: 8px; align-items: center; }
.card .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; line-height: 1.3; font-weight: 700; }
.card .price s { margin: 0; font-size: 14px; }
.card .price small { font-size: 14px; }

/* heart: a bare outline on the photo, 44 px to tap */
.card .wish { background: none; box-shadow: none; width: 44px; height: 44px; top: 4px; right: 4px; color: var(--ink); backdrop-filter: none; }
.card .wish svg { width: 22px; height: 22px; }
.card .wish::after { display: none; }

/* add: drawn 36 px, outlined, 44 px to tap */
.card .add { width: 44px; height: 44px; background: none; color: var(--ink); border-radius: 50%; }
.card .add:hover { background: none; color: var(--ink); transform: none; }
.card .add svg { width: 36px; height: 36px; padding: 9px; box-sizing: border-box; border: 1.5px solid var(--ink); border-radius: 50%; }

/* one badge at most, quiet: the saving in percent (-25%) stays, small and red; Bestseller only where fewer than a third of the cards carry it */
.card .tags { top: 10px; left: 10px; max-width: calc(100% - 64px); }
.card .tag, .card .tag.gold, .card .tag.muted { background: rgba(255, 255, 255, .94); color: var(--ink); height: 24px; padding: 0 10px; font-weight: 700; backdrop-filter: none; }
.card .tag.sale { background: var(--danger); color: #fff; }
.card .tag, .card .tag.gold, .card .tag.sale, .card .tag.muted { font-size: 12px; height: 20px; padding: 0 8px; letter-spacing: .02em; line-height: 1; }   /* a small badge: the percentage reads at a glance without covering the photo */
.card .tags { top: 8px; left: 8px; }
.bs-off .card .tag.gold { display: none; }

/* rows of cards on the home page: two whole cards and a third peeking */
[data-sec] .scroller, [data-sec] .grid.g-4[data-products] { grid-auto-columns: 44%; gap: 16px; }
.scroller { grid-auto-columns: 44%; }
@media (max-width: 520px) { .scroller { grid-auto-columns: 44%; } }

/* ==========================================================================
   C4 · the home page: a picture, a headline and one button; then each section says one thing
   ========================================================================== */
.m-only { display: revert; }
[data-sec] .sec-head > .link { display: none; }                         /* the See all link moves under its row (mobile.js) */
[data-sec] .sec-head { margin-bottom: 16px; }

/* hero: picture, headline, one button, a text link */
[data-sec="hero"] .inner { gap: 20px; padding-block: 16px 8px; }
[data-sec="hero"] .hero-art { height: 220px; border-radius: 28px; place-items: center; padding-right: 0; }
[data-sec="hero"] .hero-art .ring, [data-sec="hero"] .float-card { display: none; }
[data-sec="hero"] .hero-art svg.bottle, [data-sec="hero"] .hero-mono { height: 84%; max-width: 40%; }
[data-sec="hero"] h1 { margin: 0 0 4px; font-size: 32px; }
[data-sec="hero"] .lead { display: none; }                             /* too long to show whole; the sections below say it */
[data-sec="hero"] .cta { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 16px; }
[data-sec="hero"] .cta .btn-primary { width: 100%; }
[data-sec="hero"] .cta .btn-ghost { border: 0; min-height: 48px; background: none; font-weight: 700; color: var(--ink); }
[data-sec="hero"] .cta .btn-ghost:hover { background: none; color: var(--ink); }

/* promises: one or two plain lines, dots between them */
[data-sec="usp"] { padding-block: 0; }
[data-sec="usp"] .usp { display: block; margin: 0; padding: 0; text-align: center; border: 0; background: none; overflow: visible; font-size: 14px; line-height: 1.7; color: var(--muted); }
[data-sec="usp"] .usp div { display: inline; flex: none; padding: 0; min-height: 0; border: 0 !important; background: none; border-radius: 0; font-size: 14px; }
[data-sec="usp"] .usp div + div::before { content: " \00B7  "; }
[data-sec="usp"] .usp svg, [data-sec="usp"] .usp span > span { display: none; }
[data-sec="usp"] .usp span, [data-sec="usp"] .usp b { display: inline; font-size: 14px; font-weight: 500; color: var(--muted); white-space: normal; }

/* tiles: the row stays, each tile shows its title */
[data-sec="tiles"] .tile p, [data-sec="tiles"] .tile .go { display: none; }
[data-sec="tiles"] .tile, [data-sec="tiles"] .tile.t1, [data-sec="tiles"] .tile.t2, [data-sec="tiles"] .tile.t3, [data-sec="tiles"] .tile.t4, [data-sec="tiles"] .tile.t5 { min-height: 150px; justify-content: flex-end; }
[data-sec="tiles"] .tile h3 { font-size: 24px; max-width: 64%; }

/* moods: the row stays, one line under each */
[data-sec="families"] .fam-tile p { display: none; }
[data-sec="families"] .sec-head .lead { display: none; }

/* the Collection: heading, the first sentence, the button */
[data-sec="collection"] .ticks, [data-sec="collection"] .row .btn-outline-light { display: none; }
[data-sec="collection"] .coll-stage .art, [data-sec="collection"] .coll-stage .art:nth-child(2) { aspect-ratio: 1 / 1.3; }
[data-sec="collection"] .stack { gap: 16px !important; }
[data-sec="collection"] .row .btn { width: 100%; }

/* brands: light pills that wrap onto two lines, then a link */
[data-sec="brands"] .brands { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; gap: 8px; justify-content: flex-start; }
[data-sec="brands"] .brands a { padding: 0 16px; min-height: 40px; height: 40px; font-size: 16px; border: 1px solid var(--line-2); box-shadow: none; background: none; }
[data-sec="brands"] .brands a:nth-child(n+9) { display: none; }
[data-sec="brands"] .link.m-only { display: inline-flex; margin-top: 12px; }
[data-sec="brands"] .sec-head.center { text-align: left; }

/* the finder banner: heading, one sentence, one button */
[data-sec="finder"] .banner .row .btn-outline-light { display: none; }
[data-sec="finder"] .banner { gap: 16px; }

/* why: four plain rows, icon, title, one sentence */
[data-sec="why"] .grid.g-4 { grid-template-columns: 1fr; gap: 20px; }
[data-sec="why"] .feature { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; row-gap: 2px; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; align-items: start; }
[data-sec="why"] .feature .ic { grid-row: 1 / span 2; width: 32px; height: 32px; background: none; border-radius: 0; }
[data-sec="why"] .feature .ic svg { width: 24px; height: 24px; }
[data-sec="why"] .feature h3 { font-size: 18px; }
[data-sec="why"] .feature p { font-size: 16px; line-height: 1.45; color: var(--muted); }

/* contact: heading, one sentence, WhatsApp, a text link; the four boxes live in the footer */
[data-sec="contact"] .grid.g-2 { display: none; }
[data-sec="contact"] .row .btn-ghost { border: 0; min-height: 48px; background: none; justify-content: center; font-weight: 700; }
[data-sec="contact"] .row { gap: 4px; }

/* home scents: four cards, two by two */
[data-sec="home"] .grid.g-4[data-products] { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding: 0; gap: 28px 16px; scroll-snap-type: none; }

/* a See all link under its row */
.see-all { display: inline-flex; margin-top: 8px; }

/* ==========================================================================
   C5 · the product page: photo, name, price and one button; then the details
   ========================================================================== */
.pdp-heart { display: grid; position: absolute; top: 10px; right: 12px; z-index: 3; width: 44px; height: 44px; background: none; color: var(--ink); }
.pdp-heart svg { width: 24px; height: 24px; }
.pdp .gallery .tags .tag.gold, .pdp .gallery .tags .tag.sale { display: none; }

/* brand as plain text, the facts as one line, the size as text when there is only one */
.pdp .eyebrow { display: block; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--muted); min-height: 0; }
.pdp .eyebrow::before { display: none; }
a.eyebrow { min-height: 0; }
.pdp a.eyebrow { display: inline-flex; align-items: center; min-height: 32px; margin-block: -4px; }
.pdp .info > .stack:first-child .chips { display: flex; flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; gap: 0; }
.pdp .info > .stack:first-child .chips > * { flex: none; min-height: 32px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; border-radius: 0; font-size: 14px; color: var(--muted); }
.pdp .info > .stack:first-child .chips > *:not(:last-child)::after { content: "\00B7"; margin-inline: 8px 0; }
.size-m { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.pdp .info .stack:has(> #opts .opt:only-child) { display: none; }
.pdp .opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
.pdp .opts::-webkit-scrollbar { display: none; }
.pdp .opt { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 0; padding: 0 16px; border-radius: 99px; }

/* one button; the quantity is changed in the cart; WhatsApp is a link under it */
.buy { display: block; }
.buy .qty, .buy .wish { display: none; }
.buy .btn { width: 100%; min-height: 52px; font-size: 16px; }
#add-label { font-size: 16px; }
#wa { background: none; color: var(--wa); border: 0; box-shadow: none; min-height: 48px; font-weight: 700; justify-content: center; }
#wa:hover { box-shadow: none; transform: none; }

/* one line of reassurance */
.usp-m { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; overflow: visible; font-size: 14px; color: var(--muted); }
.usp-m svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
#ship { display: none; }

/* notes with a label; performance with the estimate on its own line */
.lead-m { display: block; }
.lead-m .label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.lead-m p { font-size: 16px; color: var(--ink); }
.est { display: block; font-size: 14px; }
.est .dot { display: none; }

/* fold-out rows: About, How to wear it, delivery and returns together. Nothing open on arrival. */
.acc details.dt-only, .acc details:has(a[href*="wa.me"]) { display: none; }

/* ==========================================================================
   C6 · cart, checkout and the other pages: panels fall away, one panel per page at most
   ========================================================================== */

/* cart: the lines sit on the page between hairlines; Empty cart is a small link after the last line */
.checkout > .panel:not(.summary) { display: flex; flex-direction: column; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.checkout > .panel:not(.summary) > .row.between { display: contents; }
.checkout > .panel:not(.summary) > .row.between h2 { order: 0; margin-bottom: 4px; }
.checkout > .panel:not(.summary) .line { order: 1; }
.checkout > .panel:not(.summary) #clear { order: 2; align-self: flex-start; margin-top: 4px; font-size: 14px; }
.checkout > .panel:not(.summary) > a.link { display: none; }                       /* Continue shopping: the Shop tab does that */
.line:first-of-type { border-top: 1px solid var(--line); }

/* checkout: sections lose their panels; a heading, the fields, then space. Options and the summary keep their boxes. */
#co-form .panel { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; margin-bottom: 32px; }
#co-form .panel > h2, #co-form .panel > .stack > h2, #co-form .panel .h3 { font-size: 24px; margin-bottom: 4px; }
#co-form .panel:has(.fold-row) { margin-bottom: 24px; border-block: 1px solid var(--line); }
.checkout { gap: 0; }

/* every other page: information is plain text; a box means "tap me" */
.section:not(.dark) .panel:not(.summary):not([style*="background"]) { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.feature { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; row-gap: 2px; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; align-items: start; }
.feature .ic { grid-row: 1 / span 2; width: 32px; height: 32px; background: none; border-radius: 0; }
.feature .ic svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); }
.feature > :not(.ic):not(h3):not(p) { grid-column: 2; }
.stat, .stats > * { background: none; border: 0; padding: 0; text-align: left; border-radius: 0; box-shadow: none; }
.usp.mini { display: none; }

/* page heroes: no floating card, one button and a text link, the first sentence */
.hero:not([data-sec]) .hero-art .ring, .hero:not([data-sec]) .float-card { display: none; }
.hero:not([data-sec]) .hero-art { place-items: center; padding-right: 0; height: 200px; }
.hero:not([data-sec]) .cta { grid-template-columns: 1fr; gap: 4px; }
.hero:not([data-sec]) .cta .btn:first-child { width: 100%; }
.hero:not([data-sec]) .cta .btn:not(:first-child) { background: none; border: 0; min-height: 48px; font-weight: 700; justify-content: center; }
.hero:not([data-sec]) .cta .btn-ghost { color: var(--ink); }
.hero:not([data-sec]) .cta .btn-outline-light { color: var(--on-dark); }
.hero:not([data-sec]) .cta .btn:not(:first-child):hover { background: none; }

/* promises on every page: one or two plain lines, dots between them */
.usp { display: block; margin: 0; padding: 0; text-align: center; border: 0; background: none; overflow: visible; font-size: 14px; line-height: 1.7; color: var(--muted); }
.usp div { display: inline; padding: 0; min-height: 0; border: 0 !important; background: none; border-radius: 0; font-size: 14px; }
.usp div + div::before { content: " \00B7  "; }
.usp svg, .usp span > span { display: none; }
.usp span, .usp b { display: inline; font-size: 14px; font-weight: 500; color: var(--muted); }
section.wrap[style*="margin-top:-28px"] { margin-top: 0 !important; padding-top: 20px; }

/* dark page heads (collection, business, home scents): one button, a text link, no crumbs */
.section.dark .row .btn:first-child { width: 100%; }
.section.dark .row .btn:not(:first-child) { background: none; border: 0; min-height: 48px; justify-content: center; font-weight: 700; color: var(--on-dark); }
.section.dark .row { gap: 4px; }
.section.dark .crumbs { display: none; }

/* feature rows read down the page, one column */
.grid:has(> .feature) { grid-template-columns: 1fr; row-gap: 20px; }
.stat[style] { background: none !important; border: 0 !important; }
.stat span[style] { color: var(--on-dark) !important; }
.section.dark .stat b { color: var(--on-dark); }
.line h4 a { display: block; padding-block: 6px; margin-block: -6px; }

/* narrow phones (320 to 360): the filter row keeps both controls whole */
@media (max-width: 360px) {
  .toolbar { gap: 6px; }
  .toolbar .filter-toggle { padding-inline: 12px; gap: 6px; }
  .toolbar .select { padding-left: 12px; padding-right: 30px; }
}

/* product photos sit on the brand background (set in style.css) in both themes; the heart on them stays dark */
.card .wish, .pdp-heart { color: #1c1712; }
.pdp .info > .stack:first-child .chips > *:not(:last-child)::after { margin-inline: 8px; }
:root[data-theme="dark"] .badge-count { color: var(--bg); }

/* sliders move sideways only: no vertical scrolling inside them, so a finger starting on one still scrolls the page */
#coll-chips, #faq-cats, #room-chips, .usp-m, .active-f, .scroller, .table-wrap, .pdp .opts, .pdp .info > .stack:first-child .chips,
[data-sec="tiles"] .tiles, [data-sec="families"] .fam-grid, [data-sec="brands"] .brands, [data-sec] .grid.g-4[data-products] { overflow-y: hidden; overscroll-behavior-x: contain; overscroll-behavior-y: auto; }

