/* MOKASA storefront templates: one design system for every business type.
   The business's accent (--a) drives every coloured fill; MOKASA only appears as "Powered by".
   Template personality comes from body[data-t] tokens (type, radius, hero surfaces).
   Media queries live at the END of this file on purpose. */

:root {
  --a: #E0156F;
  --on-a: #ffffff;
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --raise: #F3F1EC;
  --raise-2: #E9E6DF;
  --ink: #151513;
  --ink-2: #33322E;
  --muted: #66645D;
  --line: #E6E3DB;
  --line-2: #D6D2C8;
  --ok: #2F6B4C; --ok-bg: #E7F2EA;
  --warn: #8A5A0B; --warn-bg: #FBF0DA;
  --bad: #B42318; --bad-bg: #FCE9E7;
  --info: #2F5F8A; --info-bg: #E6EEF6;
  --soft: color-mix(in oklab, var(--a) 13%, var(--surface));
  --soft-2: color-mix(in oklab, var(--a) 26%, var(--surface));
  --a-ink: color-mix(in oklab, var(--a) 70%, var(--ink));
  --fd: "Inter Tight", "Inter", system-ui, sans-serif;
  --fb: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fd-w: 700;
  --fd-track: -0.03em;
  --fd-case: none;
  --r: 16px;
  --r-sm: 10px;
  --r-btn: 999px;
  --gut: 16px;
  --max: 1240px;
  --hdr: 64px;
  --shadow-pop: 0 24px 60px -18px rgba(20, 20, 18, .28), 0 2px 8px rgba(20, 20, 18, .06);
  --shadow-card: 0 1px 0 rgba(20, 20, 18, .04);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101010; --surface: #181817; --raise: #212120; --raise-2: #2B2B29;
  --ink: #F3F2EE; --ink-2: #D8D6D0; --muted: #A4A29B; --line: #2C2C2A; --line-2: #3A3A37;
  --ok: #7CC79A; --ok-bg: #16291E; --warn: #E7B85B; --warn-bg: #2E2410; --bad: #FF8A7E; --bad-bg: #3A1512; --info: #8DB8E2; --info-bg: #142231;
  --soft: color-mix(in oklab, var(--a) 22%, var(--surface));
  --soft-2: color-mix(in oklab, var(--a) 34%, var(--surface));
  --a-ink: color-mix(in oklab, var(--a) 70%, #fff);
  --shadow-pop: 0 24px 60px -18px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--fb); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--fd); font-weight: var(--fd-w); letter-spacing: var(--fd-track); line-height: 1.05; margin: 0; text-transform: var(--fd-case); overflow-wrap: anywhere; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--a); color: var(--on-a); }
:focus-visible { outline: 2.5px solid var(--a); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .2s var(--spring), background .15s, color .15s, box-shadow .15s; background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(.97); }
.btn--a { background: var(--a); color: var(--on-a); }
.btn--a:hover { background: color-mix(in oklab, var(--a) 88%, #000); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--soft { background: var(--raise); color: var(--ink); }
.btn--soft:hover { background: var(--raise-2); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); transition: background .15s; }
.icon-btn:hover { background: var(--raise); }
.count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--a); color: var(--on-a); font: 700 11px/19px var(--fb); text-align: center; transform: scale(0); transition: transform .25s var(--spring); }
.count.on { transform: scale(1); }
.count.bump { animation: bump .4s var(--spring); }
@keyframes bump { 50% { transform: scale(1.35); } }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 500; cursor: pointer; }

