:root {
  --ink: #111111;
  --muted: #6f6f6f;
  --line: #e6e6e6;
  --paper: #ffffff;
  --tile: #e9dfd7;
  --navy: #13263d;
  --navy-2: #1d3656;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 54px;
}
@media (max-width: 900px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 13px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.caps { text-transform: uppercase; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--paper); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); }
.hdr.over { position: absolute; left: 0; right: 0; background: transparent; color: var(--ink); }
.hdr.over.solid { position: fixed; background: var(--paper); color: var(--ink); }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 18px; }
.hdr-right { justify-content: flex-end; }
.wordmark { text-align: center; line-height: 1.1; }
.wordmark b { display: block; font-weight: 400; font-size: 22px; letter-spacing: 0.08em; }
.wordmark span { font-size: 10px; letter-spacing: 0.12em; }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.icon-btn svg { width: 18px; height: 18px; }
.count { position: absolute; top: -6px; right: -8px; background: var(--navy); color: #fff; border-radius: 50%; width: 15px; height: 15px; font-size: 9px; display: grid; place-items: center; }

/* Menu */
.menu { position: fixed; inset: 0 auto 0 0; width: min(380px, 100%); background: var(--paper); z-index: 80; padding: 70px 32px; transform: translateX(-100%); transition: transform 0.3s ease; }
.menu.open { transform: none; }
.menu a { display: block; padding: 8px 0; font-size: 15px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 70; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* Hero: product of the day */
.hero { position: relative; height: 100svh; min-height: 620px; background: var(--tile); color: var(--ink); overflow: hidden; }
.hero img { position: absolute; left: 50%; top: 84px; bottom: 120px; height: calc(100% - 204px); width: auto; max-width: 70%; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 18px 24px rgba(60, 40, 20, 0.12)); }
.hero-info { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero-info small { font-size: 11px; letter-spacing: 0.08em; }
.hero-info h1 { margin: 6px 0 4px; font-weight: 400; font-size: clamp(24px, 3vw, 40px); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; max-width: 18ch; }
.hero-cue { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; font-size: 10px; letter-spacing: 0.12em; }
.hero.empty-photo { color: var(--ink); }
.hero.empty-photo::after { display: none; }
.hero.empty-photo .btn { background: var(--navy) !important; color: #fff !important; }
.hero:not(:has(.hero-info)) { display: grid; place-items: center; color: var(--muted); }

/* Sections and grid */
.section { padding: 64px var(--gutter) 24px; }
.section h2 { margin: 0 0 22px; font-weight: 400; font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; } }
.card { display: block; position: relative; }
.card .ph { aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 8% 6%; transition: opacity 0.3s ease; }
.card .row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.02em; }
.card .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .sub { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
.card.is-held .ph img { opacity: 0.7; }
.sold-word { color: var(--navy); font-weight: 500; letter-spacing: 0.12em; }

/* Sold seal: a small navy roundel in the top-right corner of the photo, clear of the dress */
.stamp { position: absolute; z-index: 3; top: 10px; right: 10px; width: 54px; height: 54px; border-radius: 50%; transform: rotate(-12deg);
  background: var(--navy); color: #fff; display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 4px 12px rgba(19, 38, 61, 0.22); }
.stamp::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); }
.stamp b { font-weight: 500; font-size: 10px; letter-spacing: 0.2em; padding-left: 0.2em; text-transform: uppercase; line-height: 1; }
@media (max-width: 700px) { .stamp { width: 40px; height: 40px; top: 6px; right: 6px; } .stamp::before { inset: 3px; } .stamp b { font-size: 8px; letter-spacing: 0.14em; padding-left: 0.14em; } }

/* Sale prices */
.badge.sale-tag { background: #9b1c1c; color: #fff; }
.price.on-sale s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.price.on-sale b { color: #9b1c1c; font-weight: 500; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--paper); font-size: 9.5px; padding: 3px 7px; text-transform: uppercase; letter-spacing: 0.06em; }
.filters { display: flex; gap: 18px; flex-wrap: wrap; margin: -8px 0 22px; font-size: 11.5px; text-transform: uppercase; }
.filters button { background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--muted); border-bottom: 1px solid transparent; }
.filters button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* Feature trio (top picks) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; } }
.trio .ph { aspect-ratio: 1; background: var(--tile); overflow: hidden; }
.trio .ph img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.trio h3 { margin: 14px 0 6px; font-weight: 400; font-size: 14px; text-transform: uppercase; }
.trio p { margin: 0 0 10px; font-size: 11.5px; line-height: 1.5; }
.trio .link { font-size: 11px; text-transform: uppercase; }

