/* Market: the souq as the whole site. Cream plaster pages, terracotta for buying, indigo for the map and the
   seller's side, brass for lanterns, deals and the lucky egg. Lane colours come from theme.js as --lane-<id>.
   Phone-first; the map rail appears at 1100px. */
:root {
  --bg: #f3e8d7; --bg-2: #e9dbc5; --surface: #f8efe2; --card: #fbf5ea; --field: #fffbf4;
  --ink: #2b2320; --ink-2: #4b4038; --muted: #6e6259; --line: #dfd0b9; --line-2: #cbb79a;
  --terra: #b4552f; --terra-ink: #9a4525; --terra-soft: #f3ddd0;
  --indigo: #2e3d6b; --indigo-ink: #25325a; --indigo-soft: #dfe2ee;
  --brass: #b8862e; --brass-ink: #7a5612; --brass-soft: #f3e3bf;
  --ok: #336d50; --bad: #a3402a; --bad-bg: #f8e6df;
  --shadow-rgb: 60 40 20;
  --f-body: "Figtree", "Noto Kufi Arabic", system-ui, sans-serif;
  --f-display: "Fraunces", Georgia, serif;
  --f-latin-display: "Fraunces", Georgia, serif;
  --hdr: 64px; --tab: 60px; --bar: 72px; --sb: env(safe-area-inset-bottom, 0px); --gut: 16px;
  --r-s: 10px; --r: 16px; --r-l: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: var(--indigo);
  /* the souq map */
  --map-plan: #ede0ca; --map-walk: #e0cfb3;
  /* the logo (art.js LOGO) */
  --logo-house: #2e3d6b; --logo-egg: #f8efe2; --logo-shine: #b8862e;
  /* the drawn egg (egg.js) */
  --egg-shell-lit: #fffaf1; --egg-shell: #f3e7d3; --egg-shell-shade: #ddc9aa; --egg-speck: #a77d55; --egg-speck-dark: #8a6646; --egg-speck-deal: #c9a24a; --egg-crack: #8a6646;
  /* material spools */
  --mat-pla: #b8862e; --mat-petg: #2e3d6b;
  /* "See it in your room" (shared/room-view) */
  --rv-bg: #f3e8d7; --rv-surface: #f8efe2; --rv-text: #2b2320; --rv-muted: #6e6259; --rv-line: #dfd0b9;
  --rv-accent: #2e3d6b; --rv-accent-text: #ffffff; --rv-radius: 18px; --rv-font: var(--f-body); --rv-font-display: var(--f-display);
  /* drawn product art and vignettes (art.js): combined's tokens, retinted to the market */
  --art-shade-dark: #1e1a16; --art-shade-light: #ffffff; --art-paper: #fbf5ea; --art-white: #fff; --art-black: #000;
  --art-wood: #c9a27a; --art-leaf: #6f8c69; --art-leaf-light: #86a37c; --art-leaf-dark: #5d7a59; --art-glow: #ffd6a0; --art-glow-2: #ffc98a;
  --art-sand: #d8bf94; --art-cream: #fbf6ee; --art-putty: #e9dfcf;
  --art-linen-wall: #efe0c9; --art-linen-light: #f9eedc; --art-linen-deep: #e2d0b4;
  --art-mist-wall: #dbe0ec; --art-mist-light: #eef0f6; --art-mist-deep: #c9cfe1;
  --art-blush-wall: #f0dccf; --art-blush-light: #f9ede4; --art-blush-deep: #e5c9ba;
  --art-oat-wall: #e9dfcc; --art-oat-light: #f6efe2; --art-oat-deep: #dacdb4;
  --art-oak: #d6b18a; --art-oak-edge: #bf946a; --art-oak-dark: #a77d55; --art-ink: #2e2b27; --art-blue: #7f98b8; --art-clay: #d6a28c; --art-pearl: #f3eee6; --art-charcoal: #3b3a3c;
  --art-shadow: #3a2a1a; --art-lantern-light: #ffe3b0; --art-paper-edge: #e3d8c8; --art-box-edge: #b48a60; --art-box: #d8b48c; --art-mustard: #e2c27a; --art-rug: #c7d3e1; --art-cushion: #e6dac6;
  --art-blue-soft: #9db2cb; --art-graphite: #55535a; --art-tile-line: #d4c3ab; --art-globe: #dfe7f1; --art-button: #2e3d6b; --art-knob: #e9d29a; --art-nameplate-edge: #ddd2c0;
  --art-soil: #7a5c43; --art-water: #b9cbe0; --art-falcon-1: #d7bb93; --art-falcon-2: #c3a37a; --art-falcon-3: #ad8d64; --art-falcon-4: #e6d1b0; --art-falcon-5: #9a7b55; --art-falcon-beak: #5b4a36;
  --art-vase: #d9b48f; --art-stem: #bfa47a; --art-pod: #e9dcc3; --art-picture: #2e3d6b; --art-picture-hill: #8fa9c8; --art-dhow-post: #ddd3c3; --art-dhow-hull: #efe9df; --art-dhow-mast: #c7bba8; --art-book-pale: #e2d6c2;
  --art-crow-tail: #2a292b; --art-crow-outline: #262528; --art-crow-wing: #5a585e; --art-crow-beak: #4a4846; --art-pencup: #cf8a6c; --art-stand: #e3d2b8; --art-phone-screen: #33465e; --art-phone-sun: #f3d9b0;
  --art-honey-1: #f1ebe1; --art-honey-2: #e4dacb; --art-honey-3: #ebe3d6; --art-flame: #f2b061; --art-pale-blue: #cfd8e3; --art-window-sky: #cfe0ee; --art-window-hill: #a9bfd6;
  --art-sky-top: #bcd0e4; --art-sky-bottom: #f6e3cb; --art-skyline: #b7c5d4; --art-board: #ead9c2; --art-lamp-beam: #fff3d6; --art-balcony-wall: #f3e2cc; --art-balcony-light: #bfd2e6;
  --art-skyline-2: #c3cfdc; --art-skyline-3: #b3c2d2; --art-terrace: #e4d6c2; --art-glow-soft: #ffe2b6; --art-terracotta: #b4552f; --art-nozzle: #ffb36b; --art-door: #6f8bb0;
}
html[lang="ar"] { --f-body: "Noto Kufi Arabic", "Figtree", system-ui, sans-serif; --f-display: "Noto Kufi Arabic", sans-serif; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.can-smooth { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font: 16px/1.5 var(--f-body);
  background: var(--bg) radial-gradient(120% 50% at 50% -10%, #faf1e3, transparent 60%) no-repeat;
  -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tab) + var(--sb) + 24px);
}
body.has-buybar, body.has-cartbar { padding-bottom: calc(var(--bar) + var(--sb) + 24px); }
body.has-cartbar.is-empty, body.has-cartbar.is-done { padding-bottom: calc(var(--tab) + var(--sb) + 24px); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.005em; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; }
h1 { font-size: clamp(38px, 7vw, 62px); line-height: 1.02; }
p { margin: 0; }
a { color: var(--indigo-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--ink); color: #fff; border-radius: 999px; font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }
.ico { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
.vig { display: block; width: 100%; height: 100%; }
/* keep Latin names in the display serif when the page is Arabic */
html[lang="ar"] :is(.brand__word, .card__name, .oline__name, #pName, .eggd__name, .srow__name, .ckl__name) { font-family: var(--f-latin-display); }
html[lang="ar"] :is(.pr, .sum__v, .buy__price, .price-field, .osum__rows dd, .ex__rows dd) { font-family: "Figtree", var(--f-body); }

/* ---------- layout: one column on phones, the map rail beside the content on desktop ---------- */
main { padding: 0 var(--gut) 24px; }
.sec { margin-top: 44px; scroll-margin-top: calc(var(--hdr) + 12px); }
.sec__head { margin-bottom: 16px; max-width: 60ch; }
.sec__head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.sec__head p { margin-top: 6px; color: var(--muted); }
.rail { display: none; }
@media (min-width: 1100px) {
  .shell { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 1380px; margin-inline: auto; padding-inline: 32px; }
  .rail { display: block; position: sticky; top: calc(var(--hdr) + 20px); }
  .rail__in { background: var(--surface); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; }
  .rail__t { font-size: 18px; margin-bottom: 10px; }
  .rail__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
  main { padding-inline: 0; }
  body, body.has-buybar, body.has-cartbar { padding-bottom: 0; }
  .tabbar, .mapfab, .buybar, .cartbar, .toasts { --off: 1; }
  .tabbar, .mapfab, .buybar, .cartbar { display: none !important; }
}

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgb(243 232 215 / .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgb(var(--shadow-rgb) / .5); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 8px; padding-inline: var(--gut); max-width: 1380px; margin-inline: auto; }
@media (min-width: 1100px) { .hdr__in { padding-inline: 32px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--f-latin-display); font-weight: 600; font-size: 18px; white-space: nowrap; margin-inline-end: auto; min-height: 44px; }
@media (min-width: 480px) { .brand { font-size: 20px; } }
.brand .logo__mark { width: 34px; height: 34px; }
.hdr__nav { display: none; }
.hdr__nav ul { display: flex; gap: 2px; list-style: none; margin: 0 16px 0 0; padding: 0; }
.hdr__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.hdr__nav a:hover { background: var(--bg-2); color: var(--ink); }
.hdr__nav a[aria-current="page"] { background: var(--indigo-soft); color: var(--indigo-ink); }
@media (min-width: 900px) { .hdr__nav { display: block; } .hbtn--search span { display: inline; } }
.hbtn { position: relative; height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; }
.hbtn:hover { background: var(--card); }
.hbtn--search span { display: none; }
.hbtn--lang { font-weight: 700; }
.badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; font-family: "Figtree", sans-serif; }
.badge.is-zero { display: none; }
.badge.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- tab bar, map button, bars (phones and tablets) ---------- */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 4px var(--sb); background: rgb(248 239 226 / .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--line); }
.tab { position: relative; height: var(--tab); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 12px; }
.tab[aria-current="page"] { color: var(--indigo-ink); }
.tab__ico { position: relative; width: 48px; height: 28px; display: grid; place-items: center; border-radius: 999px; }
.tab[aria-current="page"] .tab__ico { background: var(--indigo-soft); }
.tab__ico .badge { top: -4px; inset-inline-end: 2px; }
.mapfab { position: fixed; inset-inline-end: 14px; bottom: calc(var(--tab) + var(--sb) + 14px); z-index: 44; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; background: var(--indigo); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 12px 28px -12px rgb(var(--shadow-rgb) / .6); }
.mapfab:hover { background: var(--indigo-ink); }
body.has-buybar .mapfab, body.has-cartbar .mapfab { bottom: calc(var(--bar) + var(--sb) + 14px); }
body.has-cartbar.is-empty .mapfab, body.has-cartbar.is-done .mapfab { bottom: calc(var(--tab) + var(--sb) + 14px); }
.buybar, .cartbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; min-height: var(--bar); display: flex; align-items: center; gap: 10px; padding: 10px var(--gut) calc(10px + var(--sb)); background: rgb(248 239 226 / .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--line); }
body.has-buybar .tabbar, body.has-cartbar .tabbar { display: none; }
body.has-cartbar.is-empty .tabbar, body.has-cartbar.is-done .tabbar { display: grid; }
body.is-empty .cartbar, body.is-done .cartbar { display: none; }
@media (min-width: 900px) { .buybar { display: none; } body.has-buybar .tabbar { display: grid; } }

