:root {
  --ground: #f5f1ec;
  --paper: #fbf9f6;
  --ink: #16131a;
  --ink-2: #4a4450;
  --ink-3: #6f6875;
  --line: rgba(22, 19, 26, 0.12);
  --line-2: rgba(22, 19, 26, 0.22);
  --plum: #6d2a5c;
  --plum-deep: #561f48;
  --plum-tint: #efe3ea;
  --night: #1b1418;
  --ok: #2f6b3f;
  --warn: #8a5a12;
  --err: #a1262f;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;
  --ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.55 var(--ui); font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--plum); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* announcement + header */
.announce { background: var(--plum); color: #fff; font-size: 13px; text-align: center; padding: 8px var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245, 241, 236, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(10px); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.wordmark { font-family: var(--display); font-size: 27px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark--lg { font-size: 34px; display: inline-block; margin-bottom: 12px; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; position: relative; transition: background .2s; }
.icon-btn:hover { background: rgba(22, 19, 26, 0.06); }
.search { display: flex; align-items: center; border-bottom: 1px solid var(--line-2); }
.search input { border: 0; background: none; width: 150px; padding: 8px 2px; outline: none; font-size: 15px; }
.search input::placeholder { color: var(--ink-3); }
.search .icon-btn { width: 34px; height: 34px; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; font-variant-numeric: tabular-nums; }
.bag-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.only-mobile { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid var(--ink); background: transparent; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0.01em; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--night); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.text-link { font-weight: 600; font-size: 15px; text-decoration: underline; }

/* hero doors */
.hero { padding: clamp(28px, 5vw, 56px) 0 0; }
.hero-head { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 32px; margin-bottom: clamp(22px, 3vw, 36px); }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 400; letter-spacing: -0.025em; }
.lede { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 38ch; justify-self: end; }
.doors { display: flex; gap: 6px; height: min(76vh, 760px); min-height: 460px; padding: 0 6px; }
.door { --grow: 1; flex: var(--grow) 1 0; position: relative; overflow: hidden; color: #fff; text-decoration: none; background: #2a2328 var(--img) center top / cover no-repeat; transition: flex-grow .7s var(--ease); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(16px, 2vw, 28px); isolation: isolate; }
.door::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 10, 13, .72) 0%, rgba(14, 10, 13, .18) 38%, transparent 60%); }
.door-name { font-family: var(--display); font-size: clamp(36px, 4.6vw, 76px); line-height: .95; font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.door-meta { font-size: 14px; font-weight: 500; margin-top: 10px; display: flex; align-items: center; gap: 8px; opacity: .92; }
.door-meta svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
@media (hover: hover) and (min-width: 900px) {
  .doors:hover .door { --grow: .8; }
  .doors .door:hover, .doors .door:focus-visible { --grow: 1.9; }
  .door:hover .door-meta svg { transform: translateX(4px); }
}

/* blocks */
.block { padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.block--tight { padding-top: 8px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.block-head h2 { font-size: clamp(32px, 4vw, 52px); }

/* product grid + cards */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; }
.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e9e3dc; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-flag { position: absolute; left: 10px; top: 10px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 9px; }
.card-flag--sale { background: var(--plum); color: #fff; }
.card-body { padding-top: 12px; display: grid; gap: 3px; }
.card-name { font-size: 15px; font-weight: 500; line-height: 1.35; }
.card-sub { font-size: 13px; color: var(--ink-3); }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }
.price s { color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.price--sale { color: var(--plum); }
.card.is-out .card-media img { filter: grayscale(.5); opacity: .75; }
.skeleton { background: linear-gradient(100deg, #ebe5de 30%, #f3eee8 50%, #ebe5de 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.sk-card .card-media { background: none; }
.sk-line { height: 12px; margin-top: 12px; width: 70%; }
.sk-line + .sk-line { width: 30%; margin-top: 8px; }

/* perfume band */
.perfume-band { background: var(--night); color: #f3ece6; margin-top: clamp(64px, 9vw, 120px); padding: clamp(56px, 8vw, 96px) 0; }
.perfume-inner { display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.perfume-copy h2 { font-size: clamp(38px, 4.6vw, 64px); font-style: italic; font-weight: 400; margin-bottom: 18px; }
.perfume-copy p { color: #c9bec6; max-width: 34ch; margin-bottom: 28px; }
.perfume-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perfume-row .card-media { background: #2a2026; }
.perfume-row .card-sub { color: #b5a9b1; }
.perfume-band ::selection { background: #f3ece6; color: var(--night); }

/* socks rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 15%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rail .card { scroll-snap-align: start; }
.rail .card-media { aspect-ratio: 2 / 3; }

/* footer */
.site-footer { margin-top: clamp(72px, 10vw, 130px); border-top: 1px solid var(--line); padding-top: 52px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.site-footer h2 { font-family: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer nav a { display: block; text-decoration: none; padding: 4px 0; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { max-width: 42ch; font-size: 15px; }
.site-footer p + p { margin-top: 10px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: var(--ink-3); }
.footer-base a { color: var(--ink-2); }

/* shop page */
.shop-head { padding-top: clamp(32px, 5vw, 60px); display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.shop-head h1 { font-size: clamp(44px, 6vw, 84px); font-weight: 400; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 22px auto 28px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 9px 14px; font-weight: 500; font-size: 15px; color: var(--ink-2); border-bottom: 1.5px solid transparent; text-decoration: none; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.toolbar-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-width: 42px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.select select { appearance: none; border: 1px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316131a' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center no-repeat; height: 40px; padding: 0 38px 0 14px; font-size: 14px; }
.empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--ink-3); }
.empty strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }

/* product page */
.crumbs { padding-top: 22px; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 18px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
.thumbs { display: grid; gap: 8px; }
.thumb { padding: 0; border: 1px solid transparent; background: #e9e3dc; aspect-ratio: 4 / 5; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.stage { background: #e9e3dc; position: relative; }
.stage img { width: 100%; max-height: 82vh; object-fit: contain; }
.buy { position: sticky; top: 92px; align-self: start; display: grid; gap: 22px; }
.buy h1 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 400; }
.buy .price { font-size: 22px; }
.opt-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; }
.opt-label span { font-weight: 400; color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; }
.qty button:hover { background: rgba(22,19,26,.05); }
.qty output { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.size-hint { color: var(--err); font-size: 14px; margin-top: 8px; }
.prose { color: var(--ink-2); max-width: 60ch; }
.notes { display: flex; gap: 8px; flex-wrap: wrap; }
.note { background: var(--plum-tint); color: var(--plum-deep); padding: 6px 12px; font-size: 14px; font-weight: 500; }
.assure { border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--ink-3); display: grid; gap: 8px; }
.assure div { display: flex; gap: 10px; align-items: flex-start; }
.assure svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ink-2); }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(22, 19, 26, .38); z-index: 60; opacity: 0; transition: opacity .3s; }
.scrim.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -12px 0 40px rgba(22, 19, 26, .12); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 28px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px 22px; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: #e9e3dc; }
.line-name { font-weight: 500; font-size: 15px; text-decoration: none; }
.line-meta { font-size: 13px; color: var(--ink-3); margin: 2px 0 10px; }
.line .qty { height: 34px; }
.line .qty button { width: 32px; font-size: 16px; }
.line-right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.link-btn { border: 0; background: none; padding: 0; font-size: 13px; color: var(--ink-3); text-decoration: underline; }
.link-btn:hover { color: var(--err); }
.sum-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum-row--total { font-size: 18px; font-weight: 700; }
.drawer-empty { padding: 48px 0; text-align: center; }
.drawer-empty strong { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; margin-bottom: 10px; }

/* checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(28px, 4vw, 52px); }
.checkout h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 400; margin-bottom: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 14px; padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); background: var(--paper); padding: 12px 14px; font-size: 16px; border-radius: 0; outline: none; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316131a' stroke-width='1.5'/%3E%3C/svg%3E") right 14px center no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(109, 42, 92, .14); }
.field.has-error input, .field.has-error select { border-color: var(--err); }
.form-error { color: var(--err); font-weight: 500; margin-bottom: 14px; }
.notice { background: var(--plum-tint); color: var(--plum-deep); padding: 14px 16px; margin-bottom: 22px; }
.summary { background: var(--paper); border: 1px solid var(--line); padding: 24px; align-self: start; position: sticky; top: 92px; display: grid; gap: 12px; }
.summary h2 { font-size: 28px; margin-bottom: 6px; }
.summary .line { grid-template-columns: 60px 1fr auto; padding: 12px 0; }
.summary .line img { width: 60px; }

/* order */
.order { padding-top: clamp(36px, 5vw, 72px); max-width: 760px; }
.order h1 { font-size: clamp(40px, 5vw, 66px); font-weight: 400; margin-bottom: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 6px 12px; font-size: 14px; }
.status--paid { background: #e3efe5; color: var(--ok); }
.status--pending { background: #f6ecd9; color: var(--warn); }
.status--cancelled { background: #f6e1e2; color: var(--err); }
.status--shipped { background: #e1e8f3; color: #23467a; }
.order-card { background: var(--paper); border: 1px solid var(--line); padding: 24px; margin-top: 28px; display: grid; gap: 10px; }
.empty-page { padding: 100px var(--gutter); text-align: center; display: grid; gap: 18px; justify-items: center; }
.empty-page h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 400; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); z-index: 90; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search input { width: 110px; }
  .main-nav { gap: 18px; }
}
@media (max-width: 860px) {
  .only-mobile { display: inline-grid !important; }
  .main-nav a.only-mobile { display: block !important; }
  .header-row { gap: 6px; height: 60px; }
  .wordmark { font-size: 23px; margin-right: auto; }
  .main-nav { position: fixed; inset: 60px 0 auto 0; background: var(--ground); flex-direction: column; gap: 0; padding: 8px var(--gutter) 22px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { font-family: var(--display); font-size: 30px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: 0; }
  .search { border: 0; }
  .search input { display: none; }
  .hero-head { grid-template-columns: 1fr; gap: 12px; }
  .lede { justify-self: start; }
  .doors { display: grid; grid-template-columns: 1fr 1fr; height: auto; min-height: 0; gap: 6px; padding: 0 6px; }
  .door { aspect-ratio: 3 / 4; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .perfume-inner { grid-template-columns: 1fr; }
  .perfume-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .rail { grid-auto-columns: 44%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .product, .checkout { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { grid-auto-flow: column; grid-auto-columns: 64px; order: 2; overflow-x: auto; }
  .buy, .summary { position: static; }
  .summary { order: -1; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .perfume-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perfume-row .card:nth-child(3) { display: none; }
  .door-name { font-size: 34px; }
  .card-name { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