/* ---------------------------------------------------------------- badges and chips */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--raise); color: var(--ink-2); white-space: nowrap; }
.badge--a { background: var(--a); color: var(--on-a); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--ink { background: var(--ink); color: var(--bg); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip[disabled], .chip[aria-disabled="true"] { opacity: .4; text-decoration: line-through; cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); }
.chip .sw { width: 18px; height: 18px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.chip small { font-weight: 500; opacity: .7; }

/* ---------------------------------------------------------------- announcement + header */
.ann { position: relative; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; }
.ann .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-right: 48px; text-align: center; }
.ann a, .ann button.link { color: inherit; white-space: nowrap; }
.ann__x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 99px; color: inherit; }
.ann__x:hover { background: rgba(255,255,255,.12); }
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 8px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; margin-right: auto; }
.logo { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--a); color: var(--on-a); font: 800 15px/1 var(--fd); letter-spacing: -.02em; }
.brand__name { display: block; font: var(--fd-w) 18px/1.1 var(--fd); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: var(--fd-case); }
.brand__sub { display: block; font: 500 12px/1.2 var(--fb); color: var(--muted); letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__txt { min-width: 0; }
.nav { display: none; gap: 2px; }
.nav a, .nav button { padding: 8px 12px; border-radius: 99px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav button:hover { background: var(--raise); color: var(--ink); }
.branch-btn { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 99px; background: var(--raise); font-size: 13px; font-weight: 600; max-width: 220px; }
.branch-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.open-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent); flex: none; }
.open-dot.closed { background: var(--muted); box-shadow: none; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 56px 0; }
.sec--tight { padding: 32px 0; }
.sec--alt { background: var(--raise); }
.sec--ink { background: #121211; color: #F3F2EE; --muted: #A4A29B; --line: #2C2C2A; --line-2: #3A3A37; --surface: #1B1B1A; --raise: #232321; --ink: #F3F2EE; --ink-2: #D8D6D0; --bg: #121211; }
.sec__head > * { min-width: 0; max-width: 100%; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec__head h2 { font-size: clamp(28px, 6vw, 48px); }
.sec__head p { color: var(--muted); max-width: 520px; margin-top: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--a); border-radius: 2px; }
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- toolbar (filters + sort) */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .chips { flex: 1 1 100%; min-width: 0; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 36px 0 14px; border-radius: 99px; border: 0; background: var(--raise); font-size: 14px; font-weight: 500; cursor: pointer; max-width: 100%; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--raise); font-size: 14px; font-weight: 500; cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--a); margin: 0; }
.result-count { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: var(--card-ratio, 1 / 1); border-radius: var(--r); overflow: hidden; background: var(--raise); }
.card__media svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.card:hover .card__media svg { transform: scale(1.04); }
.card__badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 1; }
.card__quick { position: absolute; right: 8px; bottom: 8px; z-index: 1; width: 40px; height: 40px; border-radius: 99px; background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.14); transition: transform .2s var(--spring), background .15s; }
.card__quick:hover { transform: scale(1.08); background: var(--a); color: var(--on-a); }
.card__body { padding: 10px 2px 0; display: grid; gap: 3px; min-width: 0; }
.card__name { font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.card__name::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-weight: 600; }
.card__price s { color: var(--muted); font-weight: 400; font-size: 14px; }
.card__meta { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.card__meta.ready { color: var(--a-ink); font-weight: 600; }
.card.out .card__media { opacity: .55; }

/* list rows (menu, pharmacy, grocery) */
.rows { display: grid; gap: 0; }
.row { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row__media { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--raise); }
.row__media svg { width: 100%; height: 100%; }
.row__info { min-width: 0; display: grid; gap: 3px; }
.row__name { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.row__name::after { content: ""; position: absolute; inset: 0; }
.row__desc { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__meta { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.row__act { position: relative; z-index: 1; }
.add-sm { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .2s var(--spring); }
.add-sm:active { transform: scale(.95); }
.add-sm--a { background: var(--a); color: var(--on-a); }
.stepper { display: inline-flex; align-items: center; height: 40px; border-radius: 99px; background: var(--raise); }
.stepper button { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.stepper button:hover { background: var(--raise-2); }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper.on { background: var(--a); color: var(--on-a); }
.stepper.on button:hover { background: rgba(0,0,0,.12); }
.bar { height: 6px; border-radius: 99px; background: var(--raise-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--a); border-radius: 99px; transition: width .6s var(--ease); }

/* hscroll strips */
.hs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hs::-webkit-scrollbar { display: none; }
.hs > * { scroll-snap-align: start; min-width: 0; }

/* ---------------------------------------------------------------- product page */
.pdp { padding-top: 20px; padding-bottom: 56px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a, .crumbs button { color: var(--muted); text-decoration: none; }
.crumbs a:hover, .crumbs button:hover { color: var(--ink); text-decoration: underline; }
.pdp__grid { display: grid; gap: 24px; }
.gallery { position: relative; min-width: 0; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); background: var(--raise); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; aspect-ratio: var(--pdp-ratio, 1 / 1); scroll-snap-align: start; }
.gallery__slide svg { width: 100%; height: 100%; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.1); transition: width .25s var(--ease), background .2s; }
.gallery__dots i.on { width: 22px; background: #fff; }
.gallery__thumbs { display: none; gap: 10px; margin-top: 10px; }
.gallery__thumbs button { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); opacity: .7; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.gallery__thumbs svg { width: 100%; height: 100%; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 99px; background: var(--surface); color: var(--ink); display: none; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.14); z-index: 1; }
.gallery__nav--p { left: 12px; } .gallery__nav--n { right: 12px; }
.pdp__info { display: grid; gap: 18px; align-content: start; min-width: 0; }
.pdp__title { font-size: clamp(30px, 7vw, 52px); }
.pdp__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 700 26px/1.1 var(--fd); }
.pdp__price s { font: 400 17px var(--fb); color: var(--muted); }
.pdp__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--raise); font-size: 14px; line-height: 1.45; }
.note--a { background: var(--soft); }
.note--warn { background: var(--warn-bg); color: var(--warn); }
.note--info { background: var(--info-bg); color: var(--info); }
.note .ico { margin-top: 1px; }
.note strong { font-weight: 700; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.opt legend { padding: 0; font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: baseline; width: 100%; justify-content: space-between; }
.opt legend span { font-weight: 500; color: var(--muted); }
.opt .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.qty button { width: 46px; height: 54px; display: grid; place-items: center; font-size: 20px; border-radius: var(--r-btn); }
.qty button:hover { background: var(--raise); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts h3 { font: 600 15px/1.3 var(--fb); letter-spacing: 0; text-transform: none; display: flex; gap: 8px; align-items: center; }
.facts p, .facts li { color: var(--muted); font-size: 14.5px; }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-radius: var(--r-sm); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.specs dt, .specs dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.specs dt { color: var(--muted); background: var(--raise); }
.specs dt:nth-last-of-type(1), .specs dd:last-of-type { border-bottom: 0; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-buy.on { transform: none; }
.sticky-buy__txt { min-width: 0; flex: 1; }
.sticky-buy__txt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__txt span { font-size: 13px; color: var(--muted); }
.related { margin-top: 48px; }

/* ---------------------------------------------------------------- layers: drawer + modal */
.layer { position: fixed; inset: 0; z-index: 100; display: none; }
.layer.open { display: block; }
.scrim { position: absolute; inset: 0; background: rgba(12, 12, 10, .5); opacity: 0; transition: opacity .25s; }
.layer.in .scrim { opacity: 1; }
.drawer { position: absolute; top: 0; bottom: 0; right: 0; width: min(440px, 100%); background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s var(--ease); box-shadow: var(--shadow-pop); }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); width: min(360px, 88%); }
.layer.in .drawer { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); min-height: 64px; }
.drawer__head h2 { font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; background: var(--surface); }
.modal { position: absolute; left: 50%; top: 50%; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-pop); transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .28s var(--ease), opacity .2s; overscroll-behavior: contain; }
.modal--wide { width: min(760px, calc(100% - 32px)); }
.layer.in .modal { transform: translate(-50%, -50%); opacity: 1; }
.modal__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 22px; }
.modal__body { padding: 20px 22px 24px; display: grid; gap: 16px; }
.close { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; flex: none; }
.close:hover { background: var(--raise); }

