/* Dev Crow Egg · combined direction.
   Structure from Q Quick (compact app-style shell, side rail, tab bar, sheets, buy bar),
   look from N Living (linen, paper, oak, ink, dusty blue, clay; Young Serif, Plus Jakarta Sans, Mada). */
:root {
  --linen: #f5efe6;
  --linen-2: #eee5d7;
  --paper: #fbf8f3;
  --card: #fffdf9;
  --oak: #c9a27a;
  --oak-soft: #ecdcc6;
  --oak-ink: #7d5a38;
  --ink: #2f2c28;
  --ink-2: #4a453f;
  --muted: #675f56;
  --line: #e4d9c9;
  --line-2: #d6c6af;
  --blue: #5d7fa6;
  --blue-ink: #46668c;
  --blue-hover: #3b5778;
  --blue-deep: #2f4058;
  --blue-soft: #e2e9f2;
  --clay: #d29d87;
  --clay-ink: #a14f33;
  --clay-soft: #f4e3da;
  --sage: #6d8a5f;
  --ok: #3c7a5c;
  --bad: #a3402a;
  --bad-bg: #f8e6df;
  --r-xs: 8px; --r-s: 12px; --r: 18px; --r-l: 24px; --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(74, 52, 30, .06), 0 8px 22px -14px rgba(74, 52, 30, .28);
  --sh-2: 0 2px 6px rgba(74, 52, 30, .07), 0 22px 48px -24px rgba(74, 52, 30, .4);
  --sh-3: 0 4px 10px rgba(40, 30, 20, .1), 0 30px 70px -20px rgba(40, 30, 20, .38);
  --hdr: 56px;
  --tab: 60px;
  --bar: 74px;
  --sb: env(safe-area-inset-bottom, 0px);
  --stp: env(safe-area-inset-top, 0px);
  --gut: 16px;
  --f-body: "Plus Jakarta Sans", "Mada", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --w-display: 400;
  --lh-display: 1.1;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --fs: 16px;
  /* "See it in your room" viewer theme (shared/room-view) */
  --rv-bg: #f5efe6; --rv-surface: #fbf8f3; --rv-text: #2f2c28; --rv-muted: #675f56; --rv-line: #e1d5c3;
  --rv-accent: #46668c; --rv-accent-text: #ffffff; --rv-radius: 20px; --rv-font: var(--f-body); --rv-font-display: var(--f-display);
}
html[lang="ar"] {
  --f-body: "Mada", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-display: "Mada", system-ui, sans-serif;
  --w-display: 800;
  --lh-display: 1.35;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--hdr) + var(--stp) + 12px);
  background: var(--linen);
}
html.tx body { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) { scroll-behavior: smooth; } }
html.locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs);
  line-height: 1.55;
  color: var(--ink);
  background: var(--linen);
  min-height: 100dvh;
  padding-bottom: calc(var(--tab) + 4px + var(--sb));
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
html[lang="ar"] body { font-size: 17.5px; line-height: 1.7; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { min-inline-size: 0; min-width: 0; margin: 0; padding: 0; border: 0; }
[hidden] { display: none !important; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--f-display); font-weight: var(--w-display); line-height: var(--lh-display); text-wrap: balance; }
button, a, [role="button"], label, .chip, .tab { touch-action: manipulation; }
button, [role="button"], .tab, .chip, .btn, .seg button, .swatch { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ico { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 2px; border-radius: 10px; }
.num { font-variant-numeric: tabular-nums; }
bdi { unicode-bidi: isolate; }
html[lang="ar"] * { letter-spacing: 0 !important; }

.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;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Buttons, chips, small parts ---------- */
.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: 700; font-size: 16px; line-height: 1.2; text-align: center; white-space: nowrap;
  transition: transform .14s var(--ease), background-color .15s, box-shadow .15s, color .15s;
}
html[lang="ar"] .btn { font-size: 17px; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--blue-ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(47, 64, 88, .7); }
.btn--primary:active { background: var(--blue-deep); }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:active { background: var(--linen-2); }
.btn--soft { background: var(--blue-soft); color: var(--blue-hover); }
.btn--soft:active { background: #d3deeb; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--icon { width: 48px; padding: 0; }
.btn .ico { width: 20px; height: 20px; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading .ico { opacity: 0; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .9); border-bottom-color: rgba(255, 255, 255, .25); border-left-color: rgba(255, 255, 255, .25);
  animation: spin .7s linear infinite;
}
.btn--soft.is-loading::after, .btn--ghost.is-loading::after { border-color: var(--blue-ink); border-bottom-color: var(--blue-soft); border-left-color: var(--blue-soft); }
.btn.is-done { background: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }

.iconbtn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--ink);
  transition: background-color .15s, transform .14s var(--ease);
}
.iconbtn:active { background: var(--linen-2); transform: scale(.94); }
.linkbtn { color: var(--blue-ink); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; border-radius: 10px; }
.linkbtn .ico { width: 18px; height: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .15s, transform .14s var(--ease), box-shadow .15s;
  white-space: nowrap;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip .ico { width: 18px; height: 18px; }
.lane-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 12px 3px 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.pill .ico { width: 17px; height: 17px; color: var(--oak-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--oak-ink); }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--oak); }
.mat { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; background: var(--oak-soft); color: #6d4c2c; }
.mat--petg { background: var(--blue-soft); color: var(--blue-hover); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--linen-2); }
.seg button { min-height: 38px; min-width: 52px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--muted); transition: background-color .15s, color .15s, box-shadow .15s; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }
.seg--lg { display: flex; }
.seg--lg button { min-height: 44px; flex: 1; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  padding-top: var(--stp);
  background: rgba(245, 239, 230, .92);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  transition: box-shadow .2s;
}
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(74, 52, 30, .45); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 2px; padding-inline: 10px 6px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px; border-radius: 12px; flex: none; color: var(--ink); }
.logo__mark { width: 32px; height: 32px; }
.logo__word { font-family: "Young Serif", Georgia, serif; font-size: 18px; line-height: 1; white-space: nowrap; }
.hdr .logo { margin-inline-end: auto; }
.sbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--ink); }
.sbtn__ph { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sbtn__kbd { display: none; }
.hdr-lang { width: auto; min-width: 48px; padding: 0 10px; font-family: "Mada", var(--f-body); font-weight: 700; font-size: 16px; }
.hdr-lang[lang="en"] { font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; }
.hdr .seg.lang { display: none; }
.hdr-cart { position: relative; }
.hdr-cart__txt { display: none; }
.badge {
  position: absolute; top: 3px; inset-inline-end: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--clay-ink); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--linen); font-variant-numeric: tabular-nums; font-family: "Plus Jakarta Sans", sans-serif;
}
.badge.is-zero { display: none; }
.badge.is-bump { animation: bump .42s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
@media (max-width: 370px) {
  .logo__word { font-size: 16px; }
  .hdr__in { padding-inline: 6px 2px; }
  .hdr .iconbtn, .sbtn { width: 42px; }
}

/* ---------- Shell: rail + content ---------- */
.rail { display: none; }
.col { min-width: 0; }
main { display: block; padding: 0 var(--gut) 24px; }
.feed { max-width: 1120px; margin-inline: auto; }

/* ---------- Tab bar (phone + tablet) ---------- */
.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: rgba(251, 248, 243, .96);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 -1px 0 var(--line);
  transition: transform .25s var(--ease);
}
.tab {
  position: relative; height: var(--tab); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--muted); font-size: 12.5px; font-weight: 600; border-radius: 14px; margin: 2px;
  transition: color .15s, transform .14s var(--ease);
}
html[lang="ar"] .tab { font-size: 13.5px; line-height: 1.3; }
.tab:active { transform: scale(.94); }
.tab[aria-current="page"] { color: var(--blue-hover); }
.tab__ico { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background-color .2s; }
.tab[aria-current="page"] .tab__ico { background: var(--blue-soft); }
.tab__ico .badge { top: -5px; inset-inline-end: 4px; }
body.kb-open .tabbar, body.kb-open .mapfab { transform: translateY(160%); }

