/* around.pk design system. One plain CSS file, no build step.
   1 Tokens  2 Base  3 Shell  4 Controls  5 Media and cards  6 Home  7 Store and order  8 Other screens  9 Motion  10 Desktop
   Principles: photography first, white surfaces, one green accent, space instead of borders. Classes style; data-* drive behaviour. */

/* ===== 1. Tokens ===== */
:root {
  --brand: #0a7a52; --brand-press: #08623f; --brand-ink: #07583b; --brand-soft: #e8f4ee;
  --sun: #eea10e;
  --ink: #111916; --ink-2: #333f39; --muted: #6a756f;
  --bg: #fff; --soft: #f4f5f2; --soft-2: #eaece7; --line: #eceee9; --line-strong: #dce0d9;
  --warn-bg: #fff3da; --warn-ink: #754a04; --bad-bg: #fdecea; --bad-ink: #a1271b;
  --r-sm: 12px; --r: 16px; --r-lg: 24px; --r-pill: 999px;
  --lift: 0 1px 2px rgb(17 35 28 / .06), 0 4px 14px -6px rgb(17 35 28 / .14);
  --float: 0 2px 6px rgb(17 35 28 / .05), 0 18px 40px -18px rgb(17 35 28 / .28);
  --font: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1); --fast: .15s; --med: .3s;
  --ribbon: 24px; --top: 64px; --tab: 62px; --gutter: 16px;
  color-scheme: light;
}

/* ===== 2. Base ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-block: 100px 150px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 .9375rem/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; padding-bottom: calc(var(--tab) + 32px + env(safe-area-inset-bottom)); }
body.has-dock { padding-bottom: calc(var(--tab) + 104px + env(safe-area-inset-bottom)); }
h1, h2, h3, p, ul, ol { margin: 0; }
h1 { font-size: 1.875rem; font-weight: 800; line-height: 1.12; letter-spacing: -.032em; text-wrap: balance; }
h2 { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; letter-spacing: -.022em; }
h3 { font-size: .9375rem; font-weight: 700; }
h1:focus { outline: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.meta { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.big { font-size: 1.625rem; font-weight: 800; letter-spacing: -.025em; }
.price { font-weight: 600; white-space: nowrap; }
.was { color: var(--muted); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.grow { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.grow > strong { font-weight: 600; letter-spacing: -.008em; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.link { padding: 0; border: 0; background: none; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 3. Shell ===== */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
main { min-height: 62vh; padding-block: 12px 8px; }
main > * + *, .narrow > * + *, .stack > * + *, .split > div > * + *, .dash-main > * + *, .detail-body > * + * { margin-top: 16px; }
.narrow { max-width: 620px; margin-inline: auto; }
.skip { position: absolute; top: -90px; left: 8px; z-index: 100; padding: 10px 14px; }
.skip:focus { top: 30px; }
.ribbon { position: sticky; top: 0; z-index: 50; height: var(--ribbon); margin: 0; padding-inline: 12px; overflow: hidden; background: var(--warn-bg); color: var(--warn-ink); font-size: .6875rem; line-height: var(--ribbon); text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.ribbon strong { margin-right: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ribbon-more { display: none; }
.top { position: sticky; top: var(--ribbon); z-index: 40; background: var(--bg); }
.top-row { display: flex; align-items: center; gap: 8px; height: var(--top); }
.brand { display: flex; flex: none; align-items: center; gap: 6px; min-height: 44px; font-size: 1.3125rem; font-weight: 800; letter-spacing: -.045em; }
.brand b { color: var(--sun); }
.logo-mark { width: 34px; height: 34px; }
.brand-word { display: none; }
.back-btn:not([hidden]) ~ .brand { display: none; }
.area-pill { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 44px; margin-right: auto; padding-inline: 4px; line-height: 1.2; }
.area-pill small { color: var(--muted); font-size: .6875rem; font-weight: 500; }
.area-line { display: flex; align-items: center; gap: 2px; min-width: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.015em; }
.area-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.icon-btn { position: relative; display: grid; flex: none; place-items: center; width: 42px; height: 42px; border: 0; border-radius: var(--r-pill); background: var(--soft); transition: background-color var(--fast); }
.icon-btn:hover { background: var(--soft-2); }
.icon-btn .ic { width: 21px; height: 21px; }
.count { position: absolute; top: -2px; right: -2px; min-width: 19px; padding-inline: 5px; border: 2px solid var(--bg); border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: .625rem; font-weight: 800; line-height: 15px; text-align: center; }
.headsearch, .topnav { display: none; }
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--bg); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab); color: var(--muted); font-size: .6875rem; font-weight: 500; transition: color var(--fast); }
.tabbar a[aria-current] { color: var(--brand); font-weight: 700; }
.tabbar a[aria-current] .ic { stroke-width: 2.2; }
.nav-ic { display: grid; place-items: center; height: 24px; }
.dock { position: fixed; inset-inline: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); z-index: 35; padding: 12px var(--gutter); background: rgb(255 255 255 / .96); border-top: 1px solid var(--line); }
.dock > * { max-width: 620px; margin-inline: auto; }

