/* IRIS — Go Out. Log Off. (standalone preview collection) */
:root {
  --paper: #fbfaf8; --paper-2: #f4f2ee; --ink: #151514; --ink-2: #57544f; --ink-3: #8f8b84;
  --line: #e6e3dd; --line-2: #d6d2ca; --white: #fff; --danger: #9b2c22;
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 68px; --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-window: 0 50px 100px -30px rgba(21,21,20,.45), 0 20px 40px -20px rgba(21,21,20,.25);
  --brass: linear-gradient(180deg, #fbf3dc 0%, #e9d6a3 28%, #c8a965 55%, #a2844a 78%, #7d6537 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: #f8f4ed; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body.lock { overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter);
  background: rgba(251,250,248,.88); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.hdr-nav { display: flex; gap: 30px; }
.hdr-nav a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); position: relative; transition: color .3s; }
.hdr-nav a:hover, .hdr-nav a[aria-current='page'] { color: var(--ink); }
.hdr-nav a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); }
.hdr-logo { justify-self: center; }
.hdr-logo img { height: 46px; width: auto; }
.hdr-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: rgba(21,21,20,.05); }
.icon-btn svg { width: 20px; height: 20px; }
.hdr-bag { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.hdr-bag:hover { color: var(--ink); }
.hdr-bag span { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: 0; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; background: #141414; color: #fff; transition: background .3s, transform .16s; white-space: nowrap; }
.btn:hover { background: #000; }
.btn:active { transform: scale(.985); }
.btn svg { width: 16px; height: 16px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-block { width: 100%; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.opt-label span:last-child { color: var(--ink-2); letter-spacing: .02em; text-transform: none; font-weight: 400; font-size: 13px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes.shake { animation: shake .42s var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.size { min-width: 50px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 2px; font-size: 13px; font-weight: 600; letter-spacing: .06em; background: #fff; transition: border-color .3s, background .3s, color .3s, transform .16s; }
.size:hover { border-color: var(--ink); }
.size:active { transform: scale(.95); }
.size[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; height: 52px; background: #fff; }
.qty button { width: 42px; height: 100%; font-size: 17px; }
.qty output { width: 28px; text-align: center; font-weight: 600; }
.hint { font-size: 13px; color: var(--ink-2); min-height: 20px; margin: 10px 0 0; transition: color .3s; }
.hint.err { color: var(--danger); }

/* ---------- The rack ---------- */
.rk { position: relative; height: calc(100svh - var(--header-h)); min-height: 600px; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 95% at 18% -10%, #fffdf9 0%, #f8f4ed 46%, #f1ebe1 100%);
  --n: 10; --iw: min(calc((100vw - 2 * var(--gutter)) / 10.5), calc((100svh - var(--header-h) - 200px) / 4.05)); }
.rk::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 50% at 50% 100%, rgba(120,96,64,.06), transparent 70%); }
.rk-head { padding: clamp(18px, 3vh, 34px) var(--gutter) 0; position: relative; z-index: 2; }
.rk-head h1 { margin: 0; font-weight: 800; font-size: clamp(46px, 5.6vw, 88px); line-height: .88; letter-spacing: -.035em; color: #111; }
.rk-head p { margin: 14px 0 0; font-size: 13px; letter-spacing: .02em; color: var(--ink-2); max-width: 280px; }
.rk-scroll { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: clamp(26px, 5vh, 54px); min-height: 0; }
.rk-rack { position: relative; width: calc(var(--iw) * (var(--n) + .9)); flex: none; }
.rk-rail { position: absolute; left: 6px; right: 6px; top: 0; height: 4px; border-radius: 2px; transform-origin: left center; background: var(--brass); box-shadow: 0 1px 1px rgba(90,70,35,.25); }
.rk-rail::before { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: .35;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 3px, rgba(0,0,0,.06) 3px 4px, transparent 4px 7px); }
.rk-rail::after { content: ''; position: absolute; left: 8px; right: -6px; top: 9px; height: 3px; border-radius: 2px; background: rgba(70,55,30,.16); filter: blur(4px); }
.rk-socket { position: absolute; top: -7px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fdf6e3 0%, #e3cd96 38%, #b89757 70%, #8a6f3c 100%);
  box-shadow: inset 0 0 0 1px rgba(110,85,40,.25), 3px 5px 8px -2px rgba(70,55,30,.28); }
.rk-socket::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f4e6c0, #a88a50); }
.rk-socket.l { left: -3px; } .rk-socket.r { right: -3px; }
.rk-bracket { position: absolute; left: 50%; top: -30px; width: 2px; height: 32px; margin-left: -1px; border-radius: 1px; background: linear-gradient(90deg, #9b7f47, #ecd9a8, #a4864c); }
.rk-bracket::before { content: ''; position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fdf6e3, #d9c088 45%, #8f7442); box-shadow: 2px 3px 5px -1px rgba(70,55,30,.25); }
.rk-bracket::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 6px; margin-left: -5px; border: 2px solid #b4955a; border-top: 0; border-radius: 0 0 6px 6px; }
.rk-row { list-style: none; margin: 0; padding: 0 calc(var(--iw) * .45); display: flex; flex-wrap: nowrap; position: relative; z-index: 1; }
.rk-item { width: var(--iw); flex: none; display: flex; justify-content: center; align-items: flex-start; transition: opacity .5s var(--ease-out); }
/* the rail runs through each hook's curl: 3.5% of the image width below the hook tip */
.rk-dress { position: relative; display: block; width: calc(var(--iw) * 1.34); margin-top: calc(2px - var(--iw) * 1.34 * .035); flex: none; transform-origin: 50% 3.5%; }
.rk-dress img { display: block; width: 100%; height: auto; filter: drop-shadow(6px 12px 10px rgba(70,52,30,.13)) drop-shadow(1px 2px 2px rgba(70,52,30,.08)); transition: filter .7s var(--ease-out); }
.rk-dress:hover img, .rk-dress:focus-visible img { filter: drop-shadow(9px 18px 14px rgba(70,52,30,.17)) drop-shadow(1px 2px 2px rgba(70,52,30,.08)); }
.rk-row:has(.rk-dress:hover) .rk-item:not(:has(.rk-dress:hover)) { opacity: .62; }
.rk-item[data-open] { opacity: .22; }
.rk-tag { position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, 6px); display: grid; gap: 2px; justify-items: center; white-space: nowrap; font-size: 12px; color: var(--ink-2); opacity: 0; transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); pointer-events: none; }
.rk-tag b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
.rk-dress:hover .rk-tag, .rk-dress:focus-visible .rk-tag { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Dress window ---------- */
.dw-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(40,34,26,.28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dw { position: fixed; z-index: 80; left: 50%; top: 50%; translate: -50% -50%; width: min(1000px, calc(100vw - 216px)); height: min(700px, calc(100svh - 110px)); display: grid; grid-template-columns: 1.05fr 1fr; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-window); }
.dw-stage { position: relative; overflow: hidden; container-type: size; background: radial-gradient(110% 90% at 20% 0%, #fdfaf5 0%, #f4eee5 55%, #ece4d8 100%); }
.dw-rail { position: absolute; left: -10px; right: -10px; top: 7cqh; height: 5px; border-radius: 3px; background: var(--brass); box-shadow: 0 1px 1px rgba(90,70,35,.25); }
.dw-rail::after { content: ''; position: absolute; left: 10px; right: 0; top: 11px; height: 4px; background: rgba(70,55,30,.14); filter: blur(5px); }
.dw-img { --w: min(64cqw, calc(88cqh / var(--ar))); position: absolute; left: 50%; top: calc(7cqh + 2.5px - var(--w) * .035); width: var(--w); height: auto; translate: -50% 0; opacity: 0; transform: translateX(18px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); filter: drop-shadow(9px 18px 16px rgba(70,52,30,.15)) drop-shadow(1px 2px 2px rgba(70,52,30,.08)); user-select: none; }
.dw-img.on { opacity: 1; transform: none; }
.dw-ghost { position: fixed; z-index: 120; pointer-events: none; object-fit: contain; filter: drop-shadow(9px 18px 16px rgba(70,52,30,.15)); }
.dw-body { display: flex; flex-direction: column; gap: 18px; padding: 26px 34px; overflow-y: auto; }
.dw-top { display: flex; align-items: center; gap: 2px; }
.dw-logo { height: 38px; width: auto; margin-right: auto; }
.dw-count { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); margin-right: 10px; font-variant-numeric: tabular-nums; }
.dw-name { margin: 6px 0 0; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; }
.dw-price { font-size: 18px; margin-top: -8px; }
.dw-desc { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); max-width: 42ch; }
.dw-facts { display: flex; gap: 28px; margin: 0; }
.dw-facts dt { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.dw-facts dd { margin: 4px 0 0; font-size: 14px; }
.dw-buy { display: flex; gap: 12px; margin-top: auto; padding-top: 6px; }
.dw-add { flex: 1; }
.dw-note { margin: -6px 0 0; font-size: 11px; color: var(--ink-3); }

/* ---------- Fly to bag ---------- */
.fly { position: fixed; z-index: 100; pointer-events: none; }
.fly img { width: 100%; height: 100%; object-fit: contain; object-position: center top; filter: drop-shadow(0 14px 22px rgba(40,30,20,.22)); }

/* ---------- The bag (bottom-left) ---------- */
.fbag { position: fixed; z-index: 86; left: 28px; bottom: 28px; display: flex; align-items: center; gap: 14px; pointer-events: none; transition: opacity .3s var(--ease-out), transform .5s var(--ease-out); }
.fbag.hidden { opacity: 0; transform: translateX(-12px); }
.fb-btn { pointer-events: auto; position: relative; width: 52px; height: 84px; display: block; transition: transform .3s var(--ease-out); }
.fb-btn:hover { transform: translateY(-3px); }
.fb-body { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; }
.fb-body img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(3px 4px 5px rgba(30,24,16,.22)); }
.fb-shadow { position: absolute; left: 6%; right: -8%; bottom: -5px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30,24,16,.32), rgba(30,24,16,0)); transform-origin: 40% 50%; }
.fb-count { position: absolute; top: 26px; right: -10px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: #141414; box-shadow: 0 0 0 1px rgba(20,20,20,.12), 0 3px 8px -2px rgba(20,20,20,.35); font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; transform: scale(.4); opacity: 0; transition: opacity .3s, transform .4s var(--ease-out); }
.fbag.has .fb-count { opacity: 1; transform: none; }
.fb-ring { position: absolute; left: -6px; right: -6px; bottom: -8px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(20,20,20,.5); opacity: 0; pointer-events: none; }
.fb-note { display: grid; gap: 1px; padding: 9px 16px 10px; border-radius: 14px; background: #fff; box-shadow: 0 14px 34px -14px rgba(21,21,20,.35), 0 0 0 1px rgba(21,21,20,.06); font-size: 12px; line-height: 1.35; max-width: min(320px, calc(100vw - 120px)); opacity: 0; transform: translateX(-10px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.fb-note.on { opacity: 1; transform: none; }
.fb-note:empty { visibility: hidden; }
.fb-note b { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.fb-note span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Bag panel (slides in from the left) ---------- */
.scrim { position: fixed; inset: 0; z-index: 89; background: rgba(21,21,20,.3); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(420px, 100vw); background: var(--paper); box-shadow: var(--shadow-window); display: flex; flex-direction: column; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-weight: 400; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.drawer header h2 .muted { color: var(--ink-2); text-transform: none; letter-spacing: .02em; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.bag-line { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.bag-line .thumb { width: 76px; aspect-ratio: 9/14; background: #f3efe8; border-radius: 2px; overflow: hidden; }
.bag-line .thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center top; padding: 4px 6px 0; }
.bag-line h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.bl-info { min-width: 0; display: grid; align-content: start; }
.bl-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.bl-price { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bl-meta { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.bag-line .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.bag-line .qty { height: 34px; }
.bag-line .qty button { width: 30px; font-size: 15px; }
.bag-line .remove { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.drawer footer { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fff; }
.sum-row { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; }
.bag-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.bag-empty { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 72px 8px; color: var(--ink-2); }
.bag-empty p { margin: 0; font-size: 18px; color: var(--ink); }

/* ---------- Search ---------- */
.search-sheet { position: fixed; z-index: 85; left: 0; right: 0; top: 0; background: var(--paper); box-shadow: 0 30px 60px -30px rgba(21,21,20,.35); padding: 22px var(--gutter) 28px; }
.search-sheet .bar { display: flex; gap: 12px; align-items: center; }
.search-sheet input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font: inherit; font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; color: var(--ink); padding: 8px 0; outline: none; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; margin-top: 22px; max-height: 60dvh; overflow: auto; }
.sr-item { display: grid; gap: 8px; text-align: left; }
.sr-item .t { aspect-ratio: 9/14; background: #f3efe8; border-radius: 2px; overflow: hidden; }
.sr-item .t img { width: 100%; height: 100%; object-fit: contain; object-position: center top; padding: 6px 8px 0; }
.sr-item b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.sr-item span { font-size: 13px; color: var(--ink-2); margin-top: -6px; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .hdr-nav { gap: 18px; }
  .hdr-nav a { font-size: 11px; letter-spacing: .14em; }
  .hdr-logo img { height: 40px; }
  .hdr-bag { display: none; }
  .rk { height: auto; min-height: calc(100svh - var(--header-h)); --iw: 38vw; }
  .rk-head h1 { font-size: clamp(44px, 13vw, 60px); }
  .rk-head p { margin-top: 10px; }
  .rk-scroll { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 44px 0 120px; scrollbar-width: none; }
  .rk-scroll::-webkit-scrollbar { display: none; }
  .rk-rack { margin: 0 var(--gutter); }
  .rk-item { scroll-snap-align: center; }
  .rk-tag { opacity: 1; transform: translate(-50%, 0); }
  .dw { left: 0; top: auto; bottom: 0; translate: none; width: 100%; height: calc(100svh - 12px); border-radius: 18px 18px 0 0; grid-template-columns: 1fr; grid-template-rows: 44% 1fr; }
  .dw-body { padding: 18px 18px 0; gap: 14px; }
  .dw-buy { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 calc(14px + env(safe-area-inset-bottom)) 74px; margin-top: auto; }
  .dw-note { padding-bottom: 4px; }
  .dw-add { letter-spacing: .12em; padding: 0 14px; }
  .dw-buy .qty button { width: 38px; }
  .fbag { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .fb-btn { width: 44px; height: 72px; }
  .fb-count { top: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