/* Product page */
.pdp { display: grid; grid-template-columns: 84px minmax(0, 1fr) 360px; gap: 28px 32px; padding: 10px var(--gutter) 60px; align-items: start; }
.thumbs { display: grid; gap: 6px; position: sticky; top: 80px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--tile); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.stage-wrap { position: relative; min-width: 0; }
.stage-wrap .stamp { top: 18px; right: 18px; width: 76px; height: 76px; }
.stage-wrap .stamp::before { inset: 5px; }
.stage-wrap .stamp b { font-size: 13px; }
.sold-note { margin: -12px 0 22px; font-size: 12px; line-height: 1.6; }
.sold-note a { text-decoration: underline; }
.stage { background: var(--tile); aspect-ratio: 4 / 5; max-height: calc(100svh - 90px); width: 100%; overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: contain; padding: 5% 8%; }
.info { position: sticky; top: 120px; padding-top: 60px; }
.info h1 { font-weight: 500; font-size: 17px; text-transform: uppercase; line-height: 1.2; margin: 0 0 18px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; font-size: 14px; }
.price-row small { font-size: 10.5px; color: var(--muted); }
.label { font-size: 10.5px; font-weight: 500; text-transform: uppercase; margin: 0 0 10px; }
.label span { font-weight: 400; text-transform: none; }
.sizes { display: flex; gap: 8px; margin-bottom: 26px; }
.sizes span { min-width: 72px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ink); font-size: 11px; padding: 0 12px; }
.buy { display: grid; grid-template-columns: 44px 1fr; gap: 8px; margin-bottom: 26px; }
.btn { background: var(--navy); color: #fff; border: 0; height: 44px; padding: 0 20px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.btn:hover { background: var(--navy-2); }
.btn[aria-disabled="true"] { background: #d9d9d9; color: var(--muted); cursor: not-allowed; }
.btn.full { width: 100%; }
.heart { border: 1px solid var(--line); background: none; height: 44px; cursor: pointer; display: grid; place-items: center; }
.heart svg { width: 16px; height: 16px; }
.heart.on svg { fill: var(--ink); }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 10px 0; font-size: 11.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 14px; font-size: 12px; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.specs td:last-child { text-align: right; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; padding: 0 0 40px; gap: 0; }
  .thumbs { display: none; }
  .stage { max-height: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: auto; }
  .stage img { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .info { position: static; padding: 22px var(--gutter) 0; }
}

/* Basket drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; }
.drawer.open { transform: none; }
.drawer-top { text-align: center; padding: 70px 20px 24px; position: relative; }
.drawer-top h2 { margin: 0; font-weight: 500; font-size: 17px; text-transform: uppercase; }
.close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 18px; line-height: 1; }
.drawer-items { flex: 1; overflow-y: auto; padding: 0 14px; }
.item { display: grid; grid-template-columns: 80px minmax(0, 1fr); border: 1px solid var(--line); margin-bottom: 10px; position: relative; }
.item .ph { background: var(--tile); aspect-ratio: 4 / 5; }
.item .ph img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.item .body { padding: 10px; font-size: 11px; display: flex; flex-direction: column; gap: 4px; }
.item .body b { font-weight: 400; text-transform: uppercase; padding-right: 18px; }
.item .end { margin-top: auto; display: flex; justify-content: space-between; }
.item .rm { position: absolute; top: 6px; right: 8px; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 14px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 14px 20px; display: grid; gap: 10px; font-size: 11px; }
.drawer-foot .tot { display: flex; justify-content: space-between; text-transform: uppercase; }
.drawer-foot .view { text-align: center; text-decoration: underline; }
.empty-note { text-align: center; color: var(--muted); padding: 30px 0; }

/* Checkout */
.checkout { max-width: 980px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.checkout h1 { text-align: center; font-weight: 500; font-size: 17px; text-transform: uppercase; margin: 0 0 30px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
@media (max-width: 800px) { .co-grid { grid-template-columns: 1fr; } }
.co-side { display: grid; gap: 14px; font-size: 12px; }
.co-side .tot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; text-transform: uppercase; }
.till { background: var(--navy); color: #fff; padding: 18px; display: grid; gap: 8px; }
.till .num { font-size: 30px; letter-spacing: 0.08em; }
.till .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.till button { background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; font-size: 10px; text-transform: uppercase; padding: 5px 9px; cursor: pointer; }
.till ol { margin: 4px 0 0; padding-left: 16px; font-size: 11px; opacity: 0.85; }
.field { display: grid; gap: 4px; }
.field label { font-size: 10.5px; text-transform: uppercase; font-weight: 500; }
.field input, .field select, .field textarea { height: 42px; border: 1px solid var(--line); padding: 0 12px; background: var(--paper); border-radius: 0; font-size: 14px; }
.field textarea { height: auto; padding: 10px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.code { text-transform: uppercase; letter-spacing: 0.08em; font-family: ui-monospace, Menlo, monospace; }
.err { color: #b3261e; font-size: 11.5px; min-height: 1em; margin: 0; }
.ok { color: #2e7d32; }
form { display: grid; gap: 14px; }

/* Footer */
.foot { background: var(--navy); color: #fff; margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; }
.foot > div { padding: 64px var(--gutter); }
.foot h3 { font-weight: 500; font-size: 15px; text-transform: uppercase; margin: 0 0 14px; }
.foot p { margin: 0 0 6px; font-size: 12px; }
.foot a { text-decoration: underline; }
.foot .strip { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15); padding: 24px var(--gutter); font-size: 11px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } .foot > div { padding: 40px var(--gutter); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.no-hero-photo .hdr.over { color: var(--ink); }
.no-hero-photo .hdr.over .count { background: var(--navy); color: #fff; }
.card .row > :last-child { white-space: nowrap; flex-shrink: 0; }
.price { white-space: nowrap; }

/* Fabric close-ups fill the frame (cutouts keep their backdrop and breathing room) */
.stage img.bleed, .thumbs img.bleed { object-fit: cover; padding: 0; }
