/* Storefront: one phone-width column. Categories underneath; the feed and the item page slide over from the right. */
:root {
  --bg: #ECEEF1; --surface: #FFFFFF; --ink: #15171C; --muted: #5B6270; --line: #D3D8E0; --soft: #E3E6EB;
  --like: #FF4D6D;
  --feed-bg: #0B0C10; --media-ink: #FFFFFF; --media-dim: rgba(255, 255, 255, .76); --glass: rgba(10, 12, 16, .42);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F1114; --surface: #181B20; --ink: #ECEEF2; --muted: #9AA2AF; --line: #2A2F37; --soft: #22262D; color-scheme: dark; }
}
/* Shape tokens the themes change. */
:root { --tile-radius: 18px; --price-radius: 4px 10px 10px 4px; --price-rotate: -2deg; --brand-size: 26px; --brand-weight: 700; --brand-case: none; --brand-spacing: -.01em; }

/* Themes, chosen by the store (html[data-look]). The feed itself stays dark in every theme. */
[data-look="night"] { --bg: #0E0F13; --surface: #17191F; --ink: #EEF0F4; --muted: #9AA1AE; --line: #2A2E36; --soft: #20232A; color-scheme: dark; }
[data-look="boutique"] {
  --bg: #F3F3F1; --surface: #FFFFFF; --ink: #121212; --muted: #686868; --line: #DEDEDA; --soft: #E9E9E5;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --tile-radius: 2px; --price-radius: 0; --price-rotate: 0deg; --brand-size: 36px; --brand-weight: 600; --brand-spacing: 0;
}
@media (prefers-color-scheme: dark) {
  [data-look="boutique"] { --bg: #0E0E0E; --surface: #171717; --ink: #F1F1EE; --muted: #9C9C98; --line: #2B2B29; --soft: #1F1F1E; }
}
[data-look="sport"] {
  --bg: #101215; --surface: #1A1D22; --ink: #F5F6F8; --muted: #A3A9B4; --line: #2C3138; --soft: #23272D; color-scheme: dark;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --tile-radius: 6px; --price-radius: 2px; --price-rotate: -4deg; --brand-size: 34px; --brand-weight: 700; --brand-case: uppercase; --brand-spacing: .02em;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); overflow: hidden; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--tag); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

#app { position: relative; height: 100%; max-width: 480px; margin: 0 auto; overflow: hidden; background: var(--bg); }
@media (min-width: 520px) { #app { border-inline: 1px solid var(--line); } }
.screen { position: absolute; inset: 0; }
.anim { transition: transform .32s cubic-bezier(.2, .8, .2, 1); }

/* Categories */
#cats { overflow-y: auto; }
.cats-inner { display: flex; flex-direction: column; gap: 20px; padding: max(20px, env(safe-area-inset-top)) var(--gutter-r) max(32px, env(safe-area-inset-bottom)) var(--gutter-l); }
.cats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cats-head > div { min-width: 0; }
.brand { font-family: var(--display); font-size: var(--brand-size); font-weight: var(--brand-weight); text-transform: var(--brand-case); line-height: 1.1; letter-spacing: var(--brand-spacing); overflow-wrap: anywhere; }
.logo { display: block; max-height: 56px; max-width: 200px; object-fit: contain; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.fav-chip { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 12px; font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.fav-chip svg { width: 18px; height: 18px; stroke: var(--like); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border: 0; border-radius: var(--tile-radius); overflow: hidden; padding: 14px; text-align: left; color: var(--media-ink); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; background: #2a2f38; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 55%); }
.tile.all { background: var(--tag); color: var(--tag-ink); }
.tile.all::after { display: none; }
.tile b { font-family: var(--display); font-size: 17px; font-weight: 600; text-transform: var(--brand-case); line-height: 1.2; overflow-wrap: anywhere; }
.tile span { font-size: 13px; opacity: .8; }
.tile:active { transform: scale(.98); }
.hint { color: var(--muted); font-size: 13px; }
.made-on { color: var(--muted); font-size: 12px; text-align: center; text-decoration: none; padding: 8px 0; }
.made-on:hover { text-decoration: underline; }
.closed { padding: 48px 8px; text-align: center; display: grid; gap: 10px; color: var(--muted); }
.closed b { color: var(--ink); font-size: 18px; }
.empty-store { grid-column: 1 / -1; padding: 40px 12px; text-align: center; color: var(--muted); }

/* Feed */
#feed { background: var(--feed-bg); color: var(--media-ink); user-select: none; -webkit-user-select: none; z-index: 2; transform: translateX(100%); }
#track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: none; }
#track::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.media { position: absolute; inset: 0; background: #1b1e25; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .8) 0, rgba(0, 0, 0, 0) 50%), linear-gradient(to bottom, rgba(0, 0, 0, .45) 0, rgba(0, 0, 0, 0) 18%); pointer-events: none; }
.info { position: absolute; left: 0; right: 68px; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: max(26px, calc(env(safe-area-inset-bottom) + 12px)); padding-left: var(--gutter-l); }
.price { position: relative; background: var(--tag); color: var(--tag-ink); font-family: var(--display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; padding: 5px 12px 5px 22px; border-radius: var(--price-radius); transform: rotate(var(--price-rotate)); margin-bottom: 6px; white-space: nowrap; }
.price::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--feed-bg); }
.price small { font-family: var(--body); font-size: 14px; font-weight: 600; margin-right: 4px; }
.title { font-size: 20px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.meta { color: var(--media-dim); font-size: 14px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .25); }
.more { margin-top: 8px; display: flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 8px 14px 8px 10px; color: var(--media-ink); font-weight: 600; font-size: 14px; }
.more svg { width: 16px; height: 16px; }
.more small { color: var(--media-dim); font-weight: 400; }
.rail { position: absolute; bottom: max(26px, calc(env(safe-area-inset-bottom) + 12px)); right: max(8px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rail button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--glass); color: var(--media-ink); display: grid; place-items: center; }
.rail svg { width: 24px; height: 24px; }
.rail [aria-pressed="true"] svg, .d-top [aria-pressed="true"] svg, .d-like[aria-pressed="true"] svg { fill: var(--like); stroke: var(--like); }
.end, .loading-slide { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); background: radial-gradient(120% 80% at 50% 30%, #222632 0, var(--feed-bg) 70%); }
.end h2 { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.end p, .loading-slide p { color: var(--media-dim); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 14px 18px; font-weight: 600; border: 0; min-height: 50px; }
.btn svg { width: 18px; height: 18px; }
.btn-tag { background: var(--tag); color: var(--tag-ink); }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: var(--media-ink); }
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: var(--gutter-r); pointer-events: none; }
.topbar button { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--glass); color: var(--media-ink); display: grid; place-items: center; }
.topbar svg { width: 22px; height: 22px; }
.topbar b { font-family: var(--display); font-size: 16px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
#feed-search svg { width: 20px; height: 20px; }
.coach { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(5, 6, 9, .62); transition: opacity .3s; }
.coach.gone { opacity: 0; pointer-events: none; }
.coach div { display: grid; gap: 14px; background: rgba(20, 22, 28, .92); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 20px 22px; max-width: calc(100% - 48px); }
.coach p { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.coach i { font-style: normal; font-family: var(--display); font-size: 18px; width: 28px; text-align: center; color: var(--tag); }

/* Item page */
#detail { background: var(--surface); color: var(--ink); overflow-y: auto; touch-action: pan-y; z-index: 5; transform: translateX(100%); }
.d-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: var(--gutter-r); background: var(--surface); border-bottom: 1px solid var(--line); }
.d-top button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.d-top svg { width: 22px; height: 22px; }
.d-top b { flex: 1; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--soft); }
.hero img, .hero video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 8px; padding-top: 10px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); overflow-x: auto; scrollbar-width: none; }
.thumbs button { width: 56px; height: 56px; flex: none; border-radius: 10px; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.d-body { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; padding-bottom: max(32px, env(safe-area-inset-bottom)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.d-body h1 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.d-body .price { align-self: flex-start; }
.d-body .price::before { background: var(--surface); }
.picker { display: grid; gap: 14px; }
.picker fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.picker legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.picker legend b { color: var(--ink); }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.value { min-width: 48px; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; }
.value[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.value:disabled { color: var(--muted); border-style: dashed; text-decoration: line-through; cursor: default; opacity: .6; }
.stock { font-size: 14px; color: var(--muted); }
.stock.out { color: #c4323e; }
.buy { width: 100%; }
.buy:disabled { background: var(--soft); color: var(--muted); cursor: default; }
.digital-note { font-size: 14px; color: var(--muted); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs div { background: var(--surface); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.specs small { color: var(--muted); font-size: 12px; }
.specs bdi { font-weight: 600; overflow-wrap: anywhere; }
.desc { line-height: 1.55; max-width: 65ch; white-space: pre-line; }
.d-hint { color: var(--muted); font-size: 13px; text-align: center; }

/* Cart buttons */
.chips { display: flex; gap: 8px; flex-shrink: 0; }
.cart-chip svg { stroke: currentColor; }
.cart-btn { position: relative; }
.cart-btn small, .d-top .cart-btn small { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--tag); color: var(--tag-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* Cart, checkout and order status */
#checkout { background: var(--bg); color: var(--ink); overflow-y: auto; z-index: 6; transform: translateX(100%); }
.co-body { display: grid; gap: 16px; padding-top: 16px; padding-bottom: max(32px, env(safe-area-inset-bottom)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.co-body > * { min-width: 0; }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 14px; }
.co-card h2 { font-size: 16px; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.line img, .line .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--soft); display: block; }
.line b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line small { display: block; color: var(--muted); font-size: 13px; }
.line .sum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; padding: 0; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.qty .remove { width: auto; padding: 0 8px; margin-left: 6px; font-weight: 500; color: var(--muted); border-color: transparent; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 6px; position: relative; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.field textarea { min-height: 80px; resize: vertical; }
.field small { color: var(--muted); font-size: 13px; }
.suggest { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); max-height: 240px; overflow-y: auto; display: grid; gap: 2px; }
.suggest:empty { display: none; }
.suggest button { width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 8px; line-height: 1.3; }
.suggest button:hover, .suggest button:focus-visible { background: var(--soft); }
.picked { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-weight: 600; }
.picked button { border: 0; background: none; color: var(--muted); text-decoration: underline; padding: 4px; flex-shrink: 0; }
.pay { display: grid; gap: 8px; }
.pay label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.pay label:has(input:checked) { border-color: var(--ink); }
.pay label:has(input:disabled) { opacity: .5; cursor: default; }
.pay input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.pay b { display: block; }
.pay small { color: var(--muted); }
.co-error { color: #c4323e; font-size: 14px; }
.co-error:empty { display: none; }
.co-empty { text-align: center; color: var(--muted); padding: 32px 8px; display: grid; gap: 14px; justify-items: center; }
.btn-ink { background: var(--ink); color: var(--surface); }
.done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.done h2 { font-family: var(--display); font-size: 24px; }
.done p { color: var(--muted); max-width: 36ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; color: var(--muted); }
.steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); justify-self: center; }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on::before { background: var(--tag); border-color: var(--tag); }
.steps li.off { text-decoration: line-through; }

.toast { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 9; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .anim, .coach, .toast { transition: none; } }

/* The like button sits beside the price on the item page. */
.d-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-like { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.d-like svg { width: 22px; height: 22px; }

/* Search: a screen between the categories and the feed */
.search-chip { padding: 8px 10px; }
.search-chip svg { stroke: var(--ink); }
#search { background: var(--bg); color: var(--ink); overflow-y: auto; z-index: 1; transform: translateX(100%); }
.s-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: var(--gutter-r); background: var(--bg); }
.s-back { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.s-back svg, .s-clear svg { width: 22px; height: 22px; }
.s-field { position: relative; flex: 1; min-width: 0; }
.s-field input { width: 100%; height: 46px; padding: 0 44px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; }
.s-field input::-webkit-search-cancel-button { display: none; }
.s-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; }
.s-body { display: flex; flex-direction: column; gap: 14px; padding: 6px var(--gutter-r) max(32px, env(safe-area-inset-bottom)) var(--gutter-l); }
.s-note { color: var(--muted); font-size: 14px; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s-item { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; background: none; text-align: left; color: var(--ink); min-width: 0; }
.s-pic { position: relative; aspect-ratio: 3 / 4; border-radius: var(--tile-radius); overflow: hidden; background: var(--soft); }
.s-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-item b { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-item span { font-family: var(--display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.s-actions { display: grid; gap: 10px; }
.s-actions .btn-ghost { border-color: var(--line); color: var(--ink); }
.s-item span small { font-family: var(--body); font-size: 13px; font-weight: 600; margin-right: 4px; }

/* Asking the seller on the item page */
.ask-open { width: 100%; }
.ask-form { display: grid; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.ask-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask-done { padding: 14px; border-radius: 14px; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
.ask-form .co-error:empty { display: none; }

/* Choosing the carrier at checkout */
.carrier { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); margin-bottom: 4px; }
.carrier button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; }
.carrier [aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* Store pages: "Про магазин" and, later, the info pages */
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.head-links { display: flex; align-items: center; gap: 0; }
.head-links button { border: 0; background: none; padding: 2px 0; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.head-links button + button::before { content: "·"; color: var(--muted); padding: 0 8px; font-weight: 400; }
.store-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding-top: 4px; }
.store-links button { border: 0; background: none; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
#about { background: var(--surface); color: var(--ink); overflow-y: auto; touch-action: pan-y; z-index: 5; transform: translateX(100%); }
.pg-cover { aspect-ratio: 16 / 10; background: var(--soft); }
.pg-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-body { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; padding-bottom: max(32px, env(safe-area-inset-bottom)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.pg-body h1 { font-family: var(--display); font-size: 26px; line-height: 1.15; font-weight: var(--brand-weight); text-transform: var(--brand-case); overflow-wrap: anywhere; }
/* «Коротко» and «Розповідь» read as one text: same font, size, colour and spacing. */
.pg-lead, .pg-text { font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 65ch; overflow-wrap: anywhere; }
.pg-lead, .pg-text p { margin: 0; }
.pg-text { display: grid; gap: 12px; }
.pg-contacts { display: grid; gap: 12px; }
.pg-contacts h2 { font-size: 17px; font-weight: 700; }
.pg-rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pg-row { display: grid; gap: 2px; padding: 12px 14px; color: inherit; text-decoration: none; }
.pg-row + .pg-row { border-top: 1px solid var(--line); }
.pg-row small { color: var(--muted); font-size: 12px; }
.pg-row b { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
a.pg-row:active { background: var(--soft); }
.pg-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-social { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; min-width: 0; }
.pg-social span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-loading { padding: 40px var(--gutter-r) 0 var(--gutter-l); color: var(--muted); text-align: center; }

/* «Інфо»: documents as an accordion */
#about.over-checkout { z-index: 7; }
#about.over-checkout .cart-btn { visibility: hidden; }
.docs { display: grid; gap: 10px; }
.doc { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.doc summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 14px; font-weight: 700; position: relative; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.doc[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.doc-body { display: grid; gap: 10px; padding: 0 14px 16px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.doc-body h3 { font-size: 15px; margin-top: 8px; }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-table { overflow-x: auto; overflow-wrap: normal; }
.doc-table th, .doc-table td { min-width: 72px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.doc-table th { color: var(--muted); font-weight: 600; }
.co-terms { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.co-terms button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