/* ===== 4. Controls ===== */
.ic { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 15px; height: 15px; vertical-align: -2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--soft); font-size: .9375rem; font-weight: 700; line-height: 1.2; letter-spacing: -.008em; text-align: center; touch-action: manipulation; transition: transform var(--fast) var(--ease), background-color var(--fast); }
.btn:active { transform: scale(.975); }
.btn:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-press); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: #dbeee4; }
.btn-outline { border-color: var(--line-strong); background: var(--bg); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { color: var(--bad-ink); }
.btn-demo { border: 1.5px dashed var(--line-strong); background: transparent; color: var(--brand-ink); font-weight: 600; }
.btn-glass { background: rgb(255 255 255 / .16); color: #fff; }
.btn-sm { min-height: 40px; padding: 7px 14px; border-radius: 10px; font-size: .8125rem; }
.btn-lg { min-height: 54px; border-radius: 14px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn .price { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions > * { flex: 1 1 140px; }
.actions .note, .actions form { flex-basis: 100%; }
.actions.two > * { flex-basis: 40%; }
.round { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 48px; min-height: 40px; padding: 7px 16px; border: 0; border-radius: var(--r-pill); background: var(--soft); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background-color var(--fast), color var(--fast); }
.chip:hover { background: var(--soft-2); }
.chip[aria-pressed=true], .chip[aria-current=true] { background: var(--ink); color: #fff; }
.chip-strong { background: var(--brand); color: #fff; }
.chip-strong:hover { background: var(--brand-press); }
.chip-off { color: var(--muted); }
.rail { display: flex; gap: 8px; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.chips.rail { flex-wrap: nowrap; }

.field { display: block; }
.field > span, legend { display: block; margin-bottom: 7px; font-size: .8125rem; font-weight: 600; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1.5px solid transparent; border-radius: var(--r-sm); background: var(--soft); font-size: 1rem; transition: border-color var(--fast), background-color var(--fast); }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: var(--brand); background: var(--bg); outline: none; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { flex: none; width: 22px; height: 22px; accent-color: var(--brand); }
fieldset { min-width: 0; margin: 0; }
fieldset.bare { padding: 0; border: 0; }
fieldset.card > legend { float: left; width: 100%; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; }
fieldset.card > legend + * { clear: both; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 56px; padding-block: 8px; cursor: pointer; }
.choice > span { display: flex; flex-direction: column; min-width: 0; }
.choice > span > strong { font-weight: 600; }
.choice small { color: var(--muted); font-size: .8125rem; }
.choice:has(input:disabled) { opacity: .45; cursor: default; }
.list > .choice { padding: 10px 16px; }
.choice.card { padding: 16px; }
.inline { display: flex; align-items: center; gap: 8px; }
.inline > input:not([type=hidden]), .inline > select { flex: 1; }
.searchbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 16px; border: 1.5px solid transparent; border-radius: var(--r-pill); background: var(--soft); color: var(--muted); }
.searchbar input:not([type=checkbox]) { flex: 1; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); }
.searchbar:focus-within { border-color: var(--brand); background: var(--bg); }
.searchbar input:focus-visible { outline: 0; }
.searchbar-sticky { position: sticky; top: calc(var(--ribbon) + var(--top) + 4px); z-index: 20; box-shadow: 0 0 0 6px var(--bg); }
.switch { position: relative; display: inline-grid; flex: none; place-items: center; width: 52px; height: 44px; }
.switch input[type=checkbox] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: relative; width: 48px; height: 28px; border-radius: var(--r-pill); background: #b4bcb6; pointer-events: none; transition: background-color var(--med); }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--lift); transition: transform var(--med) var(--ease); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.mini { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; }
.mini input:not([type=checkbox]) { width: 88px; min-height: 44px; padding-inline: 10px; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 7px; background: var(--soft); color: var(--ink-2); font-size: .6875rem; font-weight: 600; line-height: 1.5; }
.tag .ic-sm { width: 13px; height: 13px; stroke-width: 2.4; }
.tag-ok, .tag-brand { background: var(--brand-soft); color: var(--brand-ink); }
.tag-warn, .tag-accent { background: var(--warn-bg); color: var(--warn-ink); }
.tag-bad { background: var(--bad-bg); color: var(--bad-ink); }
.tag-sample { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); font-weight: 500; }
.rating { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--soft); font-size: .8125rem; font-weight: 700; }
.rating .ic-sm { width: 13px; height: 13px; fill: var(--sun); stroke: var(--sun); }
.rating small { color: var(--muted); font-size: .625rem; font-weight: 500; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: .875rem; line-height: 1.5; }
.note-info { background: var(--brand-soft); color: var(--brand-ink); }
.note-warn { background: var(--warn-bg); color: var(--warn-ink); }
.note-bad { background: var(--bad-bg); color: var(--bad-ink); }

/* ===== 5. Media, cards, lists ===== */
.ph { position: relative; display: grid; place-items: center; width: 100%; overflow: hidden; border-radius: var(--r); background: linear-gradient(140deg, var(--t1, #eef0ec), var(--t2, #e2e6df)); color: var(--tc, #8a958e); }
.ph > .ic { width: 34px; height: 34px; stroke-width: 1.35; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tone-buy { --t1: #eef3ee; --t2: #dfe9e1; --tc: #6f8c7c; }
.tone-health { --t1: #eef3f5; --t2: #dde8ec; --tc: #6a8892; }
.tone-home { --t1: #f6f2ea; --t2: #ece4d6; --tc: #968565; }
.tone-go { --t1: #f1f0f4; --t2: #e3e1ea; --tc: #7f7a96; }
.credit { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 2px 8px; overflow: hidden; border-radius: var(--r-pill); background: rgb(10 18 14 / .55); color: #fff; font-size: .625rem; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.sq { flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); }
.sq > .ic { width: 24px; height: 24px; }
.sq-lg { width: 72px; height: 72px; }
.sq .credit { display: none; }
.r-cover { aspect-ratio: 16 / 9; }
.r-guide { aspect-ratio: 16 / 9; }
.r-square { aspect-ratio: 1; }
.r-feature { aspect-ratio: 4 / 3; }
.banner { height: 188px; border-radius: var(--r-lg); }

.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.pad { padding: 18px; }
.pad > * + *, form.pad > * + * { margin-top: 14px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.cards-media { gap: 18px 16px; }
.cards-media { align-items: stretch; }
.vcard { display: block; min-width: 0; }
.vcard:active .ph { transform: scale(.985); }
.vcard .ph { transition: transform var(--fast) var(--ease); }
.vmedia { position: relative; display: block; }
.vmedia.is-closed .ph { filter: grayscale(.7); opacity: .65; }
.flag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: .6875rem; font-weight: 700; }
.flag-dim { background: rgb(10 18 14 / .72); }
.vbody { display: flex; flex-direction: column; gap: 2px; padding: 11px 2px 0; }
.vtitle { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vtitle > strong { min-width: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -.018em; overflow-wrap: anywhere; }
.vbody .price { color: var(--ink); }
.page-head + p { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; text-align: left; transition: background-color var(--fast); }
a.row:hover, button.row:hover { background: var(--soft); }
button.row[aria-pressed=true] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card.pad.row-wrap > * + * { margin-top: 0; }
.row-wrap .grow { flex-basis: 60%; }
.thumb { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--ink-2); }
.thumb-xl { width: 76px; height: 76px; border-radius: var(--r-lg); }
.thumb-xl .ic { width: 34px; height: 34px; }
.mono { display: grid; flex: none; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.125rem; font-weight: 800; letter-spacing: .01em; }
.mono-xl { width: 96px; height: 96px; font-size: 1.75rem; }
.list { overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.pad > .line { padding-inline: 0; padding-block: 8px; }
.pad > .line + .line { margin-top: 0; }
a.line:hover { background: var(--soft); }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.kv > span { min-width: 5.6em; color: var(--muted); overflow-wrap: break-word; }
.kv > strong { min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.pad > .kv + .kv { margin-top: 8px; }
.kv.total { padding-top: 12px; border-top: 1px solid var(--line); }
.pad > .kv.total { margin-top: 12px; }
.kv.total > span { color: var(--ink); font-weight: 700; }
.kv.total > strong { font-size: 1.125rem; font-weight: 800; }
.struck { opacity: .5; text-decoration: line-through; }
.empty { padding: 44px 16px; text-align: center; }
.empty > * + * { margin-top: 12px; }
.empty-ic { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--soft); color: var(--muted); }
.empty-ic .ic { width: 34px; height: 34px; stroke-width: 1.4; }
.empty .muted { max-width: 34ch; margin-inline: auto; }
.block { margin-top: 36px; }
.block > * + * { margin-top: 14px; }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.more { display: inline-flex; align-items: center; min-height: 36px; color: var(--brand); font-size: .875rem; font-weight: 700; }
.page-head > * + * { margin-top: 6px; }
.page-head .muted { font-size: 1rem; }
.skeleton { border-color: var(--line); }
.sk { display: block; border-radius: 8px; background: var(--soft); animation: sk 1.1s ease-in-out infinite alternate; }
.sk-pic { flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); }
.sk-line { width: 78%; height: 13px; margin-block: 4px; }
.sk-short { width: 42%; }

/* Shop and offer cards: large image, name, one line, a calm meta row */
.scard { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); box-shadow: 0 1px 2px rgb(17 35 28 / .04), 0 10px 26px -18px rgb(17 35 28 / .22); transition: box-shadow var(--med), transform var(--fast) var(--ease); }
.scard:active { transform: scale(.985); }
.scard .ph { border-radius: 0; }
.scard-body { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 14px 16px 12px; }
.tagline { overflow: hidden; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.scard .tagline { white-space: nowrap; text-overflow: ellipsis; }
.scard-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-inline: 16px; padding-block: 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .8125rem; }
.scard-meta > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; min-width: 0; }
.scard-meta i { color: var(--line-strong); font-style: normal; }
.scard-meta .price { font-weight: 700; }
.verified, .timeleft { display: inline-flex; flex: none; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; }
.verified { color: var(--brand); }
.vtitle .verified .ic-sm { width: 16px; height: 16px; stroke-width: 2.2; }
.timeleft { color: var(--warn-ink); }
.deal { position: absolute; bottom: 12px; left: 12px; padding: 6px 12px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .9375rem; font-weight: 800; letter-spacing: -.01em; box-shadow: var(--lift); }
.deal-sm { top: 8px; bottom: auto; left: 8px; padding: 3px 8px; border-radius: 8px; font-size: .6875rem; }
.sponsored { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: rgb(255 255 255 / .94); color: var(--ink-2); font-size: .6875rem; font-weight: 700; }
.ocard .credit { display: none; }
.follow { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--bg); font-size: .8125rem; font-weight: 700; }
.follow[aria-pressed=true] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.follow[aria-pressed=true] .ic { fill: currentColor; }
.prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 4px; }
.prices > .price { font-size: 1rem; font-weight: 700; }
.on-offer > .price { color: var(--brand); }
.item-text .timeleft { align-self: flex-start; }

/* Category pills with a small image */
.cpills { gap: 10px; padding-block: 4px 6px; }
.cpill { display: flex; flex: none; align-items: center; gap: 9px; min-height: 48px; padding: 6px 18px 6px 7px; border-radius: var(--r-pill); background: var(--soft); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background-color var(--fast); }
.cpill:hover { background: var(--soft-2); }
.cpill .ph { width: 36px; height: 36px; border-radius: 50%; }
.cpill .ph > .ic { width: 20px; height: 20px; stroke-width: 1.6; }
.cpill .credit { display: none; }
.pill-offer { background: var(--brand); color: #fff; }
.cpill[aria-current=true] { background: var(--ink); color: #fff; }

/* ===== 6. Home and discovery ===== */
.searchdock { position: sticky; top: calc(var(--ribbon) + var(--top)); z-index: 30; display: flex; align-items: center; gap: 10px; height: 50px; padding-inline: 18px; border-radius: var(--r-pill); background: var(--soft); box-shadow: 0 0 0 8px var(--bg); color: var(--muted); font-weight: 500; }
.lead { display: grid; gap: 24px; }
.lead-text { display: grid; gap: 10px; align-content: center; }
.lead h1 { max-width: 17ch; margin-top: 8px; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.036em; }
.lead-sub { color: var(--muted); font-size: .875rem; }
.searchbar-lead, .lead-photo { display: none; }
.live { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); box-shadow: var(--float); }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s ease-out infinite; }
.live-go { padding: 8px 14px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: .8125rem; font-weight: 700; }
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.feature-tile { display: flex; flex-direction: column; min-width: 0; }
.feature-tile strong { margin-top: 10px; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -.018em; }
.feature-tile .meta { font-size: .8125rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
.tile { display: flex; flex-direction: column; gap: 7px; min-width: 0; text-align: center; }
.tile > span:last-child { font-size: .75rem; font-weight: 600; line-height: 1.25; letter-spacing: -.008em; }
.tile .ph > .ic { width: 28px; height: 28px; }
.tile .credit, .feature-tile .credit { display: none; }
.cardrail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 14px; scroll-snap-type: x mandatory; padding-bottom: 18px; margin-bottom: -14px; }
.cardrail > * { scroll-snap-align: start; }
.dirstrip { display: grid; gap: 14px; padding: 22px 18px; border-radius: var(--r-lg); background: var(--soft); }
main > .dirstrip { margin-top: 36px; }
.dirstrip .chip { background: var(--bg); }
.dirstrip .chip-strong { background: var(--brand); }
.promo { display: grid; overflow: hidden; border-radius: var(--r-lg); background: var(--soft); }
main > .promo { margin-top: 36px; }
.promo-ph { height: 180px; border-radius: 0; }
.promo-body { display: grid; gap: 12px; justify-items: start; padding: 22px 18px 24px; }
.promo-body p { color: var(--ink-2); }

.types { gap: 6px; }
.type { display: flex; flex: none; flex-direction: column; align-items: center; gap: 6px; width: 78px; font-size: .75rem; font-weight: 600; line-height: 1.25; text-align: center; }
.type > span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--soft); transition: background-color var(--fast); }
.type:hover > span { background: var(--brand-soft); }
.type .ic { width: 27px; height: 27px; stroke-width: 1.5; }
.slot-new { display: grid; gap: 8px; justify-items: start; }
.slot-new > :last-child { width: 100%; }

/* Directory */
.listings { display: grid; grid-template-columns: minmax(0, 1fr); }
.listing { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.listing-main { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; padding-block: 14px; }
.dircats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dircats a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border-radius: var(--r); background: var(--soft); font-size: .875rem; font-weight: 600; line-height: 1.3; }
.dircats a:hover { background: var(--brand-soft); }
.bizhead, .profile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 12px 4px; text-align: center; }
.narrow > .bizhead + *, .narrow > .profile + * { margin-top: 16px; }
.profile .actions { align-self: stretch; margin-top: 8px; }
.claim { display: grid; gap: 10px; padding: 22px 18px; border-radius: var(--r-lg); background: var(--brand-soft); }
.claim p { color: var(--ink-2); }

/* Travel search */
.segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--soft); }
.segment a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: var(--r-pill); font-size: .875rem; font-weight: 600; }
.segment a[aria-selected=true] { background: var(--bg); box-shadow: var(--lift); color: var(--brand-ink); }
.segment .ic { width: 19px; height: 19px; }
.searchcard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: var(--r-lg); box-shadow: var(--float); }
.searchcard > .field:nth-of-type(3), .searchcard > .btn { grid-column: 1 / -1; }
.trip { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow var(--med); }
.trip .grow > strong { font-size: 1.0625rem; font-weight: 700; }
.trip-fare { display: flex; flex: none; flex-direction: column; align-items: flex-end; }
.trip-fare small { color: var(--muted); font-size: .6875rem; }
.trip-fare .price { font-weight: 800; }
.coming { display: grid; gap: 8px; text-align: center; }

/* ===== 7. Store, item, cart, order ===== */
.cover { margin-inline: calc(-1 * var(--gutter)); }
.cover-ph { height: 232px; border-radius: 0; }
.cover-ph > .ic { width: 52px; height: 52px; }
.cover .credit { bottom: 52px; right: 12px; }
.storecard { position: relative; z-index: 2; padding: 20px 18px 16px; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--float); text-align: center; }
.cover + .storecard { margin-top: -44px; }
.storecard h1 { font-size: 1.625rem; }
.storecard > .meta { margin-top: 6px; }
.storecard .tags { justify-content: center; margin-top: 10px; }
.open { color: var(--brand); font-weight: 700; }
.shut { color: var(--bad-ink); font-weight: 700; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.trio > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-inline: 4px; }
.trio > div + div { border-left: 1px solid var(--line); }
.trio strong { font-size: .9375rem; font-weight: 700; letter-spacing: -.015em; }
.trio strong .price { font-weight: 700; }
.trio span:not(.price) { color: var(--muted); font-size: .6875rem; line-height: 1.35; }
.menubar { position: sticky; top: calc(var(--ribbon) + var(--top)); z-index: 25; margin-inline: calc(-1 * var(--gutter)); border-bottom: 1px solid var(--line); background: var(--bg); }
.tabrail { display: flex; gap: 6px; padding: 10px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.mtab { flex: none; min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background-color var(--med), color var(--med); }
.mtab[aria-current=true] { background: var(--ink); color: #fff; }
.menu-sec { scroll-margin-top: calc(var(--ribbon) + var(--top) + 66px); }
.menu-sec + .menu-sec { margin-top: 32px; }
.items { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 4px; }
.item { display: flex; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.item-text { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.item-text strong { font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }
.item-text > .price { margin-top: auto; padding-top: 4px; font-size: 1rem; font-weight: 700; }
.item-side { position: relative; flex: none; width: 112px; align-self: flex-start; }
.item-side > a { display: block; }
.item-ph { width: 112px; height: 112px; border-radius: 14px; }
.item-ph .credit { display: none; }
.item-ctl { position: absolute; right: -4px; bottom: -8px; }
.plus { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--float); color: var(--brand); transition: transform var(--fast) var(--ease); }
.plus .ic { stroke-width: 2.4; }
.plus:active { transform: scale(.88); }
.pillbtn { min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--float); color: var(--brand); font-size: .8125rem; font-weight: 700; }
.item-ctl .tag { box-shadow: var(--lift); }
.stepper { display: inline-flex; flex: none; align-items: center; border-radius: var(--r-pill); background: var(--brand); box-shadow: var(--lift); color: #fff; animation: pop .22s var(--ease); }
.stepper button { display: grid; place-items: center; width: 40px; height: 42px; border: 0; background: transparent; color: inherit; }
.stepper .ic { width: 19px; height: 19px; stroke-width: 2.4; }
.stepper output { min-width: 20px; font-weight: 800; text-align: center; }
.searchbar-shop { margin-top: 14px; }
.side { display: none; }
.cartbar { position: fixed; inset-inline: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); z-index: 36; padding: 10px var(--gutter) 12px; background: linear-gradient(rgb(255 255 255 / 0), #fff 45%); }
.cartbar a { display: flex; align-items: center; gap: 12px; max-width: 620px; min-height: 56px; margin-inline: auto; padding: 0 18px 0 12px; border-radius: var(--r); background: var(--brand); box-shadow: var(--float); color: #fff; font-weight: 700; animation: up var(--med) var(--ease); }
.cartbar b { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 10px; background: rgb(255 255 255 / .2); font-size: .875rem; }
.cartbar span:not(.price) { flex: 1; font-size: 1rem; }
.cartbar .price { font-weight: 800; }

.detail { display: grid; }
.detail-media { height: 320px; margin-inline: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); border-radius: 0; }
.detail-media > .ic { width: 64px; height: 64px; }
.detail-media .credit { bottom: 36px; }
.detail-body { position: relative; margin-top: -24px; margin-inline: calc(-1 * var(--gutter)); padding: 24px var(--gutter) 8px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--bg); animation: up .38s var(--ease); }
.detail-body > h1 { font-size: 1.625rem; }
.detail-body > h1 + * { margin-top: 6px; }
.detail-price { font-size: 1.5rem; }
.detail-price .price { font-weight: 800; letter-spacing: -.02em; }
.facts { border-top: 1px solid var(--line); }
.facts > .kv { padding-block: 14px; border-bottom: 1px solid var(--line); }
.buy { display: flex; gap: 12px; align-items: center; }
.buy > .btn { flex: 1; }
.buy > .stepper { min-height: 54px; }

.cartshop { padding-bottom: 8px; }
.narrow > .cartshop + .cartshop { margin-top: 28px; padding-top: 24px; border-top: 8px solid var(--soft); }
.cartshop > * + * { margin-top: 10px; }
.cartshop > .line { padding-inline: 0; border-bottom: 1px solid var(--line); margin-top: 0; padding-block: 14px; }
.narrow fieldset.card h3 { margin-top: 18px; }
.seller { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.seller strong { color: var(--ink-2); font-weight: 600; }

.status { display: flex; align-items: center; gap: 16px; padding: 6px 0 4px; }
.status > div { display: grid; flex: 1; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.eyebrow { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.status-art { display: grid; flex: none; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.status-art .ic { width: 34px; height: 34px; stroke-width: 1.5; }
.status-bad .status-art { background: var(--bad-bg); color: var(--bad-ink); }
.meter { height: 6px; margin-top: 8px; overflow: hidden; border-radius: var(--r-pill); background: var(--soft-2); }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .6s var(--ease); }
.timeline { padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 40px; color: var(--muted); }
.timeline li:not(:last-child)::after { content: ''; position: absolute; top: 28px; left: 7px; width: 2px; height: 24px; background: var(--line-strong); }
.timeline .dot { flex: none; width: 16px; height: 16px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--bg); }
.timeline li.done { color: var(--ink); }
.timeline li.done .dot { border-color: var(--brand); background: var(--brand); }
.timeline li.done:not(:last-child)::after { background: var(--brand); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now .dot { border: 5px solid var(--brand); }
.code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); }
.code span { display: flex; flex-direction: column; font-weight: 700; }
.code small { color: var(--muted); font-weight: 400; }
.code strong { font-size: 1.625rem; font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { align-self: flex-start; max-width: 85%; padding: 10px 14px; border-radius: 18px; background: var(--soft); overflow-wrap: anywhere; }
.msg small { display: block; color: var(--muted); font-size: .625rem; font-weight: 700; }
.msg-me { align-self: flex-end; background: var(--brand-soft); }
.alert-card { border: 2px solid var(--sun); background: #fffbf2; }
.payline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: .8125rem; font-weight: 600; }

/* ===== 8. Other screens ===== */
.store-head { display: flex; align-items: center; gap: 14px; }
.card.pad.store-head > * + * { margin-top: 0; }
.infocard { display: flex; gap: 14px; }
.banner + .infocard { margin-top: 16px; }
.infocard h1 { font-size: 1.625rem; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow var(--med), transform var(--med) var(--ease); }
.doc .grow > strong { font-size: 1.0625rem; font-weight: 700; }
.doc-spec { color: var(--brand); font-size: .875rem; font-weight: 600; }
.doc-foot { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc-foot > span:not(.btn) { display: flex; flex-direction: column; font-size: .875rem; }
.doc-foot small { color: var(--muted); font-size: .6875rem; }
.doc-foot b { font-weight: 600; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.slot { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; min-height: 46px; padding: 8px 14px; border: 0; border-radius: var(--r-sm); background: var(--soft); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot[aria-pressed=true] { background: var(--ink); color: #fff; }
.slot.off { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: #8d968f; text-decoration: line-through; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border: 0; background: var(--brand-soft); }
.card.pad.cta > * + * { margin-top: 0; }
.cta p { color: var(--ink-2); font-size: .875rem; }
.btn-accent { background: var(--brand); color: #fff; }
.feature-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.prose { max-width: 660px; margin-inline: auto; }
.prose > * + * { margin-top: 18px; }
.prose > p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.progress { display: flex; gap: 5px; padding: 0; list-style: none; }
.progress li { position: relative; flex: 1; min-width: 0; height: 5px; border-radius: var(--r-pill); background: var(--soft-2); transition: background-color var(--med); }
.progress li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.progress li.done { background: var(--brand); }
.progress li.now { background: var(--ink); }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input[type=radio] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick > span { display: flex; flex-direction: column; gap: 6px; height: 100%; text-align: center; pointer-events: none; }
.pick strong { font-size: .75rem; font-weight: 600; line-height: 1.25; }
.pick .credit { display: none; }
.pick input:checked + span .ph { box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--brand); }
.pick input:checked + span strong { color: var(--brand); font-weight: 800; }
.pick input:focus-visible + span .ph { outline: 3px solid var(--ink); outline-offset: 4px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--soft); text-align: center; cursor: pointer; }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { border-color: var(--brand); }
.drop strong { font-size: 1.125rem; }
.drop-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg); box-shadow: var(--lift); color: var(--brand); }
.bar { height: 6px; overflow: hidden; border-radius: var(--r-pill); background: var(--soft-2); }
.bar i { display: block; height: 100%; background: var(--brand); transform-origin: left; animation: fill 1.4s linear both; }
.review { display: grid; grid-template-columns: auto minmax(0, 1fr) 100px; gap: 8px 12px; align-items: end; padding: 14px; }
.review > input[type=checkbox] { align-self: center; width: 24px; height: 24px; }
.review label span { color: var(--muted); font-size: .6875rem; font-weight: 600; }
.review .r-meta { grid-column: 2 / -1; }
.steps-list { display: grid; gap: 12px; padding-left: 20px; }
.plain { display: grid; gap: 14px; padding: 0; list-style: none; }
.plain li { display: flex; gap: 14px; }
.plain .ic { color: var(--brand); }
.success { display: grid; gap: 14px; justify-items: center; padding: 56px 16px; text-align: center; }
.success-tick { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 14px var(--brand-soft); color: #fff; animation: pop .45s var(--ease) both; }
.success-tick .ic { width: 42px; height: 42px; stroke-width: 2.4; }

.dash { display: grid; gap: 16px; }
.dash-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.dash-id { display: flex; align-items: center; gap: 14px; }
.dash-id h1 { font-size: 1.5rem; }
.dash-main { min-width: 0; }
.tabs { display: flex; gap: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding-inline: 14px; border-radius: var(--r-pill); background: var(--soft); font-size: .8125rem; font-weight: 600; }
.tabs .ic { display: none; }
.tabs a[aria-current] { background: var(--ink); color: #fff; }
.alarm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--bad-bg); color: var(--bad-ink); }
.alarm .grow { flex-basis: 150px; font-size: .875rem; }
.alarm .btn { background: var(--bad-ink); color: #fff; }
.alarm .btn-glass { background: var(--bg); color: var(--bad-ink); }
.ring { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--ink); color: #fff; }
.ring .grow > span { color: #b9c4bd; font-size: .78rem; }
.ring-ic { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s ease-out infinite; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.stats .card { display: flex; flex-direction: column; padding: 14px 16px; border: 0; background: var(--soft); }
.stats strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; }
.stats strong .price { font-weight: 800; }
.stats .card > span { color: var(--muted); font-size: .75rem; }
.orders { display: grid; gap: 14px; align-items: start; }
.order-new { border: 2px solid var(--brand); }
.order h2 { font-size: 1.125rem; }
.job-new { border: 2px solid var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.job-flag { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: var(--r-sm); background: var(--brand); color: #fff; font-size: 1.125rem; font-weight: 800; }
.route { display: grid; gap: 14px; padding-left: 16px; border-left: 2px solid var(--brand); }
.route p { display: flex; flex-direction: column; font-size: .9375rem; overflow-wrap: anywhere; }
.route small { color: var(--muted); font-size: .6875rem; font-weight: 600; }
.collect { display: grid; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--soft); }
.collect > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.collect p { font-size: 1.25rem; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.collect p .price { font-weight: 800; }
.inbox.unread { border-color: transparent; background: var(--brand-soft); }
.dot-new { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

.toast { position: fixed; inset-inline: var(--gutter); bottom: calc(var(--tab) + 92px); z-index: 60; max-width: 420px; margin-inline: auto; padding: 14px 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; box-shadow: var(--float); font-size: .875rem; font-weight: 600; text-align: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--med), transform var(--med) var(--ease), visibility var(--med); pointer-events: none; }
.toast.show { opacity: 1; visibility: visible; transform: none; }
.headsup { position: fixed; top: calc(var(--ribbon) + 8px); inset-inline: 10px; z-index: 55; max-width: 440px; margin-inline: auto; opacity: 0; visibility: hidden; transform: translateY(-18px); transition: opacity var(--med), transform var(--med) var(--ease), visibility var(--med); }
.headsup.show { opacity: 1; visibility: visible; transform: none; }
.headsup a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--bg); box-shadow: var(--float), 0 0 0 1px var(--line); font-size: .8125rem; }
.headsup small { color: var(--brand); font-size: .625rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.sheet { width: 100%; max-width: 480px; max-height: 90vh; margin: auto auto 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; border: 0; border-radius: 28px 28px 0 0; color: var(--ink); box-shadow: var(--float); }
.sheet[open] { animation: sheet .34s var(--ease); }
.sheet::backdrop { background: rgb(9 18 14 / .5); }
.sheet::before { content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: var(--line-strong); }
.sheet > * + * { margin-top: 16px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-sample { color: var(--muted); font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

/* Store and item pages on phones: the photo runs to the top and the controls float over it. */
@media (max-width: 899px) {
  body.immersive .top { position: absolute; inset-inline: 0; background: none; }
  body.immersive .area-pill, body.immersive .brand { visibility: hidden; }
  body.immersive .area-pill { flex: 1; }
  body.immersive .icon-btn { background: rgb(255 255 255 / .95); box-shadow: var(--lift); }
  body.immersive main { padding-top: 0; }
  body.immersive .menubar { top: var(--ribbon); }
  body.immersive .menu-sec { scroll-margin-top: calc(var(--ribbon) + 66px); }
}

/* ===== 9. Motion: opacity and transform only ===== */
main.enter > :not(.dock):not(.cartbar):not(.detail) { animation: rise .34s var(--ease) backwards; }
main.enter > :nth-child(3) { animation-delay: .04s; } main.enter > :nth-child(n+4) { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: .4; transform: scale(.8); } }
@keyframes sk { to { opacity: .45; } }
@keyframes fill { from { transform: scaleX(.04); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(10 122 82 / .5); } 100% { box-shadow: 0 0 0 12px rgb(10 122 82 / 0); } }
@media (hover: hover) {
  .scard:hover { box-shadow: var(--float); }
  .scard:hover .ph img, .vcard:hover .ph img, .tile:hover .ph img, .feature-tile:hover .ph img { transform: scale(1.045); }
  .vcard:hover .ph, .tile:hover .ph, .feature-tile:hover .ph { filter: brightness(.975); }
  .vcard:hover .vtitle strong { color: var(--brand-ink); }
  .doc:hover { box-shadow: var(--float); transform: translateY(-2px); }
  .trip:hover { box-shadow: var(--float); }
  .plus:hover { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== 10. Wider screens ===== */
@media (min-width: 600px) {
  .ribbon-more { display: inline; }
  .brand-word { display: inline; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .dircats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats-2 { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: 1fr 1fr; }
  .promo-ph { height: 100%; min-height: 260px; }
  .promo-body { align-content: center; padding: 32px; }
  .banner { height: 260px; }
  .sheet { margin: auto; border-radius: 28px; }
  .sheet::before { display: none; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --top: 80px; }
  body, body.has-dock { padding-bottom: 72px; }
  main { padding-top: 20px; }
  .top { border-bottom: 1px solid var(--line); }
  .top-row { gap: 14px; }
  .back-btn:not([hidden]) ~ .brand { display: flex; }
  .area-pill { margin-right: 0; padding: 0 16px; border-left: 1px solid var(--line); }
  .headsearch { display: flex; flex: 1; align-items: center; gap: 10px; max-width: 380px; height: 46px; margin-inline: auto; padding-inline: 18px; overflow: hidden; border-radius: var(--r-pill); background: var(--soft); color: var(--muted); font-size: .875rem; white-space: nowrap; }
  body[data-page=home] .headsearch, body[data-page=search] .headsearch { visibility: hidden; }
  .tabbar { display: none; }
  .topnav { display: flex; gap: 2px; }
  .topnav a { display: flex; align-items: center; min-height: 42px; padding-inline: 14px; border-radius: var(--r-pill); color: var(--ink-2); font-size: .875rem; font-weight: 600; }
  .topnav .nav-ic { display: none; }
  .topnav a:hover { background: var(--soft); }
  .topnav a[aria-current] { background: var(--ink); color: #fff; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.625rem; }
  .block, main > .dirstrip, main > .promo { margin-top: 64px; }
  .block > * + * { margin-top: 20px; }
  .searchdock { display: none; }
  .lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-block: 12px 8px; }
  .lead h1 { margin: 0; font-size: 3.75rem; line-height: 1.02; letter-spacing: -.048em; }
  .lead-text { gap: 20px; }
  .lead-sub { font-size: 1.125rem; }
  .searchbar-lead { display: flex; min-height: 62px; max-width: 480px; padding-inline: 24px; }
  .lead-photo { display: grid; height: 400px; border-radius: 32px; }
  .lead-photo > .ic { width: 72px; height: 72px; }
  main > .live { margin-top: 28px; }
  .featured { gap: 20px; }
  main > .cpills { margin-top: 40px; }
  .cpills { display: grid; grid-auto-flow: column; grid-auto-columns: 118px; gap: 16px; overflow-x: auto; }
  .cpill { flex-direction: column; gap: 10px; padding: 0; border-radius: var(--r); background: none; white-space: normal; text-align: center; }
  .cpill:hover { background: none; }
  .cpill .ph { width: 118px; height: 96px; border-radius: 18px; }
  .cpill .ph > .ic { width: 34px; height: 34px; stroke-width: 1.4; }
  .cpill:hover .ph { filter: brightness(.96); }
  .cpill[aria-current=true] { background: none; color: var(--brand-ink); font-weight: 800; }
  .cpill[aria-current=true] .ph { box-shadow: 0 0 0 3px var(--brand); }
  .feature-tile strong { margin-top: 14px; font-size: 1.25rem; }
  .feature-tile .meta { font-size: .9375rem; }
  .tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px 18px; }
  .tile > span:last-child { font-size: .875rem; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .cards-media { gap: 28px 24px; }
  .rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .chips.rail { flex-wrap: wrap; }
  .cardrail { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; }
  .cardrail-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; overflow: visible; }
  .dirstrip { grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; padding: 36px 40px; }
  .banner { height: 320px; border-radius: 28px; }
  .searchcard { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; padding: 22px; }
  .searchcard > .field:nth-of-type(3), .searchcard > .btn { grid-column: auto; }
  .cover { margin-inline: 0; }
  .cover-ph { height: 340px; border-radius: 28px; }
  .cover .credit { top: 14px; right: 14px; bottom: auto; }
  .storecard { max-width: 760px; margin-inline: auto; padding: 28px 32px 22px; }
  .cover + .storecard { margin-top: -96px; }
  .storecard h1 { font-size: 2.25rem; }
  .menubar { margin-inline: 0; }
  .tabrail { padding-inline: 0; }
  main > .menubar { margin-top: 32px; }
  .searchbar-shop { max-width: 380px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .split > div > .menu-sec:first-child { margin-top: 0; }
  .split .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
  .split .item { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow var(--med); }
  .split .item:hover { box-shadow: var(--float); }
  .split .item-ctl { right: -6px; bottom: -6px; }
  .split .item-side, .split .item-ph { width: 104px; }
  .split .item-ph { height: 104px; }
  .side { position: sticky; top: calc(var(--ribbon) + var(--top) + 80px); display: block; padding: 22px; border-radius: var(--r-lg); box-shadow: var(--float); }
  .cartbar { display: none; }
  .detail { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 12px; }
  .detail-media { width: 100%; height: 520px; margin: 0; border-radius: 32px; }
  .detail-media .credit { bottom: 14px; right: 14px; }
  .detail-body { margin: 0; padding: 0; animation: none; }
  .detail-body > h1 { font-size: 2.25rem; }
  .split:not(.side) { align-items: start; }
  .dash { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .dash-side { position: sticky; top: calc(var(--ribbon) + var(--top) + 20px); align-self: start; }
  .tabs { flex-direction: column; margin: 0; padding: 0; }
  .tabs a { flex: none; justify-content: flex-start; min-height: 48px; padding-inline: 16px; background: transparent; font-size: .9375rem; }
  .tabs a:hover { background: var(--soft); }
  .tabs a[aria-current] { background: var(--ink); }
  .tabs .ic { display: block; width: 19px; height: 19px; }
  .dash-main > .stats:first-child { margin-top: 0; }
  .orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock { display: none; }
  .dock.dock-always { position: sticky; bottom: 0; inset-inline: auto; display: block; padding-inline: 0; border: 0; }
  .detail-body .dock.dock-always { position: static; padding-top: 8px; }
  .searchbar-sticky { max-width: 620px; }
  .toast { bottom: 32px; }
  .headsup { top: calc(var(--ribbon) + var(--top) + 10px); inset-inline: auto 24px; width: 400px; }
}
