/* Q · Quick — "Shop in a tap". An app-style shopping UI. Phone first. */
:root {
  --bg: #ffffff;
  --app: #f3f4f6;
  --app-2: #e9ebef;
  --line: #e3e5e9;
  --line-2: #cfd3da;
  --ink: #0f1115;
  --ink-2: #353b45;
  --muted: #5b6370;
  --em: #0b9a6d;
  --em-ink: #087a56;
  --em-deep: #066a4b;
  --em-press: #055c41;
  --mint: #e6f6ef;
  --mint-2: #cdeedf;
  --mint-ink: #065e44;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --r-xs: 8px; --r-s: 12px; --r: 16px; --r-l: 22px;
  --sh-1: 0 1px 2px rgba(15,17,21,.05), 0 1px 3px rgba(15,17,21,.06);
  --sh-2: 0 2px 8px rgba(15,17,21,.06), 0 10px 28px rgba(15,17,21,.08);
  --sh-3: 0 18px 50px rgba(15,17,21,.22);
  --hdr: 56px;
  --tab: 58px;
  --bar: 72px;
  --sb: env(safe-area-inset-bottom, 0px);
  --stp: env(safe-area-inset-top, 0px);
  --gut: 16px;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-sheet: cubic-bezier(.32,.72,0,1);
  --fs: 17px;
  /* Room view theming */
  --rv-bg: #ffffff; --rv-surface: #f3f4f6; --rv-text: #0f1115; --rv-muted: #5b6370; --rv-line: #e3e5e9;
  --rv-accent: #087a56; --rv-accent-text: #ffffff; --rv-radius: 16px; --rv-font: var(--font); --rv-font-display: var(--font);
  --tone-sand: #f5ecdd; --tone-mint: #e3f4ec; --tone-sky: #e5edf7; --tone-blush: #f8e7e2; --tone-lilac: #ece9f8; --tone-lemon: #f7f1d9; --tone-stone: #eceef1;
}