/* ---------- Souq map button (phones + tablets): inline-end corner, above the tab bar / buy bar ---------- */
.mapfab {
  position: fixed; z-index: 44; inset-inline-end: 12px; bottom: calc(var(--tab) + var(--sb) + 12px);
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 0;
  background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 10px 26px -10px rgba(60, 40, 20, .5);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.mapfab:active { transform: scale(.94); }
.mapfab__plan { width: 32px; height: 32px; margin-top: -2px; }
.mapfab__txt { font-size: 12px; font-weight: 800; line-height: 1; margin-top: -1px; color: var(--ink-2); }
html[lang="ar"] .mapfab__txt { font-size: 12.5px; line-height: 1.1; }
.has-buybar .mapfab { bottom: calc(var(--bar) + var(--sb) + 12px); }
/* Tucks under the bar while you scroll down to read; comes back when you scroll up or stop near the top/end. */
.mapfab.is-tucked { transform: translateY(calc(100% + 28px)); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .2s; }
.mapfab { transition: transform .3s var(--ease), opacity .25s; }
/* Room at the end of the page so the button never sits on the footer's last controls. */
.foot { padding-bottom: 84px !important; }

/* ---------- Layers: sheets, drawers, overlays ---------- */
.layer { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.layer[hidden] { display: none; }
.layer__scrim { position: absolute; inset: 0; background: rgba(47, 38, 28, .42); opacity: 0; transition: opacity .3s var(--ease); }
.layer.is-open .layer__scrim { opacity: 1; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 24px 24px 0 0; box-shadow: var(--sh-3);
  transform: translateY(102%); transition: transform .38s var(--ease-sheet);
  padding-bottom: var(--sb);
}
.layer.is-open .sheet { transform: none; }
.sheet.is-dragging { transition: none; }
.sheet__grab { position: relative; height: 22px; flex: none; cursor: grab; touch-action: none; }
.sheet__grab::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line-2); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 20px 10px; padding-bottom: 6px; flex: none; touch-action: none; }
.sheet__title { font-family: var(--f-display); font-weight: var(--w-display); font-size: 22px; line-height: 1.2; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; flex: 1; }
.sheet__foot { display: flex; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line); flex: none; background: var(--paper); }
.sheet__foot .btn { flex: 1; }
.group-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
html[lang="ar"] .group-label { text-transform: none; font-size: 15px; }
.listgroup { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.listgroup > * + * { border-top: 1px solid var(--line); }
.row-link { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 6px 14px; font-weight: 600; text-align: start; transition: background-color .12s; }
.row-link:active { background: var(--linen); }
.row-link > .ico:first-child { color: var(--blue-ink); }
.row-link > span:not(.lane-dot) { flex: 1; }
.row-link > .ico:last-child { width: 18px; height: 18px; color: var(--muted); }
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue-ink); background: var(--blue-soft); }
.opt:has(input:focus-visible) { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.opt__check { margin-inline-start: auto; width: 22px; height: 22px; color: var(--blue-ink); opacity: 0; }
.opt:has(input:checked) .opt__check { opacity: 1; }
.opt__sw { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(47, 44, 40, .18); flex: none; }
.opts--row { grid-template-columns: repeat(3, 1fr); }
.opts--row .opt { justify-content: center; text-align: center; padding: 8px 6px; font-size: 15px; }
.opts--row .opt__check { display: none; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 90; inset-inline: 12px; bottom: calc(var(--tab) + var(--sb) + 12px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.has-buybar .toasts { bottom: calc(var(--bar) + var(--sb) + 12px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(100%, 440px);
  min-height: 56px; padding: 8px; padding-inline: 10px 8px;
  background: var(--ink); color: var(--paper); border-radius: 18px; box-shadow: var(--sh-3);
  font-size: 15px; font-weight: 500;
  transform: translateY(16px) scale(.98); opacity: 0; transition: transform .3s var(--ease-sheet), opacity .2s;
}
.toast.is-on { transform: none; opacity: 1; }
.toast__ico { width: 32px; height: 32px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; flex: none; }
.toast__ico .ico { width: 18px; height: 18px; color: #fff; }
.toast__art { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; }
.toast__art .vig { width: 100%; height: 100%; }
.toast__msg { flex: 1; min-width: 0; line-height: 1.35; }
.toast__msg b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast__msg span { color: #d9cfc1; font-size: 14px; }
.toast__undo { min-height: 44px; padding: 0 14px; border-radius: 12px; color: #f2c9a8; font-weight: 800; }

/* ---------- Sections ---------- */
.sec { margin-top: 30px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec__title { font-size: 25px; }
html[lang="ar"] .sec__title { font-size: 24px; }
.sec__sub { color: var(--muted); font-size: 16px; margin-top: 4px; }
html[lang="ar"] .sec__sub { font-size: 17px; }
.sec__head .eyebrow { margin-bottom: 4px; }
.sec__arrows { display: none; gap: 8px; flex: none; }
.card { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh-1); }

/* ---------- Product cards and rows ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); transition: transform .18s var(--ease), box-shadow .2s; }
.pc:has(.pc__link:active) { transform: scale(.98); }
.pc__link { display: flex; flex-direction: column; flex: 1; border-radius: var(--r); color: inherit; }
.pc__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--linen-2); }
.pc__media .vig { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.pc__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pc__price { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; font-family: "Plus Jakarta Sans", var(--f-body); }
.pc__name { font-family: var(--f-display); font-weight: var(--w-display); font-size: 16px; line-height: 1.28; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="ar"] .pc__name { font-family: "Young Serif", Georgia, serif; font-weight: 400; }
.pc__meta { font-size: 13px; color: var(--muted); line-height: 1.4; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
html[lang="ar"] .pc__meta { font-size: 14px; }
.pc__seller { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pc__add {
  position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--blue-ink); box-shadow: 0 2px 10px rgba(60, 40, 20, .18);
  transition: transform .14s var(--ease), background-color .15s, color .15s;
}
.pc__add:active { transform: scale(.88); }
.pc__add.is-done { background: var(--ok); color: #fff; }
.hrow {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2.2);
  gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 14px; scroll-padding-inline: var(--gut); scrollbar-width: none;
}
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { scroll-snap-align: start; }

/* ---------- Hero: the globe ---------- */
.hero { display: grid; gap: 12px; padding-top: 14px; }
.hero__copy { display: grid; gap: 10px; justify-items: start; }
.hero h1 { font-size: clamp(31px, 8.6vw, 36px); letter-spacing: -.01em; }
html[lang="ar"] .hero h1 { font-size: clamp(28px, 7.8vw, 34px); }
.hero__sub { color: var(--ink-2); max-width: 34em; }
.hero__ctas { display: flex; gap: 10px; width: 100%; margin-top: 4px; }
.hero__ctas .btn { flex: 1; }
.globe {
  position: relative; height: clamp(300px, 44svh, 420px); margin: 0 calc(-1 * var(--gut)); overflow: hidden;
  border-radius: 0; outline-offset: -4px;
  background: radial-gradient(60% 56% at 50% 48%, #fbf3e6 0%, rgba(251, 243, 230, 0) 72%);
}
.globe__poster, .globe__canvas, .globe__labels { position: absolute; inset: 0; }
.globe__poster { display: grid; place-items: center; transition: opacity .6s; }
.globe__poster svg { width: min(78%, 330px); height: auto; }
.globe.is-live .globe__poster { opacity: 0; }
.globe__canvas canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.globe.is-dragging canvas { cursor: grabbing; }
.globe__labels { pointer-events: none; overflow: hidden; }
.glabel {
  position: absolute; top: 0; left: 0; margin: -11px 0 0 12px; padding: 1px 8px; border-radius: 999px;
  background: rgba(251, 248, 243, .9); color: var(--ink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.6;
  box-shadow: 0 1px 4px rgba(60, 40, 20, .14); will-change: transform; opacity: 0;
}
.glabel.is-flip { margin-left: 0; translate: calc(-100% - 12px) 0; }
.glabel--studio { background: var(--clay-ink); color: #fff; margin-top: 8px; }
.globe__tick {
  position: absolute; z-index: 2; bottom: 12px; inset-inline-start: var(--gut); display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 4px 12px; border-radius: 999px; background: rgba(251, 248, 243, .94); box-shadow: var(--sh-1);
  font-size: 13.5px; color: var(--ink-2); max-width: calc(100% - 2 * var(--gut));
}
.globe__tick b { color: var(--ink); white-space: nowrap; }
.globe__tick .km { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.globe__tick.is-tick b { animation: tick .5s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(5px); } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay-ink); flex: none; box-shadow: 0 0 0 0 rgba(161, 79, 51, .45); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(161, 79, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(161, 79, 51, 0); } }
.hint {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px;
  background: rgba(251, 248, 243, .94); color: var(--ink-2); font-size: 13.5px; font-weight: 600; box-shadow: var(--sh-1); pointer-events: none; white-space: nowrap;
  transition: opacity .4s;
}
html[lang="ar"] .hint, html[lang="ar"] .globe__tick { font-size: 14px; }
.hint .ico { width: 17px; height: 17px; }
.globe .hint { top: 8px; inset-inline-end: var(--gut); }
.globe.is-touched .hint { opacity: 0; }

/* ---------- The souq: alley + stalls ---------- */
.souq__intro { display: grid; gap: 4px; margin-bottom: 12px; }
.souq__intro h2 { font-size: 25px; }
.souq__intro p { color: var(--muted); }
.alley {
  position: relative; height: clamp(340px, 58svh, 520px); margin: 0 calc(-1 * var(--gut)); overflow: hidden;
  background: linear-gradient(#a8b6cc, #e8c49a 60%, #b8916a 60%);
}
.alley__poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; }
.alley.is-live .alley__poster { opacity: 0; }
.alley__canvas { position: absolute; inset: 0; }
.alley__canvas canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; }
.alley__signs { position: absolute; inset: 0; pointer-events: none; }
.signbtn {
  position: absolute; left: 0; top: 0; pointer-events: auto; border-radius: 12px; background: transparent;
  transition: box-shadow .2s, background-color .2s;
}
.signbtn:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--blue-ink); }
.alley .hint { bottom: 12px; inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .alley .hint { transform: translateX(50%); }
.alley .hint .ico { color: var(--clay-ink); }
.alley.is-walking .hint { opacity: 0; }

.strip { position: relative; margin-top: 12px; }
.strip__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 4px; }
.strip__where { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.strip__where b { color: var(--ink); }
.strip__where .ico { width: 18px; height: 18px; color: var(--clay-ink); }
.stalls {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - 40px); gap: 12px; align-items: start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 14px; scroll-padding-inline: var(--gut);
}
.stalls::-webkit-scrollbar { display: none; }
.stalls > li { scroll-snap-align: start; min-width: 0; }
.stall {
  position: relative; background: var(--card); border-radius: 18px 18px var(--r) var(--r); box-shadow: var(--sh-1); overflow: hidden;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease); outline-offset: -3px;
}
.stall__awning {
  height: 26px; background: repeating-linear-gradient(90deg, var(--c) 0 22px, var(--s) 22px 44px);
  -webkit-mask: radial-gradient(11px 9px at 11px 100%, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
  mask: radial-gradient(11px 9px at 11px 100%, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
}
.stall__sign { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 10px 14px 4px; }
.stall__no { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: var(--k); font-size: 13px; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }
.stall__name { font-family: var(--f-display); font-weight: var(--w-display); font-size: 22px; line-height: 1.2; }
.stall__count { font-size: 14px; color: var(--muted); }
.stall__shops { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 14px 8px; }
.stall__shops::-webkit-scrollbar { display: none; }
.shopchip {
  flex: none; display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 3px 12px; border-radius: 12px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); text-align: start; line-height: 1.2; font-size: 14px; font-weight: 700; color: var(--ink);
  transition: background-color .15s, box-shadow .15s, color .15s;
}
.shopchip small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.shopchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.shopchip[aria-pressed="true"] small { color: #d9cfc1; }
.shopchip--all { flex-direction: row; align-items: center; }
.stall__goods { padding: 0 8px 8px; }
.stall__goods > li { position: relative; transition: opacity .25s; }
.stall__goods > li[hidden] { display: none; }
.good { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px; padding-inline-end: 56px; border-radius: 14px; transition: background-color .15s; }
.good:active { background: var(--linen); }
.good__art { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: var(--linen-2); }
.good__art .vig { width: 100%; height: 100%; }
.good__txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.good__name { font-weight: 700; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.good__meta { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.good__meta .good__price { color: var(--ink); font-size: 14px; }
html[lang="ar"] .good__meta { font-size: 14px; }
.good__price { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: "Plus Jakarta Sans", var(--f-body); }
.good__add { position: absolute; top: 50%; inset-inline-end: 6px; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--blue-ink); background: var(--blue-soft); transition: transform .14s var(--ease), background-color .15s; }
.good__add:active { transform: scale(.9); }
.good__add.is-done { background: var(--ok); color: #fff; }
.good__add .ico { width: 20px; height: 20px; }
.stall.is-arrived { box-shadow: 0 0 0 3px var(--c), var(--sh-2); }
.stall.is-arrived .stall__awning { animation: awning .7s var(--ease); transform-origin: top; }
@keyframes awning { from { transform: scaleY(.3); } }

/* ---------- Souq map (rail, sheet, dialog) ---------- */
.smap { display: grid; gap: 10px; }
.smap__here { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.smap__here .ico { width: 18px; height: 18px; color: var(--clay-ink); }
.smap__here b { color: var(--ink); }
.smap__plan { position: relative; display: grid; grid-template-rows: auto auto; gap: 8px; padding: 12px 10px 8px; border-radius: 18px; background: #efe4d3; box-shadow: inset 0 0 0 1px var(--line-2); }
.smap__stalls { display: grid; grid-template-columns: 1fr 22px 1fr; grid-template-rows: repeat(3, auto); gap: 10px 0; }
.smap__walk { position: absolute; top: 12px; bottom: 54px; left: 50%; width: 22px; margin-left: -11px; border-radius: 6px; background: #e2d2ba;
  background-image: radial-gradient(circle, #e7a74e 2.6px, transparent 3px); background-size: 22px 34px; background-position: center 10px; }
.smap__stall { position: relative; display: grid; border-radius: 14px; background: var(--card); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 0 0 1px var(--line); overflow: visible; }
.smap__stall[data-side="l"] { grid-column: 1; border-inline-end: 0; }
.smap__stall[data-side="r"] { grid-column: 3; }
.smap__stall::before { content: ''; position: absolute; top: 8px; bottom: 8px; width: 6px; border-radius: 3px; background: var(--c); }
.smap__stall[data-side="l"]::before { right: -3px; }
.smap__stall[data-side="r"]::before { left: -3px; }
.smap__go { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 14px 14px 0 0; font-weight: 700; font-size: 14.5px; line-height: 1.25; color: var(--ink); }
.smap__no { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--c); color: var(--k); font-size: 12px; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }
.smap__name { min-width: 0; overflow-wrap: anywhere; }
[dir="rtl"] .smap__go, [dir="rtl"] .smap__open, [dir="rtl"] .smap__gate { direction: rtl; }
.smap__open { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; padding: 0 8px 0 10px; border-top: 1px dashed var(--line-2); border-radius: 0 0 14px 14px; font-size: 13px; font-weight: 700; color: var(--blue-hover); }
.smap__open .ico { width: 16px; height: 16px; }
.smap__stall.is-here { box-shadow: 0 0 0 2.5px var(--ink); }
.smap__pin {
  position: absolute; z-index: 2; top: -9px; right: -7px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--paper); pointer-events: none;
}
.smap__pin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.smap__pin .ico { width: 14px; height: 14px; }
.smap__gatebox { position: relative; display: flex; justify-content: center; }
.smap__gate { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px 999px 10px 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.smap__gate b { color: var(--ink); }
.smap__gate .ico { width: 20px; height: 20px; color: var(--oak-ink); }
.smap__gatebox.is-here .smap__gate { box-shadow: 0 0 0 2.5px var(--ink); }
.smap__gatebox .smap__pin { right: auto; left: calc(50% + 52px); top: -8px; }
.smap__note { display: flex; gap: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.smap__note .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--oak-ink); }
.smap__lanehead { display: grid; gap: 4px; padding-bottom: 8px; border-bottom: 4px solid var(--c); }
.smap__back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-inline: 2px 10px; font-weight: 700; color: var(--blue-hover); border-radius: 10px; }
.smap__back .ico { width: 20px; height: 20px; }
.smap__lanetitle { font-family: var(--f-display); font-weight: var(--w-display); font-size: 21px; line-height: 1.2; }
.smap__lanekick { display: block; font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--muted); }
.smap__shops { position: relative; display: grid; grid-template-columns: 1fr 22px 1fr; gap: 10px 0; padding: 10px; border-radius: 16px; background: #efe4d3; }
.smap__shops::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 50%; width: 22px; margin-left: -11px; border-radius: 6px; background: #e2d2ba; }
.smap__shop { position: relative; z-index: 1; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.smap__shop[data-side="l"] { grid-column: 1; }
.smap__shop[data-side="r"] { grid-column: 3; }
.smap__shop .smap__go { align-items: flex-start; border-radius: 12px; min-height: 56px; }
.smap__shop .smap__go > .ico { width: 20px; height: 20px; color: var(--c, var(--oak-ink)); margin-top: 1px; }
.smap__shopname { display: grid; min-width: 0; overflow-wrap: anywhere; }
.smap__shopname small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.smap__shop.is-here { box-shadow: 0 0 0 2.5px var(--ink); }
.smap__all { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 700; }
.smap__all > span { flex: 1; }
.smap__all .ico { width: 20px; height: 20px; color: var(--oak-ink); }
.map-l .sheet__body { padding-top: 0; }

/* ---------- Sale prices (example discounts) ---------- */
.pr { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.pr__was { color: var(--muted); font-size: max(12px, .8em); font-weight: 600; text-decoration-thickness: 1.5px; }
.pr__off { align-self: center; display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: 6px; background: var(--clay-ink); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; font-family: "Plus Jakarta Sans", var(--f-body); }
html[lang="ar"] .pr__off { font-family: "Mada", var(--f-body); font-size: 12.5px; }
.pr--sm .pr__now { font-weight: 800; color: var(--ink); }
.pr--sm .pr__off { min-height: 18px; font-size: 12px; padding: 0 5px; }
.pr--col { flex-direction: column; align-items: flex-end; gap: 2px; }
.pr--hero .pr__now { font-size: 30px; font-weight: 800; line-height: 1.1; font-family: "Plus Jakarta Sans", var(--f-body); }
.pr--hero .pr__was { font-size: 16px; }
.pr--hero .pr__off { font-size: 13.5px; min-height: 24px; padding: 0 8px; }

/* ---------- The surprise egg: corner dock ----------
   Phones and tablets: a small pocket at the inline-start end of the bottom bar (tab bar or buy bar). The bar
   starts after it, so the egg lives in the bottom chrome and never sits over the page; the page already keeps
   bottom space for the bar. Desktop: it leans out of the inline-end edge, inside the page's empty side padding,
   and tucks away whenever text or a control would be underneath. */
:root { --pocket: 0px; }
html.has-egg { --pocket: 80px; }
@media (max-width: 1099.98px) {
  html.has-egg .tabbar, html.has-egg .buybar { inset-inline-start: var(--pocket); }
}
.eggdock {
  position: fixed; z-index: 46; inset-inline-start: 0; bottom: 0; width: var(--pocket); height: calc(var(--tab) + 4px + var(--sb));
  padding-bottom: var(--sb); pointer-events: none; --tuck: -1; overflow: hidden;
  background: rgba(251, 248, 243, .96); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 -1px 0 var(--line), inset -1px 0 0 var(--line);
  transition: transform .35s var(--ease), opacity .25s;
}
[dir="rtl"] .eggdock { --tuck: 1; box-shadow: 0 -1px 0 var(--line), inset 1px 0 0 var(--line); }
.has-buybar .eggdock { height: calc(var(--bar) + var(--sb)); }
.has-buybar .eggdock__x { margin-top: calc(-22px - var(--sb) / 2); }
html:not(.has-egg) .eggdock { display: none; }
.eggdock.is-gone { opacity: 0; }
.eggdock.is-measure, .eggdock.is-measure * { visibility: hidden !important; transition: none !important; }
.eggdock.is-away .eggdock__btn, .eggdock.is-away .eggdock__tag { opacity: 0; transition: opacity .15s; }
body.kb-open .eggdock { transform: translateY(110%); }
.eggdock__nest { position: absolute; inset-inline-start: 2px; bottom: calc(var(--sb) + 3px); width: 46px; height: 14px; color: var(--oak); }
.eggdock__btn { position: absolute; inset-inline-start: -3px; bottom: calc(var(--sb) + 3px); width: 46px; height: 57px; pointer-events: auto; border-radius: 48% 48% 46% 46% / 58% 58% 42% 42%; }
.has-buybar .eggdock__btn { bottom: calc(var(--sb) + 7px); width: 50px; height: 62px; }
.eggdock__btn:focus-visible { outline-offset: 2px; }
.eggdock.is-tucked .eggdock__btn { transform: translateY(105%); opacity: 0; pointer-events: none; }
.eggdock__btn { transition: transform .45s var(--ease), opacity .3s; }
.eggdock__art { position: absolute; inset: 0; transform-origin: 50% 92%; filter: drop-shadow(0 4px 6px rgba(60, 40, 20, .25)); }
.eggdock__poster, .eggdock__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.eggdock__poster .egg__svg { width: 100%; height: 100%; }
.eggdock.is-3d .eggdock__poster { display: none; }
[dir="rtl"] .eggdock__tag { translate: 50% 0; }
[dir="rtl"] .eggdock__art canvas, [dir="rtl"] .eggdock__poster .egg__svg { transform: scaleX(-1); }
.eggdock__tag {
  position: absolute; top: 3px; inset-inline-start: 26px; z-index: 2; translate: -50% 0; padding: 1px 6px; border-radius: 999px;
  background: #8a5c12; color: #fffaf0; font-size: 12px; font-weight: 800; line-height: 1.35; white-space: nowrap; box-shadow: 0 2px 6px rgba(60, 40, 20, .3);
  pointer-events: none; transition: opacity .3s;
}
.eggdock.is-tucked .eggdock__tag { opacity: 0; }
html[lang="ar"] .eggdock__tag { font-family: "Mada", var(--f-body); }
.eggdock__x { position: absolute; top: 50%; margin-top: -22px; inset-inline-end: 0; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; pointer-events: auto; border-radius: 50%; color: var(--ink-2); }
.eggdock__x .ico { width: 12px; height: 12px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 2px 5px rgba(60, 40, 20, .18); }
.eggdock.is-tucked .eggdock__x { opacity: 0; pointer-events: none; }
.eggdock.is-pop .eggdock__art { animation: eggPop .8s cubic-bezier(.2, 1.35, .4, 1) both, eggWobble 9s ease-in-out 5s infinite; }
.eggdock:not(.is-pop) .eggdock__art { animation: eggWobble 9s ease-in-out 5s infinite; }
@keyframes eggPop { from { transform: translateY(70%) scale(.7) rotate(calc(var(--tuck) * 10deg)); opacity: 0; } 55% { opacity: 1; } to { transform: none; } }
@keyframes eggWobble { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-5deg); } 94% { transform: rotate(4deg); } 97% { transform: rotate(-2deg); } }
@media (min-width: 1100px) {
  /* Desktop: no bottom bar. The rail owns inline-start, so the egg leans out of the inline-end edge,
     inside the page's 40px side padding, and tucks back out of view while the page scrolls. */
  .eggdock { inset-inline-start: auto; inset-inline-end: 0; bottom: 24px; width: 74px; height: 136px; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; --tuck: 1; }
  [dir="rtl"] .eggdock { --tuck: -1; box-shadow: none; }
  .eggdock__nest { display: none; }
  .eggdock__btn, .has-buybar .eggdock__btn { left: auto; margin: 0; bottom: 0; inset-inline-end: -30px; width: 72px; height: 92px; }
  .eggdock__art canvas { transform: scaleX(-1); }
  .eggdock__poster .egg__svg { transform: scaleX(-1) rotate(10deg); }
  [dir="rtl"] .eggdock__art canvas { transform: none; }
  [dir="rtl"] .eggdock__poster .egg__svg { transform: rotate(10deg); }
  .eggdock.is-tucked .eggdock__btn { transform: translateX(calc(var(--tuck) * 100%)); }
  .eggdock__tag { top: 8px; inset-inline-start: auto; translate: none; inset-inline-end: 33px; }
  .eggdock__x { top: 0; margin: 0; inset-inline-end: -4px; }
  @keyframes eggPop { from { transform: translateX(calc(var(--tuck) * 60%)) scale(.7) rotate(calc(var(--tuck) * 14deg)); opacity: 0; } 55% { opacity: 1; } to { transform: none; } }
}

/* ---------- The surprise egg: dialog ---------- */
.egg-l .sheet { max-width: 440px; transform: none !important; opacity: 0; transition: opacity .25s var(--ease); }
.egg-l.is-open .sheet { opacity: 1; }
.eggd .sheet__head { padding-top: 14px; }
.eggd__stage { position: relative; height: clamp(170px, 28svh, 230px); margin: 0 -20px; transition: transform .46s var(--ease); transform-origin: 50% 50%;
  background: radial-gradient(60% 70% at 50% 60%, #fbf1df 0%, rgba(251, 241, 223, 0) 75%); }
.eggd__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.eggd__stage.is-3d .eggd__svg { display: none; }
.eggd__svg { position: absolute; inset: 0; display: grid; place-items: center; }
.eggd__svg .egg__svg { height: 92%; width: auto; }
.eggd__svg .egg__top, .eggd__svg .egg__shell { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .55s var(--ease); }
.eggd__svg .egg__crack { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s; }
.eggd__svg.is-cracking .egg__shell { animation: wobbleSmall .34s ease-in-out; }
.eggd__svg.is-cracking .egg__crack, .eggd__svg.is-open .egg__crack { stroke-dashoffset: 0; }
.eggd__svg.is-open .egg__top { transform: translate(10px, -22px) rotate(16deg); }
@keyframes wobbleSmall { 30% { transform: rotate(-3deg); } 65% { transform: rotate(2.5deg); } }
.eggd__reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .45s var(--ease); }
.egg-l.is-revealed .eggd__reveal { opacity: 1; transform: none; }
.eggd__kick { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--oak-ink); margin-bottom: 8px; }
.eggd__kick::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--oak); }
.eggd__card { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.eggd__card.is-sale { box-shadow: inset 0 0 0 1.5px #d9b56a; background: linear-gradient(135deg, #fffaf0, #fbf3e3); }
.eggd__art { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; flex: none; }
.eggd__art .vig { width: 100%; height: 100%; }
.eggd__txt { min-width: 0; display: grid; gap: 2px; }
.eggd__name { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 19px; line-height: 1.25; }
.eggd__by { font-size: 14px; color: var(--muted); }
.eggd__price { margin-top: 2px; }
.eggd__note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.eggd__acts { display: flex; gap: 10px; margin-top: 14px; }
.eggd__acts .btn { flex: 1; }

/* ---------- Shop the room ---------- */
.room { display: grid; gap: 10px; }
.stage { position: relative; height: clamp(250px, 36svh, 340px); margin: 0 calc(-1 * var(--gut)); overflow: hidden; background: #e9dccb; }
.stage__poster { position: absolute; inset: 0; transition: opacity .6s; }
.stage__poster .vig { width: 100%; height: 100%; }
.stage.is-live .stage__poster { opacity: 0; pointer-events: none; }
.stage__canvas { position: absolute; inset: 0; }
.stage__canvas canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; }
.stage__top { position: absolute; z-index: 3; top: 10px; inset-inline: 10px; display: flex; justify-content: flex-end; pointer-events: none; }
.stage__top > * { pointer-events: auto; }
.daynight { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(251, 248, 243, .94); box-shadow: var(--sh-1); }
.daynight button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.daynight button[aria-pressed="true"] { background: var(--blue-ink); color: #fff; }
.daynight .ico { width: 17px; height: 17px; }
.stage .hint { bottom: 10px; inset-inline-start: 10px; }
.stage.is-touched .hint { opacity: 0; }
.spots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.spot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; pointer-events: auto; transition: opacity .3s; }
.spot.is-off { opacity: 0; pointer-events: none; }
.spot__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px rgba(251, 248, 243, .45), 0 4px 10px rgba(40, 30, 20, .3); display: grid; place-items: center; }
.spot__dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-ink); }
.spot[aria-expanded="true"] .spot__dot::after { background: var(--clay-ink); }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .spot__dot { animation: breathe 2.6s ease-in-out infinite; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 9px rgba(251, 248, 243, .28), 0 4px 10px rgba(40, 30, 20, .3); } }
.spotcard {
  position: absolute; z-index: 4; left: 0; top: 0; width: min(290px, calc(100% - 20px)); padding: 12px 14px; border-radius: 18px;
  background: var(--card); box-shadow: var(--sh-3);
}
.spotcard.is-in { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; scale: .96; } }
.spotcard__x { position: absolute; top: 4px; inset-inline-end: 4px; }
.spotcard__kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-inline-end: 40px; }
.spotcard h3 { font-family: var(--f-display); font-weight: var(--w-display); font-size: 18px; line-height: 1.25; margin-top: 4px; padding-inline-end: 34px; }
.spotcard__desc { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.spotcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.spotcard__price { font-size: 20px; font-weight: 800; font-family: "Plus Jakarta Sans", var(--f-body); }
.inroom__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 4px; }
.inroom__list::-webkit-scrollbar { display: none; }
.inroom__list > li { flex: none; }
.inroom__btn { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 14px 4px 4px; padding-inline: 4px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: start; }
.inroom__btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue-ink); background: var(--blue-soft); }
.inroom__sw { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; }
.inroom__sw .vig { width: 100%; height: 100%; }
.inroom__txt { display: grid; line-height: 1.25; }
.inroom__name { font-weight: 700; font-size: 14px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inroom__price { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.inroom__head { display: none; }

/* ---------- How print on demand works ---------- */
.how__why { font-family: var(--f-display); font-weight: var(--w-display); font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; margin-bottom: 12px; }
html[lang="ar"] .how__why { font-size: 18px; line-height: 1.7; }
.how__steps { position: relative; padding: 6px 16px; }
.how__step { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 10px 0; }
.how__step::before { content: ''; position: absolute; inset-inline-start: 20px; top: 54px; bottom: -10px; width: 2px; background: repeating-linear-gradient(to bottom, var(--oak) 0 5px, transparent 5px 9px); }
.how__step:last-child::before { display: none; }
.how__dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--oak-soft); color: var(--oak-ink); position: relative; z-index: 1; }
.how__dot .ico { width: 21px; height: 21px; }
.how__step:nth-child(3) .how__dot { background: var(--blue-ink); color: #fff; }
.how__t { font-weight: 800; line-height: 1.3; font-size: 16px; }
.how__d { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 2px; }
html[lang="ar"] .how__d { font-size: 16px; line-height: 1.6; }

/* ---------- Seller band ---------- */
.band { position: relative; overflow: hidden; color: var(--paper); border-radius: var(--r-l); padding: 22px 18px 18px; background: linear-gradient(150deg, #2f4058 0%, #263447 100%); }
.band::after { content: ''; position: absolute; inset-inline-end: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 201, 168, .22), transparent 70%); pointer-events: none; }
.band .eyebrow { color: #f2c9a8; }
.band .eyebrow::before { background: #f2c9a8; }
.band h2 { font-size: 28px; margin-top: 6px; }
.band p { margin-top: 8px; color: #e6ddd1; }
.band__files { font-size: 15px; color: #cdd7e4 !important; }
.band__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.band .btn--light { color: var(--blue-deep); }
.band .btn--line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(251, 248, 243, .45); }
.ex { margin-top: 16px; background: rgba(0, 0, 0, .18); border-radius: 16px; padding: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ex__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: #e6ddd1; }
.ex__item { font-weight: 700; color: #fff; }
.ex__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ex__rows div { background: rgba(0, 0, 0, .2); border-radius: 12px; padding: 8px; min-width: 0; }
.ex__rows dt { font-size: 13px; color: #e6ddd1; }
html[lang="ar"] .ex__rows dt, html[lang="ar"] .ex__top { font-size: 14px; }
.ex__rows dd { font-size: clamp(14px, 4.2vw, 17px); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: "Plus Jakarta Sans", var(--f-body); }
.ex__rows .is-earn { background: var(--paper); }
.ex__rows .is-earn dt, .ex__rows .is-earn dd { color: var(--blue-deep); }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust li { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 14px; }
.trust .ico { color: var(--oak-ink); width: 26px; height: 26px; }
.trust h3 { font-size: 15px; font-weight: 800; margin-top: 8px; line-height: 1.3; }
.trust p { font-size: 14.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
html[lang="ar"] .trust h3 { font-size: 16px; } html[lang="ar"] .trust p { font-size: 15px; line-height: 1.6; }

/* ---------- Footer ---------- */
.foot { background: var(--paper); margin-top: 36px; padding: 22px var(--gut) 18px; box-shadow: 0 -1px 0 var(--line); }
.foot__in { max-width: 1120px; margin-inline: auto; }
.foot__brand p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 10px; }
.foot h2 { font-family: var(--f-body); font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 0; }
html[lang="ar"] .foot h2 { text-transform: none; font-size: 15px; }
.foot ul a { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; border-radius: 10px; }
.foot__base { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.foot__lang { display: flex; align-items: center; gap: 10px; }
.foot__lang .seg button { min-height: 44px; }

/* ---------- Menu sheet ---------- */
.menu-sheet .sheet__body { padding-top: 0; }
.menu-sheet .seg { width: 100%; }

/* ---------- Search overlay (from Q) ---------- */
.search-l { align-items: stretch; }
.search {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--linen);
  transform: translateY(24px); opacity: 0; transition: transform .3s var(--ease-sheet), opacity .2s;
}
.layer.is-open .search { transform: none; opacity: 1; }
.search__bar { display: flex; align-items: center; gap: 6px; padding: calc(var(--stp) + 6px) 8px 8px 12px; padding-inline: 12px 6px; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.sfield { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding-inline: 14px 4px; border-radius: 999px; background: var(--linen); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
.sfield:focus-within { box-shadow: inset 0 0 0 2px var(--blue-ink); background: #fff; }
.sfield .ico { width: 20px; height: 20px; color: var(--ink-2); }
.sfield input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-size: 17px; }
.sfield input::-webkit-search-cancel-button { display: none; }
.sfield__clear { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sfield__clear .ico { width: 18px; height: 18px; }
.search__cancel { min-height: 44px; padding: 0 10px; color: var(--blue-ink); font-weight: 700; border-radius: 10px; }
.search__filters { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; background: var(--paper); scrollbar-width: none; box-shadow: 0 1px 0 var(--line); }
.search__filters::-webkit-scrollbar { display: none; }
.search__filters .chip { flex: none; }
.chip--filter { background: var(--ink); color: var(--paper); box-shadow: none; }
.search__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(24px + var(--sb)); }
.search__body .group-label { display: flex; justify-content: space-between; align-items: center; }
.search__body .group-label .linkbtn { text-transform: none; letter-spacing: 0; font-size: 15px; }
.recent { display: flex; flex-wrap: wrap; gap: 8px; }
.recent__item { display: inline-flex; align-items: center; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.recent__item .chip { box-shadow: none; background: none; padding-inline: 14px 4px; }
.recent__x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.recent__x .ico { width: 16px; height: 16px; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.sres__count { font-size: 14px; color: var(--muted); margin: 14px 2px 8px; }
.sres { display: grid; gap: 8px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 8px; padding-inline-end: 14px; background: var(--card); border-radius: 16px; box-shadow: var(--sh-1); }
.srow__art { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; }
.srow__art .vig { width: 100%; height: 100%; }
.srow__txt { flex: 1; min-width: 0; }
.srow__name { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.srow__name mark { background: var(--oak-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.srow__meta { display: block; font-size: 14px; color: var(--muted); }
.srow__price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; padding: 36px 12px 16px; }
.empty__ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--muted); box-shadow: var(--sh-1); }
.empty h3 { font-size: 18px; font-weight: 700; }
.empty p { color: var(--muted); margin-top: 4px; }
.empty .sugg { justify-content: center; margin-top: 14px; }

/* ---------- Cart ---------- */
.cart-sheet .sheet { height: 92dvh; }
.citem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.citem__art { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; flex: none; }
.citem__art .vig { width: 100%; height: 100%; }
.citem__txt { flex: 1; min-width: 0; }
.citem__name { font-weight: 700; line-height: 1.3; }
.citem__meta { font-size: 14px; color: var(--muted); }
.citem__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.citem__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.citem.is-new { animation: flash 1.6s var(--ease); border-radius: 12px; }
@keyframes flash { 0%, 30% { background: var(--blue-soft); } 100% { background: transparent; } }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--linen-2); }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: var(--ink); }
.stepper button:disabled { color: var(--line-2); cursor: default; }
.stepper .ico { width: 18px; height: 18px; }
.stepper output, .stepper span { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-added { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 6px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-hover); font-weight: 700; font-size: 15px; }
.cart-added .ico { width: 20px; height: 20px; }
.cart-added span { flex: 1; min-width: 0; }
.cart-added .linkbtn { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 4px; }
.cart-sum b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cart-note { font-size: 13px; color: var(--muted); }
.cart-foot { flex-direction: column; }

/* ---------- Product page ---------- */
.crumb { display: none; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 4px 12px; margin: 4px 0 4px -6px; margin-inline-start: -6px; font-weight: 700; color: var(--blue-ink); border-radius: 12px; }
.back .lane-dot { width: 10px; height: 10px; }
.back .ico { width: 22px; height: 22px; }
.pdp { display: block; }
.v3d { position: relative; margin: 0 calc(-1 * var(--gut)); aspect-ratio: 1 / 1.02; max-height: 62svh; width: calc(100% + 2 * var(--gut)); overflow: hidden;
  background: radial-gradient(90% 80% at 50% 40%, #fffaf2 0%, #f1e6d6 62%, #e8dac5 100%); }
.v3d__poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s; }
.v3d__poster .vig { width: 100%; height: 100%; }
.v3d.is-live .v3d__poster { opacity: 0; pointer-events: none; }
.v3d__canvas { position: absolute; inset: 0; outline: none; }
.v3d__canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--blue-ink); border-radius: 0; }
.v3d__canvas canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.v3d__canvas canvas:active { cursor: grabbing; }
.v3d__ctrls { position: absolute; z-index: 4; bottom: 12px; inset-inline-end: 12px; display: flex; flex-direction: column; gap: 8px; }
.v3d__ctrls button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 248, 243, .96); color: var(--ink); box-shadow: 0 2px 8px rgba(60, 40, 20, .16); transition: transform .14s var(--ease), background-color .15s, color .15s; }
.v3d__ctrls button:active { transform: scale(.9); }
.v3d__ctrls button[aria-pressed="true"] { background: #2b2116; color: #ffcf7a; }
.v3d__ctrls .ico { width: 20px; height: 20px; }
.v3d__xv { position: absolute; z-index: 4; bottom: 12px; inset-inline-start: 12px; background: rgba(238, 229, 215, .96); box-shadow: var(--sh-1); }
.v3d__xv button { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.v3d__xv .ico { width: 18px; height: 18px; }
.v3d__hint { position: absolute; z-index: 3; top: 12px; inset-inline-start: 12px; max-width: calc(100% - 24px); display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: rgba(251, 248, 243, .94); font-size: 13.5px; color: var(--ink-2); pointer-events: none; box-shadow: var(--sh-1); line-height: 1.3; transition: opacity .3s; }
html[lang="ar"] .v3d__hint { font-size: 14px; }
.v3d__hint .ico { width: 16px; height: 16px; flex: none; }
.v3d.has-callout .v3d__hint { opacity: 0; }
.v3d__toast { position: absolute; z-index: 6; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 12px; background: rgba(47, 44, 40, .86); color: #fff; font-size: 15px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.v3d__toast.is-on { opacity: 1; }
.v3d.is-failed .v3d__ctrls, .v3d.is-failed .co, .v3d.is-failed .v3d__xv { display: none; }
.v3d__fail { position: absolute; z-index: 3; bottom: 12px; inset-inline: 12px; text-align: center; font-size: 14px; color: var(--ink-2); }
/* Callouts (M Specimen): numbered dots on the model, one card at a time, with a leader line */
.co { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.co__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.co__lines path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 3; }
.co__lines circle { fill: var(--ink); }
.co__pin { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; pointer-events: auto; border-radius: 50%; transition: opacity .25s; }
.co__pin span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 800; box-shadow: 0 0 0 2px var(--ink), 0 4px 10px rgba(40, 30, 20, .25); font-family: "Plus Jakarta Sans", sans-serif; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.co__pin[aria-expanded="true"] span { background: var(--ink); color: var(--paper); transform: scale(1.12); }
.co.is-hidden .co__pin { opacity: 0; pointer-events: none; }
.co__card {
  position: absolute; top: 12px; inset-inline-start: 12px; width: min(250px, calc(100% - 84px)); padding: 10px 12px; padding-inline-end: 40px; border-radius: 14px;
  background: var(--card); box-shadow: var(--sh-2); pointer-events: auto;
}
.co__card h3 { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
html[lang="ar"] .co__card h3 { text-transform: none; font-size: 14px; }
.co__card p { font-size: 16px; font-weight: 700; line-height: 1.35; margin-top: 2px; }
.co__card .iconbtn { position: absolute; top: 2px; inset-inline-end: 2px; }
.co__card.is-in { animation: pop .25s var(--ease); }
.parts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.part { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .35s; }
.part::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f2c9a8; }
.v3d.is-exploded .part { opacity: 1; }
.v3d.is-exploded .co__pin { opacity: 0; pointer-events: none; }

.buy { position: relative; padding: 14px 0 6px; }
.buy__maker { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--oak-ink); }
.buy__maker .ico { width: 18px; height: 18px; }
.buy h1 { font-size: 30px; margin-top: 4px; }
html[lang="ar"] .buy h1 { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.2; }
.buy__price { font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; font-family: "Plus Jakarta Sans", var(--f-body); }
.buy__card { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 4px 16px; margin-top: 12px; }
.buy__row { padding: 12px 0; }
.buy__row + .buy__row { border-top: 1px solid var(--line); }
.buy__label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.buy__label b { color: var(--ink); font-weight: 700; }
.matrow { display: flex; align-items: center; gap: 10px; }
.matrow .mat { height: 26px; font-size: 13.5px; padding: 0 10px; }
.matrow__note { color: var(--muted); font-size: 15px; flex: 1; }
details.petg summary { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--blue-ink); font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; border-radius: 10px; }
details.petg summary::-webkit-details-marker { display: none; }
details.petg summary .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
details.petg[open] summary .ico:last-child { transform: rotate(180deg); }
details.petg p { color: var(--ink-2); font-size: 15px; padding-bottom: 4px; }
html[lang="ar"] details.petg p { font-size: 16px; }
details.petg a { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue-ink); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.swatches { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.swatch { position: relative; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__c { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(47, 44, 40, .2); transition: transform .15s var(--ease); }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
.pod { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.pod .ico { color: var(--oak-ink); }
.qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy__acts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.buy__acts .btn { width: 100%; }
.buy__add { display: none !important; }
.rv-note { font-size: 15px; color: var(--muted); text-align: center; margin-top: 6px; }
.pinfo { margin-top: 20px; }
.pinfo h2, .specs h2 { font-size: 22px; margin-bottom: 8px; }
.pinfo p { color: var(--ink-2); max-width: 62ch; }
.pinfo p + p { margin-top: 8px; }
.specs { margin-top: 20px; }
.specs dl { background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); padding: 0 16px; }
.specs dl div { display: flex; justify-content: space-between; gap: 12px; min-height: 50px; align-items: center; }
.specs dl div + div { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
body.has-buybar { padding-bottom: calc(var(--bar) + var(--sb)); }
.has-buybar .tabbar { display: none; }
.buybar {
  position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px calc(10px + var(--sb)); min-height: var(--bar);
  background: rgba(251, 248, 243, .97); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(60, 40, 20, .07);
}
.bb-color { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px; padding-inline-end: 8px; border-radius: 14px; text-align: start; min-width: 0; flex: 0 1 auto; }
.bb-color:active { background: var(--linen); }
.bb-sw { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(47, 44, 40, .18), 0 0 0 2px var(--paper), 0 0 0 3.5px var(--line-2); flex: none; }
.bb-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bb-price { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: "Plus Jakarta Sans", var(--f-body); }
.bb-col { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); white-space: nowrap; }
html[lang="ar"] .bb-col { font-size: 14px; }
.bb-col .ico { width: 14px; height: 14px; }
.bb-ar { flex: none; }
.bb-add { flex: 1; min-width: 0; padding: 0 12px; }
@media (max-width: 440px) {
  .has-egg .buybar { gap: 6px; padding-inline: 8px; }
  .has-egg .bb-add { padding: 0 8px; font-size: 15px; }
  .has-egg .bb-add .ico { display: none; }
  .has-egg .bb-color { gap: 7px; padding-inline-end: 4px; }
  .has-egg .bb-sw { width: 28px; height: 28px; }
  .has-egg .bb-ar { width: 44px; }
}

/* ---------- Sell page (Q's structure, F's "for designers" spirit) ---------- */
.sh { padding-top: 14px; }
.sh h1 { font-size: clamp(31px, 8.6vw, 38px); margin-top: 8px; }
.sh__text { color: var(--ink-2); margin-top: 10px; max-width: 36em; }
.nos__k { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
.nos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.nos li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; padding-inline: 8px 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; }
.nos .ico { width: 19px; height: 19px; color: var(--clay-ink); }
.sh__ctas { display: flex; gap: 10px; margin-top: 16px; }
.sh__ctas .btn { flex: 1; }
.sh__art { display: none; }
.steps { padding: 4px 16px; }
.pstep { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 10px 0; }
.pstep::before { content: ''; position: absolute; inset-inline-start: 17px; top: 48px; bottom: -10px; width: 2px; background: var(--line); }
.pstep:last-child::before { display: none; }
.pstep.is-done::before { background: var(--oak); }
.pstep__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--linen-2); color: var(--ink-2); font-weight: 800; font-size: 15px; position: relative; z-index: 1; transition: background-color .3s, color .3s; }
.pstep.is-done .pstep__n { background: var(--blue-ink); color: #fff; }
.pstep__n .ico { width: 18px; height: 18px; }
.pstep__t { font-weight: 800; line-height: 1.3; font-size: 16px; }
.pstep__d { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 2px; }
html[lang="ar"] .pstep__d { font-size: 16px; line-height: 1.6; }
.pstep__live { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 28px; padding: 0 10px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-hover); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pstep__live.is-err { background: var(--bad-bg); color: var(--bad); }
.pstep__live.is-wait { background: var(--linen-2); color: var(--muted); }
.calc-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.calc-side { display: contents; }
.calc-side .how-est { order: 2; }
.sum {
  position: sticky; top: calc(var(--hdr) + var(--stp) + 8px); z-index: 6;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px;
  background: var(--blue-deep); color: var(--paper); box-shadow: 0 10px 30px rgba(40, 30, 20, .25);
}
.sum__main { flex: 1; min-width: 0; line-height: 1.2; }
.sum__k { font-size: 13px; color: #cdd7e4; }
html[lang="ar"] .sum__k { font-size: 14px; }
.sum__v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: #f6d9b8; font-family: "Plus Jakarta Sans", var(--f-body); }
.sum__min { text-align: end; line-height: 1.2; }
.sum__min b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.sum.is-err .sum__v { color: #ffc2b2; font-size: 18px; }
.sum__rows { display: none; }
.form-card { padding: 16px; }
.fstep + .fstep { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.fstep__h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.fstep__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--oak-soft); color: var(--oak-ink); font-size: 14px; font-weight: 800; flex: none; }
.drop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 2px dashed var(--line-2); background: var(--linen); }
.drop .ico { width: 28px; height: 28px; color: var(--blue-ink); }
.drop b { display: block; font-weight: 700; }
.drop span { font-size: 14px; color: var(--muted); }
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; border: 0; padding: 0; }
.file { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.file input { position: absolute; opacity: 0; pointer-events: none; }
.file:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue-ink); background: var(--blue-soft); }
.file:has(input:focus-visible) { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.file__art { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.file__art .vig { width: 100%; height: 100%; }
.file__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.file__fn { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
[dir="rtl"] .file__fn { text-align: end; }
.file__tick { position: absolute; top: 12px; inset-inline-end: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-ink); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.file__tick .ico { width: 16px; height: 16px; }
.file:has(input:checked) .file__tick { opacity: 1; transform: none; }
.est { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-hover); font-size: 15px; line-height: 1.5; }
html[lang="ar"] .est { font-size: 16px; line-height: 1.7; }
.est .ico { width: 20px; height: 20px; margin-top: 1px; }
.est.is-reading { background: var(--linen-2); color: var(--muted); }
.est.is-reading .ico { animation: spin 1s linear infinite; }
.mats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0; }
.matopt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; min-height: 64px; transition: box-shadow .15s, background-color .15s; }
.matopt input { position: absolute; opacity: 0; pointer-events: none; }
.matopt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue-ink); background: var(--blue-soft); }
.matopt:has(input:focus-visible) { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.matopt b { font-size: 17px; }
.matopt span { font-size: 14px; color: var(--muted); line-height: 1.35; }
html[lang="ar"] .matopt span { font-size: 15px; }
.matopt:has(input:checked) span { color: var(--blue-hover); }
.mat-help { margin-top: 6px; }
.price-field { display: flex; align-items: center; height: 56px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); padding-inline: 14px 8px; transition: box-shadow .15s; }
.price-field:focus-within { box-shadow: inset 0 0 0 2px var(--blue-ink); }
.price-field.is-err { box-shadow: inset 0 0 0 2px var(--bad); }
.price-field span { font-weight: 700; color: var(--muted); }
.price-field input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: none; font-size: 22px; font-weight: 800; padding-inline: 10px; font-variant-numeric: tabular-nums; }
.field-hint { font-size: 15px; color: var(--muted); margin-top: 6px; }
.err { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 15px; font-weight: 600; line-height: 1.45; flex-wrap: wrap; }
.err .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.err__txt { flex: 1; min-width: 60%; }
.err .btn { min-height: 44px; padding: 0 12px; background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px #e9b4a6; font-size: 15px; flex: none; }
.res { margin-top: 16px; }
.res__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.res__head h3 { font-size: 17px; font-weight: 800; }
.rates { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 7px; background: #f6e7c8; color: #6e4a12; font-size: 13px; font-weight: 700; }
.res dl { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; }
.res dl div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.res dl div + div { border-top: 1px solid var(--line); }
.res dt { color: var(--ink-2); }
.res dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.res .is-earn dd { color: var(--blue-hover); font-size: 20px; font-weight: 800; }
.res .is-dim dd { color: var(--muted); }
.bd { margin-top: 10px; }
.bd summary { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--blue-ink); font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; border-radius: 10px; }
.bd summary::-webkit-details-marker { display: none; }
.bd summary .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.bd[open] summary .ico { transform: rotate(180deg); }
.bd dl { box-shadow: none; background: var(--linen); border-radius: 14px; padding: 0 14px; }
.bd dl div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; font-size: 15px; }
.bd dl div + div { border-top: 1px solid var(--linen-2); }
.bd small { display: block; font-size: 13px; color: var(--muted); }
.bd .is-total { font-weight: 800; }
.how-est { padding: 16px; display: flex; gap: 12px; }
.how-est .ico { width: 26px; height: 26px; color: var(--oak-ink); flex: none; margin-top: 2px; }
.how-est h3 { font-size: 17px; font-weight: 800; }
.how-est p { color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
html[lang="ar"] .how-est p { font-size: 17px; }
.mg { overflow: hidden; }
.mg__table { display: block; }
.mg__heads { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.mg__h { background: var(--card); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mg__h b { display: block; font-size: 22px; font-weight: 800; }
.mg__h span { display: block; font-size: 15px; color: var(--muted); line-height: 1.4; }
.mg__h--petg { background: var(--blue-soft); }
.mg__h--petg span { color: var(--blue-hover); }
.mg__row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.mg__rh { grid-column: 1 / -1; padding: 12px 14px 0; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: start; }
html[lang="ar"] .mg__rh { text-transform: none; font-size: 15px; }
.mg__c { padding: 4px 14px 12px; font-size: 15px; line-height: 1.45; }
html[lang="ar"] .mg__c { font-size: 16px; line-height: 1.65; }
.mg__c + .mg__c { border-inline-start: 1px solid var(--line); }
.mg__notes { display: grid; gap: 10px; margin-top: 12px; }
.note { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--sh-1); }
.note .ico { width: 24px; height: 24px; color: var(--blue-ink); flex: none; margin-top: 1px; }
.note--warn .ico { color: #9a5a12; }
.note p { font-size: 16px; color: var(--ink-2); }
.note b { color: var(--ink); }
.rules { padding: 16px; }
.rules p { color: var(--ink-2); margin-top: 6px; }
.rules h3 { font-size: 15px; font-weight: 800; margin-top: 14px; color: var(--muted); }
.rules ul { margin-top: 6px; display: grid; gap: 2px; }
.rules li { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.rules li .ico { color: var(--bad); width: 22px; height: 22px; }
.scta { text-align: center; padding: 24px 18px; }
.scta h2 { font-size: 26px; }
.scta p { color: var(--muted); margin-top: 6px; }
.scta .btn { margin-top: 16px; min-width: 220px; }
.sell-lower { display: grid; gap: 14px; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  :root { --gut: 24px; --hdr: 60px; }
  .hdr .seg.lang { display: inline-flex; margin-inline: 4px; }
  .hdr-lang { display: none; }
  .grid2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .hrow { grid-auto-columns: calc((100% - 3 * 14px) / 3.4); gap: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .hero h1 { font-size: 42px; }
  .globe { height: 420px; margin: 0; border-radius: var(--r-xl); }
  .alley, .stage { margin: 0; border-radius: var(--r-l); }
  .stalls { grid-auto-columns: calc((100% - 12px) / 2.15); }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
  .v3d { margin: 0; width: 100%; border-radius: var(--r-l); aspect-ratio: 4 / 3; }
  .files { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 14px 20px; }
  .how__step { grid-template-columns: 1fr; padding: 0; }
  .how__step::before { inset-inline-start: 52px; inset-inline-end: -10px; width: auto; top: 20px; bottom: auto; height: 2px; background: repeating-linear-gradient(to right, var(--oak) 0 5px, transparent 5px 9px); }
  .ex__rows dd { font-size: 18px; }
  .mg__notes { grid-template-columns: 1fr 1fr; }
  .sell-lower { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
  .layer--center { align-items: center; }
  .layer--center .sheet { border-radius: 24px; max-height: 88dvh; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .3s var(--ease-sheet), opacity .2s; }
  .layer--center.is-open .sheet { opacity: 1; transform: none; }
  .layer--center .sheet__grab { display: none; }
  .layer--center .sheet__head { padding-top: 16px; }
  .map-l .sheet { max-width: 520px; }
}

/* ---------- Desktop: rail + feed ---------- */
@media (min-width: 1100px) {
  :root { --hdr: 66px; --fs: 16px; }
  html[lang="ar"] body { font-size: 17px; }
  body { padding-bottom: 0; }
  body.has-buybar { padding-bottom: 0; }
  .tabbar, .buybar, .mapfab { display: none !important; }
  .foot { padding-bottom: 20px !important; }
  .hdr__in { padding-inline: 20px; gap: 12px; }
  .hdr .logo { width: 252px; margin-inline-end: 0; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__word { font-size: 20px; }
  .sbtn { flex: 1; width: auto; max-width: 560px; height: 46px; display: flex; align-items: center; gap: 10px; margin-inline: auto; padding-inline: 16px 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-size: 15.5px; text-align: start; }
  .sbtn .ico { width: 20px; height: 20px; color: var(--ink-2); }
  .sbtn__ph { position: static; width: auto; height: auto; clip-path: none; display: block; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sbtn__kbd { display: inline-block; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 7px; }
  .hdr-cart { display: inline-flex; align-items: center; gap: 8px; width: auto; padding-inline: 12px 16px; height: 46px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px; }
  .hdr-cart .badge { position: static; box-shadow: none; }
  .hdr-cart .badge.is-zero { display: inline-block; background: rgba(251, 248, 243, .2); }
  .hdr-cart__txt { display: inline; }
  .hdr-menu { display: none; }
  .shell { display: grid; grid-template-columns: 284px minmax(0, 1fr); }
  .rail {
    display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--hdr) + var(--stp)); align-self: start;
    height: calc(100dvh - var(--hdr) - var(--stp)); overflow-y: auto; padding: 12px 14px 20px; border-inline-end: 1px solid var(--line); background: var(--paper);
    scrollbar-width: thin;
  }
  .rail__nav a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background-color .12s, color .12s; }
  .rail__nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-hover); font-weight: 700; }
  .rail__nav .ico { width: 21px; height: 21px; color: var(--muted); }
  .rail__nav a[aria-current="page"] .ico { color: var(--blue-ink); }
  .rail__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--f-body); font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 4px 6px; }
  html[lang="ar"] .rail__h { text-transform: none; font-size: 15px; }
  .rail__h .linkbtn { text-transform: none; letter-spacing: 0; font-size: 14px; min-height: 36px; }
  .rail .smap__plan { padding: 10px 8px 8px; }
  .rail .smap__go { font-size: 13.5px; padding: 8px; gap: 6px; }
  .rail .smap__open { font-size: 12.5px; }
  .rail .smap__here { font-size: 13.5px; }
  main { padding: 8px 40px 40px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 18px; }
  .hero h1 { font-size: 52px; line-height: 1.06; }
  html[lang="ar"] .hero h1 { font-size: 48px; line-height: 1.3; }
  .hero__sub { font-size: 18px; }
  .hero__ctas { width: auto; margin-top: 10px; }
  .hero__ctas .btn { flex: none; min-width: 168px; }
  .globe { height: min(560px, calc(100dvh - 140px)); }
  .sec { margin-top: 48px; }
  .sec__title, .souq__intro h2 { font-size: 32px; }
  html[lang="ar"] .sec__title, html[lang="ar"] .souq__intro h2 { font-size: 30px; }
  .sec__arrows { display: flex; }
  .sec__arrows button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); transition: background-color .15s, opacity .2s; }
  .sec__arrows button:disabled { opacity: .35; cursor: default; }
  .hrow { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; margin: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .alley { height: 470px; }
  .strip { margin-top: 16px; }
  .stalls { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; margin: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .room { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .room .sec__head { grid-column: 1 / -1; }
  .stage { height: 420px; }
  .inroom { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--sh-1); }
  .inroom__head { display: block; }
  .inroom__head h3 { font-family: var(--f-display); font-weight: var(--w-display); font-size: 21px; }
  .inroom__head p { color: var(--muted); font-size: 14.5px; }
  .inroom__list { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .inroom__btn { width: 100%; }
  .inroom__name { max-width: none; white-space: normal; }
  .how__steps { padding: 18px 24px; }
  .band { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: center; padding: 32px; }
  .band h2 { font-size: 34px; }
  .ex { margin-top: 0; }
  .foot { padding-inline: 40px; margin-top: 56px; }
  .foot__in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
  .foot__cols { margin-top: 0; }
  .foot__base { grid-column: 1 / -1; }
  .foot ul a { min-height: 40px; }
  .search-l { align-items: flex-start; padding-top: 72px; }
  .search { width: min(760px, calc(100% - 48px)); height: auto; max-height: calc(100dvh - 120px); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-3); margin-inline: auto; }
  .search__bar { padding: 10px 10px 10px 14px; padding-inline: 14px 10px; }
  .layer--side { justify-content: flex-end; align-items: stretch; }
  .layer--side .sheet { max-width: 440px; max-height: none; height: 100%; border-radius: 0; transform: translateX(102%); }
  [dir="rtl"] .layer--side .sheet { transform: translateX(-102%); }
  .layer--side.is-open .sheet { transform: none !important; }
  .layer--side .sheet__grab { display: none; }
  .layer--side .sheet__head { padding-top: 18px; }
  .map-l .sheet { max-width: 600px; }
  .map-l .smap__go { font-size: 16px; min-height: 56px; }

  /* Product */
  .crumb { display: block; margin: 8px 0 12px; }
  .crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 14px; color: var(--muted); }
  .crumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
  .crumb li { display: inline-flex; align-items: center; gap: 2px; }
  .crumb .ico { width: 16px; height: 16px; }
  .back { display: none; }
  .pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 40px; align-items: start; }
  .pdp__media { position: sticky; top: calc(var(--hdr) + 16px); }
  .v3d { aspect-ratio: 5 / 4.6; max-height: calc(100dvh - var(--hdr) - 40px); }
  .buy { padding: 0; }
  .buy h1 { font-size: 40px; }
  .buy__price { font-size: 30px; }
  .buy__add { display: inline-flex !important; }
  .buy__acts { flex-direction: row; flex-wrap: wrap; }
  .buy__acts .btn { flex: 1 1 180px; width: auto; }
  .rv-note { text-align: start; }
  .pdp__more { margin-top: 48px; }

  /* Sell */
  .sh__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
  .sh h1 { font-size: 52px; line-height: 1.06; }
  html[lang="ar"] .sh h1 { font-size: 46px; line-height: 1.3; }
  .sh__text { font-size: 18px; }
  .sh__ctas .btn { flex: none; min-width: 180px; }
  .sh__art { display: block; }
  .sh__art .sellart { width: 100%; height: auto; }
  .steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .steps { padding: 8px 24px; }
  .calc-wrap { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .calc-side { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 14px; grid-column: 2; grid-row: 1; }
  .form-card { grid-column: 1; grid-row: 1; padding: 22px; }
  .sum { position: static; flex-direction: column; align-items: stretch; padding: 20px; border-radius: var(--r-l); }
  .sum__v { font-size: 40px; }
  .sum.is-err .sum__v { font-size: 22px; }
  .sum__min { display: none; }
  .sum__rows { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
  .sum__rows div { display: flex; justify-content: space-between; min-height: 40px; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
  .sum__rows dt { color: #cdd7e4; }
  .sum__rows dd { font-weight: 700; font-variant-numeric: tabular-nums; }
  .res { display: none; }
  .mg__table { display: table; width: 100%; border-collapse: collapse; }
  .mg__heads, .mg__row { display: table-row; }
  .mg__heads > *, .mg__row > * { display: table-cell; vertical-align: top; }
  .mg__corner { display: table-cell; background: var(--card); width: 22%; }
  .mg__rh { padding: 16px 20px; font-size: 14px; border-top: 1px solid var(--line); }
  .mg__c { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 16px; }
  .mg__h { padding: 18px 20px; border-inline-start: 1px solid var(--line); }
}
@media (max-width: 1099.98px) { .mg__corner { display: none; } }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--blue-hover); }
  .btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--oak); }
  .btn--soft:hover { background: #d3deeb; }
  .btn--light:hover { background: #fff; }
  .band .btn--line:hover { background: rgba(255, 255, 255, .08); }
  .iconbtn:hover { background: var(--linen-2); }
  .chip:hover { box-shadow: inset 0 0 0 1px var(--oak); }
  .chip[aria-pressed="true"]:hover { background: var(--ink-2); }
  .sbtn:hover { box-shadow: inset 0 0 0 1px var(--oak); }
  .pc:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
  .pc:hover .pc__media .vig { transform: scale(1.04); }
  .pc__add:hover, .good__add:hover { background: var(--blue-ink); color: #fff; }
  .good:hover { background: var(--linen); }
  .shopchip:hover { box-shadow: inset 0 0 0 1.5px var(--oak); }
  .shopchip[aria-pressed="true"]:hover { box-shadow: none; background: var(--ink-2); }
  .signbtn:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); }
  .rail__nav a:hover { background: var(--linen); color: var(--ink); }
  .smap__go:hover, .smap__open:hover, .smap__gate:hover, .smap__all:hover { background: var(--linen); }
  .row-link:hover, .srow:hover { background: var(--linen); }
  .linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
  .foot ul a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
  .crumb a:hover { color: var(--blue-ink); text-decoration: underline; }
  .sec__arrows button:hover:not(:disabled) { background: #fff; }
  .v3d__ctrls button:hover { background: #fff; color: var(--blue-ink); }
  .co__pin:hover span { transform: scale(1.12); }
  .inroom__btn:hover { box-shadow: inset 0 0 0 1.5px var(--oak); }
  .daynight button:hover:not([aria-pressed="true"]) { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (max-width: 479px) { .globe__ticklabel { display: none; } }
/* Grid children never stretch the page past the screen */
@media (max-width: 719.98px) { .hero, .room, .souq, .sell-lower, .calc-wrap { grid-template-columns: minmax(0, 1fr); } }
.hero > *, .room > *, .souq > *, .pdp > *, .sell-lower > * { min-width: 0; }
@media (min-width: 1100px) { .steps-grid .pstep::before { display: none; } }
.v3d.is-exploded .v3d__hint { opacity: 0; }
@media (min-width: 1100px) { [dir="rtl"] .eggdock__tag { translate: none; } }
