/* Layout: the model line-up is the whole hero (soft studio gradient, cut-out models); everything else is quiet white UI with black type and black pill buttons.
   Deliberately single light theme, like the reference reels. */
:root {
  color-scheme: light;
  --bg: #FBFAF6; --stage-a: #F0ECE2; --stage-b: #FAF8F3; --soft: #F3EFE6; --ink: #111111; --ink-2: #6E6A62; --ink-3: #A8A398;
  --line: #E9E3D7; --sun: #B8913A; --gold-grad: linear-gradient(90deg, #9A7630, #D8B866 50%, #9A7630); --ok: #8A6A22; --scrim: rgba(17, 15, 10, .42);
  --f-ui: 'Inter', 'Vazirmatn', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-head: 'Inter Tight', 'Vazirmatn', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px)); --gr: max(16px, env(safe-area-inset-right, 0px));
  --hdr: 54px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:root[dir="rtl"] body { font-family: 'Vazirmatn', var(--f-ui); }
:root[dir="rtl"] h1, :root[dir="rtl"] h2, :root[dir="rtl"] h3 { font-family: 'Vazirmatn', var(--f-head); letter-spacing: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }
h1, h2, h3 { font-family: var(--f-head); margin: 0; letter-spacing: -.03em; text-wrap: balance; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.cap { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
:root[dir="rtl"] .cap { letter-spacing: 0; font-size: 12.5px; }

/* ---------- top ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 70; }
.announce { background: var(--ink); color: #fff; font-size: 12px; text-align: center; padding-block: 7px; }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(251, 250, 246, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.hdr-row { height: var(--hdr); display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 7px; text-decoration: none; font: 800 17px/1 var(--f-head); letter-spacing: .02em; }
.logo .sun { color: var(--sun); }
.tabs { display: flex; gap: 22px; margin-inline-start: 22px; height: 100%; }
.tab { position: relative; font-size: 14px; font-weight: 500; color: var(--ink-2); height: 100%; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.ib { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; position: relative; }
.ib:hover { background: var(--soft); }
.ib svg { width: 21px; height: 21px; }
.badge { position: absolute; top: 3px; inset-inline-end: 2px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 10.5px/17px var(--f-ui); text-align: center; padding: 0 4px; }
.badge[data-n="0"] { display: none; }
.lang { font-size: 13px; font-weight: 600; padding: 0 10px; height: 34px; border-radius: 99px; border: 1px solid var(--line); }
.mtabs { display: none; border-top: 1px solid var(--line); }
.mtabs .tab { flex: 1; text-align: center; height: 42px; }
@media (max-width: 720px) { .tabs.desk { display: none; } .mtabs { display: flex; } .logo-word small { display: none; } }

/* ---------- hero: try the look ---------- */
.hero { background: linear-gradient(180deg, var(--stage-a), var(--stage-b) 62%, var(--bg)); padding-block: 22px 26px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.hero-head { display: grid; gap: 4px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; }
.hero-sub { margin: 0; color: var(--ink-2); font-size: 14px; }
.controls { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 260px; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.controls .chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-inline-end: 24px; }
:root[dir="rtl"] .controls .chips { -webkit-mask-image: linear-gradient(270deg, #000 88%, transparent); mask-image: linear-gradient(270deg, #000 88%, transparent); }
.chip { flex: none; height: 32px; padding: 0 13px; border-radius: 99px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; height: 32px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .75); padding-inline: 13px 30px; font: 500 13px var(--f-ui); color: var(--ink); }
:root[dir="rtl"] .sel select { padding-inline: 13px 30px; }
.sel::after { content: ""; position: absolute; inset-inline-end: 13px; top: 13px; width: 6px; height: 6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.fitpill { height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.fitpill svg { width: 15px; height: 15px; }
.fitpill.set { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

.stage { position: relative; margin-top: 10px; }
.lineup { --lh: clamp(360px, 60vh, 640px); --lw: calc(var(--lh) * .36); display: flex; align-items: flex-end; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: calc(50% - var(--lw) / 2); height: calc(var(--lh) + 24px); overscroll-behavior-x: contain; }
.lineup::-webkit-scrollbar { display: none; }
.lk { flex: 0 0 var(--lw); height: var(--lh); scroll-snap-align: center; position: relative; margin-inline: calc(var(--lw) * -.06); display: flex; align-items: flex-end; justify-content: center; transform-origin: 50% 100%; will-change: transform, opacity; transform: scale(.8); opacity: .5; }
.lk img { height: 100%; width: auto; max-width: none; object-fit: contain; object-position: 50% 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .6s ease; }
.lk img.ok { opacity: 1; }
.lk::after { content: ""; position: absolute; bottom: -6px; left: 18%; right: 18%; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 18, 30, .22), transparent); z-index: -1; }
.like { position: absolute; top: 8%; inset-inline-start: 0; z-index: 4; background: #fff; color: var(--ink); font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); opacity: 0; transition: opacity .3s; }
.lk.on .like { opacity: 1; }
.scrub { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.scrub i { width: 18px; height: 2px; border-radius: 2px; background: rgba(14, 14, 17, .14); transition: background .3s, width .3s; }
.scrub i.on { background: var(--sun); width: 28px; }
.arrows { position: absolute; inset: 40% 0 auto; display: flex; justify-content: space-between; pointer-events: none; }
.arrows button { pointer-events: auto; width: 42px; height: 42px; border-radius: 99px; background: rgba(255, 255, 255, .85); box-shadow: 0 4px 16px rgba(0, 0, 0, .08); display: grid; place-items: center; }
.arrows svg { width: 18px; height: 18px; }
:root[dir="rtl"] .arrows svg { transform: scaleX(-1); }
@media (hover: none) { .arrows { display: none; } }

/* look panel (right on desktop, under the line-up on phones) */
.panel-look { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; position: sticky; top: calc(var(--hdr) + 18px); display: grid; gap: 14px; box-shadow: 0 20px 50px rgba(30, 24, 60, .06); }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pl-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; color: var(--ink-2); background: var(--soft); border-radius: 99px; padding: 3px 9px; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding-block: 9px; border-top: 1px solid var(--line); text-align: start; width: 100%; }
.row:first-child { border-top: 0; }
.thumb { width: 56px; height: 56px; border-radius: 12px; background-color: var(--soft); background-repeat: no-repeat; display: block; }
.row b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.row span.p { font-size: 12.5px; color: var(--ink-2); }
.plus { width: 30px; height: 30px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; }
.plus svg { width: 14px; height: 14px; }
.plus.done { background: var(--ink); border-color: var(--ink); color: #fff; }
.bar { width: 100%; height: 50px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bar:active { transform: translateY(1px); }
.bar.ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.bar svg { width: 17px; height: 17px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note { font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.note svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .panel-look { position: static; box-shadow: none; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(44px, 7vw, 84px); }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; }
.styles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stile { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--stage-a), var(--stage-b)); text-align: start; display: block; }
.stile .figs { position: absolute; inset: 12% 0 0; display: flex; justify-content: center; align-items: flex-end; }
.stile .figs img { height: 100%; width: auto; max-width: none; margin-inline: -9%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.stile .figs img:nth-child(2) { position: relative; z-index: 2; }
.stile .figs img:not(:nth-child(2)) { height: 88%; filter: saturate(.85); }
.stile:hover .figs img:nth-child(2) { transform: translateY(-4px); }
.stile .lbl { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3; }
.stile .lbl b { display: block; font: 700 17px/1.1 var(--f-head); }
.stile .lbl span { font-size: 12px; color: var(--ink-2); }
@media (max-width: 860px) { .styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.heritage { background: #14110F; color: #F3EEE6; }
.heritage .muted { color: #B9B0A4; }
.her-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: stretch; }
.her-photo { border-radius: 20px; overflow: hidden; position: relative; min-height: 420px; background: #2A2420 center / cover no-repeat; }
.her-photo .cap { position: absolute; bottom: 16px; inset-inline-start: 16px; color: #fff; background: rgba(0, 0, 0, .35); padding: 5px 10px; border-radius: 99px; backdrop-filter: blur(6px); }
.her-side { display: grid; gap: 18px; align-content: start; }
.her-side h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; color: #F3EEE6; }
.her-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hcard { background: #221D19; border-radius: 16px; padding: 12px; text-align: start; display: grid; gap: 8px; }
.hcard .ph { aspect-ratio: 3 / 4; display: grid; place-items: end center; background: radial-gradient(80% 60% at 50% 60%, #3A312A, #221D19); border-radius: 10px; overflow: hidden; }
.hcard .ph img { height: 94%; width: auto; }
.hcard b { font-size: 13.5px; font-weight: 600; }
.hcard span { font-size: 12.5px; color: #B9B0A4; }
.her-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.her-strip div { aspect-ratio: 4 / 3; border-radius: 14px; background: #2A2420 center 25% / cover no-repeat; }
@media (max-width: 860px) { .her-grid { grid-template-columns: 1fr; } .her-photo { min-height: 340px; } }

.foot { border-top: 1px solid var(--line); padding-block: 40px 26px; font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 24px; }
.foot h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-note { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 90; background: #fff; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.side { top: 0; bottom: 0; inset-inline-end: 0; width: min(430px, 100%); transform: translateX(105%); padding-bottom: env(safe-area-inset-bottom, 0px); padding-top: env(safe-area-inset-top, 0px); }
:root[dir="rtl"] .side { transform: translateX(-105%); }
.side.on, :root[dir="rtl"] .side.on { transform: none; }
.full { inset: 0; transform: translateY(100%); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.full.on { transform: none; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px var(--gr) 12px var(--gl); border-bottom: 1px solid var(--line); min-height: 58px; }
.sh-head b { font-size: 14px; font-weight: 600; }
.sh-body { flex: 1; overflow-y: auto; padding: 18px var(--gr) 18px var(--gl); display: grid; gap: 18px; align-content: start; }
.sh-foot { padding: 12px var(--gr) 14px var(--gl); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.x { width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
.x svg { width: 16px; height: 16px; }

/* mix sheet */
.mix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); flex: 1; min-height: 0; }
.mix-model { background: linear-gradient(180deg, var(--stage-a), var(--stage-b)); display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; position: relative; overflow: hidden; }
.mix-model img { height: 94%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }
.mix-model .board { position: absolute; top: 18px; inset-inline-start: 18px; width: 128px; background: rgba(255, 255, 255, .9); border-radius: 16px; padding: 10px; display: grid; gap: 6px; box-shadow: 0 10px 30px rgba(30, 24, 60, .1); }
.board .cap { margin-bottom: 2px; }
.board .thumb { width: 100%; height: 72px; border-radius: 10px; }
.mix-side { overflow-y: auto; padding: 22px var(--gr) 22px 26px; display: grid; gap: 20px; align-content: start; border-inline-start: 1px solid var(--line); }
:root[dir="rtl"] .mix-side { padding: 22px 26px 22px var(--gl); }
.slot { display: grid; gap: 10px; }
.slot-h { display: flex; justify-content: space-between; align-items: center; }
.swaps { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.swaps::-webkit-scrollbar { display: none; }
.sw { flex: 0 0 104px; text-align: start; display: grid; gap: 5px; position: relative; }
.sw .thumb { width: 104px; height: 120px; border: 2px solid transparent; }
.sw[aria-pressed="true"] .thumb { border-color: var(--ink); }
.sw b { font-size: 12px; font-weight: 600; line-height: 1.25; }
.sw span { font-size: 11.5px; color: var(--ink-2); }
.pct { position: absolute; top: 6px; inset-inline-start: 6px; background: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 99px; color: var(--ok); }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.sz { min-width: 44px; height: 36px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; padding: 0 10px; position: relative; }
.sz[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sz.rec::after { content: ""; position: absolute; top: 4px; inset-inline-end: 4px; width: 5px; height: 5px; border-radius: 9px; background: var(--ok); }
.sz[aria-pressed="true"].rec::after { background: #fff; }
.totline { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.totline b { font-size: 18px; }
@media (max-width: 860px) {
  .mix { grid-template-columns: 1fr; overflow-y: auto; }
  .mix-model { height: 46vh; min-height: 300px; }
  .mix-model .board { width: 96px; top: 12px; inset-inline-start: 12px; }
  .board .thumb { height: 54px; }
  .mix-side { overflow: visible; border: 0; padding: 18px var(--gr) 24px var(--gl); }
}

/* search */
.s-top { display: flex; gap: 10px; align-items: center; padding: 12px var(--gr) 12px var(--gl); border-bottom: 1px solid var(--line); }
.s-in { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 12px; background: var(--soft); padding: 0 14px; }
.s-in svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.s-in input { flex: 1; border: 0; background: none; font: 400 16px var(--f-ui); color: var(--ink); outline: none; min-width: 0; }
.s-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gr) 0 var(--gl); }
.s-filters::-webkit-scrollbar { display: none; }
.s-filters .chip { background: #fff; }
.s-body { flex: 1; overflow-y: auto; padding: 14px var(--gr) 30px var(--gl); display: grid; gap: 22px; align-content: start; max-width: 1280px; width: 100%; margin-inline: auto; }
.s-looks { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.s-looks::-webkit-scrollbar { display: none; }
.slook { flex: 0 0 132px; height: 200px; border-radius: 14px; background: linear-gradient(180deg, var(--stage-a), var(--stage-b)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; overflow: hidden; }
.slook img { height: 82%; width: auto; max-width: none; }
.slook b { position: absolute; top: 8px; inset-inline-start: 10px; font-size: 12px; font-weight: 600; text-align: start; max-width: 80%; line-height: 1.2; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pcard { text-align: start; display: grid; gap: 6px; }
.pcard .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; }
.pcard b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pcard span { font-size: 12.5px; color: var(--ink-2); }
.empty { text-align: center; color: var(--ink-2); padding: 40px 10px; }

/* fit finder (reel 4 style) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps i { height: 3px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--ink); }
.ff-title { font: 700 21px/1.15 var(--f-head); letter-spacing: -.01em; margin: 0; text-transform: uppercase; }
:root[dir="rtl"] .ff-title { text-transform: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { padding: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.measure { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.sil { height: 230px; display: grid; place-items: end center; color: var(--ink); }
.sil svg { height: 100%; width: auto; overflow: visible; }
.sil g { transition: transform .25s ease; transform-origin: 100px 488px; }
.meas { display: grid; gap: 4px; }
.meas label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.meas .val { font: 300 40px/1 var(--f-head); letter-spacing: -.03em; }
.meas .val small { font: 500 13px var(--f-ui); color: var(--ink-2); margin-inline-start: 4px; }
.ctl { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; }
.ctl button { width: 28px; height: 28px; border-radius: 99px; border: 1px solid var(--line); line-height: 1; }
input[type="range"] { width: 100%; accent-color: var(--ink); }
.est { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.est .big { font: 300 34px/1 var(--f-head); }
.shape-row { display: grid; gap: 8px; }
.shape-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shape-opts button, .fitopt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px 9px; display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.shape-opts svg { width: 34px; height: 34px; color: var(--ink); }
.shape-opts button[aria-pressed="true"], .fitopt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); background: var(--soft); }
.fitopt { grid-template-columns: 34px 1fr 14px; justify-items: start; text-align: start; padding: 14px; gap: 14px; align-items: center; width: 100%; }
.fitopt svg { width: 30px; height: 34px; color: var(--ink); }
.fitopt b { display: block; color: var(--ink); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; }
.fitopt i { width: 12px; height: 12px; border-radius: 99px; border: 1.5px solid var(--line); }
.fitopt[aria-pressed="true"] i { background: var(--ink); border-color: var(--ink); }
.result { display: grid; justify-items: center; gap: 8px; text-align: center; }
.ring { width: 150px; height: 150px; position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring b { font: 300 56px/1 var(--f-head); }

/* bag + toast */
.bi { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.bi .thumb { width: 64px; height: 72px; }
.bi b { font-size: 13.5px; font-weight: 600; display: block; }
.bi span { font-size: 12.5px; color: var(--ink-2); }
.bi .rm { font-size: 12px; color: var(--ink-2); text-decoration: underline; margin-top: 2px; }
.tot { display: grid; gap: 6px; font-size: 14px; }
.tot div { display: flex; justify-content: space-between; }
.tot .g { font-weight: 700; font-size: 16px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 24px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-size: 14px; font-weight: 500; transition: .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

:root[dir="rtl"] .plus svg { transform: scaleX(-1); }
.row { cursor: pointer; border-radius: 0; }
.row:hover .plus { background: var(--ink); color: #fff; border-color: var(--ink); }

/* base rules the claude.ai preview shell used to provide */
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ---------- brand ---------- */
.logo img { height: 24px; width: auto; display: block; }
@media (max-width: 720px) { .logo img { height: 20px; } }
.brandline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
:root[dir="rtl"] .brandline { letter-spacing: 0; font-size: 12.5px; }
.brandline i { width: 1px; height: 12px; background: var(--sun); }
.brandline b { font: 600 13px 'Vazirmatn', sans-serif; letter-spacing: 0; color: var(--sun); margin-inline-start: 8px; display: inline-flex; align-items: center; gap: 8px; text-transform: none; }
.brandline b::before { content: ""; width: 24px; height: 1px; background: var(--gold-grad); }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand img { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.like { border: 1px solid var(--sun); color: var(--ok); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .brandline, .hero h1, .hero-sub, .hero .controls { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 { animation-delay: .06s; } .hero-sub { animation-delay: .12s; } .hero .controls { animation-delay: .18s; }
.panel-look.anim .pl-head, .panel-look.anim .tags, .panel-look.anim .row, .panel-look.anim .bar { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.panel-look.anim .tags { animation-delay: .04s; }
.panel-look.anim .row:nth-child(1) { animation-delay: .07s; } .panel-look.anim .row:nth-child(2) { animation-delay: .1s; }
.panel-look.anim .row:nth-child(3) { animation-delay: .13s; } .panel-look.anim .row:nth-child(4) { animation-delay: .16s; }
.panel-look.anim .row:nth-child(5) { animation-delay: .19s; } .panel-look.anim .row:nth-child(6) { animation-delay: .22s; }
.panel-look.anim .bar { animation-delay: .2s; }
.mix-model img { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.bar, .chip, .ib, .sw, .stile, .hcard, .tab, .fitpill { transition: transform .18s ease, background-color .2s, color .2s; }
.bar:active, .chip:active, .ib:active, .sw:active, .stile:active, .hcard:active, .fitpill:active { transform: scale(.97); }
.stile .figs img, .slook img, .hcard img { animation: rise .6s ease both; }

/* ---------- v4: full-width line-up + slim look bar ---------- */
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 32px; flex-wrap: wrap; }
.hero-top .controls { margin-top: 0; flex: 0 1 auto; max-width: 100%; }
.hero-top .hero-head { flex: 1 1 320px; }
.stage { margin-top: 18px; }
.arrows { padding-left: var(--gl); padding-right: var(--gr); }
.lookbar { display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap; max-width: 880px; margin: 6px auto 0; padding: 12px 14px 12px 18px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 40px rgba(60, 45, 20, .06); }
.lb-info { min-width: 0; display: grid; gap: 2px; flex: 1 1 180px; }
.lb-info h2 { font: 700 18px/1.15 var(--f-head); letter-spacing: -.02em; }
.lb-info p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.lb-pieces { display: flex; gap: 6px; align-items: center; }
.lb-pc .thumb { width: 48px; height: 48px; border-radius: 12px; background-color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease; }
.lb-pc:hover .thumb { transform: translateY(-2px); }
.lb-more { font-size: 12px; color: var(--ink-2); padding: 0 4px; }
.lb-cta { height: 46px; padding: 0 20px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: transform .18s ease; }
.lb-cta:active { transform: scale(.97); }
.lb-cta svg { width: 16px; height: 16px; }
:root[dir="rtl"] .lb-cta svg { transform: scaleX(-1); }
.lookbar.anim > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.lookbar.anim .lb-pieces { animation-delay: .05s; } .lookbar.anim .lb-cta { animation-delay: .1s; }
.scrub { margin-top: 14px; }
@media (max-width: 720px) {
  .hero { padding-block: 14px 20px; }
  .hero h1 { font-size: 28px; }
  .lineup { --lh: clamp(330px, 54vh, 520px); }
  .lookbar { justify-content: space-between; padding: 10px 10px 10px 14px; gap: 10px; border-radius: 18px; }
  .lb-info { flex: 1 1 100%; }
  .lb-pc .thumb { width: 42px; height: 42px; border-radius: 10px; }
  .lb-cta { height: 42px; padding: 0 16px; font-size: 13.5px; }
}

/* ---------- v4: look page ---------- */
.lp { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 540px); flex: 1; min-height: 0; }
.lp-x { position: absolute; z-index: 6; top: calc(14px + env(safe-area-inset-top, 0px)); inset-inline-end: max(14px, env(safe-area-inset-right, 0px)); background: #fff; width: 42px; height: 42px; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.lp-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: radial-gradient(70% 55% at 50% 62%, #fff 0%, var(--stage-b) 45%, var(--stage-a) 100%); touch-action: pan-y; }
.lp-stage::after { content: ""; position: absolute; bottom: 3%; left: 30%; right: 30%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 30, 10, .18), transparent); }
.lp-img { position: relative; z-index: 1; height: 92%; width: auto; max-width: 94%; object-fit: contain; object-position: 50% 100%; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; user-select: none; -webkit-user-drag: none; }
.lp-img.in-r { animation: inR .45s cubic-bezier(.2, .8, .2, 1) both; }
.lp-img.in-l { animation: inL .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes inR { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
.lp-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); display: grid; place-items: center; }
.lp-nav svg { width: 18px; height: 18px; }
.lp-nav.prev { left: 18px; } .lp-nav.next { right: 18px; }
.lp-count { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .9); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.lp-side { overflow-y: auto; padding: 56px 40px 40px; display: grid; gap: 14px; align-content: start; border-inline-start: 1px solid var(--line); background: var(--bg); }
.lp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
:root[dir="rtl"] .lp-tags { letter-spacing: 0; font-size: 12.5px; }
.lp-tags i { width: 1px; height: 11px; background: var(--sun); }
.lp-name { font: 700 clamp(30px, 3.4vw, 44px)/1.02 var(--f-head); letter-spacing: -.03em; }
.lp-pieces { margin-top: 6px; border-top: 1px solid var(--line); }
.pc { border-bottom: 1px solid var(--line); }
.pc-main { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; padding: 14px 0; text-align: start; }
.pc-img { width: 80px; height: 100px; border-radius: 14px; background-color: var(--soft); }
.pc-txt { display: grid; gap: 3px; min-width: 0; }
.pc-txt b { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.pc-col { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.pc-col i { width: 11px; height: 11px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.pc-swap { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; transition: background-color .2s, color .2s; }
.pc-swap svg { transition: transform .25s ease; }
.pc.open .pc-swap { background: var(--ink); color: #fff; border-color: var(--ink); }
.pc.open .pc-swap svg { transform: rotate(180deg); }
.pc-alts { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 18px; scroll-snap-type: x proximity; scrollbar-width: none; animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; }
.pc-alts::-webkit-scrollbar { display: none; }
.alt { flex: 0 0 112px; display: grid; gap: 5px; text-align: start; scroll-snap-align: start; }
.alt .thumb { width: 112px; height: 140px; border-radius: 14px; background-color: var(--soft); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.alt[aria-pressed="true"] .thumb { box-shadow: inset 0 0 0 2px var(--sun); }
.alt-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.alt-tag.own { color: var(--ink-2); }
.alt b { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
@media (max-width: 860px) {
  .lp { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .lp-stage { height: 58vh; min-height: 340px; }
  .lp-nav { width: 40px; height: 40px; } .lp-nav.prev { left: 10px; } .lp-nav.next { right: 10px; }
  .lp-side { overflow: visible; border: 0; padding: 20px var(--gr) 32px var(--gl); border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; z-index: 2; box-shadow: 0 -10px 30px rgba(60, 45, 20, .06); }
  .lp-name { font-size: 30px; }
  .pc-main { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; }
  .pc-img { width: 68px; height: 86px; }
  .alt { flex-basis: 100px; } .alt .thumb { width: 100px; height: 126px; }
}

.sheet:focus { outline: none; }

/* ---------- v5: scroll fix: horizontal rows never capture vertical swipes ---------- */
.lineup, .rail, .chips, .room-chips, .pc-alts, .s-looks, .s-filters, .swaps { overflow-y: hidden; touch-action: pan-x pan-y; overscroll-behavior-y: auto; }
.lk, .lk img { touch-action: pan-x pan-y; }

/* ---------- v5: the rail ---------- */
.railsec { background: linear-gradient(115deg, #F2ECE0 0%, #ECEEE5 52%, #F4EADB 100%); padding-block: clamp(44px, 7vw, 84px) 0; overflow: hidden; }
.rail-head h2 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 800; }
.rail-wrap { position: relative; margin-top: 26px; }
.rail-bar { position: absolute; top: 12px; left: 0; right: 0; height: 4px; border-radius: 2px; background: linear-gradient(#CFC7B8, #978F80); box-shadow: 0 2px 5px rgba(40, 30, 10, .15); }
.rail { display: flex; align-items: flex-start; gap: clamp(10px, 2.2vw, 26px); overflow-x: auto; padding: 0 var(--gr) 44px var(--gl); scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; }
.hang { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; position: relative; padding-top: 2px; will-change: transform; }
.hang .hook { width: 18px; height: 30px; color: #8C8576; margin-bottom: -5px; position: relative; z-index: 1; }
.hang img { width: auto; display: block; filter: drop-shadow(0 16px 18px rgba(40, 30, 15, .16)); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.h-s img { height: 220px; } .h-m img { height: 270px; } .h-l img { height: 340px; }
.hang .tag { position: absolute; top: 48px; inset-inline-end: -8px; background: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); transform: rotate(4deg); opacity: 0; transition: opacity .25s; white-space: nowrap; pointer-events: none; }
.hang:hover .tag, .hang:focus-visible .tag { opacity: 1; }
@media (max-width: 720px) { .h-s img { height: 170px; } .h-m img { height: 210px; } .h-l img { height: 260px; } }

/* ---------- v5: AI fitting room ---------- */
.room { background: #15130F; color: #F3EEE6; padding-block: clamp(48px, 7vw, 90px); }
.room .muted { color: #A8A093; }
.room .cap { color: var(--sun); }
.room h2 { color: #F3EEE6; }
.room-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 6px; }
.fit-panel { position: sticky; top: calc(var(--hdr) + 14px + env(safe-area-inset-top, 0px)); background: #1E1B16; border: 1px solid #2E2A23; border-radius: 22px; padding: 14px; display: grid; gap: 12px; }
.fp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fp-head b { font-size: 14px; } .fp-head span { font-size: 12px; color: #A8A093; }
.fp-model { position: relative; aspect-ratio: 3 / 4.2; border-radius: 16px; overflow: hidden; background: radial-gradient(90% 70% at 50% 72%, #3B342A, #1E1B16); display: flex; align-items: flex-end; justify-content: center; }
.fp-model img { height: 94%; width: auto; max-width: 96%; object-fit: contain; object-position: 50% 100%; transition: opacity .35s, filter .35s; }
.fp-model.busy img { opacity: .3; filter: blur(6px) grayscale(.7); }
.fp-scan { position: absolute; inset: 0; display: none; place-items: center; font-size: 13px; color: #F3EEE6; overflow: hidden; }
.fp-model.busy .fp-scan { display: grid; }
.fp-scan::before { content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(transparent, rgba(216, 184, 102, .35), transparent); animation: scan 1s linear infinite; }
@keyframes scan { to { top: 100%; } }
.fp-info { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; }
.fp-info .thumb { width: 44px; height: 44px; border-radius: 10px; background-color: #2A261F; }
.fp-info b { font-size: 13.5px; display: block; line-height: 1.3; } .fp-info span { font-size: 12px; color: #A8A093; }
.fp-info .lb-cta { grid-column: 1 / -1; justify-content: center; background: var(--sun); color: #15130F; height: 44px; }
.room-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.room-chips::-webkit-scrollbar { display: none; }
.room .chip { background: transparent; border-color: #3A352C; color: #C9C1B3; }
.room .chip[aria-pressed="true"] { background: #F3EEE6; color: #15130F; border-color: #F3EEE6; }
.room-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.rc { position: relative; background: #1E1B16; border: 1px solid #2E2A23; border-radius: 18px; overflow: hidden; display: grid; transition: border-color .25s, transform .25s; }
.rc:hover { transform: translateY(-2px); }
.rc.on { border-color: var(--sun); }
.rc-img .thumb { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.15; border-radius: 0; background-color: #26221C; }
.rc-try { position: absolute; top: 10px; inset-inline-start: 10px; width: 38px; height: 38px; border-radius: 99px; background: rgba(30, 27, 22, .9); border: 1px solid #3A352C; color: #F3EEE6; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.rc-try svg { width: 18px; height: 18px; }
.rc.on .rc-try { background: var(--sun); color: #15130F; border-color: var(--sun); }
.rc-name { text-align: start; padding: 10px 12px 14px; display: grid; gap: 2px; }
.rc-name b { font-size: 13px; font-weight: 600; line-height: 1.3; } .rc-name span { font-size: 12px; color: #A8A093; }
.more { display: block; margin: 16px auto 0; height: 44px; padding: 0 22px; border-radius: 99px; border: 1px solid #3A352C; color: #F3EEE6; font-weight: 600; font-size: 13.5px; }
@media (max-width: 860px) {
  .room-grid { grid-template-columns: 1fr; gap: 14px; }
  .fit-panel { z-index: 5; grid-template-columns: 104px minmax(0, 1fr); align-items: center; padding: 10px; gap: 8px 12px; top: calc(var(--hdr) + 50px + env(safe-area-inset-top, 0px)); box-shadow: 0 16px 34px rgba(0, 0, 0, .55); }
  .fp-head { display: none; }
  .fp-model { grid-row: span 1; aspect-ratio: 3 / 4; }
  .fp-info { grid-template-columns: minmax(0, 1fr); }
  .fp-info .thumb { display: none; }
  .fp-info .lb-cta { height: 38px; font-size: 13px; }
  .room-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- v5: product page ---------- */
.pp { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 500px); flex: 1; min-height: 0; }
.pp-stage { position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 50%, #fff, var(--stage-b) 50%, var(--stage-a)); }
.pp-word { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); font: 800 clamp(64px, 11vw, 180px)/.85 var(--f-head); letter-spacing: -.055em; color: var(--ink); white-space: nowrap; z-index: 0; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
:root[dir="rtl"] .pp-word { font-family: 'Vazirmatn', var(--f-head); letter-spacing: 0; }
.pp-img { position: relative; z-index: 1; max-height: 72%; max-width: 64%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(40, 30, 15, .22)); animation: floatIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.pp-crop { position: relative; z-index: 1; width: min(56%, 420px); max-width: 100%; aspect-ratio: .78; background-repeat: no-repeat; filter: drop-shadow(0 30px 40px rgba(40, 30, 15, .2)); animation: floatIn .8s cubic-bezier(.2, .8, .2, 1) both; margin-bottom: 8%; }
@keyframes floatIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.pp-side { overflow-y: auto; padding: 56px 40px 40px; display: grid; gap: 16px; align-content: start; border-inline-start: 1px solid var(--line); background: var(--bg); }
.pp-lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.pp-lbl .ok { color: var(--ok); font-weight: 600; }
.link { color: var(--ink); text-decoration: underline; font-weight: 600; font-size: 13px; }
.pp .two .bar { gap: 8px; }
@media (max-width: 860px) {
  .pp { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .pp-stage { height: 54vh; min-height: 320px; }
  .pp-side { overflow: visible; border: 0; padding: 20px var(--gr) 30px var(--gl); margin-top: -18px; border-radius: 22px 22px 0 0; position: relative; z-index: 2; box-shadow: 0 -10px 30px rgba(60, 45, 20, .06); }
}

/* size result ring draws itself */
.ring-arc { animation: ringDraw 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ringDraw { from { stroke-dasharray: 0 var(--len); } to { stroke-dasharray: var(--arc) var(--len); } }

/* ---------- v6: section menu + gender switch ---------- */
.snav .sn { position: relative; display: flex; align-items: center; height: 100%; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .2s; }
.snav .sn:hover { color: var(--ink); }
.snav .sn.on { color: var(--ink); }
.snav .sn.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sun); }
.mtabs.snav { gap: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; height: 42px; padding: 0 var(--gr) 0 var(--gl); }
.mtabs.snav::-webkit-scrollbar { display: none; }
.mtabs.snav .sn { flex: 0 0 auto; font-size: 13.5px; }
.gseg { display: inline-flex; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.gseg .tab { height: 30px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gseg .tab::after { display: none; }
.gseg .tab[aria-selected="true"] { background: var(--ink); color: #fff; }

/* ---------- v6: outfit figure ---------- */
.doll { position: absolute; inset: 0; z-index: 1; }
.dl { position: absolute; bottom: 2.5%; background-size: 100% 100%; background-repeat: no-repeat; }
.dl.new { animation: dressIn .75s cubic-bezier(.2, .8, .2, 1) .1s both; }
@keyframes dressIn { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
.doll.in-r { animation: inR .45s cubic-bezier(.2, .8, .2, 1) both; } .doll.in-l { animation: inL .45s cubic-bezier(.2, .8, .2, 1) both; }
.lp-mode { position: absolute; z-index: 5; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 99px; padding: 3px; box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.lp-mode button { height: 32px; padding: 0 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lp-mode button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lp-badge { position: absolute; z-index: 4; bottom: 18px; inset-inline-start: 18px; display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .92); padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.lp-badge svg { width: 13px; height: 13px; }
.lp-scan { position: absolute; inset: 0; z-index: 6; display: none; place-items: center; overflow: hidden; pointer-events: none; }
.lp-scan span { position: relative; background: rgba(255, 255, 255, .94); padding: 7px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }
.lp-scan::before { content: ""; position: absolute; left: 0; right: 0; height: 36%; top: -36%; background: linear-gradient(transparent, rgba(216, 184, 102, .32), transparent); animation: scan .9s linear infinite; }
.lp-stage.busy .lp-scan { display: grid; }
.lp-stage .doll { transition: filter .3s, opacity .3s; }
.lp-stage.busy .doll { filter: blur(3px); opacity: .75; }
.fp-model.busy .doll { opacity: .3; filter: blur(6px) grayscale(.6); }
.fp-model .doll { transition: opacity .35s, filter .35s; }
.fp-info { grid-template-columns: 1fr; gap: 8px; }
.fp-wear { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-wear .thumb { display: block; width: 42px; height: 42px; border-radius: 10px; background-color: #2A261F; box-shadow: inset 0 0 0 1px #3A352C; }
.fp-btns { display: flex; gap: 8px; }
.fp-b { flex: 1; height: 40px; border-radius: 99px; border: 1px solid #3A352C; color: #F3EEE6; font-size: 12.5px; font-weight: 600; transition: background-color .2s; }
.fp-b:hover { background: #2A261F; }
@media (max-width: 860px) {
  .fp-wear .thumb { display: block; width: 32px; height: 32px; border-radius: 8px; }
  .fp-b { height: 34px; font-size: 12px; }
  .lp-mode button { height: 30px; padding: 0 12px; }
}

/* ---------- v6: rail like the reel (lilac → mint, a tag on every piece) ---------- */
.railsec { background: linear-gradient(115deg, #EEE6F6 0%, #E6F2EC 52%, #F6EEDF 100%); }
.hang .tag { opacity: 1; top: 54px; font-size: 10.5px; font-weight: 600; padding: 3px 7px; }
.hang .tag::before { content: ""; position: absolute; top: -10px; left: 50%; width: 1px; height: 10px; background: #8C8576; }

/* v6 fix: sheets never grow wider than the phone when a swap row opens */
.lp-side, .lp-pieces, .pc, .pp-side { min-width: 0; }
@media (max-width: 860px) { .lp, .pp { grid-template-columns: minmax(0, 1fr); } }

/* ---------- v7: rail on a curved line + drop-in (reel 2) ---------- */
.rail-bar { display: none; }
.rail-line { position: absolute; top: 0; left: 0; width: 100%; height: 170px; pointer-events: none; z-index: 0; overflow: visible; }
.rail { position: relative; z-index: 1; padding-bottom: 96px; }
.hang-in { display: flex; flex-direction: column; align-items: center; }
.hang-sw { position: relative; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; will-change: transform; }
.rail:not(.dropped) .hang-in { opacity: 0; transform: translateY(-130px); }
.rail.dropped .hang-in { animation: dropIn 1s cubic-bezier(.3, 1.45, .5, 1) var(--d, 0ms) both; }
@keyframes dropIn { 0% { opacity: 0; transform: translateY(-150px); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* ---------- v7: AI fitting room cards (reel 3) ---------- */
.room-items { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pcard2 { position: relative; background: #1E1B16; border: 1px solid #2E2A23; border-radius: 18px; overflow: hidden; display: grid; transition: border-color .25s, transform .25s; }
.pcard2:hover { transform: translateY(-3px); }
.pcard2.on { border-color: var(--sun); }
.pc2-tools { position: absolute; top: 10px; inset-inline-start: 10px; display: grid; gap: 6px; z-index: 2; }
.pc2-ic { width: 34px; height: 34px; border-radius: 99px; background: rgba(30, 27, 22, .92); border: 1px solid #3A352C; color: #F3EEE6; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.pc2-ic svg { width: 17px; height: 17px; }
.pcard2.on .pc2-ic.try { background: var(--sun); color: #15130F; border-color: var(--sun); animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.18); } }
.pc2-rate { position: absolute; top: 14px; inset-inline-end: 12px; font-size: 12px; color: #C9C1B3; z-index: 2; }
.pc2-img { aspect-ratio: 1 / 1.05; display: grid; place-items: center; padding: 22px 18px 6px; background: radial-gradient(80% 70% at 50% 55%, #2D2820, #1E1B16); }
.pc2-img img { max-height: 100%; max-width: 86%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pcard2:hover .pc2-img img { transform: scale(1.05); }
.pc2-txt { padding: 10px 64px 16px 14px; display: grid; gap: 2px; text-align: start; }
:root[dir="rtl"] .pc2-txt { padding: 10px 14px 16px 64px; }
.pc2-txt b { font-size: 13.5px; font-weight: 600; line-height: 1.3; } .pc2-txt span { font-size: 12px; color: #A8A093; }
.pc2-go { position: absolute; bottom: 0; inset-inline-end: 0; width: 56px; height: 56px; border-start-start-radius: 56px; background: var(--sun); color: #15130F; display: grid; place-items: end; padding: 0 13px 13px 0; }
:root[dir="rtl"] .pc2-go { place-items: end start; padding: 0 0 13px 13px; }
.pc2-go svg { width: 17px; height: 17px; }
:root[dir="rtl"] .pc2-go svg { transform: scaleX(-1); }
.chip.soon { opacity: .45; cursor: default; }
.fp-model { background: linear-gradient(#F3F2EF, #E4E2DD); }
.fp-model img { position: absolute; inset: 0; height: 100%; width: 100%; max-width: none; object-fit: cover; object-position: 50% 12%; transition: opacity .35s, filter .35s; }
.fp-model.busy img { opacity: .25; filter: blur(8px) grayscale(.8); }
.fp-scan span { position: relative; background: rgba(21, 19, 15, .85); padding: 7px 14px; border-radius: 99px; }
.fp-info { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.fp-g { width: 52px; height: 52px; object-fit: contain; background: #2A261F; border-radius: 10px; padding: 4px; }
.fp-info b { display: block; font-size: 13.5px; line-height: 1.3; }
.fp-info .fp-b { flex: none; padding: 0 14px; height: 36px; }
@media (max-width: 860px) {
  .fp-info { grid-template-columns: 40px minmax(0, 1fr); }
  .fp-g { width: 40px; height: 40px; }
  .fp-info .fp-b { grid-column: 1 / -1; }
  .room-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- v7: numbered dots on the model (reel 2 "Studio Day") ---------- */
.hs-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hs { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 30px; height: 30px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); animation: hsIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.hs::before { content: ""; position: absolute; inset: -6px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, .85); animation: hsPulse 2s ease-out infinite; pointer-events: none; }
.hs em { position: absolute; left: 38px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); padding: 5px 9px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); opacity: 0; transition: opacity .2s; pointer-events: none; }
.hs:hover em, .hs:focus-visible em { opacity: 1; }
@keyframes hsPulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes hsIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.pc-n { position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2; width: 20px; height: 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.pc-static { grid-template-columns: 80px minmax(0, 1fr); }
@media (max-width: 860px) { .pc-static { grid-template-columns: 68px minmax(0, 1fr); } }
/* (the face-fade over piece crops is gone: pieces are garment-only cut-outs now) */
.thumb[data-slot] { position: relative; }

/* v7 fixes: counter clear of the dots, tall product pictures stay inside their card */
.lp-count { top: calc(62px + env(safe-area-inset-top, 0px)); bottom: auto; }
.pc2-img { position: relative; display: block; }
.pc2-img img { position: absolute; inset: 22px 18px 8px; width: calc(100% - 36px); height: calc(100% - 30px); max-width: none; max-height: none; object-fit: contain; }
@media (max-width: 860px) { .lp-stage { padding-bottom: 20px; } }

/* ---------- v8: one look per swipe (like the reel), AI waiting states ---------- */
.lk { scroll-snap-stop: always; }
.lp-ai { mix-blend-mode: multiply; }
.fp-model img { mix-blend-mode: multiply; }
.lp-ai-wait { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.lp-ai-wait::before { content: ""; position: absolute; left: 0; right: 0; height: 36%; top: -36%; background: linear-gradient(transparent, rgba(216, 184, 102, .28), transparent); animation: scan 1.2s linear infinite; }
.lp-ai-wait span { position: relative; display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .95); padding: 9px 15px; border-radius: 99px; font-size: 12.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); max-width: 86%; }
.lp-ai-wait span::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 99px; border: 2px solid var(--sun); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pc2-crop { position: absolute; inset: 14px; background-repeat: no-repeat; border-radius: 12px; }
span.fp-g { display: block; background-repeat: no-repeat; background-color: #2A261F; }

/* AI renders melt into the stage instead of showing a rectangle */
.lp-ai { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 96%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 96%, transparent 100%); mask-composite: intersect; }

/* pieces the AI has not finished yet */
.pc2-wait { display: none; position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%); z-index: 2; background: rgba(21, 19, 15, .88); color: #F3EEE6; font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.pcard2.wait .pc2-wait { display: block; }
.pcard2.wait .pc2-img img, .pcard2.wait .pc2-crop { opacity: .4; filter: grayscale(.7); }

/* colour dots on fitting-room cards and the product page */
.pc2-sw { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.sw2 { width: 18px; height: 18px; border-radius: 99px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .15s; }
.sw2:hover { transform: scale(1.12); }
.sw2[aria-pressed="true"] { box-shadow: 0 0 0 2px #15130F, 0 0 0 3.5px var(--sun); }
.pp-sw { margin-top: 0; }
.pp-sw .sw2 { width: 28px; height: 28px; box-shadow: 0 0 0 1px var(--line); }
.pp-sw .sw2[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.pc2-img img { transition: opacity .25s; }

/* notes on the real photo while the AI works or is busy */
.lp-note { max-width: calc(100% - 36px); white-space: normal; line-height: 1.35; color: var(--ink); }

/* look page stage: the original photo with the fitted AI picture as a layer exactly on top (same size and place),
   so a swap only changes the clothes: no jump, no new background */
.lp-stack { position: relative; z-index: 1; height: 92%; max-width: 94%; display: flex; align-items: flex-end; justify-content: center; user-select: none; }
.lp-stack.rise { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.lp-stack.in-r { animation: inR .45s cubic-bezier(.2, .8, .2, 1) both; }
.lp-stack.in-l { animation: inL .45s cubic-bezier(.2, .8, .2, 1) both; }
.lp-stack > .lp-img { animation: none; height: 100%; width: auto; max-width: 100%; }
.lp-stack > .lp-ai { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%; -webkit-mask-image: none; mask-image: none; mix-blend-mode: normal; transition: opacity .38s ease; }
.lp-stack > .lp-ai.lp-wide { inset: auto; bottom: 0; left: 50%; width: auto; transform: translateX(-50%); }
.lp-stack > .lp-ai.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lp-stack > .lp-ai { transition: none; } }

/* fitting room: several pieces worn at once, each with its own Take off */
.fp-info .fp-list { grid-column: 1 / -1; display: grid; gap: 8px; }
.fp-info .fp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fp-info .fp-row .fp-g { width: 44px; height: 44px; }
.fp-info .fp-all { grid-column: 1 / -1; flex: none; height: 36px; }
.fp-info .fp-hint, .fp-info .fp-note { grid-column: 1 / -1; font-size: 12px; color: #A8A093; }
@media (max-width: 860px) {
  .fp-info .fp-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .fp-info .fp-row .fp-g { width: 36px; height: 36px; }
  .fp-info .fp-row .fp-b { grid-column: auto; padding: 0 10px; height: 32px; }
}
.lp-stack > .base { transition: opacity .38s ease; }
.lp-stack.covered > .base { opacity: 0; }

/* a choice whose dressed picture isn't made yet */
.alt { position: relative; }
.alt-prep { display: none; position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); z-index: 2; background: rgba(21, 19, 15, .82); color: #fff; font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.alt.alt-wait .alt-prep { display: block; }
.alt.alt-wait .thumb { opacity: .55; }

/* ---------- v13 UX: clearer fitting room + look page ---------- */
/* model picker: faces + names, above the room */
.room-chips { margin: 4px 0 6px; }
.mchip { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 4px; height: 44px; }
.mchip img { width: 34px; height: 34px; border-radius: 99px; object-fit: cover; object-position: 50% 6%; background: #F3F0E8; flex: none; }
/* one clear action per card */
.pc2-tryb { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 99px; background: rgba(30, 27, 22, .92); border: 1px solid #3A352C; color: #F3EEE6; font-size: 12px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.pc2-tryb svg { width: 16px; height: 16px; }
.pcard2.on .pc2-tryb { background: var(--sun); color: #15130F; border-color: var(--sun); animation: pop .35s ease; }
.pcard2.wait .pc2-tryb { opacity: .5; }
.pcard2 .pc2-img { cursor: pointer; }
/* look page: start over */
.lp-reset { margin-inline-start: auto; flex: none; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); background: #fff; }
.note:has(.lp-reset) { display: flex; align-items: center; gap: 8px; }
/* phone: the model is big and stays on screen while you pick clothes */
@media (max-width: 860px) {
  .fit-panel { grid-template-columns: minmax(0, 52%) minmax(0, 1fr); align-items: start; padding: 10px; gap: 10px; top: calc(var(--hdr) + 46px + env(safe-area-inset-top, 0px)); }
  .fp-model { aspect-ratio: 3 / 4; border-radius: 14px; }
  .fp-info { align-self: center; gap: 8px; }
  .fp-info .fp-row { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .fp-info .fp-row .fp-g { width: 32px; height: 32px; padding: 2px; }
  .fp-info .fp-row b { font-size: 12px; }
  .fp-info .fp-row .fp-b { grid-column: 1 / -1; height: 28px; font-size: 11.5px; padding: 0 10px; }
  .fp-info .fp-hint { display: none; }
  .mchip { height: 40px; } .mchip img { width: 30px; height: 30px; }
}
/* fitting room: small headings between tops / jackets / dresses / trousers */
.rg-h { grid-column: 1 / -1; margin: 10px 0 -2px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C9A85A; }
.rg-h:first-child { margin-top: 0; }
:root[dir="rtl"] .rg-h { letter-spacing: 0; font-size: 13px; }

/* fitting room people made of layers (one clear picture per piece, stacked) */
.fp-model.lay { aspect-ratio: 768 / 1330; width: min(100%, calc(64vh * 768 / 1330)); justify-self: center; background: #EFE3CB; }
.fp-model.lay img { mix-blend-mode: normal; object-position: 50% 100%; }
.mchip img.face { object-position: 50% 50%; }
.fp-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-switch .sw-g { display: flex; flex: 1 1 auto; background: #2A261F; border-radius: 99px; padding: 3px; }
.fp-switch button { flex: 1; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: #C9C1B3; white-space: nowrap; }
.fp-switch button[aria-pressed="true"] { background: #F3EEE6; color: #15130F; }
.pc2-img:has(.pc2-prod) { background: #F4F2EE; }
.pc2-img img.pc2-prod { filter: none; mix-blend-mode: multiply; }
img.fp-g.pc2-prod { background: #F4F2EE; }
@media (max-width: 860px) { .fp-model.lay { aspect-ratio: 768 / 1330; width: 100%; grid-row: span 2; } .fit-panel:has(.fp-model.lay) { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); } .fit-panel:has(.fp-model.lay) .fp-info { align-self: start; max-height: 46vh; overflow-y: auto; } .fp-switch { align-self: start; flex-direction: column; gap: 6px; } .fp-switch { min-width: 0; } .fp-switch button { height: 30px; min-width: 0; padding: 0 4px; font-size: 11px; } .fp-switch .sw-g { flex: none; min-width: 0; } }
