/* Yom Tov · premium fashion storefront.
   Warm paper + ink, editorial serif headlines, sun yellow only as an accent (the "good day" sun). */
:root {
  --paper: #FFFFFF; --surface: #FFFFFF; --ink: #121211; --ink-2: #2A2926; --muted: #6E6A63; --line: #E2DED5;
  --tile: #ECE9E2; --sun: #FFB61E; --sun-ink: #121211; --night: #0F0F0E; --night-2: #1B1A18; --night-line: #2E2C29; --night-muted: #A29D94;
  --ok: #1F7A4D;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px; --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
/* White background always (Bar, 2026-11-24): no automatic dark mode. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; line-height: 0.95; }
h1 em, h2 em { font-style: italic; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.005em; }
p { margin: 0; }
.kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.ph { border: 1px dashed currentColor; border-radius: 5px; padding: 0 0.35em; opacity: 0.7; white-space: nowrap; font-size: 0.92em; }
.note { color: var(--muted); font-size: 0.88rem; }
.body-copy { color: var(--muted); max-width: 32rem; margin-top: 1.1rem; font-size: 1.02rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; border: 0; border-radius: 999px; padding: 0.95em 1.6em; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: #FFC447; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-ink-on-sun { background: #121211; color: #fff; }
.btn-sm { padding: 0.7em 1.15em; font-size: 0.88rem; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; color: var(--ink); }
.icon-btn-glass { border: 0; background: rgba(18,18,17,.42); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255,182,30,.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,182,30,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,182,30,0); } 100% { box-shadow: 0 0 0 0 rgba(255,182,30,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.spark { color: var(--sun); }

/* demo bar + header */
.demo-bar { background: var(--night); color: #CFCAC1; font-size: 0.78rem; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; justify-content: space-between; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.demo-bar b { color: #fff; font-weight: 600; }
.demo-bar a { color: var(--sun); font-weight: 600; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.hdr-nav { display: flex; gap: 1.6rem; font-size: 0.9rem; font-weight: 500; }
.hdr-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.hdr-nav a:hover { color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 600; letter-spacing: 0.32em; font-size: 0.98rem; padding-left: 0.32em; }
.sun-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); display: inline-block; }
.hdr-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; }
.hdr-try { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0.5em 0.95em; font-size: 0.88rem; font-weight: 600; }
.bag-btn { display: inline-flex; align-items: center; gap: 0.45rem; border: 0; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 0.55em 1em; font-size: 0.88rem; font-weight: 600; }
.bag-count { min-width: 1.4em; height: 1.4em; border-radius: 1em; background: var(--sun); color: var(--sun-ink); display: inline-grid; place-items: center; font-size: 0.74rem; padding: 0 0.3em; }
@media (max-width: 720px) {
  .hdr { grid-template-columns: auto 1fr; height: 58px; }
  .hdr-nav { display: none; }
  .wordmark { justify-self: start; letter-spacing: 0.26em; font-size: 0.9rem; padding-left: 0; }
  .hdr-try { padding: 0.45em 0.8em; }
}