/* ---------- buttons, chips, small bits ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background-color .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 10px 20px -12px rgb(180 85 47 / .8); }
.btn--primary:hover { background: var(--terra-ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: var(--surface); }
.btn--soft { background: var(--indigo-soft); color: var(--indigo-ink); }
.btn--soft:hover { background: #d0d6e6; }
.btn--light { background: #fff; color: var(--indigo-ink); }
.btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--icon { width: 48px; padding: 0; }
.btn.is-loading { opacity: .75; }
.btn.is-done { background: var(--ok); }
.iconbtn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--bg-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--line); }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--indigo-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-ink); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.chip .ico { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { margin: 0; min-height: 44px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 0 14px; }
.chips .chip:hover { background: var(--card); }
.lane-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--line-2)); flex: none; }
.mat { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--brass-soft); color: var(--brass-ink); font-family: "Figtree", sans-serif; }
.mat--petg { background: var(--indigo-soft); color: var(--indigo-ink); }
.rates { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-ink); font-size: 12px; font-weight: 700; }
.pr { font-weight: 700; font-variant-numeric: tabular-nums; }
.pr__was { color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.pr__off { color: var(--terra-ink); font-size: .85em; margin-inline-start: 4px; }
.pr--sm { font-size: 14px; }
.pr--hero { font-size: 30px; }
.pr--line { font-size: 17px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); }
.seg button { min-height: 44px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(var(--shadow-rgb) / .2); }
.hint { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgb(43 35 32 / .6); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.hint .ico { width: 16px; height: 16px; }

/* ---------- dialogs: the map sheet, search, the egg ---------- */
.dlg { border: 0; padding: 0; margin: auto; width: min(100% - 32px, 560px); max-height: 90dvh; background: var(--surface); color: var(--ink); border-radius: var(--r-l); box-shadow: 0 30px 70px -20px rgb(var(--shadow-rgb) / .5); overflow: hidden; display: none; flex-direction: column; }
.dlg[open] { display: flex; animation: dlgIn .3s var(--ease); }
.dlg::backdrop { background: rgb(47 38 28 / .45); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 719px) { .dlg { margin: auto 0 0; width: 100%; max-width: none; border-radius: var(--r-l) var(--r-l) 0 0; max-height: 88dvh; padding-bottom: var(--sb); } }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.dlg__title { font-size: 20px; }
.dlg__body { padding: 8px 20px 20px; overflow: auto; }
.dlg__hint { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- the souq map ---------- */
.map { background: var(--map-plan); border-radius: var(--r); padding: 10px; }
.mp { display: block; width: 100%; height: auto; }
.map--sheet { max-width: 360px; margin-inline: auto; }
.mp__walk { fill: var(--map-walk); }
.mp__lamp { fill: var(--brass); }
.mp__node { cursor: pointer; outline: none; }
.mp__block { fill: var(--card); stroke: var(--line-2); stroke-width: 1; transition: fill .15s; }
.mp__stall:hover .mp__block, .mp__gate:hover rect { fill: #fff; }
.mp__node.is-here .mp__block, .mp__gate.is-here rect { stroke: var(--ink); stroke-width: 2; }
.mp__node:focus-visible :is(.mp__block, .mp__studio rect, .mp__gate rect) { stroke: var(--indigo); stroke-width: 3; }
.mp__studio:focus-visible rect, .mp__gate:focus-visible rect, .mp__egg:focus-visible circle { stroke: var(--indigo); stroke-width: 3; }
.mp__name { font: 600 13px var(--f-body); fill: var(--ink); }
.mp__sub { font: 500 10px var(--f-body); fill: var(--muted); }
.mp__no { font: 700 10px "Figtree", sans-serif; }
.mp__name--inv { fill: #fff; }
.mp__sub--inv { fill: #d9def0; }
.mp__studio rect { fill: var(--indigo); }
.mp__studio.is-here rect { stroke: var(--brass); stroke-width: 2.5; }
.mp__egg circle { fill: var(--brass-soft); stroke: var(--brass); stroke-width: 1.5; }
.mp__egg.is-here circle { stroke: var(--ink); stroke-width: 2.5; }
.mp__eggshell { fill: #f8eedc; stroke: #a07b4a; stroke-width: 1; }
.mp__crack { fill: none; stroke: #8a6646; stroke-width: 1.2; stroke-linejoin: round; }
.mp__gate rect { fill: var(--card); stroke: var(--line-2); }
.mp__arch { fill: none; stroke: var(--indigo); stroke-width: 3; }
.mp__pin path { fill: var(--terra); stroke: #fff; stroke-width: 1.5; }
.mp__pinhole { fill: #fff; }
.mp__pulse { fill: var(--terra); opacity: .3; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .45; } 100% { transform: scale(1.6); opacity: 0; } }
.map__here { display: flex; gap: 8px; align-items: center; margin: 10px 2px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.map__here .ico { width: 18px; height: 18px; color: var(--terra); }

/* ---------- search ---------- */
.srch__field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--field); border: 1.5px solid var(--line-2); color: var(--muted); }
.srch__field:focus-within { border-color: var(--indigo); outline: 3px solid var(--indigo); outline-offset: 1px; }
.srch__field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.srch__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.srow { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.srow:hover { background: var(--bg-2); }
.srow__art { width: 60px; height: 48px; border-radius: 8px; overflow: hidden; flex: none; background: var(--bg-2); }
.srow__txt { flex: 1; min-width: 0; display: grid; }
.srow__name { font-weight: 600; }
.srow__by { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.srch__none { margin: 16px 0; color: var(--ink-2); }
.srch__none small { color: var(--muted); }
.srch__k { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- toasts ---------- */
.toasts { position: fixed; inset-inline: 0; bottom: calc(var(--tab) + var(--sb) + 12px); z-index: 60; display: grid; justify-items: center; padding: 0 var(--gut); pointer-events: none; }
body.has-buybar .toasts, body.has-cartbar .toasts { bottom: calc(var(--bar) + var(--sb) + 12px); }
@media (min-width: 1100px) { .toasts { bottom: 24px; justify-items: end; padding: 0 24px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: min(100%, 440px); padding: 10px 12px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -16px rgb(0 0 0 / .5); opacity: 0; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast__art { width: 44px; height: 38px; border-radius: 8px; overflow: hidden; flex: none; }
.toast__txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.toast__txt b { font-size: 15px; }
.toast__txt span { font-size: 13px; color: #d9cfc1; }
.toast__undo, .toast__link { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .14); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- home: hero and alley ---------- */
.hero { padding-top: 20px; }
.hero__copy { max-width: 640px; margin-bottom: 18px; }
.hero__sub { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin: 12px 0 20px; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.alley { position: relative; height: clamp(360px, 58svh, 520px); border-radius: var(--r-l); overflow: hidden; background: linear-gradient(#8fa3c4, #f0bd84 55%, #b8916a); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
@media (min-width: 1100px) { .alley { height: clamp(440px, 58vh, 600px); } }
#alleyPoster, .alley__canvas, .alley__signs { position: absolute; inset: 0; }
.alley__poster { width: 100%; height: 100%; display: block; }
.alley__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.alley__canvas { opacity: 0; transition: opacity .6s; }
.alley.is-live .alley__canvas { opacity: 1; }
.alley.is-live #alleyPoster { opacity: 0; transition: opacity .6s .2s; }
.signbtn { position: absolute; top: 0; left: 0; border: 0; background: transparent; border-radius: 10px; cursor: pointer; transition: box-shadow .15s; }
.signbtn:hover { box-shadow: 0 0 0 2px rgb(255 255 255 / .75); }
.signbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.alley.is-walking .signbtn { pointer-events: none; }

/* ---------- home: the stalls ---------- */
.stalls { display: grid; gap: 28px; }
.stall { position: relative; scroll-margin-top: calc(var(--hdr) + 12px); border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 24px 44px -36px rgb(var(--shadow-rgb) / .5); outline-offset: 4px; --c: var(--indigo); --k: #fff; --s: #fff; }
.stall.is-arrived { animation: arrived 2.2s var(--ease); }
@keyframes arrived { 0%, 60% { box-shadow: 0 0 0 3px var(--c), 0 24px 44px -36px rgb(var(--shadow-rgb) / .5); } }
.stall__awning { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--c); color: var(--k); border-radius: var(--r-l) var(--r-l) 0 0; }
.stall__awning::after { content: ""; position: absolute; inset-inline: 0; bottom: -9px; height: 10px; background: radial-gradient(circle at 50% 0, var(--c) 9px, transparent 10px) 0 0 / 22px 10px repeat-x; }
.stall__no { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--s); color: var(--c); font: 700 15px "Figtree", sans-serif; flex: none; }
.stall__no .ico { width: 18px; height: 18px; }
.stall__name { font-size: clamp(22px, 3vw, 28px); color: inherit; }
.stall__meta { margin-inline-start: auto; font-size: 14px; font-weight: 600; opacity: .92; text-align: end; }
.stall__body { display: grid; gap: 16px; padding: 24px 16px 16px; }
.stall__vig { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 5 / 3; }
.stall__vig figcaption { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; background: rgb(251 245 234 / .94); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.shopfront + .shopfront { margin-top: 20px; }
.shopfront__t { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 17px; }
.shopfront__t::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); align-self: center; }
.shopfront__t small { color: var(--muted); font: 500 14px var(--f-body); }
.stall--studio .goods, .stall--lucky .lucky { padding: 24px 16px 16px; }
.stall--studio { --c: var(--indigo); --k: #fff; --s: #fff; }
.stall--lucky { --c: var(--brass); --k: #2b1f0e; --s: #3b2a12; }
.stall--lucky .stall__no { color: #f6d9a8; }
@media (min-width: 720px) {
  .stall__body { grid-template-columns: minmax(240px, 2fr) 3fr; align-items: start; padding: 26px 20px 20px; }
  .stall__vig { aspect-ratio: 4 / 3; position: sticky; top: calc(var(--hdr) + 16px); }
  .stall--studio .goods, .stall--lucky .lucky { padding: 26px 20px 20px; }
}

/* ---------- goods (product cards) ---------- */
.goods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) {
  .goods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .goods--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* several sellers side by side, each counter as wide as its goods need */
  .stall__goods { display: flex; flex-wrap: wrap; gap: 16px; }
  .stall__goods > .goods { flex: 1 1 100%; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .shopfront { flex: 1 1 200px; min-width: 0; }
  .shopfront + .shopfront { margin-top: 0; }
  .shopfront .goods { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.card { position: relative; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: clip; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 28px -18px rgb(var(--shadow-rgb) / .45); }
.card__link { display: block; color: inherit; text-decoration: none; }
.card__art { display: block; aspect-ratio: 4 / 3; background: var(--bg-2); }
.card__body { display: grid; gap: 3px; padding: 10px 12px 12px; }
.card__name { font-family: var(--f-display); font-weight: 600; font-size: 15px; line-height: 1.25; }
.card__by { font-size: 13px; color: var(--muted); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.card__add { position: absolute; top: 8px; inset-inline-end: 8px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgb(251 245 234 / .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgb(var(--shadow-rgb) / .2); transition: background-color .15s, color .15s; }
.card__add:hover { background: var(--terra); color: #fff; }
.card__add.is-done { background: var(--ok); color: #fff; }

/* ---------- home: the lucky egg ---------- */
.lucky { display: grid; gap: 16px; }
.lucky__stage { position: relative; height: 220px; border-radius: var(--r); background: radial-gradient(ellipse at 50% 75%, #fff4df, var(--brass-soft) 72%); overflow: hidden; }
.lucky__stage::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 14px; background: #8a5e3a; }
.lucky__stage canvas, .eggd__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.egg-svg { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 6%; }
.egg-svg .egg__svg { height: 80%; width: auto; filter: drop-shadow(0 10px 10px rgb(var(--shadow-rgb) / .25)); }
.is-3d .egg-svg { display: none; }
.stall--lucky.is-away :is(.lucky__stage canvas, .lucky__stage .egg-svg) { visibility: hidden; }
.stall--lucky.is-spent .lucky__stage :is(canvas, .egg-svg) { display: none; }
.lucky__txt p { margin-bottom: 14px; font-size: 17px; color: var(--ink-2); }
.lucky__gone { font-weight: 600; color: var(--muted); }
@media (min-width: 720px) { .lucky { grid-template-columns: minmax(240px, 2fr) 3fr; align-items: center; } .lucky__stage { height: 260px; } }
.eggd .dlg__body { display: grid; gap: 14px; }
.eggd__stage { position: relative; height: clamp(170px, 28svh, 230px); border-radius: var(--r); background: radial-gradient(ellipse at 50% 75%, #fff4df, var(--brass-soft) 72%); overflow: hidden; }
.egg-svg .egg__top, .egg-svg .egg__shell { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .55s var(--ease); }
.egg-svg .egg__crack { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s; }
.egg-svg.is-cracking .egg__shell { animation: wobble .34s ease-in-out; }
.egg-svg.is-cracking .egg__crack, .egg-svg.is-open .egg__crack { stroke-dashoffset: 0; }
.egg-svg.is-open .egg__top { transform: translate(10px, -22px) rotate(16deg); }
@keyframes wobble { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.eggd__reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .45s var(--ease); }
.eggd.is-revealed .eggd__reveal { opacity: 1; transform: none; }
.eggd__kick { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; color: var(--brass-ink); font-size: 14px; }
.eggd__kick::before { content: ""; width: 20px; height: 2px; background: var(--brass); }
.eggd__card { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.eggd__card.is-sale { box-shadow: inset 0 0 0 1.5px var(--brass); background: linear-gradient(135deg, #fff9ec, #fbf0d8); }
.eggd__art { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; flex: none; }
.eggd__txt { min-width: 0; display: grid; gap: 2px; }
.eggd__name { font-size: 19px; line-height: 1.25; }
.eggd__by { font-size: 14px; color: var(--muted); }
.eggd__acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.eggd__left, .eggd__note { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- home: how the market works, the seller band, trust ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 16px 48px 16px 16px; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
[dir="rtl"] .how li { padding: 16px 16px 16px 48px; }
.how__n { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 999px; background: var(--indigo); color: #fff; display: grid; place-items: center; font: 700 17px var(--f-latin-display); }
.how__ico { position: absolute; top: 16px; inset-inline-end: 14px; color: var(--brass-ink); }
.how__ico .ico { width: 22px; height: 22px; }
.how h3 { font-size: 18px; }
.how p { color: var(--ink-2); }
@media (min-width: 720px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .how { grid-template-columns: repeat(4, 1fr); } .how li { grid-template-columns: 1fr; padding-top: 20px; } .how__n { grid-row: auto; margin-bottom: 10px; } }
.band { display: grid; gap: 20px; padding: 28px 22px; border-radius: var(--r-l); background: linear-gradient(135deg, #2e3d6b, #233055); color: #eef0f7; }
.band h2 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 38px); color: #fff; }
.band p { margin-bottom: 8px; font-size: 17px; color: #d9def0; }
.band__sub { color: #f2c9a8; }
.band__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ex { background: rgb(255 255 255 / .08); border-radius: var(--r); padding: 16px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15); }
.ex__top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; color: #d9def0; }
.ex__top b { color: #fff; }
.band .rates { background: rgb(255 255 255 / .15); color: #fff; }
.ex__rows { margin: 0; display: grid; }
.ex__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / .15); }
.ex__rows dt { color: #d9def0; }
.ex__rows dd { margin: 0; font-weight: 700; color: #fff; }
.ex__rows .is-earn dd { color: #f6d9b8; font-size: 20px; }
@media (min-width: 720px) { .band { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 36px 32px; } }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust li { display: grid; gap: 4px; padding: 16px; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.trust .ico { width: 24px; height: 24px; color: var(--terra); margin-bottom: 6px; }
.trust h3 { font-size: 17px; }
.trust p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- footer ---------- */
.foot { margin-top: 56px; padding: 32px var(--gut) 28px; border-top: 1px solid var(--line); color: var(--ink-2); }
@media (min-width: 1100px) { .foot { padding-inline: 0; } }
.foot__in { display: grid; gap: 24px; }
.foot__brand p { margin-top: 8px; color: var(--muted); }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foot h2 { margin-bottom: 6px; font: 600 15px var(--f-body); color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot li a:hover { color: var(--indigo-ink); text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.foot__base .seg { margin-inline-start: auto; }

/* ---------- product: at the counter ---------- */
.crumb ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-size: 14px; color: var(--muted); }
.crumb li { display: inline-flex; align-items: center; gap: 2px; }
.crumb a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; min-height: 44px; min-width: 44px; justify-content: center; }
.crumb a:hover { text-decoration: underline; }
.crumb__sep .ico { width: 14px; height: 14px; }
.crumb [aria-current="page"] { color: var(--ink); font-weight: 600; padding-inline-start: 4px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--indigo-ink); font-weight: 600; text-decoration: none; }
.back .ico { width: 18px; height: 18px; }
.pdp { display: grid; gap: 22px; margin-top: 8px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 36px; align-items: start; } .pdp__media { position: sticky; top: calc(var(--hdr) + 16px); } }
.v3d { position: relative; aspect-ratio: 1; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #fff8ec, #efe2cc 60%, #e4d3b8); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 720px) { .v3d { aspect-ratio: 4 / 3; } }
.v3d__poster, .v3d__canvas { position: absolute; inset: 0; }
.v3d__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.v3d__canvas { opacity: 0; transition: opacity .5s; }
.v3d.is-live .v3d__canvas { opacity: 1; }
.v3d.is-live .v3d__poster { opacity: 0; transition: opacity .5s .2s; }
.v3d.is-drawn :is(.v3d__canvas, .v3d__ctrls, .v3d__hint), .v3d.is-failed :is(.v3d__canvas, .v3d__ctrls, .v3d__hint) { display: none; }
.v3d__canvas:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; border-radius: var(--r-l); }
.v3d__ctrls { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; gap: 8px; }
.v3d__ctrls button { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgb(251 245 234 / .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgb(var(--shadow-rgb) / .18); }
.v3d__ctrls button[aria-pressed="true"] { background: #2b1f0e; color: #ffcf7a; }
.v3d__hint { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 6px 10px; border-radius: 999px; background: rgb(43 35 32 / .6); color: #fff; font-size: 13px; font-weight: 600; }
.v3d__toast { position: absolute; left: 50%; bottom: 52px; transform: translate(-50%, 8px); padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.v3d__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.v3d__fail { position: absolute; inset-inline: 16px; bottom: 16px; text-align: center; font-size: 14px; color: var(--ink-2); background: rgb(251 245 234 / .92); border-radius: 10px; padding: 8px; }
.buy__counter { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; color: var(--ink-2); }
.buy__counter b { color: var(--ink); }
.pdp h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.buy__price { margin-bottom: 16px; }
.buy__card { display: grid; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.buy__row { padding: 14px 16px; border-top: 1px solid var(--line); }
.buy__row:first-child { border-top: 0; }
.buy__label { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.matrow__l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buy__note { font-size: 13px; color: var(--muted); }
.matq { margin-top: 6px; }
.matq summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--indigo-ink); font-weight: 600; font-size: 15px; list-style: none; }
.matq summary::-webkit-details-marker { display: none; }
.matq summary .ico { width: 18px; height: 18px; }
.matq[open] summary .ico:last-child { transform: rotate(180deg); }
.matq p { margin: 4px 0 8px; color: var(--ink-2); }
.swatches { display: flex; gap: 10px; margin-top: 8px; }
.swatch { position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch__c { width: 32px; height: 32px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(43 35 32 / .2); transition: transform .15s var(--ease); }
.swatch input:checked + .swatch__c { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.swatch input:focus-visible + .swatch__c { outline: 3px solid var(--indigo); outline-offset: 4px; }
.pod { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 15px; }
.pod .ico { color: var(--brass-ink); }
.qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--bg-2); padding: 2px; }
.stepper button { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--surface); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output, .stepper .num { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy__acts { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 480px) { .buy__acts { grid-template-columns: 1fr 1fr; } }
.rv-note { margin-top: 8px; font-size: 15px; color: var(--muted); }
.pinfo, .specs { margin-top: 28px; }
.pinfo h2, .specs h2 { font-size: 20px; margin-bottom: 8px; }
.pinfo p { margin-bottom: 8px; color: var(--ink-2); }
.specs dl { margin: 0; display: grid; }
.specs dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: end; }
.nearby__t { margin: 22px 0 10px; font-size: 18px; }
.bb-sw { width: 28px; height: 28px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(43 35 32 / .2); flex: none; }
.bb-txt { display: grid; line-height: 1.2; min-width: 0; margin-inline-end: auto; }
.bb-txt b { font-size: 17px; }
.bb-txt span { font-size: 13px; color: var(--muted); }

/* ---------- sell: open your stall ---------- */
.sh { display: grid; gap: 24px; padding-top: 20px; }
@media (min-width: 900px) { .sh { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; } }
.sh__text { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin-top: 12px; }
.nos__k { margin: 18px 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nos { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nos li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nos .ico { color: var(--terra); }
.sh__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.signcard { background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 18px; }
.signcard__head h2 { font-size: 20px; }
.signcard__head p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.signbox { margin: 12px 0; border-radius: var(--r); background: linear-gradient(#8fa3c4, #f0bd84 70%, #dcbf99); padding: 8px; }
.sign { width: 100%; height: auto; display: block; }
.sign__bar { fill: #5a3c26; }
.sign__chain { stroke: #b8862e; stroke-width: 3; stroke-dasharray: 5 3; }
.sign__ring { fill: #b8862e; }
.sign__board { fill: #2e3d6b; stroke: #b8862e; stroke-width: 4; }
.sign__inner { fill: none; stroke: rgb(255 255 255 / .25); stroke-width: 1.5; }
.sign__name { fill: #fff6ea; font-family: var(--f-display); font-weight: 600; }
.sign__city { fill: #f2c9a8; font: 600 16px var(--f-body); }
.sign__shadow { stroke: rgb(43 35 32 / .18); stroke-width: 10; stroke-linecap: round; }
.signcard__form { display: grid; gap: 12px; }
@media (min-width: 480px) { .signcard__form { grid-template-columns: 1.4fr 1fr; } }
.fld { display: grid; gap: 6px; }
.fld__label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.fld__in { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--field); color: var(--ink); font: inherit; font-size: 16px; }
.fld__in:focus { outline: 3px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.fld__sel { position: relative; }
.fld__sel select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; }
.fld__sel .ico { position: absolute; top: 50%; inset-inline-end: 12px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.fld__box { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--field); padding-inline-start: 12px; }
.fld__box .fld__in { border: 0; background: transparent; }
.fld__box .fld__in:focus { outline: none; }
.fld__box:focus-within { outline: 3px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.fld__pre { color: var(--muted); font-weight: 600; }
.fld__help { font-size: 15px; color: var(--muted); }
.fld__err { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--bad); font-weight: 600; }
.fld__err .ico { width: 18px; height: 18px; }
.fld.is-err :is(.fld__in, .fld__box) { border-color: var(--bad); }
.fld__opt { color: var(--muted); font-weight: 500; }
.fld__ta { resize: vertical; }
.fld-row { display: grid; gap: 14px; }
@media (min-width: 480px) { .fld-row { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pstep { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 16px; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.pstep__n { width: 36px; height: 36px; border-radius: 999px; background: var(--bg-2); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.pstep.is-done .pstep__n { background: var(--ok); color: #fff; }
.pstep__n .ico { width: 18px; height: 18px; }
.pstep__t { font-size: 17px; }
.pstep__d { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.pstep__live { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo-ink); font-size: 13px; font-weight: 700; }
.pstep__live:empty { display: none; }
.pstep__live.is-wait { background: var(--bg-2); color: var(--ink-2); }
.pstep__live.is-err { background: var(--bad-bg); color: var(--bad); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.calc-wrap { display: grid; gap: 20px; }
@media (max-width: 899px) { .calc-side { order: -1; } .sum { position: sticky; top: calc(var(--hdr) + 8px); z-index: 5; } }
@media (min-width: 900px) { .calc-wrap { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); align-items: start; } .calc-side { position: sticky; top: calc(var(--hdr) + 16px); } }
.form-card { background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 16px; display: grid; gap: 22px; }
.fstep__h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 18px; }
.fstep__n { width: 28px; height: 28px; border-radius: 999px; background: var(--indigo); color: #fff; display: grid; place-items: center; font: 700 14px "Figtree", sans-serif; }
.drop { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); margin-bottom: 12px; }
.drop b { display: block; }
.drop span { font-size: 14px; color: var(--muted); }
.drop .ico { color: var(--indigo-ink); }
.files { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .files { grid-template-columns: repeat(4, 1fr); } }
.file { position: relative; min-width: 0; display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.file__art { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.file__name { font-weight: 600; font-size: 14px; }
.file__fn { font-size: 12px; color: var(--muted); direction: ltr; overflow-wrap: anywhere; }
.file__tick { position: absolute; top: 14px; inset-inline-end: 14px; width: 24px; height: 24px; border-radius: 999px; background: var(--ok); color: #fff; display: grid; place-items: center; opacity: 0; }
.file__tick .ico { width: 14px; height: 14px; }
.file:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); }
.file:has(input:checked) .file__tick { opacity: 1; }
.file:has(input:focus-visible), .matopt:has(input:focus-visible) { outline: 3px solid var(--indigo); outline-offset: 2px; }
.est { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.est .ico { color: var(--ok); }
.est.is-reading .ico { color: var(--muted); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mats { border: 0; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.matopt { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.matopt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.matopt b { font-size: 17px; }
.matopt span { font-size: 14px; color: var(--muted); }
.matopt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--indigo); }
.price-field { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--field); font-weight: 700; }
.price-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 24px; font-weight: 700; color: var(--ink); padding: 10px 0; outline: none; }
.price-field:focus-within { border-color: var(--indigo); outline: 3px solid var(--indigo); outline-offset: 1px; }
.price-field.is-err { border-color: var(--bad); }
#priceCur { color: var(--muted); font-size: 16px; }
.field-hint { margin-top: 6px; font-size: 14px; color: var(--muted); }
.err { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-weight: 600; font-size: 14px; }
.err__txt { flex: 1; }
.err .btn { background: var(--card); color: var(--bad); box-shadow: inset 0 0 0 1.5px #e9b4a6; }
.res { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.res__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.res__head h3 { font-size: 16px; }
.res dl, .bd dl { margin: 0; }
.res dl div, .bd dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.res dl div:first-child { border-top: 0; }
.res dt, .bd dt { color: var(--ink-2); }
.res dd, .bd dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.res .is-earn dd { color: var(--ok); font-size: 18px; }
.res .is-dim { color: var(--muted); }
.res .is-dim dd { font-weight: 500; }
.bd summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--indigo-ink); list-style: none; }
.bd summary::-webkit-details-marker { display: none; }
.bd[open] summary .ico { transform: rotate(180deg); }
.bd dl small { display: block; font-size: 12px; color: var(--muted); }
.bd .is-total dt { color: var(--ink); font-weight: 700; }
.sum { background: var(--indigo); color: #fff; border-radius: var(--r-l); padding: 18px 20px; box-shadow: 0 16px 36px -24px rgb(46 61 107 / .8); }
.sum__k { font-size: 14px; color: #d9def0; font-weight: 600; }
.sum__v { font: 600 clamp(30px, 6vw, 40px)/1.1 var(--f-latin-display); margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.sum.is-err .sum__v { font-size: 22px; color: #f6d9b8; font-family: var(--f-body); }
.sum__min { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / .2); font-size: 14px; color: #d9def0; }
.sum__min b { color: #fff; }
.how-est { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.how-est .ico { color: var(--brass-ink); margin-top: 2px; }
.how-est h3 { margin-bottom: 4px; font-size: 16px; }
.how-est p { font-size: 15px; color: var(--ink-2); }
.mg { background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); overflow: clip; }
.mg__row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.mg__row:first-child { border-top: 0; }
.mg__heads { background: var(--surface); }
.mg__rh { grid-column: 1 / -1; padding: 10px 14px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.mg__c { padding: 6px 14px 12px; font-size: 15px; color: var(--ink-2); }
.mg__h { padding: 14px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.mg__h b { font-size: 18px; color: var(--ink); font-family: "Figtree", sans-serif; }
.mg__corner { display: none; }
.spool { width: 28px; height: 28px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 3px var(--sc), inset 0 0 0 6px #fff, inset 0 0 0 14px var(--sc); --sc: var(--mat-pla); margin-bottom: 4px; }
.spool--petg { --sc: var(--mat-petg); }
@media (min-width: 720px) { .mg__row { grid-template-columns: 170px 1fr 1fr; } .mg__rh { grid-column: auto; padding: 12px 14px; font-size: 14px; color: var(--ink); } .mg__c { padding: 12px 14px; } .mg__corner { display: block; } }
.mg__notes { display: grid; gap: 10px; margin-top: 14px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); }
.note .ico { color: var(--indigo-ink); margin-top: 2px; }
.note--warn .ico { color: var(--brass-ink); }
@media (min-width: 720px) { .mg__notes { grid-template-columns: 1fr 1fr; } }
.sell-lower { display: grid; gap: 16px; }
@media (min-width: 900px) { .sell-lower { grid-template-columns: 1.2fr .8fr; } }
.rules, .scta { background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 22px 20px; }
.rules h2, .scta h2 { margin-bottom: 8px; font-size: 22px; }
.rules p { color: var(--ink-2); margin-bottom: 12px; }
.rules h3 { margin-bottom: 6px; font: 600 15px var(--f-body); color: var(--muted); }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rules li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.rules .ico { color: var(--terra); }
.scta { background: var(--terra-soft); display: grid; gap: 8px; align-content: start; justify-items: start; }
.scta p { color: var(--ink-2); }

/* ---------- cart: your basket ---------- */
.order__head { margin-top: 10px; }
.order__head h1 { font-size: clamp(30px, 5vw, 40px); }
.order__sub { margin-top: 6px; color: var(--muted); }
.order { display: grid; gap: 20px; margin-top: 18px; }
@media (min-width: 900px) { .order { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); align-items: start; } .order__side { position: sticky; top: calc(var(--hdr) + 16px); } .onext { grid-column: 1; } }
.olist, .bgroup__lines { list-style: none; margin: 0; padding: 0; display: grid; }
.olist { gap: 18px; }
.bgroup__lines { gap: 10px; }
.bgroup__t { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 18px; }
.bgroup__t a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bgroup__t a:hover { color: var(--indigo-ink); text-decoration: underline; }
.oline { display: grid; grid-template-columns: 84px 1fr auto; gap: 8px 12px; padding: 12px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-inline-start: 4px solid var(--c); }
.oline__art { width: 84px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg-2); grid-row: 1 / 3; }
.oline__name { font-size: 16px; line-height: 1.25; }
.oline__name a { color: inherit; text-decoration: none; display: inline-block; padding: 4px 0; }
.oline__by { margin: 2px 0; font-size: 13px; color: var(--muted); }
.oline__spec { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.oline__col { display: inline-flex; align-items: center; gap: 6px; }
.oline__sw { width: 14px; height: 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(43 35 32 / .2); display: inline-block; }
.oline__price { text-align: end; display: grid; align-content: start; }
.oline__each { font-size: 12px; color: var(--muted); }
.oline__ctrl { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oline__rm { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--ink-2); font-size: 14px; font-weight: 600; border-radius: 999px; cursor: pointer; }
.oline__rm:hover { background: var(--bad-bg); color: var(--bad); }
.oline.is-new { animation: flash 1.2s var(--ease); }
@keyframes flash { 30% { box-shadow: inset 0 0 0 2px var(--c); } }
.oempty { text-align: center; padding: 40px 16px; display: grid; gap: 12px; justify-items: center; background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); }
.oempty__ico { width: 64px; height: 64px; border-radius: 999px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2); }
.oempty__ico .ico { width: 28px; height: 28px; }
.oempty p { color: var(--ink-2); }
.osum { background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 18px 16px; display: grid; gap: 12px; }
.osum__t { font-size: 20px; }
.osum__head { display: flex; justify-content: space-between; align-items: center; }
.osum__rows { margin: 0; }
.osum__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.osum__rows dt { color: var(--ink-2); }
.osum__rows dt small { display: block; font-size: 12px; color: var(--muted); }
.osum__rows dd { margin: 0; font-weight: 700; text-align: end; }
.osum__rows .is-save dd { color: var(--terra-ink); }
.osum__rows .is-total { font-size: 18px; border-top: 2px solid var(--line-2); }
.osum__rows .is-deliv dd { font-weight: 500; color: var(--muted); font-size: 14px; }
.osum__note { font-size: 15px; color: var(--muted); display: flex; gap: 8px; }
.osum__note .ico { color: var(--brass-ink); }
.osum__trust { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.osum__trust li { display: flex; gap: 8px; }
.osum__trust .ico { color: var(--ok); }
.osum__trust b { display: block; color: var(--ink); }
.onext { background: var(--surface); border-radius: var(--r-l); padding: 18px; }
.onext__t { margin-bottom: 12px; font-size: 20px; }
.onext__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.onext__steps li { display: flex; gap: 12px; align-items: flex-start; }
.onext__ico { width: 40px; height: 40px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo-ink); display: grid; place-items: center; flex: none; }
.onext__txt b { display: block; }
.onext__txt span { color: var(--ink-2); font-size: 15px; }
@media (min-width: 720px) { .onext__steps { grid-template-columns: repeat(3, 1fr); } }
.cartbar__sum { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.cartbar__l { font-size: 13px; color: var(--muted); }
.cartbar__sum b { font-size: 18px; }
.cartbar__go { flex: none; }
.ck-go--bar { flex-direction: column; gap: 0; line-height: 1.2; padding: 6px 18px; }
.ck-go--bar small { font-size: 12px; font-weight: 500; opacity: .9; }

/* ---------- checkout ---------- */
.ck-form { display: grid; gap: 22px; }
.ck-sec { background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 16px; display: grid; gap: 14px; }
.ck-sec__t { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.ck-sec__n { width: 28px; height: 28px; border-radius: 999px; background: var(--indigo); color: #fff; display: grid; place-items: center; font: 700 14px "Figtree", sans-serif; }
.ck-sec__help { margin-top: -6px; color: var(--muted); font-size: 15px; }
.ck-errs { margin: 0; }
.ck-check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.ck-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--indigo); flex: none; }
.ck-privacy { display: flex; gap: 8px; font-size: 15px; color: var(--muted); }
.ck-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ckl { display: flex; gap: 10px; align-items: center; }
.ckl__art { width: 52px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; background: var(--bg-2); }
.ckl__txt { flex: 1; min-width: 0; display: grid; }
.ckl__name { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; display: inline-block; padding: 2px 0; }
.ckl__meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ckl__price { font-weight: 700; text-align: end; }
.pr--col .pr__was { display: block; margin: 0; font-size: 13px; }
.pr--col .pr__off { display: none; }
.ck-done__hero { text-align: center; padding: 30px 0 20px; display: grid; justify-items: center; gap: 8px; }
.ck-done__ico { width: 64px; height: 64px; border-radius: 999px; background: var(--ok); color: #fff; display: grid; place-items: center; }
.ck-done__ico .ico { width: 30px; height: 30px; }
.ck-done__hero h1 { font-size: clamp(28px, 5vw, 38px); }
.ck-done__num { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.ck-done__num b { font: 600 26px var(--f-latin-display); color: var(--ink); }
.ck-done__sub { color: var(--ink-2); }
.ck-done__grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .ck-done__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.ck-done__side { display: grid; gap: 14px; }
.ck-done__box { background: var(--card); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; display: grid; gap: 10px; }
.ck-done__box h2 { font-size: 18px; }
.ck-done__box address { font-style: normal; line-height: 1.6; color: var(--ink-2); }
.ck-done__note { color: var(--muted); }
.ck-done__end { margin-top: 24px; display: grid; justify-items: center; gap: 12px; }

/* ---------- reduced motion ---------- */
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
html.rm.can-smooth { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.can-smooth { scroll-behavior: auto; }
}