*, *::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(--app);
}
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(--font);
  font-size: var(--fs);
  line-height: 1.5;
  color: var(--ink);
  background: var(--app);
  min-height: 100dvh;
  padding-bottom: calc(var(--tab) + var(--sb));
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.7; }
img, svg { 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; }
button, a, [role="button"], label, .chip, .tab { touch-action: manipulation; }
button, [role="button"], .tab, .chip, .btn, .seg button, .swatch, .story-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ico { width: 24px; height: 24px; 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(--em-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: 12px; font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  font-weight: 600; 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(--em-ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 14px rgba(8,122,86,.28); }
.btn--primary:active { background: var(--em-press); }
.btn--soft { background: var(--mint); color: var(--mint-ink); }
.btn--soft:active { background: var(--mint-2); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:active { background: var(--app); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:active { background: #262a31; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.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::after {
  content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) rgba(255,255,255,.25) rgba(255,255,255,.25);
  animation: spin .7s linear infinite;
}
.btn--soft.is-loading::after, .btn--ghost.is-loading::after { border-color: var(--em-ink) var(--em-ink) var(--mint-2) var(--mint-2); }
.btn.is-done { background: var(--em-deep); }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s, transform .14s var(--ease), box-shadow .15s;
  white-space: nowrap;
}
.chip:active { transform: scale(.96); background: var(--app-2); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chip .ico { width: 18px; height: 18px; }
.chip__art { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; margin-inline-start: -10px; flex: none; }
.chip__art .art { width: 100%; height: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: 14px; font-weight: 600; }
.mat { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--app); color: var(--ink-2); }
.mat--petg { background: var(--mint); color: var(--mint-ink); }

/* Segmented control (language, materials) */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--app); }
.seg button { min-height: 38px; min-width: 52px; padding: 0 12px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--muted); transition: background-color .15s, color .15s, box-shadow .15s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.seg button:active { transform: scale(.96); }
.seg--lg button { min-height: 44px; flex: 1; }
.seg--lg { display: flex; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  padding-top: var(--stp);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 8px; padding-inline: 10px 6px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 2px; border-radius: 12px; flex: none; }
.logo:active { transform: scale(.95); }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; }
.logo__word { font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.hdr .logo__word { display: none; }
.sbtn {
  flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 8px;
  padding-inline: 14px 10px; border-radius: 999px; background: var(--app); color: var(--muted);
  font-size: 16px; text-align: start; transition: background-color .15s, transform .14s var(--ease);
}
.sbtn:active { background: var(--app-2); transform: scale(.985); }
.sbtn .ico { width: 20px; height: 20px; color: var(--ink-2); }
.sbtn__ph { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbtn__kbd { display: none; font: 600 12px/1 var(--font); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 7px; }
.hdr .lang { display: none; }
.hdr-cart { position: relative; display: none; }
.has-buybar .hdr-cart { display: inline-grid; }
.hdr-cart__txt { display: none; }
.badge {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--em-ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums;
}
.badge.is-zero { display: none; }
.badge.is-bump { animation: bump .42s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- 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(255,255,255,.95);
  -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  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: 2px;
  color: var(--muted); font-size: 12px; font-weight: 500; border-radius: 14px; margin: 3px 2px;
  transition: color .15s, transform .14s var(--ease), background-color .15s;
}
html[lang="ar"] .tab { font-size: 13px; line-height: 1.3; }
.tab:active { transform: scale(.92); background: var(--app); }
.tab[aria-current="page"] { color: var(--em-ink); font-weight: 600; }
.tab__ico .badge { top: -6px; inset-inline-end: -2px; }
.hero__chip .ico { width: 18px; height: 18px; }
.tab__ico { position: relative; display: grid; place-items: center; width: 44px; height: 30px; border-radius: 999px; transition: background-color .2s; }
.tab[aria-current="page"] .tab__ico { background: var(--mint); }
body.kb-open .tabbar { transform: translateY(110%); }

/* ---------- Generic 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(15,17,21,.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: #fff; border-radius: 22px 22px 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: 0 12px 8px 20px; padding-inline: 20px 10px; flex: none; touch-action: none; }
.sheet__title { font-size: 20px; font-weight: 700; }
.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: #fff; }
.sheet__foot .btn { flex: 1; }

.group-label { font-size: 13px; font-weight: 600; 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: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.listgroup > li + li, .listgroup > a + a { border-top: 1px solid var(--line); }
.row-link {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 14px; font-weight: 500;
  transition: background-color .12s;
}
.row-link:active { background: var(--app); }
.row-link > .ico:first-child { color: var(--em-ink); }
.row-link > span { flex: 1; }
.row-link > .ico:last-child { width: 18px; height: 18px; color: var(--muted); }
.row-link .chip__art { margin: 0; width: 32px; height: 32px; flex: none; }
button.row-link { text-align: start; }

/* Option rows (filter + color sheets) */
.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, transform .12s var(--ease); }
.opt:active { transform: scale(.985); background: var(--app); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--em-ink); background: var(--mint); }
.opt:has(input:focus-visible) { outline: 3px solid var(--em-ink); outline-offset: 2px; }
.opt__check { margin-inline-start: auto; width: 22px; height: 22px; color: var(--em-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(15,17,21,.15); 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; }

/* Drawer (cart on desktop) */
.drawer-l { justify-content: flex-end; align-items: stretch; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 90; inset-inline: 12px; bottom: calc(var(--tab) + var(--sb) + 10px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.has-buybar .toasts { bottom: calc(var(--bar) + var(--sb) + 10px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(100%, 440px);
  min-height: 56px; padding: 8px 8px 8px 14px; padding-inline: 14px 8px;
  background: #16191f; color: #fff; border-radius: 16px; 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(--em); display: grid; place-items: center; flex: none; }
.toast__ico .ico { width: 18px; height: 18px; color: #fff; }
.toast__art { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; }
.toast__msg { flex: 1; min-width: 0; line-height: 1.35; }
.toast__msg b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast__msg span { color: #c9ced6; font-size: 14px; }
.toast__undo { min-height: 44px; padding: 0 14px; border-radius: 12px; color: #7ee2b8; font-weight: 700; }
.toast__undo:active { background: rgba(255,255,255,.1); }

/* ---------- Skeletons ---------- */
.sk { background: linear-gradient(90deg, var(--app-2) 0 40%, #f6f7f9 50%, var(--app-2) 60% 100%) var(--app-2); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-card { border-radius: var(--r-l); background: #fff; box-shadow: var(--sh-1); padding: 8px; }
.sk-card .sk:first-child { aspect-ratio: 1; border-radius: 16px; }
.sk-card .sk + .sk { height: 14px; margin: 10px 4px 0; width: 70%; }
.sk-card .sk + .sk + .sk { width: 40%; }
.sk-story { width: 72px; height: 72px; border-radius: 50%; flex: none; }

/* ---------- Sections ---------- */
.sec { margin-top: 28px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec__title { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.sec__sub { color: var(--muted); font-size: 16px; margin-top: 2px; }
html[lang="ar"] .sec__sub { font-size: 17px; }
.sec__arrows { display: none; gap: 8px; }
.card { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); }

/* ---------- Stories ---------- */
.stories { margin: 0 calc(-1 * var(--gut)); }
.stories__list {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 14px var(--gut) 6px; scrollbar-width: none; scroll-padding-inline: var(--gut);
}
.stories__list::-webkit-scrollbar { display: none; }
.stories__list > li { flex: none; scroll-snap-align: start; }
.story-btn { width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 4px; border-radius: 14px; }
.story-btn:active .story-ring { transform: scale(.93); }
.story-ring {
  position: relative; width: 72px; height: 72px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, #0b9a6d, #63d6a9, #0a7f5a, #0b9a6d);
  transition: transform .16s var(--ease);
}
.story-btn.is-seen .story-ring { background: var(--line-2); }
.story-ring__in { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; overflow: hidden; background: var(--tone-mint); }
.story-ring__in .art { width: 100%; height: 100%; transform: scale(1.15); }
.story-live--new { background: var(--em-ink) !important; }
.story-live { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 6px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; border: 2px solid #fff; line-height: 15px; }
.story-label { font-size: 13px; line-height: 1.25; text-align: center; color: var(--ink-2); max-width: 78px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="ar"] .story-label { font-size: 14px; line-height: 1.35; }

/* ---------- Hero ---------- */
.hero { padding-top: 10px; }
.hero__chip { margin-bottom: 10px; }
.hero h1 { font-size: clamp(30px, 8.4vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
html[lang="ar"] .hero h1 { line-height: 1.35; font-size: clamp(29px, 8vw, 34px); }
.hero__sub { color: var(--ink-2); margin-top: 8px; max-width: 34em; }
.hero__ctas { display: flex; gap: 10px; margin-top: 16px; }
.hero__ctas .btn { flex: 1; }
.hero__mini { display: none; }
.hero__grid { display: grid; gap: 18px; }

/* Printing now card */
.pn { overflow: hidden; position: relative; }
.pn__top { position: absolute; z-index: 3; top: 12px; inset-inline: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: var(--sh-1); font-size: 14px; font-weight: 600; color: var(--ink); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #d92d20; box-shadow: 0 0 0 0 rgba(217,45,32,.5); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(217,45,32,0); } 100% { box-shadow: 0 0 0 0 rgba(217,45,32,0); } }
.pn__tl { height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: rgba(15,17,21,.72); color: #fff; font-size: 12px; font-weight: 600; }
.pn__stage { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #eef0f3 62%, #e2e5ea 100%); }
.pn__poster, .pn__canvas { position: absolute; inset: 0; }
.pn__poster .art { width: 100%; height: 100%; padding: 13% 18% 8%; }
.pn__canvas canvas { display: block; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.pn__canvas canvas:active { cursor: grabbing; }
.pn.is-live .pn__poster { opacity: 0; transition: opacity .5s; }
.pn__hint { position: absolute; z-index: 3; bottom: 10px; inset-inline-start: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink-2); font-size: 13px; font-weight: 500; pointer-events: none; white-space: nowrap; box-shadow: var(--sh-1); }
[dir="rtl"] .pn__hint { transform: translateX(50%); }
.pn__hint .ico { width: 16px; height: 16px; }
.pn__info { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; padding-inline: 16px 14px; }
.ring { position: relative; width: 56px; height: 56px; flex: none; }
.ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring__bg { stroke: var(--mint); }
.ring__val { stroke: var(--em); transition: stroke-dashoffset .3s linear; }
.ring__pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pn__txt { flex: 1; min-width: 0; }
.pn__name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.pn__meta { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.4; }
html[lang="ar"] .pn__meta { font-size: 15px; }

/* How it works: an order tracker */
.track { padding: 6px 16px; }
.track__list { position: relative; }
.track__step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 0; }
.track__step::before { content: ''; position: absolute; inset-inline-start: 19px; top: 52px; bottom: -12px; width: 2px; background: var(--em); }
.track__step:last-child::before { display: none; }
.track__step.is-next::before, .track__step.is-now::before { background: repeating-linear-gradient(to bottom, var(--line-2) 0 4px, transparent 4px 8px); }
.track__dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--em-ink); color: #fff; position: relative; z-index: 1; }
.track__dot .ico { width: 20px; height: 20px; }
.track__step.is-now .track__dot { background: #fff; color: var(--em-ink); box-shadow: inset 0 0 0 2px var(--em); }
.track__step.is-now .track__dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--em); opacity: .35; animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.25); opacity: 0; } }
.track__step.is-next .track__dot { background: var(--app); color: var(--muted); }
.track__t { font-weight: 600; line-height: 1.3; }
.track__d { color: var(--muted); font-size: 16px; line-height: 1.45; margin-top: 2px; }
html[lang="ar"] .track__d { font-size: 17px; line-height: 1.6; }
.track__now { display: inline-flex; margin-top: 6px; }

/* ---------- Product cards ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); transition: transform .16s var(--ease), box-shadow .2s; }
.pc:has(.pc__link:active) { transform: scale(.975); }
.pc__media { position: relative; aspect-ratio: 1; margin: 6px 6px 0; border-radius: 16px; overflow: hidden; background: var(--tone-stone); }
.pc__media .art { width: 100%; height: 100%; padding: 8%; transition: transform .4s var(--ease); }
.pc__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pc__price { order: -1; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc__link { display: flex; flex-direction: column; flex: 1; border-radius: var(--r-l); color: inherit; }
.pc__link:focus-visible { outline: 3px solid var(--em-ink); outline-offset: 2px; }
.pc__name { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="ar"] .pc__name { font-size: 15px; line-height: 1.45; }
.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: 4px; }
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: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--em-ink); box-shadow: 0 2px 8px rgba(15,17,21,.14);
  transition: transform .14s var(--ease), background-color .15s, color .15s;
}
.pc__add:active { transform: scale(.88); }
.pc__add.is-done { background: var(--em-ink); color: #fff; }
.pc--big .pc__name { font-size: 16px; font-weight: 600; }
.tone-sand { background: var(--tone-sand) !important; } .tone-mint { background: var(--tone-mint) !important; } .tone-sky { background: var(--tone-sky) !important; }
.tone-blush { background: var(--tone-blush) !important; } .tone-lilac { background: var(--tone-lilac) !important; } .tone-lemon { background: var(--tone-lemon) !important; } .tone-stone { background: var(--tone-stone) !important; }

/* Horizontal rows */
.hrow {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gut) - 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) 12px; scroll-padding-inline: var(--gut); scrollbar-width: none;
}
.hrow::-webkit-scrollbar { display: none; }
.hrow > * { scroll-snap-align: start; }

/* Categories */
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats .chip { padding-inline: 16px 18px; }
.cats .chip__art { margin-inline-start: -8px; }

/* Seller band */
.band { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-l); padding: 22px 18px 18px; background: linear-gradient(150deg, #087a56 0%, #065c42 100%); }
.band::after { content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(126,226,184,.28), transparent 70%); pointer-events: none; }
.band h2 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.band p { margin-top: 8px; color: #e4f6ee; }
.band .btn { margin-top: 16px; background: #fff; color: var(--em-deep); }
.band .btn:active { background: var(--mint); }
.ex { margin-top: 18px; background: rgba(2,36,25,.32); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ex__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: #e4f6ee; }
.ex__item { font-weight: 600; color: #fff; }
.ex__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ex__rows div { background: rgba(2,36,25,.3); border-radius: 12px; padding: 8px 10px; }
.ex__rows dt { font-size: 13px; color: #e4f6ee; }
html[lang="ar"] .ex__rows dt, html[lang="ar"] .ex__top { font-size: 14px; }
.ex__rows dd { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex__rows div { min-width: 0; }
.ex__rows .is-earn { background: #fff; }
.ex__rows .is-earn dt { color: var(--em-deep); }
.ex__rows .is-earn dd { color: var(--em-deep); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust li { background: #fff; border-radius: var(--r); box-shadow: var(--sh-1); padding: 14px; }
.trust .ico { color: var(--em-ink); width: 28px; height: 28px; }
.trust h3 { font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.trust p { font-size: 15px; 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: #fff; margin-top: 36px; padding: 24px var(--gut) 20px; box-shadow: 0 -1px 0 var(--line); }
.foot__in { max-width: 1120px; margin-inline: auto; }
.foot__brand p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.foot__brand .logo__word { display: inline; }
.foot__cols { display: grid; gap: 4px; margin-top: 18px; }
.foot h2 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 2px; }
html[lang="ar"] .foot h2 { text-transform: none; font-size: 15px; }
.foot ul a { display: flex; align-items: center; min-height: 44px; font-weight: 500; border-radius: 10px; }
.foot ul a:active { color: var(--em-ink); }
.foot__base { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; 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 ---------- */
.search-l { align-items: stretch; }
.search {
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--app);
  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: #fff; 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(--app); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s; }
.sfield:focus-within { box-shadow: inset 0 0 0 2px var(--em-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; }
.sfield__clear[hidden] { display: none; }
.search__cancel { min-height: 44px; padding: 0 10px; color: var(--em-ink); font-weight: 600; border-radius: 10px; }
.search__filters { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; background: #fff; 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: #fff; box-shadow: none; }
.chip--filter:active { background: #2a2e36; }
.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: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.recent__item .chip { box-shadow: none; background: none; padding-inline: 14px 4px; }
.recent__item .chip .ico { color: var(--muted); }
.recent__x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.recent__x .ico { width: 16px; height: 16px; }
.recent__x:active { background: var(--app-2); }
.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: #fff; border-radius: 16px; box-shadow: var(--sh-1); transition: transform .12s var(--ease), background-color .12s; }
.srow:active { transform: scale(.985); background: #fafbfc; }
.srow__art { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; }
.srow__art .art { width: 100%; height: 100%; padding: 6%; }
.srow__txt { flex: 1; min-width: 0; }
.srow__name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.srow__name mark { background: var(--mint-2); color: inherit; border-radius: 3px; padding: 0 1px; }
.srow__meta { font-size: 14px; color: var(--muted); }
.srow__price { font-weight: 700; 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: #fff; display: grid; place-items: center; color: var(--muted); box-shadow: var(--sh-1); }
.empty h3 { font-size: 18px; font-weight: 600; }
.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 .art { width: 100%; height: 100%; padding: 6%; }
.citem__txt { flex: 1; min-width: 0; }
.citem__name { font-weight: 600; 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: 700; font-variant-numeric: tabular-nums; }
.citem.is-new { animation: flash 1.6s var(--ease); border-radius: 12px; }
@keyframes flash { 0%, 30% { background: var(--mint); } 100% { background: transparent; } }
.stepper { display: inline-flex; align-items: center; border-radius: 12px; background: var(--app); }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); }
.stepper button:active { background: var(--app-2); transform: scale(.92); }
.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: 600; 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(--mint); color: var(--mint-ink); font-weight: 600; font-size: 15px; }
.cart-added[hidden] { display: none; }
.cart-added .ico { width: 20px; height: 20px; }
.cart-added span { flex: 1; min-width: 0; }
.cart-added .linkbtn { color: var(--mint-ink); 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; }

/* ---------- Stories viewer ---------- */
.story-l { background: rgba(8,10,12,.92); align-items: center; }
.story-l .layer__scrim { background: transparent; }
.sv {
  position: relative; width: 100%; height: 100%; overflow: hidden; color: #fff; background: #111;
  display: flex; flex-direction: column; transform: scale(.94); opacity: 0; transition: transform .3s var(--ease-sheet), opacity .2s;
}
.layer.is-open .sv { transform: none; opacity: 1; }
.sv__bg { position: absolute; inset: 0; transition: background .4s; }
.sv__top { position: relative; z-index: 3; padding: calc(var(--stp) + 10px) 10px 0; background: linear-gradient(rgba(0,0,0,.35), transparent); }
.sv__bars { display: flex; gap: 4px; padding: 0 2px; }
.sv__bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.38); overflow: hidden; }
.sv__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .sv__bar i { transform-origin: right; }
.sv__head { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.sv__av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.sv__av .art { width: 100%; height: 100%; transform: scale(1.15); }
.sv__who { flex: 1; min-width: 0; line-height: 1.25; }
.sv__who b { display: block; font-size: 15px; font-weight: 600; }
.sv__who span { font-size: 13px; color: rgba(255,255,255,.85); }
.sv__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sv__btn:active { background: rgba(255,255,255,.16); }
.sv__stage { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 8px 24px; min-height: 0; }
.sv__art { width: min(78vw, 46dvh, 380px); aspect-ratio: 1; border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: 0 30px 60px rgba(0,0,0,.25); display: grid; place-items: center; transition: transform .35s var(--ease-sheet); }
.sv__art .art { width: 86%; height: 86%; }
.sv__bottom { position: relative; z-index: 3; padding: 0 20px calc(20px + var(--sb)); }
.sv__kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.88); }
html[lang="ar"] .sv__kicker { text-transform: none; font-size: 15px; }
.sv__title { font-size: 26px; line-height: 1.2; font-weight: 700; margin-top: 4px; }
.sv__text { color: rgba(255,255,255,.92); margin-top: 6px; }
.sv__cta { margin-top: 16px; display: flex; gap: 10px; }
.sv__cta .btn { flex: 1; }
.sv__cta .btn--ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.sv__zone { position: absolute; z-index: 2; top: 90px; bottom: 170px; inset-inline-start: 0; width: 34%; border-radius: 0; }
.sv__zone--next { inset-inline-start: auto; inset-inline-end: 0; width: 66%; }
.sv__zone:focus-visible { outline-offset: -6px; }
.sv__nav { display: none; }
.sv.is-paused .sv__bar i { animation-play-state: paused; }

/* ---------- Product page ---------- */
.crumb { display: none; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-inline: 4px 10px; margin: 2px 0 4px -8px; margin-inline-start: -8px; font-weight: 600; color: var(--em-ink); border-radius: 12px; }
.back:active { background: var(--mint); }
.back .ico { width: 22px; height: 22px; }
.pdp { display: block; }
.gal { position: relative; margin: 0 calc(-1 * var(--gut)); }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; aspect-ratio: 1; background: radial-gradient(110% 90% at 50% 35%, #ffffff 0%, #eff1f4 60%, #e3e6eb 100%); overflow: hidden; }
.gal__slide > svg { width: 100%; height: 100%; }
.specs h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.sk-story { display: block; }
.gal__slide--night { background: radial-gradient(90% 80% at 50% 50%, #3b2a1c 0%, #1a1410 70%) !important; }
.gal__slide--detail { background: #f3ead9 !important; }
.gal__slide--detail > svg, .gal__slide--size > svg { width: 100%; height: 100%; }
.gal__label { position: absolute; z-index: 3; top: 12px; inset-inline-start: 12px; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 13px; font-weight: 600; box-shadow: var(--sh-1); pointer-events: none; }
.gal__label .ico { width: 16px; height: 16px; color: var(--em-ink); }
.v3d { position: absolute; inset: 0; }
.v3d__poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s; }
.v3d__poster .art { width: 100%; height: 100%; padding: 12%; }
.v3d__poster .sk-spot { position: absolute; bottom: 14%; width: 30%; height: 10px; border-radius: 50%; }
.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(--em-ink); border-radius: 0; }
.v3d__canvas canvas { display: block; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.v3d__canvas canvas:active { cursor: grabbing; }
.v3d__load { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; height: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.v3d__load::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--em); border-right-color: transparent; animation: spin .8s linear infinite; }
.v3d.is-live .v3d__load, .v3d.is-failed .v3d__load { display: none; }
.v3d__ctrls { position: absolute; z-index: 3; 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(255,255,255,.95); color: var(--ink); box-shadow: 0 2px 8px rgba(15,17,21,.14); 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.is-touched .v3d__hint { opacity: 0; }
.v3d__hint { transition: opacity .4s; position: absolute; z-index: 3; bottom: 14px; inset-inline-start: 12px; max-width: calc(100% - 80px); display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 13px; color: var(--ink-2); pointer-events: none; box-shadow: var(--sh-1); line-height: 1.3; }
html[lang="ar"] .v3d__hint { font-size: 14px; }
.v3d__hint .ico { width: 16px; height: 16px; flex: none; }
.v3d__toast { position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 12px; background: rgba(15,17,21,.82); color: #fff; font-size: 15px; font-weight: 500; 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 .v3d__hint { display: none; }
.v3d__fail { position: absolute; z-index: 3; bottom: 12px; inset-inline: 12px; text-align: center; font-size: 14px; color: var(--ink-2); }
.gal__dots { display: flex; justify-content: center; gap: 0; padding: 4px 0 0; }
.gal__dot { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.gal__dot span { width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); transition: width .25s var(--ease), background-color .2s; }
.gal__dot[aria-current="true"] span { width: 22px; background: var(--em-ink); }
.gal__dot--3d span { width: auto; height: 22px; padding: 0 7px; border-radius: 7px; font-size: 12px; font-weight: 700; line-height: 22px; color: var(--ink-2); background: var(--app-2); }
.gal__dot--3d[aria-current="true"] span { width: auto; background: var(--em-ink); color: #fff; }
.gal__dot:active span { transform: scale(.85); }
.gal__thumbs { display: none; }
.gal__arrow { display: none; }

.buy {
  position: relative; z-index: 2; margin: -6px calc(-1 * var(--gut)) 0; padding: 18px var(--gut) 8px;
  background: var(--app); border-radius: 22px 22px 0 0;
}
.buy__maker { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--em-ink); }
.buy__maker .ico { width: 18px; height: 18px; }
.buy h1 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
html[lang="ar"] .buy h1 { line-height: 1.35; }
.buy__price { font-size: 26px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.buy__card { background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-1); padding: 4px 16px; margin-top: 14px; }
.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: 600; }
.matrow { display: flex; align-items: center; gap: 10px; }
.matrow .mat { height: 28px; font-size: 14px; 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(--em-ink); font-weight: 600; 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(--em-ink); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.swatches { display: flex; gap: 10px; margin-top: 10px; 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: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15,17,21,.16); transition: transform .15s var(--ease); }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--em-ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--em-ink); outline-offset: 3px; }
.swatch:active .swatch__c { transform: scale(.9); }
.pod { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.pod .ico { color: var(--em-ink); }
html[lang="ar"] .pod { font-size: 16px; }
.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; }
html[lang="ar"] .rv-note { font-size: 15px; }
.pinfo { margin-top: 18px; }
.pinfo h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pinfo p { color: var(--ink-2); }
.pinfo p + p { margin-top: 8px; }
.specs { margin-top: 18px; }
.specs dl { background: #fff; 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: 52px; align-items: center; }
.specs dl div + div { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }

/* Phone buy bar: replaces the tab bar on the product screen */
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(255,255,255,.96); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(15,17,21,.06);
}
.bb-color { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 8px 4px 4px; padding-inline: 4px 8px; border-radius: 14px; text-align: start; min-width: 0; flex: 0 1 auto; }
.bb-color:active { background: var(--app); transform: scale(.97); }
.bb-sw { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15,17,21,.16), 0 0 0 2px #fff, 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: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.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; }
.bb-add .ico { width: 20px; height: 20px; }

/* ---------- Sell page ---------- */
.sh { padding-top: 16px; }
.sh h1 { font-size: clamp(30px, 8.4vw, 36px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; margin-top: 10px; text-wrap: balance; }
html[lang="ar"] .sh h1 { line-height: 1.35; }
.sh__text { color: var(--ink-2); margin-top: 10px; }
.nos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nos li { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; padding-inline: 8px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; }
.nos .ico { width: 20px; height: 20px; color: var(--em-ink); }
.sh__ctas { display: flex; gap: 10px; margin-top: 18px; }
.sh__ctas .btn { flex: 1; }
.ob { margin-top: 20px; padding: 14px; }
.ob__head { display: flex; align-items: center; gap: 10px; }
.ob__art { width: 52px; height: 52px; border-radius: 14px; background: var(--tone-sand); overflow: hidden; flex: none; }
.ob__art .art { width: 100%; height: 100%; padding: 4%; }
.ob__head b { display: block; font-weight: 600; }
.ob__head span { font-size: 14px; color: var(--muted); }
.ob__list { margin-top: 10px; display: grid; gap: 2px; }
.ob__list li { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; }
.ob__list .ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--em-ink); color: #fff; flex: none; }
.ob__list .ok .ico { width: 14px; height: 14px; }
.ob__list .wait { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--em); flex: none; }
.ob__earn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.steps { padding: 4px 16px; }
.pstep { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 12px 0; }
.pstep::before { content: ''; position: absolute; inset-inline-start: 17px; top: 50px; bottom: -10px; width: 2px; background: var(--line); }
.pstep:last-child::before { display: none; }
.pstep.is-done::before { background: var(--em); }
.pstep__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--app); color: var(--ink-2); font-weight: 700; font-size: 15px; position: relative; z-index: 1; transition: background-color .3s, color .3s; }
.pstep.is-done .pstep__n { background: var(--em-ink); color: #fff; }
.pstep__n .ico { width: 18px; height: 18px; }
.pstep__t { font-weight: 600; line-height: 1.3; }
.pstep__d { color: var(--muted); font-size: 16px; line-height: 1.45; margin-top: 2px; }
html[lang="ar"] .pstep__d { font-size: 17px; line-height: 1.6; }
.pstep__live { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--mint); color: var(--mint-ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pstep__live.is-err { background: var(--danger-bg); color: var(--danger); }
.pstep__live.is-wait { background: var(--app); 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(--ink); color: #fff; box-shadow: 0 10px 30px rgba(15,17,21,.22);
}
.sum__main { flex: 1; min-width: 0; line-height: 1.2; }
.sum__k { font-size: 13px; color: #c3c8d0; }
html[lang="ar"] .sum__k { font-size: 14px; }
.sum__v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: #7ee2b8; }
.sum__v small { font-size: 14px; font-weight: 500; color: #c3c8d0; margin-inline-start: 4px; }
.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: #ffb4ab; 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: 600; margin-bottom: 10px; }
.fstep__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); font-size: 14px; font-weight: 700; flex: none; }
.drop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 2px dashed var(--line-2); background: var(--app); }
.drop .ico { width: 28px; height: 28px; color: var(--em-ink); }
.drop b { display: block; font-weight: 600; }
.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: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .15s, transform .12s var(--ease), background-color .15s; }
.file:active { transform: scale(.97); }
.file input { position: absolute; opacity: 0; pointer-events: none; }
.file:has(input:checked) { box-shadow: inset 0 0 0 2px var(--em-ink); background: var(--mint); }
.file:has(input:focus-visible) { outline: 3px solid var(--em-ink); outline-offset: 2px; }
.file__art { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.file__art .art { width: 100%; height: 100%; padding: 4%; }
.file__name { font-weight: 600; 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(--em-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(--mint); color: var(--mint-ink); 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(--app); 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, transform .12s var(--ease); }
.matopt:active { transform: scale(.97); }
.matopt input { position: absolute; opacity: 0; pointer-events: none; }
.matopt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--em-ink); background: var(--mint); }
.matopt:has(input:focus-visible) { outline: 3px solid var(--em-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(--mint-ink); }
.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(--em-ink); }
.price-field.is-err { box-shadow: inset 0 0 0 2px var(--danger); }
.price-field span { font-weight: 600; color: var(--muted); }
.price-field input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: none; font-size: 22px; font-weight: 700; padding-inline: 10px; font-variant-numeric: tabular-nums; }
.field-hint { font-size: 15px; color: var(--muted); margin-top: 6px; }
html[lang="ar"] .field-hint { font-size: 15px; }
.err { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 15px; font-weight: 500; line-height: 1.45; }
.err[hidden] { display: none; }
.err .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.err__txt { flex: 1; }
.err .btn { min-height: 44px; padding: 0 12px; background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1.5px #f1b5ad; 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: 600; }
.rates { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; background: #fff4d6; color: #7a4d00; font-size: 13px; font-weight: 600; }
.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: 600; font-variant-numeric: tabular-nums; }
.res .is-earn dd { color: var(--em-ink); font-size: 20px; font-weight: 700; }
.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(--em-ink); font-weight: 600; 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(--app); }
.bd dl div { min-height: 40px; font-size: 15px; }
.bd dl div + div { border-color: var(--app-2); }
.bd small { display: block; font-size: 13px; color: var(--muted); }
.bd .is-total { font-weight: 700; }
.how-est { padding: 16px; display: flex; gap: 12px; }
.how-est .ico { width: 26px; height: 26px; color: var(--em-ink); flex: none; margin-top: 2px; }
.how-est h3 { font-size: 17px; font-weight: 600; }
.how-est p { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
html[lang="ar"] .how-est p { font-size: 17px; }

/* Material guide */
.mg { overflow: hidden; }
.mg__table { display: block; }
.mg__heads { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.mg__h { background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mg__h b { display: block; font-size: 22px; font-weight: 700; }
.mg__h span { display: block; font-size: 15px; color: var(--muted); line-height: 1.4; }
html[lang="ar"] .mg__h span { font-size: 15px; }
.mg__h--petg { background: var(--mint); }
.mg__h--petg span { color: var(--mint-ink); }
.mg__spool { width: 36px; height: 36px; margin-bottom: 4px; }
.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: 600; 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: #fff; box-shadow: var(--sh-1); }
.note .ico { width: 24px; height: 24px; color: var(--em-ink); flex: none; margin-top: 1px; }
.note--warn .ico { color: #a15c00; }
.note p { font-size: 16px; color: var(--ink-2); }
html[lang="ar"] .note p { font-size: 17px; }
.note b { color: var(--ink); }

.rules { padding: 16px; }
.rules p { color: var(--ink-2); margin-top: 6px; }
.rules h3 { font-size: 15px; font-weight: 600; 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(--danger); width: 22px; height: 22px; }
.scta { text-align: center; padding: 24px 18px; }
.scta h2 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.scta p { color: var(--muted); margin-top: 6px; }
.scta .btn { margin-top: 16px; min-width: 220px; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  :root { --gut: 24px; --hdr: 60px; }
  .hdr .logo__word { display: inline; }
  .hdr .lang { display: inline-flex; }
  .sbtn { max-width: 520px; }
  .grid2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .hrow { grid-auto-columns: calc((100% - 2 * var(--gut) - 3 * 14px) / 3.4); gap: 14px; }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; }
  .hero h1 { font-size: 40px; }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .gal { margin: 0; border-radius: var(--r-l); overflow: hidden; }
  .gal__slide { aspect-ratio: 4 / 3; }
  .buy { margin-inline: 0; border-radius: 0; padding-inline: 0; background: none; }
  .files { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { border-radius: 22px 22px 0 0; }
  .story-l .sv { max-width: 440px; height: min(100%, 860px); border-radius: 24px; }
  .track__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .track__step { grid-template-columns: 1fr; padding: 14px 0; }
  .track__step::before { inset-inline-start: 44px; inset-inline-end: -12px; width: auto; top: 19px; bottom: auto; height: 2px; }
  [dir="rtl"] .track__step::before { inset-inline-start: 44px; }
  .track__step.is-next::before, .track__step.is-now::before { background: repeating-linear-gradient(to right, var(--line-2) 0 4px, transparent 4px 8px); }
}

/* ---------- Desktop: rail + feed + cart drawer ---------- */
@media (min-width: 1100px) {
  :root { --hdr: 64px; --fs: 16px; }
  html[lang="ar"] body { font-size: 17px; }
  body { padding-bottom: 0; }
  body.has-buybar { padding-bottom: 0; }
  .tabbar, .buybar { display: none !important; }
  .hdr__in { padding-inline: 20px; gap: 16px; }
  .hdr .logo { width: 228px; }
  .hdr .logo__mark { width: 38px; height: 38px; }
  .sbtn { max-width: 560px; height: 44px; margin-inline: auto; }
  .sbtn__kbd { display: inline-block; }
  .hdr-cart, .has-buybar .hdr-cart { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 0 14px 0 10px; padding-inline: 10px 16px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
  .hdr-cart:active { background: #262a31; }
  .hdr-cart .badge { position: static; box-shadow: none; background: var(--em); color: #fff; }
  .hdr-cart .badge.is-zero { display: inline-block; background: rgba(255,255,255,.18); }
  .hdr-cart__txt { display: inline; }
  .hdr-menu { display: none; }
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .rail {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--hdr) + var(--stp)); align-self: start;
    height: calc(100dvh - var(--hdr) - var(--stp)); overflow-y: auto; padding: 16px 12px 20px; border-inline-end: 1px solid var(--line); background: #fff;
  }
  .rail a, .rail button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 500; font-size: 15px; color: var(--ink-2); text-align: start; transition: background-color .12s, color .12s; }
  .rail a:active, .rail button:active { transform: scale(.98); }
  .rail a[aria-current="page"] { background: var(--mint); color: var(--mint-ink); font-weight: 600; }
  .rail a[aria-current="page"] .ico { color: var(--em-ink); }
  .rail .ico { width: 22px; height: 22px; color: var(--muted); }
  .rail__h { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 18px 12px 6px; }
  html[lang="ar"] .rail__h { text-transform: none; font-size: 15px; }
  .rail .chip__art { margin: 0; width: 28px; height: 28px; }
  .rail__promo { margin-top: auto; display: block !important; min-height: 0 !important; padding: 14px !important; border-radius: 16px !important; background: linear-gradient(150deg, #087a56, #065c42); color: #fff !important; }
  .rail__promo b { display: block; font-size: 16px; }
  .rail__promo span { display: block; font-size: 14px; color: #e4f6ee; margin-top: 4px; line-height: 1.4; }
  .rail__promo .ico { color: #fff !important; margin-top: 8px; }
  main { padding: 8px 40px 40px; }
  .stories { margin: 0; }
  .stories__list { padding-inline: 0; gap: 18px; }
  .story-btn { width: 88px; }
  .story-ring { width: 80px; height: 80px; }
  .story-label { max-width: 88px; }
  .hero { padding-top: 18px; }
  .hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; }
  .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; margin-top: 14px; }
  html[lang="ar"] .hero__sub { font-size: 19px; }
  .hero__ctas { margin-top: 24px; }
  .hero__ctas .btn { flex: none; min-width: 160px; }
  .hero__mini { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
  .hero__mini li { display: inline-flex; align-items: center; gap: 6px; }
  .hero__mini .ico { width: 18px; height: 18px; color: var(--em-ink); }
  .pn__stage { aspect-ratio: 16 / 11; }
  .sec { margin-top: 44px; }
  .sec__title { font-size: 26px; }
  .sec__arrows { display: flex; }
  .sec__arrows button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); transition: background-color .15s, transform .14s var(--ease), opacity .2s; }
  .sec__arrows button:active { transform: scale(.92); }
  .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; }
  .grid2 { gap: 18px; }
  .pc__body { padding: 12px 14px 14px; }
  .pc__name { font-size: 15px; }
  .band { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: center; padding: 32px; }
  .band h2 { font-size: 30px; }
  .ex { margin-top: 0; }
  .track { padding: 8px 24px; }
  .foot { padding-inline: 40px; margin-top: 48px; }
  .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: 36px; }
  .foot h2 { margin-top: 0; }
  .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: 22px; overflow: hidden; box-shadow: var(--sh-3); }
  .search__bar { padding: 10px 10px 10px 14px; padding-inline: 14px 10px; }
  .search__body { padding-bottom: 20px; }
  .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; }
  .layer--center { align-items: center; }
  .layer--center .sheet { border-radius: 22px; max-height: 86dvh; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .3s var(--ease-sheet), opacity .2s; }
  .layer--center.is-open .sheet { opacity: 1; }
  .layer--center .sheet__grab { display: none; }
  .layer--center .sheet__head { padding-top: 18px; }
  .sv__nav { display: grid; position: absolute; z-index: 4; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--sh-2); }
  .story-l { justify-content: center; }
  .story-l .sv { max-width: 420px; height: min(calc(100dvh - 48px), 820px); border-radius: 24px; }
  .story-nav-prev { inset-inline-start: calc(50% - 300px); }
  .story-nav-next { inset-inline-end: calc(50% - 300px); }
  .sv__zone { display: none; }

  /* 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; min-height: 44px; padding: 0 6px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
  .crumb a:active { background: var(--app-2); }
  .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) + 20px); }
  .gal { box-shadow: var(--sh-1); background: #fff; }
  .gal__slide { aspect-ratio: 5 / 4.4; }
  .gal__dots { display: none; }
  .gal__thumbs { display: flex; gap: 10px; margin-top: 12px; }
  .gal__thumb { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .14s var(--ease); }
  .gal__thumb:active { transform: scale(.95); }
  .gal__thumb[aria-current="true"] { box-shadow: inset 0 0 0 2.5px var(--em-ink); }
  .gal__thumb > svg { width: 100%; height: 100%; }
  .gal__thumb .art { padding: 10%; }
  .gal__thumb--3d { display: grid; place-items: center; font-weight: 700; color: var(--em-ink); }
  .gal__thumb--3d .ico { width: 28px; height: 28px; }
  .gal__arrow { display: grid; position: absolute; z-index: 4; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: rgba(255,255,255,.95); box-shadow: var(--sh-2); transition: opacity .2s, transform .14s var(--ease); }
  .gal__arrow:active { transform: scale(.92); }
  .gal__arrow:disabled { opacity: 0; pointer-events: none; }
  .gal__arrow--prev { inset-inline-start: 12px; }
  .gal__arrow--next { inset-inline-end: 12px; }
  .buy { padding: 0; margin: 0; }
  .buy h1 { font-size: 36px; }
  .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; }
  .pinfo, .specs { max-width: 62ch; }
  .pdp__more { margin-top: 48px; }

  /* Sell */
  .sh__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
  .sh h1 { font-size: 50px; line-height: 1.06; }
  html[lang="ar"] .sh h1 { font-size: 46px; line-height: 1.3; }
  .sh__text { font-size: 18px; max-width: 34em; }
  .sh__ctas .btn { flex: none; min-width: 180px; }
  .ob { margin-top: 0; padding: 20px; }
  .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 { text-align: start; }
  .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: #c3c8d0; }
  .sum__rows dd { font-weight: 600; 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: #fff; width: 22%; }
  .mg__h { display: table-cell; }
  .mg__rh { padding: 16px 20px; font-size: 14px; border-top: 1px solid var(--line); vertical-align: top; }
  .mg__c { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 16px; }
  .mg__c + .mg__c { border-inline-start: 1px solid var(--line); }
  .mg__h { padding: 18px 20px; border-inline-start: 1px solid var(--line); }
  .mg__notes { grid-template-columns: 1fr 1fr; }
  .sell-lower { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
}
@media (max-width: 1099.98px) { .mg__corner { display: none; } }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--em-deep); }
  .btn--soft:hover { background: var(--mint-2); }
  .btn--ghost:hover { background: var(--app); }
  .iconbtn:hover { background: var(--app); }
  .chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); background: var(--app); }
  .chip[aria-pressed="true"]:hover, .chip--filter:hover { background: #2a2e36; }
  .sbtn:hover { background: var(--app-2); }
  .pc:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
  .pc:hover .pc__media .art { transform: scale(1.04); }
  .pc__add:hover { background: var(--em-ink); color: #fff; }
  .rail a:hover, .rail button:hover { background: var(--app); color: var(--ink); }
  .rail__promo:hover { filter: brightness(1.08); }
  .row-link:hover, .srow:hover { background: #fafbfc; }
  .linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
  .foot ul a:hover { color: var(--em-ink); text-decoration: underline; text-underline-offset: 3px; }
  .crumb a:hover { color: var(--em-ink); text-decoration: underline; }
  .sec__arrows button:hover:not(:disabled), .gal__arrow:hover { background: var(--app); }
  .gal__thumb:hover { box-shadow: inset 0 0 0 2px var(--line-2); }
  .gal__thumb[aria-current="true"]:hover { box-shadow: inset 0 0 0 2.5px var(--em-ink); }
  .v3d__ctrls button:hover { background: #fff; color: var(--em-ink); }
  .file:hover, .matopt:hover, .opt:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .file:has(input:checked):hover, .matopt:has(input:checked):hover, .opt:has(input:checked):hover { box-shadow: inset 0 0 0 2px var(--em-ink); }
  .hdr-cart:hover { background: #262a31; }
  .story-btn:hover .story-ring { transform: scale(1.04); }
  .seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
  .stepper button:hover:not(:disabled) { background: var(--app-2); }
  .sv__btn:hover { background: rgba(255,255,255,.16); }
  .band .btn:hover { background: var(--mint); }
  .toast__undo:hover { background: rgba(255,255,255,.1); }
  .tab:hover { color: var(--ink); }
}

/* Reduced motion: still, well-composed states */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
.rm .sk { animation: none; }

/* Lantern art ghost (unprinted part) */
.svg-ghost * { fill: none !important; stroke: #0b9a6d; stroke-opacity: .32; stroke-width: 1.1; stroke-dasharray: 3 3; }

@media (min-width: 1100px) {
  .steps-grid .pstep::before { display: none; }
}