/* menu drawer */
.mnav { display: grid; gap: 2px; }
.mnav a, .mnav button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 18px/1.2 var(--fd); text-align: left; width: 100%; }
.mnav__label { font: 600 11px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; }
.mnav--small a, .mnav--small button { font: 500 15px/1.2 var(--fb); padding: 11px 4px; }

/* search */
.search-field { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 14px; background: var(--raise); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 17px; height: 100%; }
.search-field:focus-within { box-shadow: 0 0 0 2px var(--a); background: var(--surface); }
.results { display: grid; gap: 4px; }
.result { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-align: left; width: 100%; }
.result:hover, .result:focus-visible { background: var(--raise); }
.result .row__media { width: 52px; height: 52px; }
.result b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.result mark { background: var(--soft-2); color: inherit; border-radius: 3px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; }

/* cart */
.cart-empty { text-align: center; padding: 48px 8px; display: grid; gap: 12px; justify-items: center; }
.cart-empty .bubble { width: 84px; height: 84px; border-radius: 99px; background: var(--soft); display: grid; place-items: center; color: var(--a-ink); }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__media { width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; background: var(--raise); }
.line__media svg { width: 100%; height: 100%; }
.line__top { display: flex; justify-content: space-between; gap: 8px; }
.line__name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.line__opts { font-size: 13px; color: var(--muted); }
.line__ready { font-size: 12.5px; color: var(--a-ink); font-weight: 600; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.line .stepper { height: 34px; }
.line .stepper button { width: 34px; height: 34px; font-size: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 0; border-radius: 12px; background: var(--raise); padding: 12px 14px; font-weight: 400; font-size: 15px; outline: 0; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 2px var(--a); background: var(--surface); }
.field textarea { resize: vertical; min-height: 72px; }
.field small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.sums { display: grid; gap: 6px; font-size: 14.5px; }
.sums > div { display: flex; justify-content: space-between; gap: 12px; }
.sums .tot { font: 700 18px/1.3 var(--fd); padding-top: 6px; border-top: 1px dashed var(--line-2); }
.honest { font-size: 13px; color: var(--muted); line-height: 1.45; display: flex; gap: 8px; }
.freeship { display: grid; gap: 6px; font-size: 13px; }

/* wa compose */
.wa-preview { background: var(--raise); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.wa-bubble { justify-self: end; max-width: 92%; background: var(--surface); border-radius: 14px 14px 4px 14px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.06); overflow-wrap: anywhere; }
.code-big { font: 800 34px/1 var(--fd); letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.linkbox { font-size: 12.5px; padding: 10px 12px; border-radius: 10px; background: var(--raise); overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; color: var(--muted); }
.linkbox a { color: var(--ink); }
.steps { display: grid; gap: 8px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--muted); }
.steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 99px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------------------------------------------------------------- info, reviews, faq, policies */
.info-grid { display: grid; gap: 16px; }
.panel { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel h3 { font-size: 20px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.hours dt { color: var(--muted); margin: 0; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .today { color: var(--ink); font-weight: 700; }
.zones { display: grid; gap: 0; font-size: 14px; }
.zones li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.zones li:last-child { border-bottom: 0; }
.zones span:last-child { white-space: nowrap; }
.radio-list { display: grid; gap: 8px; }
.radio-card { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; text-align: left; width: 100%; }
.radio-card[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--raise); }
.radio-card .dot { width: 22px; height: 22px; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--line-2); margin-top: 1px; }
.radio-card[aria-checked="true"] .dot { box-shadow: inset 0 0 0 7px var(--ink); }
.radio-card b { display: block; }
.radio-card span { font-size: 13.5px; color: var(--muted); }
.reviews { display: grid; gap: 12px; }
.review { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.review q { font: 500 18px/1.4 var(--fd); letter-spacing: -.01em; quotes: "\201C" "\201D"; }
.review footer { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.av { width: 34px; height: 34px; border-radius: 99px; background: var(--raise-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--ink); flex: none; }
.stars { display: flex; gap: 2px; color: var(--a); }
.sample-tag { font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-bg); border-radius: 99px; padding: 4px 10px; }
.faq { display: grid; gap: 0; }
.faq > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.faq h3 { font: 600 17px/1.35 var(--fb); letter-spacing: 0; text-transform: none; }
.faq p { color: var(--muted); }
.optin { display: grid; gap: 20px; align-items: center; background: var(--a); color: var(--on-a); border-radius: calc(var(--r) + 8px); padding: 32px 24px; position: relative; overflow: hidden; }
.optin h2 { font-size: clamp(30px, 6vw, 54px); }
.optin p { opacity: .85; max-width: 520px; }
.optin .btn { background: var(--on-a); color: var(--a); }
.optin__deco { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 99px; border: 40px solid currentColor; opacity: .08; pointer-events: none; }
.policy { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.policy h1 { font-size: clamp(34px, 7vw, 56px); margin-bottom: 8px; }
.policy h2 { font-size: 22px; margin: 28px 0 8px; }
.policy p, .policy li { color: var(--ink-2); margin-bottom: 10px; }
.policy ul { list-style: disc; padding-left: 20px; }
.policy .edit-note { margin: 16px 0 8px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.size-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 8px; }

/* ---------------------------------------------------------------- footer */
.foot { background: #121211; color: #EDECE7; padding: 56px 0 28px; margin-top: 0; }
.foot a, .foot button { color: #EDECE7; text-decoration: none; }
.foot a:hover, .foot button:hover { text-decoration: underline; }
.foot__grid { display: grid; gap: 32px; }
.foot__brand p { color: #A4A29B; max-width: 380px; margin-top: 12px; font-size: 14.5px; }
.foot h3 { font: 600 12px/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: #8C8A83; margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; font-size: 14.5px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 99px; display: grid; place-items: center; background: #232321; transition: background .15s, transform .2s var(--spring); }
.socials a:hover { background: var(--a); color: var(--on-a); transform: translateY(-2px); text-decoration: none; }
.foot__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2C2C2A; display: flex; gap: 12px 20px; justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: #8C8A83; }
.powered { display: inline-flex; align-items: center; gap: 6px; color: #A4A29B !important; }
.powered b { color: #EDECE7; letter-spacing: .04em; font-weight: 700; }

/* ---------------------------------------------------------------- floating */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); transition: transform .25s var(--ease), bottom .25s var(--ease); }
.fab:hover { transform: translateY(-2px); }
body.has-sticky .fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
.tryc { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 31; }
body.has-sticky .tryc { bottom: calc(86px + env(safe-area-inset-bottom)); }
.tryc__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border-radius: 99px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 26px -8px rgba(0,0,0,.3), inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.tryc__dots { display: inline-grid; grid-template-columns: repeat(2, 12px); gap: 2px; padding: 4px; }
.tryc__dots i { width: 12px; height: 12px; border-radius: 99px; }
.tryc__panel { position: absolute; left: 0; bottom: 54px; width: 252px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 14px; display: none; gap: 12px; }
.tryc.open .tryc__panel { display: grid; }
.tryc__panel p { font-size: 12px; color: var(--muted); }
.tryc__sw { display: flex; gap: 8px; }
.tryc__sw button { width: 40px; height: 40px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.tryc__sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--raise); border-radius: 99px; padding: 3px; }
.seg button { height: 34px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.toast { position: fixed; left: 50%; width: max-content; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 150; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-pop); transition: opacity .2s, transform .3s var(--spring); }
body.has-sticky .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: inherit; text-decoration: underline; font-weight: 700; white-space: nowrap; }
.proto-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ================================================================ TEMPLATE HEROES ================================================================ */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(46px, 13vw, 128px); line-height: .92; overflow-wrap: normal; }
.hero__inner > div { grid-template-columns: minmax(0, 1fr); }
.hero__lede { font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.45; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 14px; }
.hero__stats span { display: inline-flex; align-items: center; gap: 8px; }
.hero__art { position: relative; min-width: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; width: fit-content; max-width: 100%; }
.status-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- restaurant: warm, loud, edible */
body[data-t="restaurant"] { --fd: "Bricolage Grotesque", "Inter Tight", sans-serif; --fd-w: 800; --fd-track: -0.045em; --r: 22px; --bg: #FFF8EF; --raise: #F8EBDA; --raise-2: #F0DDC6; --line: #EEDFCB; --line-2: #DCC7AC; --surface: #FFFDF9; }
:root[data-theme="dark"] body[data-t="restaurant"] { --bg: #140F0B; --raise: #221A13; --raise-2: #2E241B; --line: #2E251D; --line-2: #42362A; --surface: #1B1510; }
.t-rest .hero { background: var(--a); color: var(--on-a); }
.t-rest .hero .hero__lede { color: inherit; opacity: .85; }
.t-rest .hero h1 em { font-style: normal; display: inline-block; padding: 0 .12em; background: var(--on-a); color: var(--a); border-radius: .18em; transform: rotate(-2deg); }
.t-rest .hero .btn--a { background: var(--on-a); color: var(--a); }
.t-rest .hero .btn--ghost { color: var(--on-a); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--on-a) 50%, transparent); }
.t-rest .plate-spin { width: min(100%, 520px); margin: 0 auto; aspect-ratio: 1; border-radius: 999px; animation: spin 60s linear infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.t-rest .plate-spin svg { width: 100%; height: 100%; border-radius: 999px; }
@keyframes spin { to { transform: rotate(360deg); } }
.t-rest .sticker { position: absolute; display: grid; place-items: center; text-align: center; width: 128px; height: 128px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 800 15px/1.1 var(--fd); padding: 14px; transform: rotate(-12deg); right: 4%; top: 2%; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.t-rest .sticker b { font-size: 30px; display: block; }
.daytabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.daytabs::-webkit-scrollbar { display: none; }
.daytab { flex: none; display: grid; gap: 2px; justify-items: center; min-width: 64px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--muted); }
.daytab b { font: 800 20px/1 var(--fd); color: var(--ink); }
.daytab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.daytab[aria-selected="true"] b { color: var(--bg); }
.daymenu { display: grid; gap: 12px; margin-top: 18px; }
.dish { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); align-items: center; }
.dish .row__media { width: 96px; height: 96px; border-radius: 999px; }
.dish h3 { font-size: 21px; }
.dish__line { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.dish__foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; position: relative; z-index: 1; }
.dish .bar { width: 100%; max-width: 180px; }
.cutoff { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- fashion: editorial, black and white with the accent as a flash */
body[data-t="fashion"] { --fd: "Bodoni Moda", "Playfair Display", Georgia, serif; --fd-w: 600; --fd-track: -0.02em; --r: 2px; --r-sm: 2px; --r-btn: 0px; --card-ratio: 3 / 4; --pdp-ratio: 4 / 5; --bg: #F6F4EF; --raise: #ECE8E0; --raise-2: #E0DACF; --surface: #FBFAF7; }
:root[data-theme="dark"] body[data-t="fashion"] { --bg: #0D0D0C; --raise: #1A1917; --raise-2: #26241F; --surface: #141413; }
body[data-t="fashion"] .chip, body[data-t="fashion"] .select select, body[data-t="fashion"] .toggle, body[data-t="fashion"] .stepper, body[data-t="fashion"] .add-sm, body[data-t="fashion"] .card__quick, body[data-t="fashion"] .badge { border-radius: 0; }
body[data-t="fashion"] .brand__name { font-style: italic; font-size: 22px; }
.t-fash .hero__inner { padding-top: 24px; }
.t-fash .hero h1 { font-size: clamp(54px, 16vw, 150px); line-height: .84; letter-spacing: -.04em; }
.t-fash .hero h1 i { font-style: italic; color: var(--a); }
.t-fash .collage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.t-fash .collage > div { overflow: hidden; background: var(--raise); }
.t-fash .collage > div:first-child { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.t-fash .collage > div:not(:first-child) { aspect-ratio: 1; }
.t-fash .collage svg { width: 100%; height: 100%; }
.marquee { overflow: hidden; border-block: 1px solid var(--ink); white-space: nowrap; font: italic 600 clamp(22px, 4vw, 40px)/1 var(--fd); padding: 14px 0; }
.marquee__in { display: inline-flex; gap: 40px; padding-right: 40px; animation: mq 28s linear infinite; }
.marquee__in span::after { content: "\2726"; margin-left: 40px; color: var(--a); font-style: normal; }
@keyframes mq { to { transform: translateX(-50%); } }
.look { position: relative; display: grid; gap: 12px; }
.look__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--raise); }
.look__img svg { width: 100%; height: 100%; }
.look__no { position: absolute; left: 12px; top: 10px; font: italic 600 54px/1 var(--fd); color: #fff; mix-blend-mode: difference; }
.look__items { font-size: 13px; color: var(--muted); }
#lookbook .hs { grid-auto-columns: minmax(240px, 80%); }

/* ---------- beauty: soft, glossy, playful */
body[data-t="beauty"] { --fd: "Fraunces", Georgia, serif; --fd-w: 600; --fd-track: -0.035em; --r: 28px; --r-sm: 18px; --bg: #FFF7F5; --raise: #F9E9E5; --raise-2: #F2DAD4; --line: #F0DEDA; --line-2: #E1C7C0; --surface: #FFFDFC; }
:root[data-theme="dark"] body[data-t="beauty"] { --bg: #150F0F; --raise: #231919; --raise-2: #2F2222; --line: #2F2424; --line-2: #463535; --surface: #1C1414; }
.t-beau .hero { background: radial-gradient(120% 90% at 85% 10%, var(--soft-2), transparent 60%), radial-gradient(90% 80% at 0% 100%, var(--soft), transparent 60%); }
.t-beau .hero h1 { font-weight: 500; font-size: clamp(48px, 12vw, 120px); }
.t-beau .hero h1 i { font-style: italic; font-weight: 300; }
.t-beau .stage { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; border-radius: 999px; background: radial-gradient(circle at 50% 40%, var(--surface), var(--soft-2)); overflow: hidden; }
.t-beau .stage svg { width: 100%; height: 100%; transition: filter .4s; }
.shades { display: flex; gap: 10px; flex-wrap: wrap; }
.shade { width: 44px; height: 44px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .2s var(--spring); }
.shade:hover { transform: scale(1.1); }
.shade[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.routine { position: relative; display: grid; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); align-content: start; }
.routine__arts { display: flex; }
.routine__arts > div { width: 84px; height: 84px; border-radius: 99px; overflow: hidden; background: var(--raise); box-shadow: 0 0 0 4px var(--surface); }
.routine__arts > div + div { margin-left: -18px; }
.routine__arts svg { width: 100%; height: 100%; }
.routine h3 { font-size: 26px; }
.routine ol { display: grid; gap: 4px; font-size: 14px; color: var(--muted); counter-reset: r; }
.routine ol li::before { counter-increment: r; content: "Step " counter(r) ". "; color: var(--ink); font-weight: 600; }

/* ---------- salon: dark, gold-free, glamorous with big serif */
body[data-t="salon"] { --fd: "DM Serif Display", Georgia, serif; --fd-w: 400; --fd-track: -0.02em; --r: 18px; --bg: #F5F1EC; --raise: #EAE3DA; --raise-2: #DED4C8; --surface: #FCFAF7; }
:root[data-theme="dark"] body[data-t="salon"] { --bg: #0F0D0C; --raise: #1D1a17; --raise-2: #2A2521; --surface: #161412; }
.t-salon .hero { background: #141210; color: #F5F1EC; --muted: #B3ACA3; --surface: #1F1C19; --line: #2F2B27; --ink: #F5F1EC; --raise: #26221F; }
.t-salon .hero h1 { font-size: clamp(56px, 15vw, 150px); line-height: .9; }
.t-salon .hero h1 span { color: var(--a); font-style: italic; }
.slot-card { background: #F5F1EC; color: #141210; border-radius: 24px; padding: 22px; display: grid; gap: 14px; max-width: 420px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); --muted: #6B645C; --raise: #EAE3DA; --ink: #141210; --bg: #F5F1EC; }
.slot-card .times { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-card .chip { background: #fff; color: #141210; }
.slot-card .chip.on, .slot-card .chip[aria-pressed="true"] { background: #141210; color: #F5F1EC; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px 24px 24px; overflow: hidden; background: #2A2521; max-width: 440px; width: 100%; justify-self: center; }
.portrait svg { width: 100%; height: 100%; }
.svc-group { margin-top: 28px; }
.svc-group h3 { font-size: 30px; margin-bottom: 4px; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc__name { font-weight: 600; font-size: 17px; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.svc__name::after { content: ""; flex: 1; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-4px); min-width: 16px; }
.svc__meta { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); grid-column: 1; }
.svc__price { font: 400 22px/1 var(--fd); white-space: nowrap; text-align: right; }
.svc .btn { grid-column: 2; grid-row: 2; justify-self: end; }
.staff { display: grid; gap: 10px; justify-items: center; text-align: center; }
.staff__ph { width: 100%; aspect-ratio: 3 / 4; border-radius: 140px 140px 18px 18px; overflow: hidden; background: var(--raise); }
.staff__ph svg { width: 100%; height: 100%; }
.staff b { font: 400 22px/1.1 var(--fd); }
.staff span { font-size: 13px; color: var(--muted); }

/* ---------- pharmacy: clinical, calm, search-first */
body[data-t="pharmacy"] { --fd: "Inter Tight", "Inter", sans-serif; --fd-w: 700; --fd-track: -0.035em; --r: 16px; --bg: #F6F8F8; --raise: #EBF0F0; --raise-2: #DDE5E5; --line: #E0E7E7; --line-2: #CBD6D6; --surface: #FFFFFF; }
:root[data-theme="dark"] body[data-t="pharmacy"] { --bg: #0D1112; --raise: #172022; --raise-2: #20292B; --line: #222C2E; --line-2: #33403F; --surface: #131A1B; }
.t-pharm .hero { background: linear-gradient(180deg, var(--soft), var(--bg)); }
.t-pharm .hero h1 { font-size: clamp(40px, 9vw, 84px); line-height: 1; }
.big-search { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 10px 0 20px; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px -20px rgba(0,40,50,.35), inset 0 0 0 1px var(--line); width: 100%; max-width: 680px; text-align: left; color: var(--muted); font-size: 17px; }
.big-search span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big-search .btn { flex: none; }
.rx-card { display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: var(--ink); color: var(--bg); align-content: start; }
.rx-card h2 { font-size: 28px; }
.rx-card p { opacity: .8; }
.rx-card .btn { background: var(--a); color: var(--on-a); white-space: normal; text-align: left; }
.duty { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-tile { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-weight: 600; transition: box-shadow .15s, transform .2s var(--spring); }
.cat-tile:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.cat-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--a); background: var(--soft); }
.cat-tile i { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--a-ink); display: grid; place-items: center; }
.cat-tile small { font-weight: 500; color: var(--muted); }
.trust { display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }

/* ---------- grocery: chunky pop, dense, fast */
body[data-t="grocery"] { --fd: "Archivo Black", "Inter Tight", sans-serif; --fd-w: 400; --fd-track: -0.02em; --fd-case: uppercase; --r: 20px; --bg: #FFFDF5; --raise: #F6F1DD; --raise-2: #ECE5C8; --line: #EEE8D2; --line-2: #DDD5B5; --surface: #FFFFFF; }
:root[data-theme="dark"] body[data-t="grocery"] { --bg: #0F0F0B; --raise: #1E1D16; --raise-2: #2A2920; --line: #2A2920; --line-2: #3B3A2E; --surface: #17170F; }
.t-groc .hero { background: var(--a); color: var(--on-a); }
.t-groc .hero h1 { font-size: clamp(44px, 12vw, 120px); line-height: .9; }
.t-groc .hero .hero__lede { color: inherit; opacity: .85; }
.t-groc .hero .btn--a { background: var(--ink); color: var(--bg); }
.t-groc .hero .btn--ghost { color: var(--on-a); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--on-a) 50%, transparent); }
.snack-pile { position: relative; height: 340px; }
.snack-pile > div { position: absolute; width: 46%; aspect-ratio: 1; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(0,0,0,.25)); }
.snack-pile > div svg { width: 100%; height: 100%; }
.snack-pile > div:nth-child(1) { left: 2%; top: 10%; transform: rotate(-10deg); }
.snack-pile > div:nth-child(2) { left: 30%; top: 0; animation-delay: -1.5s; width: 50%; }
.snack-pile > div:nth-child(3) { right: 0; top: 22%; animation-delay: -3s; }
.snack-pile > div:nth-child(4) { left: 20%; bottom: -6%; animation-delay: -2s; width: 40%; }
@keyframes bob { 50% { translate: 0 -12px; } }
.aisles { position: sticky; top: var(--hdr); z-index: 20; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 0; border-bottom: 1px solid var(--line); }
.usual { display: grid; align-content: start; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.usual__items { display: flex; gap: 8px; flex-wrap: wrap; }
.usual__items span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--raise); font-size: 13.5px; font-weight: 600; }
.usual__items span > div { width: 32px; height: 32px; border-radius: 99px; overflow: hidden; }
.usual__items svg { width: 100%; height: 100%; }
.deal { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--ink); color: var(--bg); }
.deal h3 { font-size: 24px; }
.deal .btn { background: var(--a); color: var(--on-a); }
.deal > div:last-child { aspect-ratio: 1; }
.deal > div:last-child svg { width: 100%; height: 100%; }
body[data-t="grocery"] .rows .row { grid-template-columns: 64px minmax(0, 1fr) auto; }
body[data-t="grocery"] .row__media { width: 64px; height: 64px; }

/* ---------- events: dark luxe, editorial serif */
body[data-t="events"] { --fd: "Cormorant Garamond", Georgia, serif; --fd-w: 600; --fd-track: -0.02em; --r: 4px; --r-sm: 4px; --card-ratio: 4 / 5; --bg: #F4F0EA; --raise: #EAE4DA; --raise-2: #DDD5C8; --surface: #FBF9F5; }
:root[data-theme="dark"] body[data-t="events"] { --bg: #0C0B0A; --raise: #1A1816; --raise-2: #26231F; --surface: #131210; }
.t-ev .hero { background: #0E0D0C; color: #F4F0EA; --muted: #ADA69B; --ink: #F4F0EA; --line: #2E2B27; }
.t-ev .hero h1 { font-size: clamp(54px, 14vw, 156px); line-height: .86; font-weight: 500; }
.t-ev .hero h1 i { color: var(--a); }
.t-ev .hero .btn--ghost { color: #F4F0EA; box-shadow: inset 0 0 0 1.5px #5A554E; }
.arch-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; overflow: hidden; max-width: 460px; width: 100%; justify-self: center; box-shadow: 0 0 0 10px #0E0D0C, 0 0 0 11px #3A3530; }
.arch-frame svg { width: 100%; height: 100%; }
.masonry { columns: 2 160px; column-gap: 12px; }
.masonry button { display: block; width: 100%; margin-bottom: 12px; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--r); text-align: left; }
.masonry svg { width: 100%; height: auto; transition: transform .6s var(--ease); }
.masonry button:hover svg { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 13px; font-weight: 600; }
.pkg { display: grid; gap: 14px; padding: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); align-content: start; }
.pkg.feat { background: var(--ink); color: var(--bg); --muted: color-mix(in oklab, var(--bg) 65%, var(--ink)); }
.pkg h3 { font-size: 34px; }
.pkg__price { font: 600 30px/1 var(--fd); }
.pkg ul { display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.pkg ul li::before { content: "\2014\00a0"; }
.brief { display: grid; gap: 14px; }
.two { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---------- electronics: dark tech, crisp grotesk, spec-forward */
body[data-t="electronics"] { --fd: "Space Grotesk", "Inter Tight", sans-serif; --fd-w: 700; --fd-track: -0.04em; --r: 20px; --bg: #F4F5F7; --raise: #E9EBEF; --raise-2: #DCDFE5; --line: #E1E4E9; --line-2: #CDD2DA; --surface: #FFFFFF; }
:root[data-theme="dark"] body[data-t="electronics"] { --bg: #08090B; --raise: #15171B; --raise-2: #1F2228; --line: #1F2228; --line-2: #2E323A; --surface: #0F1114; }
.t-elec .hero { background: radial-gradient(80% 70% at 75% 40%, color-mix(in oklab, var(--a) 45%, #08090B), #08090B 70%); color: #F4F5F7; --muted: #A2A8B3; --ink: #F4F5F7; --line: #22262D; --surface: #14171B; --raise: #1B1E23; }
.t-elec .hero h1 { font-size: clamp(48px, 13vw, 132px); line-height: .88; }
.t-elec .hero .btn--ghost { color: #F4F5F7; box-shadow: inset 0 0 0 1.5px #3A3F48; }
.t-elec .device { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.t-elec .device svg { width: 100%; height: 100%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.specchips { display: flex; gap: 8px; flex-wrap: wrap; }
.specchips span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: 13px; font-weight: 500; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perk { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.perk b { font-family: var(--fd); font-size: 17px; letter-spacing: -.02em; }
.perk i { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--a-ink); display: grid; place-items: center; }

/* gallery index page */
.gx { padding: 48px 0 80px; }
.gx h1 { font-size: clamp(44px, 9vw, 96px); line-height: .95; }
.gx__grid { display: grid; gap: 16px; margin-top: 36px; }
.gx__card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .25s var(--ease), box-shadow .2s; }
.gx__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 40px -24px rgba(0,0,0,.35); }
.gx__art { aspect-ratio: 16 / 10; overflow: hidden; }
.gx__art svg { width: 100%; height: 100%; }
.gx__txt { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.gx__txt h2 { font-size: 26px; }
.gx__txt p { color: var(--muted); font-size: 14.5px; }
.gx__txt small { font-weight: 600; color: var(--ink-2); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ================================================================ RESPONSIVE (kept last) ================================================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101010; --surface: #181817; --raise: #212120; --raise-2: #2B2B29;
    --ink: #F3F2EE; --ink-2: #D8D6D0; --muted: #A4A29B; --line: #2C2C2A; --line-2: #3A3A37;
    color-scheme: dark;
  }
}
@media (min-width: 560px) {
  .hs { grid-auto-columns: minmax(240px, 44%); }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  :root { --gut: 32px; --hdr: 72px; }
  .sec { padding: 88px 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding-top: 64px; padding-bottom: 80px; }
  .pdp__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pdp__info { position: sticky; top: calc(var(--hdr) + 20px); }
  .gallery__thumbs { display: flex; }
  .gallery__nav { display: grid; }
  .branch-btn { display: inline-flex; }
  .optin { grid-template-columns: minmax(0, 1fr) auto; padding: 48px; }
  .foot__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .hs { grid-auto-columns: minmax(240px, 31%); }
  #lookbook .hs { grid-auto-columns: minmax(240px, 34%); }
  .daymenu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .masonry { columns: 3 200px; }
  .snack-pile { height: 460px; }
  .sticky-buy { display: none; }
  body.has-sticky .fab, body.has-sticky .tryc { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .t-fash .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(46px, 8.6vw, 128px); }
  .t-fash .hero h1 { font-size: clamp(54px, 9.5vw, 150px); }
  .t-salon .hero h1, .t-ev .hero h1 { font-size: clamp(54px, 9.5vw, 150px); }
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .burger { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gx__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar .chips { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .brand__sub { display: none; }
  .fab__txt { display: none; }
  .fab { padding: 0 14px; }
  .tryc__btn > span:last-child { display: none; }
  .tryc__btn { padding: 0 6px; }
}