/* hero */
.hero { padding-top: clamp(2.2rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(3.6rem, 10.5vw, 9.4rem); line-height: 0.86; letter-spacing: -0.03em; }
.hero h1 em { display: inline-block; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0.02em; right: 0.08em; bottom: 0.06em; height: 0.09em; background: var(--sun); border-radius: 1em; transform-origin: left; animation: draw 1.1s .5s cubic-bezier(.6,0,.2,1) both; z-index: -1; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 31rem; margin-top: 1.6rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; margin-top: 2rem; }
.hero-arch { margin: 0; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); background: linear-gradient(180deg, #F3E7CF 0%, var(--tile) 62%); overflow: hidden; display: grid; place-items: center; }
.arch .sun { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #FFC94A 0%, var(--sun) 58%, #F6A400 100%); top: 13%; left: 13%; animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; box-shadow: 0 30px 80px -20px rgba(246,164,0,.55); }
@keyframes rise { from { transform: translateY(18%); opacity: .4; } to { transform: none; opacity: 1; } }
.hero-glasses { position: relative; width: 90%; height: auto; margin-top: 18%; filter: drop-shadow(0 26px 22px rgba(18,18,17,.28)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(0.5deg); } }
@media (prefers-reduced-motion: reduce) { .arch .sun, .hero-glasses, .hero h1 em::after { animation: none; } }
.hero-arch figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted); }
.hero-arch figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-arch { max-width: 420px; width: 100%; margin: 0 auto; }
  .arch { aspect-ratio: 1 / 1.05; }
}
.marquee { margin-top: clamp(2.4rem, 5vw, 4rem); border-block: 1px solid var(--line); overflow: hidden; padding: 0.95rem 0; }
.marquee-track { display: flex; gap: 2.6rem; width: max-content; animation: scroll 34s linear infinite; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.6rem; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--sun); font-size: 0.7em; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* sections */
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.dark { background: var(--night); color: #F2F0EB; }
.dark .kicker { color: var(--night-muted); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2rem; }
.count { color: var(--muted); font-size: 0.9rem; }

/* fitting room teaser */
.teaser-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.modes { display: grid; gap: 0.8rem; margin: 2rem 0 2.2rem; max-width: 32rem; }
.mode { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 1.1rem; border: 1px solid var(--night-line); border-radius: var(--r); background: var(--night-2); }
.mode p { color: var(--night-muted); font-size: 0.93rem; margin-top: 0.2rem; }
.mode-tag { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; background: #2A2926; color: #fff; }
.mode-tag.mode-ai { background: var(--sun); color: var(--sun-ink); }
.phone { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 11px; background: #1E1D1B; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), inset 0 0 0 1px #34322E; }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: radial-gradient(120% 70% at 50% 35%, #3A332A 0%, #1A1816 55%, #0E0D0C 100%); display: flex; flex-direction: column; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 0; font-size: 0.7rem; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.4); padding: 5px 10px; border-radius: 999px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pill-seg { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; gap: 2px; }
.pill-seg b, .pill-seg span { padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.pill-seg b { background: #fff; color: #111; }
.phone-face { position: relative; flex: 1; margin: 22px 26px 12px; display: grid; place-items: center; }
.phone-face i { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.55); }
.phone-face i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.phone-face i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.phone-face i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.phone-face i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.phone-face img { width: 84%; filter: drop-shadow(0 14px 16px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; }
.phone-strip { display: flex; gap: 8px; padding: 10px 12px 22px; justify-content: center; }
.phone-strip span { width: 62px; height: 46px; border-radius: 12px; background: #EDEAE3; display: grid; place-items: center; padding: 6px; border: 2px solid transparent; }
.phone-strip img { width: 100%; height: auto; }
.phone-strip span.on { border-color: var(--sun); }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } .phone { width: min(280px, 80%); } }

/* collection */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-bottom: 1.8rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 1.3rem; }
.tabs button { border: 0; background: none; padding: 0.2rem 0; font-weight: 600; font-size: 0.95rem; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.chips { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0.38em 0.9em; font-size: 0.85rem; white-space: nowrap; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sort { margin-left: auto; }
.sort select { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0.45em 0.9em; font-size: 0.86rem; }
@media (max-width: 720px) { .sort { margin-left: 0; } .tabs { width: 100%; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0.75rem; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.2rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { min-width: 0; display: flex; flex-direction: column; }
.card-tile { position: relative; aspect-ratio: 1 / 1; background: var(--tile); border-radius: var(--r); overflow: hidden; display: grid; place-items: center; border: 0; padding: 0; width: 100%; }
.vh-cover { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; border-radius: inherit; }
.card-try { z-index: 2; }
.card-tile img { width: 82%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 14px 12px rgba(18,18,17,.16)); }
.card-tile:hover img { transform: scale(1.06) translateY(-2%); }
.card-try { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 0.45rem; border: 0; border-radius: 999px; padding: 0.62em; background: rgba(18,18,17,.86); color: #fff; font-weight: 600; font-size: 0.82rem; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; backdrop-filter: blur(6px); }
.card:hover .card-try, .card-try:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .card-try { opacity: 1; transform: none; left: auto; right: 8px; bottom: 8px; padding: 0.5em 0.8em; font-size: 0.76rem; } }
.card-body { padding: 0.85rem 0.15rem 0; display: flex; flex-direction: column; gap: 0.15rem; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.card-name { font-family: var(--serif); font-size: 1.42rem; line-height: 1.1; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-meta { color: var(--muted); font-size: 0.84rem; }
.lens-dot { display: inline-block; width: 0.66em; height: 0.66em; border-radius: 50%; margin-right: 0.38em; vertical-align: -0.04em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.card-add { margin-top: 0.55rem; align-self: flex-start; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0.42em 0.95em; font-size: 0.82rem; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.card-add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { color: var(--muted); padding: 2rem 0; }

/* order + sizing */
.steps { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.steps .num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; display: block; margin-bottom: 0.8rem; }
.steps p { color: var(--muted); margin-top: 0.35rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.sizing { padding-top: 0; }
.sizing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .sizing-grid { grid-template-columns: 1fr; } }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin: 1.6rem 0 0; }
.dims div { border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem; }
.dims dt { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.dims dd { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.85rem; }
.size-card { background: var(--tile); color: #121211; border-radius: var(--r); padding: clamp(1.8rem, 5vw, 3.2rem); text-align: center; }
.size-code { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1; }
.size-code span { border-bottom: 3px solid var(--sun); }
.size-card .note { color: #6E6A63; margin-top: 1rem; }

/* footer */
.site-footer { padding-block: clamp(3rem, 7vw, 5.5rem) calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.foot-mark { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; letter-spacing: 0.34em; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.foot-mark .sun-dot { width: 0.7em; height: 0.7em; }
.foot-he { color: var(--night-muted); margin-top: 0.3rem; }
.foot-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.45rem; color: #D6D1C8; font-size: 0.95rem; }
.pitch { background: var(--sun); color: #121211; border-radius: var(--r); padding: 1.5rem; max-width: 380px; display: grid; gap: 0.6rem; align-content: start; }
.pitch-title { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.pitch .btn { justify-self: start; margin-top: 0.4rem; }

/* bag drawer */
.scrim { position: fixed; inset: 0; background: rgba(10,10,9,.5); z-index: 60; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(440px, 100%); background: var(--paper); z-index: 61; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) 0; box-shadow: -30px 0 60px rgba(0,0,0,.2); animation: slide .35s cubic-bezier(.2,.7,.2,1); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; }
.drawer-body { overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; }
.line-th { background: var(--tile); border-radius: 12px; padding: 12px 8px; }
.line b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.line small { color: var(--muted); display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 0.4rem; }
.qty button { border: 0; background: transparent; width: 30px; height: 30px; font-size: 1rem; }
.qty span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
form.order-form { display: flex; flex-direction: column; gap: 0.7rem; }
form.order-form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
form.order-form label { font-size: 0.82rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.25rem; }
form.order-form input, form.order-form textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 0.7em 0.85em; width: 100%; color: var(--ink); }
.msg { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; font-size: 0.86rem; max-height: 230px; overflow: auto; }
.ok { color: var(--ok); font-weight: 600; }

/* product dialog */
dialog { border: 0; border-radius: 26px; padding: 0; width: min(880px, calc(100% - 24px)); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(10,10,9,.55); backdrop-filter: blur(3px); }
.dlg { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 700px) { .dlg { grid-template-columns: 1fr; } }
.dlg-tile { background: var(--tile); display: grid; place-items: center; padding: 12%; min-height: 260px; }
.dlg-tile img { filter: drop-shadow(0 18px 16px rgba(18,18,17,.2)); }
.dlg-info { padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.dlg-info .icon-btn { position: absolute; top: 0.9rem; right: 0.9rem; }
.dlg-info h3 { font-family: var(--serif); font-weight: 400; font-size: 2.8rem; line-height: 1; }
table.spec { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
table.spec td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
table.spec td:first-child { color: var(--muted); }
table.spec td:last-child { text-align: right; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.dlg-actions .btn { flex: 1; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 0.75rem 1.2rem; border-radius: 999px; z-index: 90; font-weight: 500; font-size: 0.92rem; box-shadow: 0 12px 36px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center; }

/* ---------- fitting room (full screen) ---------- */
.fr { position: fixed; inset: 0; z-index: 80; background: #0B0B0A; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.fr-stage-wrap { position: relative; min-height: 0; min-width: 0; }
.fr-stage { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 80% at 50% 40%, #2A2621 0%, #0B0B0A 70%); touch-action: none; user-select: none; -webkit-user-select: none; }
.fr-stage video, .fr-stage img, .fr-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fr-stage.fr-contain video, .fr-stage.fr-contain img, .fr-stage.fr-contain canvas { object-fit: contain; }
.fr-stage.fr-mirror [data-fr-video], .fr-stage.fr-mirror [data-fr-canvas], .fr-stage.fr-mirror [data-fr-ai] { transform: scaleX(-1); }
.fr-stage [data-fr-photo] { display: none; }
.fr-stage.fr-photo [data-fr-photo] { display: block; }
.fr-stage.fr-photo [data-fr-video] { display: none; }
.fr-stage [data-fr-ai] { opacity: 0; transition: opacity .5s; }
.fr-stage.fr-ai [data-fr-ai] { opacity: 1; }
.fr-stage.fr-ai [data-fr-canvas] { opacity: 0; }
.fr-guide { position: absolute; left: 50%; top: 46%; width: min(56%, 300px); aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 2px dashed rgba(255,255,255,.45); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.fr-stage.show-guide .fr-guide { opacity: 1; }
.fr-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px; z-index: 5; }
.fr-modes { display: inline-flex; background: rgba(18,18,17,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; padding: 4px; gap: 2px; }
.fr-modes button { border: 0; background: transparent; color: rgba(255,255,255,.75); border-radius: 999px; padding: 0.5em 1.05em; font-weight: 600; font-size: 0.86rem; }
.fr-modes button[aria-selected="true"] { background: #fff; color: #121211; }
.fr-modes button[aria-selected="true"] .spark { color: #E59A00; }
.fr-start, .fr-consent { position: absolute; inset: 0; display: grid; place-items: center; padding: 84px 18px 24px; z-index: 4; background: radial-gradient(100% 70% at 50% 40%, rgba(42,38,33,.86) 0%, rgba(11,11,10,.95) 75%); }
.fr-start-card { max-width: 420px; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.fr-start-card .kicker { color: #A29D94; margin: 0; }
.fr-start-card h2 { font-size: clamp(2.4rem, 7vw, 3.4rem); }
.fr-start-card p { color: #CFCAC1; font-size: 0.95rem; }
.fr-start-card a { color: var(--sun); }
.fr-start-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.4rem; }
.fr-msg { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(18,18,17,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; z-index: 3; max-width: calc(100% - 32px); text-align: center; }
.fr-ai-badge { position: absolute; top: calc(66px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.5rem; background: var(--sun); color: #121211; font-weight: 600; font-size: 0.82rem; padding: 0.4rem 0.85rem; border-radius: 999px; z-index: 5; }
.fr-ai-badge .live-dot { background: #121211; animation: none; }
.fr-panel { background: #121211; border-left: 1px solid #262522; display: flex; flex-direction: column; gap: 1.2rem; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)); min-height: 0; min-width: 0; overflow-y: auto; }
.fr-current { display: flex; flex-direction: column; gap: 0.9rem; }
.fr-name { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.fr-meta { color: #A29D94; font-size: 0.88rem; margin-top: 0.35rem; }
.fr-buy { display: flex; align-items: center; gap: 0.9rem; }
.fr-price { font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.fr-buy .btn-primary { background: #fff; color: #121211; }
.fr-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fr-pick { border: 2px solid transparent; background: #ECE9E2; border-radius: 14px; padding: 8px 6px 6px; display: grid; gap: 4px; justify-items: center; color: #121211; font-size: 0.72rem; font-weight: 600; transition: border-color .2s, transform .2s; }
.fr-pick img { width: 100%; height: 34px; object-fit: contain; }
.fr-pick[aria-selected="true"] { border-color: var(--sun); transform: translateY(-2px); }
.fr-tools { display: grid; gap: 0.6rem; margin-top: auto; }
.fr-size { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: #A29D94; }
.fr-size input { flex: 1; accent-color: var(--sun); }
.fr-privacy { color: #7E7970; font-size: 0.78rem; }
@media (max-width: 860px) {
  .fr { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .fr-panel { border-left: 0; border-top: 1px solid #262522; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); gap: 0.7rem; overflow: visible; }
  .fr-current { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 16px; }
  .fr-name { font-size: 1.6rem; }
  .fr-meta { font-size: 0.78rem; }
  .fr-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px; scrollbar-width: none; }
  .fr-strip::-webkit-scrollbar { display: none; }
  .fr-pick { flex: 0 0 84px; scroll-snap-align: center; }
  .fr-tools { padding: 0 16px; grid-template-columns: auto 1fr; align-items: center; }
  .fr-size { min-width: 150px; }
  .fr-privacy { text-align: right; }
}
@media (max-width: 420px) { .fr-privacy { display: none; } .fr-tools { grid-template-columns: 1fr; } }
