/* Souq Nights. Deep indigo night, lantern amber and saffron for light and action, brass for lines and edges.
   Lane colours (stall awnings) come from theme.js as --lane-<id> and per element as --c / --k / --s.
   Type: Bricolage Grotesque (Latin display, condensed and heavy like painted shop signs), Reem Kufi (Arabic display),
   Aref Ruqaa (the calligraphic "سوق الليل" mark only), Manrope / Tajawal for reading. Phone-first. */
:root {
  --night: #121238; --night-2: #1a1a4a; --night-3: #232259; --night-4: #2d2b6a; --deep: #0b0b26;
  --ink: #f7ecd6; --ink-2: #dcd2ea; --muted: #a9a3cc; --line: rgb(201 154 75 / .28); --line-2: rgb(201 154 75 / .5);
  --amber: #ffb54a; --amber-ink: #24170a; --amber-2: #ffcf7e; --saffron: #f2c14e; --brass: #c99a4b;
  --ember: #ff8a5c; --ok: #7ed3a2; --ok-bg: rgb(126 211 162 / .14); --bad: #ff9b86; --bad-bg: rgb(255 120 96 / .14);
  --f-body: "Manrope", "Tajawal", system-ui, sans-serif;
  --f-display: "Bricolage Grotesque", "Reem Kufi", "Arial Narrow", sans-serif;
  --f-latin-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-num: "Manrope", system-ui, sans-serif;
  --hdr: 60px; --bar: 72px; --sb: env(safe-area-inset-bottom, 0px); --gut: 16px; --max: 1240px;
  --r-s: 10px; --r: 16px; --r-l: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: var(--saffron);
  color-scheme: dark;
  /* "See it in your room" (shared/room-view) */
  --rv-bg: #121238; --rv-surface: #1a1a4a; --rv-text: #f7ecd6; --rv-muted: #a9a3cc; --rv-line: rgb(201 154 75 / .35);
  --rv-accent: #ffb54a; --rv-accent-text: #24170a; --rv-radius: 18px; --rv-font: var(--f-body); --rv-font-display: var(--f-display);
}
html[lang="ar"] { --f-body: "Tajawal", "Manrope", system-ui, sans-serif; --f-display: "Reem Kufi", "Tajawal", sans-serif; }
@media (min-width: 900px) { :root { --hdr: 68px; --gut: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
html.can-smooth { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font: 16px/1.55 var(--f-body);
  background: var(--night) radial-gradient(90% 40% at 50% 0, #1d1c55, transparent 70%) no-repeat; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.7; }
body.has-buybar, body.has-cartbar { padding-bottom: calc(var(--bar) + var(--sb) + 16px); }
body.has-cartbar.is-empty, body.has-cartbar.is-done { padding-bottom: 0; }
@media (min-width: 900px) { body.has-buybar, body.has-cartbar { padding-bottom: 0; } }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: -.01em; font-stretch: 90%; }
html[lang="ar"] :is(h1, h2, h3, h4) { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
h3, h4 { font-weight: 700; line-height: 1.2; }
p { margin: 0; }
a { color: var(--amber-2); }
button, input, select, textarea { 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(--amber); color: var(--amber-ink); border-radius: 999px; font-weight: 800; text-decoration: none; transform: translateY(-160%); }
.skip:focus { transform: none; }
.ico { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
html[lang="ar"] :is(.brand__word, .card__name, .oline__name, .sheet__name, #pName, .srow__name, .ckl__name) { font-family: var(--f-latin-display); }
html[lang="ar"] :is(.pr, .sum__v, .price-field, .osum__rows dd, .ex__rows dd, .good__tag) { font-family: var(--f-num); }

main { display: block; }
main > :not(.walk), .crumbbar { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.sec { margin-top: 64px; scroll-margin-top: calc(var(--hdr) + 12px); }
.sec__head { margin-bottom: 20px; max-width: 62ch; }
.sec__head h2 { font-size: clamp(30px, 4.4vw, 48px); }
.sec__head p { margin-top: 8px; color: var(--muted); font-size: 17px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgb(18 18 56 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-scrolled { border-color: var(--line); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 6px; width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 800 19px/1 var(--f-latin-display); font-stretch: 85%; white-space: nowrap; margin-inline-end: auto; min-height: 44px; }
.mark { width: 30px; height: 30px; color: var(--amber); }
.hdr__nav { display: none; }
.hdr__nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; margin-inline-end: 12px; }
.hdr__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.hdr__nav a:hover { color: var(--ink); background: var(--night-3); }
.hdr__nav a[aria-current="page"] { color: var(--amber); }
@media (min-width: 1000px) { .hdr__nav { display: block; } }
.hbtn { position: relative; height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--night-2); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.hbtn:hover { border-color: var(--brass); }
.hbtn--lang { font-weight: 800; min-width: 52px; }
.hbtn--map { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
.hbtn--map:hover { background: var(--amber-2); }
@media (max-width: 479px) { .hbtn--map span { display: none; } .brand__word { font-size: 17px; } .hdr__in { gap: 4px; } }
@media (max-width: 359px) { .brand__word { display: none; } }
.badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ember); color: #24120a; font: 800 12px/20px var(--f-num); text-align: center; }
.badge.is-zero { display: none; }
.badge.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- buttons and small bits ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 800; 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(--amber); color: var(--amber-ink); box-shadow: 0 0 0 0 rgb(255 181 74 / 0), 0 10px 30px -10px rgb(255 160 60 / .7); }
.btn--primary:hover { background: var(--amber-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1.5px var(--brass); }
.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); color: #0d2a1a; }
.iconbtn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--night-3); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn:hover { background: var(--night-4); }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--amber-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--night-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 700; font-size: 15px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--brass); }
.lane-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--brass)); flex: none; }
.mat { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 800 12px/1.6 var(--f-num); background: rgb(242 193 78 / .16); color: var(--saffron); }
.mat--petg { background: rgb(126 190 255 / .15); color: #a9d2ff; }
.rates { display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgb(242 193 78 / .16); color: var(--saffron); font-size: 12px; font-weight: 800; }
.pr { font-weight: 800; font-variant-numeric: tabular-nums; }
.pr__was { color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.pr__off { color: var(--ember); font-size: .85em; margin-inline-start: 4px; }
.pr--sm { font-size: 14px; }
.pr--big { font-size: 26px; }
.pr--hero { font-size: 32px; }
.pr--line { font-size: 17px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 44px; min-width: 48px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); }

/* ---------- the 3D product pictures (thumbs.js) on a counter of lantern light ---------- */
.thumb { position: relative; display: block; width: 100%; height: 100%; background: radial-gradient(60% 55% at 50% 42%, rgb(255 181 74 / .26), transparent 70%), linear-gradient(transparent 72%, rgb(0 0 0 / .25)); }
.thumb::before { content: ""; position: absolute; inset-inline: 22%; bottom: 13%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .45), transparent); }
.thumb img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- dialogs: map, search ---------- */
.dlg { border: 0; padding: 0; margin: auto; width: min(100% - 32px, 560px); max-height: 90dvh; background: var(--night-2); color: var(--ink); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px #000; overflow: hidden; display: none; flex-direction: column; }
.dlg[open] { display: flex; animation: dlgIn .3s var(--ease); }
.dlg::backdrop { background: rgb(5 5 20 / .6); }
@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: 24px; }
.dlg__body { padding: 8px 20px 20px; overflow: auto; }
.dlg__hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
.dlg__links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dlg__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- the souq map ---------- */
.map { background: var(--deep); border-radius: var(--r); padding: 10px; box-shadow: inset 0 0 0 1px var(--line); max-width: 360px; margin-inline: auto; }
.mp { display: block; width: 100%; height: auto; }
.mp__walk { fill: #1c1a4c; }
.mp__lamp { fill: var(--amber); }
.mp__node { cursor: pointer; outline: none; }
.mp__block { fill: var(--night-3); stroke: var(--line-2); stroke-width: 1; }
.mp__stall:hover .mp__block, .mp__gate:hover rect { fill: var(--night-4); }
.mp__node.is-here .mp__block, .mp__gate.is-here rect { stroke: var(--amber); stroke-width: 2; }
.mp__node:focus-visible :is(.mp__block, rect) { stroke: var(--saffron); stroke-width: 3.5; }
.mp__name { font: 700 13px var(--f-body); fill: var(--ink); }
.mp__sub { font: 500 10px var(--f-body); fill: var(--muted); }
.mp__no { font: 800 10px var(--f-num); }
.mp__name--inv { fill: var(--amber-ink); }
.mp__sub--inv { fill: #4a3214; }
.mp__studio rect { fill: var(--amber); }
.mp__studio.is-here rect { stroke: #fff; stroke-width: 2.5; }
.mp__gate rect { fill: var(--night-3); stroke: var(--line-2); }
.mp__arch { fill: none; stroke: var(--amber); stroke-width: 3; }
.mp__pin path { fill: var(--ember); stroke: #fff; stroke-width: 1.5; }
.mp__pinhole { fill: #fff; }
.mp__pulse { fill: var(--ember); 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: 700; }
.map__here .ico { width: 18px; height: 18px; color: var(--ember); }

/* ---------- search ---------- */
.srch__field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--deep); border: 1.5px solid var(--line-2); color: var(--muted); }
.srch__field:focus-within { border-color: var(--saffron); outline: 3px solid var(--saffron); outline-offset: 1px; }
.srch__field input { flex: 1; min-width: 0; border: 0; background: transparent; 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(--night-3); }
.srow__art { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: var(--deep); }
.srow__txt { flex: 1; min-width: 0; display: grid; }
.srow__name { font-weight: 700; }
.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); }

/* ---------- toasts ---------- */
.toasts { position: fixed; inset-inline: 0; bottom: calc(var(--sb) + 14px); 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: 900px) { .toasts, body.has-buybar .toasts, body.has-cartbar .toasts { bottom: 24px; justify-items: end; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: min(100%, 440px); padding: 10px 12px; border-radius: 16px; background: #f7ecd6; color: #1d1430; box-shadow: 0 18px 44px -14px #000; opacity: 0; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast__art { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: var(--night-2); }
.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: #5a4e6e; }
.toast__undo, .toast__link { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 0; background: #1d1430; color: #f7ecd6; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }

/* =====================================================================================================
   Home: the walk. A tall track; the stage sticks under the header and the camera follows the scroll.
   ===================================================================================================== */
.walk { position: relative; height: calc(100svh - var(--hdr)); }
.walk__stage { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); min-height: 460px; overflow: hidden; background: linear-gradient(#070726, #14134a 45%, #2b1d5c 70%, #5a2f5e 86%, #8a4a52); }
.walk__posterbox, .walk__canvas, .walk__goods { position: absolute; inset: 0; }
.walk__poster { width: 100%; height: 100%; display: block; }
.walk__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.walk__canvas { opacity: 0; transition: opacity .8s; }
.walk__stage.is-live .walk__canvas { opacity: 1; }
.walk__stage.is-live .walk__posterbox { opacity: 0; transition: opacity .8s .3s; }
.walk__goods { pointer-events: none; }

/* the intro, over the mouth of the lane; it steps aside as you walk in */
.walk__intro { position: absolute; inset-inline: 0; top: 0; padding: 22px var(--gut) 40px; background: linear-gradient(rgb(7 7 38 / .92), rgb(7 7 38 / .55) 70%, transparent); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.walk.is-walking .walk__intro { opacity: 0; transform: translateY(-24px); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
.walk__intro > * { max-width: 640px; }
@media (min-width: 900px) { .walk__intro { bottom: 0; padding: 48px max(var(--gut), (100% - var(--max)) / 2) 80px; background: linear-gradient(90deg, rgb(7 7 38 / .92), rgb(7 7 38 / .6) 42%, transparent 62%); } [dir="rtl"] .walk__intro { background: linear-gradient(-90deg, rgb(7 7 38 / .92), rgb(7 7 38 / .6) 42%, transparent 62%); } }
.walk__ar { font: 700 clamp(40px, 9vw, 76px)/1 "Aref Ruqaa", serif; color: var(--amber); text-shadow: 0 0 30px rgb(255 160 60 / .55); margin-bottom: 4px; }
.walk__intro h1 { font-size: clamp(44px, 9.5vw, 104px); line-height: .92; font-stretch: 75%; text-wrap: balance; }
html[lang="ar"] .walk__intro h1 { font-size: clamp(40px, 8vw, 84px); line-height: 1.15; }
.walk__sub { margin-top: 14px; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.walk__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.walk__ctas .btn--ghost { background: rgb(7 7 38 / .5); }
.walk__cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.walk__mouse { width: 20px; height: 30px; border-radius: 10px; border: 2px solid var(--muted); position: relative; }
.walk__mouse::after { content: ""; position: absolute; left: 50%; top: 5px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--amber); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 60% { transform: translateY(8px); opacity: 0; } }
.walk__fail { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: rgb(7 7 38 / .8); box-shadow: inset 0 0 0 1px var(--line-2); }
.walk__stage.is-failed .walk__cue { display: none; }
@media (max-height: 640px) and (max-width: 719px) { .walk__sub { display: none; } }

/* a real button over each design on the counter, with a price tag hanging above it */
.good { position: absolute; top: 0; left: 0; display: none; border: 0; padding: 0; background: transparent; border-radius: 14px; cursor: pointer; pointer-events: auto; transition: box-shadow .15s; }
.good.is-on { display: block; }
.good:hover, .good:focus-visible { box-shadow: 0 0 0 2px var(--amber), 0 0 30px rgb(255 181 74 / .35); outline: none; }
.good__tag { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 6px; background: var(--ink); color: #1d1430; font: 800 13px/1.5 var(--f-num); box-shadow: 0 6px 14px -6px #000; }
.good__tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 6px; background: var(--ink); }
.good__tag.is-sale { background: var(--ember); }
.good__tag.is-sale::after { background: var(--ember); }

/* the stall card at the bottom of the stage */
.hud { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: flex-end; gap: 10px; padding: 40px var(--gut) calc(14px + var(--sb)); background: linear-gradient(transparent, rgb(7 7 38 / .75) 45%); pointer-events: none; }
.hud > * { pointer-events: auto; }
@media (min-width: 900px) { .hud { padding: 60px max(var(--gut), (100% - var(--max)) / 2) 28px; } }
.hud__card { flex: 1; min-width: 0; max-width: 520px; padding: 12px 16px 12px; border-radius: var(--r); background: rgb(18 18 56 / .88); box-shadow: inset 0 0 0 1px var(--line); border-inline-start: 5px solid var(--c); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hud__no { font-size: 13px; font-weight: 800; color: var(--saffron); }
.hud__name { font-size: clamp(26px, 5vw, 40px); outline-offset: 4px; }
.hud__meta { margin-top: 2px; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud__hint { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hud__hint .ico { width: 16px; height: 16px; color: var(--amber); }
.hud__nav { display: flex; gap: 8px; }
.hud__btn { width: 52px; height: 52px; border-radius: 999px; border: 0; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px #000; }
.hud__btn:hover { background: var(--amber-2); }
.hud__btn:disabled { background: var(--night-3); color: var(--muted); cursor: default; }
@media (max-width: 479px) { .hud { flex-direction: column; align-items: stretch; } .hud__nav { position: absolute; inset-inline-end: var(--gut); bottom: calc(100% - 36px); } .hud__card { max-width: none; } }

/* the design sheet: a side panel on desktop, a bottom sheet on phones, the souq still visible */
.sheet { margin: 0; width: 100%; max-width: none; max-height: none; background: transparent; box-shadow: none; overflow: visible; }
.sheet::backdrop { background: rgb(5 5 20 / .2); }
.sheet__in { position: fixed; inset-inline: 0; bottom: 0; max-height: 58dvh; overflow: auto; padding: 18px 18px calc(18px + var(--sb)); background: var(--night-2); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: 0 -1px 0 var(--line-2), 0 -24px 60px -20px #000; border-top: 4px solid var(--c, var(--amber)); }
@media (min-width: 720px) { .sheet__in { inset-inline: auto 24px; top: calc(var(--hdr) + 24px); bottom: auto; width: 380px; max-height: calc(100dvh - var(--hdr) - 48px); border-radius: var(--r-l); padding: 24px; } [dir="rtl"] .sheet__in { inset-inline: 24px auto; } }
.sheet__close { position: absolute; top: 12px; inset-inline-end: 12px; }
.sheet__kick { font-size: 14px; font-weight: 700; color: var(--saffron); padding-inline-end: 48px; }
.sheet__name { margin-top: 6px; font-size: clamp(26px, 6vw, 34px); padding-inline-end: 40px; }
.sheet__price { margin-top: 8px; }
.sheet__row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sheet__row--col { display: block; }
.sheet__pod { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.sheet__pod .ico { color: var(--amber); width: 18px; height: 18px; }
.sheet__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sheet__acts .btn { padding: 0 12px; white-space: nowrap; }
.buy__label { font-weight: 700; color: var(--ink-2); font-size: 15px; }
.swatches { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.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(255 255 255 / .25); }
.swatch input:checked + .swatch__c { box-shadow: 0 0 0 3px var(--night-2), 0 0 0 5px var(--amber); }
.swatch input:focus-visible + .swatch__c { outline: 3px solid var(--saffron); outline-offset: 5px; }

/* ---------- how it works ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: how; }
.how li { position: relative; padding: 18px 18px 18px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.how h3 { display: flex; align-items: baseline; gap: 10px; font-size: 21px; margin-top: 10px; }
.how__n { font: 800 34px/1 var(--f-latin-display); color: var(--amber); font-stretch: 75%; }
.how p { margin-top: 6px; color: var(--ink-2); }
.how__ico { color: var(--saffron); display: block; }
.how__ico .ico { width: 26px; height: 26px; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .how { grid-template-columns: repeat(4, 1fr); } .how li:not(:last-child)::after { content: ""; position: absolute; top: 34px; inset-inline-end: -12px; width: 12px; height: 2px; background: var(--brass); } }

/* ---------- stalls (studio, the list) and product cards ---------- */
.stalls { display: grid; gap: 30px; }
.stall { position: relative; scroll-margin-top: calc(var(--hdr) + 12px); border-radius: var(--r-l); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); outline-offset: 4px; --c: var(--amber); --k: var(--amber-ink); --s: #fff4e0; }
.stall__awning { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; background: repeating-linear-gradient(90deg, var(--c) 0 34px, color-mix(in srgb, var(--c) 82%, #000) 34px 68px); 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, color-mix(in srgb, var(--c) 82%, #000) 9px, transparent 10px) 0 0 / 22px 10px repeat-x; }
.stall__no { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--s); color: #1d1430; font: 800 15px var(--f-num); flex: none; }
.stall__no .ico { width: 18px; height: 18px; }
.stall__name { font-size: clamp(24px, 3.4vw, 34px); color: inherit; }
.stall__meta { font-size: 14px; font-weight: 700; opacity: .92; }
.stall__walk { margin-inline-start: auto; color: inherit; }
.stall > .goods { padding: 26px 16px 16px; }
.stall--studio { --c: #f2c14e; --k: #1d1430; --s: #1d1430; }
.stall--studio .stall__no { color: var(--saffron); }
.stall--studio .stall__meta { flex-basis: 100%; }
@media (min-width: 720px) { .stall > .goods { padding: 28px 20px 20px; } .stall--studio .stall__meta { flex-basis: auto; margin-inline-start: auto; } }
.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)); } }
@media (min-width: 1100px) { .stall .goods:not(.goods--4) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; background: var(--night-3); border-radius: var(--r); overflow: clip; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.card:hover { box-shadow: inset 0 0 0 1px var(--brass), 0 18px 40px -24px rgb(255 160 60 / .5); }
.card__link { display: block; color: inherit; text-decoration: none; }
.card__art { display: block; aspect-ratio: 1; background: linear-gradient(var(--deep), #1b1440); border-bottom: 3px solid var(--c, var(--brass)); }
.card__body { display: grid; gap: 3px; padding: 10px 12px 12px; }
.card__name { font: 700 16px/1.2 var(--f-latin-display); }
.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(18 18 56 / .85); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.card__add:hover { background: var(--amber); color: var(--amber-ink); }
.card__add.is-done { background: var(--ok); color: #0d2a1a; }

/* ---------- seller band, trust ---------- */
.band { position: relative; display: grid; gap: 22px; padding: 30px 22px; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(120% 90% at 100% 0, rgb(255 181 74 / .25), transparent 55%), linear-gradient(135deg, #2a1d5c, #1a1a4a); box-shadow: inset 0 0 0 1px var(--line-2); }
.band h2 { font-size: clamp(34px, 5.4vw, 60px); line-height: .95; font-stretch: 75%; margin-bottom: 12px; }
html[lang="ar"] .band h2 { line-height: 1.25; }
.band p { font-size: 17px; color: var(--ink-2); max-width: 48ch; }
.band__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ex { background: rgb(7 7 38 / .5); border-radius: var(--r); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ex__top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.ex__rows { margin: 0; display: grid; }
.ex__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ex__rows dt { color: var(--ink-2); }
.ex__rows dd { margin: 0; font-weight: 800; }
.ex__rows .is-earn dd { color: var(--amber); font-size: 24px; }
@media (min-width: 720px) { .band { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 44px 40px; } }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust li { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.trust .ico { width: 26px; height: 26px; color: var(--amber); }
.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: 72px; padding: 36px var(--gut) calc(28px + var(--sb)); background: var(--deep); border-top: 1px solid var(--line); color: var(--ink-2); }
.foot__in { display: grid; gap: 26px; width: min(100%, var(--max)); margin-inline: auto; }
.foot__brand p { margin-top: 8px; color: var(--muted); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.foot h2 { margin-bottom: 6px; font: 800 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(--amber); 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; }
@media (max-width: 479px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- product: at the counter ---------- */
.crumb ol { list-style: none; margin: 8px 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: 700; padding-inline-start: 4px; }
.pdp { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 40px; align-items: start; } .pdp__media { position: sticky; top: calc(var(--hdr) + 16px); } }
.v3d { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: radial-gradient(70% 55% at 50% 35%, #3a2a5a, #14134a 70%, var(--deep)); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 720px) { .v3d { aspect-ratio: 5 / 4; } }
.v3d__poster, .v3d__canvas { position: absolute; inset: 0; }
.v3d__poster { display: grid; place-items: center; }
.v3d__poster .thumb { width: 70%; height: 70%; background: none; }
.v3d__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.v3d__canvas { opacity: 0; transition: opacity .6s; }
.v3d.is-live .v3d__canvas { opacity: 1; }
.v3d.is-live .v3d__poster { opacity: 0; transition: opacity .5s .2s; }
.v3d.is-failed :is(.v3d__canvas, .v3d__ctrls, .v3d__hint) { display: none; }
.v3d__canvas:focus-visible { outline: 3px solid var(--saffron); 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(18 18 56 / .85); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.v3d__ctrls button[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); }
.v3d__hint { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 6px 10px; border-radius: 999px; background: rgb(7 7 38 / .7); color: var(--ink); font-size: 13px; font-weight: 700; pointer-events: none; }
.v3d__fail { position: absolute; inset-inline: 16px; bottom: 16px; text-align: center; font-size: 14px; color: var(--ink-2); background: rgb(7 7 38 / .85); 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(36px, 6vw, 60px); line-height: .98; font-stretch: 80%; margin-bottom: 10px; }
.buy__price { margin-bottom: 18px; }
.buy__card { display: grid; background: var(--night-2); 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; }
.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(--amber-2); font-weight: 700; 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); }
.matq a { display: inline-flex; min-height: 44px; align-items: center; }
.pod { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 15px; }
.pod .ico { color: var(--amber); }
.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(--deep); box-shadow: inset 0 0 0 1px var(--line); 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(--night-3); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output, .stepper .num { min-width: 28px; text-align: center; font-weight: 800; 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: 30px; }
.pinfo h2, .specs h2 { font-size: 24px; 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: 700; text-align: end; }
.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(18 18 56 / .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line-2); }
body.is-empty .cartbar, body.is-done .cartbar { display: none; }
@media (min-width: 900px) { .buybar, .cartbar { display: none !important; } }
.bb-sw { width: 28px; height: 28px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); 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: rent a stall ---------- */
.sh { display: grid; gap: 26px; padding-top: 24px; }
@media (min-width: 900px) { .sh { grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; padding-top: 40px; } }
.sh h1 { font-size: clamp(44px, 8vw, 92px); line-height: .92; font-stretch: 75%; text-wrap: balance; }
html[lang="ar"] .sh h1 { line-height: 1.2; font-size: clamp(38px, 7vw, 72px); }
.sh__text { font-size: 18px; color: var(--ink-2); max-width: 50ch; margin-top: 14px; }
.nos__k { margin: 18px 0 6px; font-size: 14px; font-weight: 700; 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: 700; }
.nos .ico { color: var(--ember); }
.sh__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.preview { background: var(--night-2); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line-2); padding: 16px; }
.preview__head h2 { font-size: 26px; }
.preview__head p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.preview .v3d { margin: 14px 0; aspect-ratio: 4 / 3; }
.fld { display: grid; gap: 6px; }
.fld__label { font-weight: 700; 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(--deep); color: var(--ink); font-size: 16px; }
.fld__in:focus { outline: 3px solid var(--saffron); outline-offset: 1px; border-color: var(--saffron); }
.fld__in::placeholder { color: #7f79a6; }
.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(--deep); 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(--saffron); outline-offset: 1px; border-color: var(--saffron); }
.fld__pre { color: var(--muted); font-weight: 700; }
.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: 700; }
.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: 38px 1fr; gap: 12px; padding: 14px 16px; background: var(--night-2); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.pstep__n { width: 38px; height: 38px; border-radius: 999px; background: var(--night-4); color: var(--ink); display: grid; place-items: center; font: 800 16px var(--f-num); }
.pstep.is-done .pstep__n { background: var(--amber); color: var(--amber-ink); }
.pstep__n .ico { width: 18px; height: 18px; }
.pstep__t { font-size: 18px; }
.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: rgb(255 181 74 / .16); color: var(--amber-2); font-size: 13px; font-weight: 800; }
.pstep__live:empty { display: none; }
.pstep__live.is-wait { background: var(--night-3); 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(--night-2); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 16px; display: grid; gap: 24px; }
.fstep__h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 20px; }
.fstep__n { width: 30px; height: 30px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; font: 800 14px var(--f-num); }
.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(--amber); }
.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(--night-3); 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: 1; border-radius: 8px; overflow: hidden; background: var(--deep); }
.file__name { font-weight: 700; 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(--amber); color: var(--amber-ink); 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(--amber); }
.file:has(input:checked) .file__tick { opacity: 1; }
.file:has(input:focus-visible), .matopt:has(input:focus-visible) { outline: 3px solid var(--saffron); 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(--night-3); 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: 18px; }
.matopt span { font-size: 14px; color: var(--muted); }
.matopt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--amber); }
.price-field { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--deep); font-weight: 800; }
.price-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 26px; font-weight: 800; color: var(--ink); padding: 10px 0; outline: none; }
.price-field:focus-within { border-color: var(--saffron); outline: 3px solid var(--saffron); 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: 700; font-size: 14px; }
.err__txt { flex: 1; }
.err .btn { background: var(--night-2); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.res { background: var(--deep); 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: 17px; }
.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: 800; font-variant-numeric: tabular-nums; }
.res .is-earn dd { color: var(--amber); font-size: 19px; }
.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: 700; color: var(--amber-2); 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: 800; }
.sum { background: var(--amber); color: var(--amber-ink); border-radius: var(--r-l); padding: 18px 20px; box-shadow: 0 18px 40px -20px rgb(255 160 60 / .7); }
.sum__k { font-size: 14px; font-weight: 800; }
.sum__v { font: 800 clamp(34px, 7vw, 50px)/1.05 var(--f-latin-display); font-stretch: 80%; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.sum.is-err .sum__v { font-size: 24px; }
.sum__min { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgb(36 23 10 / .25); font-size: 14px; font-weight: 700; }
.how-est { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; background: var(--night-2); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.how-est .ico { color: var(--amber); margin-top: 2px; }
.how-est h3 { margin-bottom: 4px; font-size: 17px; }
.how-est p { font-size: 15px; color: var(--ink-2); }
.mg { background: var(--night-2); 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(--night-3); }
.mg__rh { grid-column: 1 / -1; padding: 10px 14px 0; font-size: 13px; font-weight: 800; color: var(--saffron); }
.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: 800 22px var(--f-latin-display); color: var(--ink); }
.mg__corner { display: none; }
.spool { width: 28px; height: 28px; border-radius: 999px; box-shadow: inset 0 0 0 3px var(--sc), inset 0 0 0 6px var(--night-3), inset 0 0 0 14px var(--sc); --sc: var(--saffron); margin-bottom: 4px; }
.spool--petg { --sc: #a9d2ff; }
@media (min-width: 720px) { .mg__row { grid-template-columns: 170px 1fr 1fr; } .mg__rh { grid-column: auto; padding: 12px 14px; font-size: 14px; } .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(--night-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); }
.note .ico { color: var(--amber); margin-top: 2px; }
.note--warn .ico { color: var(--ember); }
@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(--night-2); 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: 26px; }
.rules p { color: var(--ink-2); margin-bottom: 12px; }
.rules h3 { margin-bottom: 6px; font: 800 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: 700; }
.rules .ico { color: var(--ember); }
.scta { background: radial-gradient(100% 100% at 100% 0, rgb(255 181 74 / .3), transparent 60%), var(--night-3); display: grid; gap: 10px; 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(38px, 6vw, 60px); font-stretch: 80%; }
.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: 20px; }
.bgroup__lines { gap: 10px; }
.bgroup__t { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 20px; }
.bgroup__t a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bgroup__t a:hover { color: var(--amber); text-decoration: underline; }
.oline { display: grid; grid-template-columns: 84px 1fr auto; gap: 8px 12px; padding: 12px; border-radius: var(--r); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); border-inline-start: 4px solid var(--c); }
.oline__art { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--deep); grid-row: 1 / 3; }
.oline__name { font-size: 17px; line-height: 1.25; }
.oline__name a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.oline__name a:hover { color: var(--amber); }
.oline__by { margin: 0 0 2px; 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(255 255 255 / .3); 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: 700; 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: 44px 16px; display: grid; gap: 14px; justify-items: center; background: var(--night-2); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); }
.oempty__ico { width: 68px; height: 68px; border-radius: 999px; background: var(--night-3); display: grid; place-items: center; color: var(--amber); }
.oempty__ico .ico { width: 30px; height: 30px; }
.oempty p { color: var(--ink-2); }
.osum { background: var(--night-2); 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: 24px; }
.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: 800; text-align: end; }
.osum__rows .is-save dd { color: var(--ember); }
.osum__rows .is-total { font-size: 19px; 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(--amber); }
.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(--night-2); border-radius: var(--r-l); padding: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.onext__t { margin-bottom: 12px; font-size: 24px; }
.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: 42px; height: 42px; border-radius: 999px; background: rgb(255 181 74 / .15); color: var(--amber); 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: 19px; }
.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: 600; opacity: .85; }

/* ---------- checkout ---------- */
.ck-form { display: grid; gap: 22px; }
.ck-sec { background: var(--night-2); 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: 24px; }
.ck-sec__n { width: 30px; height: 30px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; font: 800 14px var(--f-num); }
.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(--amber); flex: none; }
.ck-check a { display: inline-block; padding: 2px 0; }
.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: 52px; border-radius: 10px; overflow: hidden; flex: none; background: var(--deep); }
.ckl__txt { flex: 1; min-width: 0; display: grid; }
.ckl__name { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.ckl__meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ckl__price { font-weight: 800; 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: 68px; height: 68px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; box-shadow: 0 0 40px rgb(255 181 74 / .5); }
.ck-done__ico .ico { width: 30px; height: 30px; }
.ck-done__hero h1 { font-size: clamp(34px, 6vw, 52px); font-stretch: 80%; }
.ck-done__num { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.ck-done__num b { font: 800 30px var(--f-latin-display); color: var(--amber); }
.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(--night-2); 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: 22px; }
.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; }
}
/* fieldsets default to min-width: min-content, which pushed the calculator past the screen on phones */
fieldset { min-width: 0; }
.calc-wrap > *, .form-card > * { min-width: 0; }
.ck-check a { min-height: 44px; display: inline-flex; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--amber-2); font-weight: 700; text-decoration: none; }
.back:hover { text-decoration: underline; }
.back .ico { width: 18px; height: 18px; }
@media (max-width: 379px) { .brand__word { font-size: 14px; } .hdr__in { gap: 3px; } .hbtn { min-width: 44px; padding: 0 6px; } .oline { grid-template-columns: 68px minmax(0, 1fr) auto; } .oline__art { width: 68px; height: 68px; } .hbtn--lang { min-width: 44px; } .mark { width: 26px; height: 26px; } .brand { gap: 6px; } }
.ck-check a { min-width: 44px; justify-content: center; }
