/* Fable & Thread — concept boutique by EpicTech. Not a real store; nothing is for sale. */
:root {
  --paper: #f6f1e9;
  --paper-2: #efe8dc;
  --sand: #e4dacb;
  --ink: #1c1a17;
  --ink-2: #5a534b;
  --rust: #9a3f22;
  --rust-d: #7c3119;
  --line: rgba(28, 26, 23, .13);
  --line-2: rgba(28, 26, 23, .26);
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
  --etbar-h: 40px;
  --head-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--etbar-h) + var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--etbar-h); background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--rust); }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: calc(var(--etbar-h) + 8px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none !important; }
.js .nojs-only { display: none !important; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12.5px; }
.ic { width: 18px; height: 18px; flex: none; }

.wrap { width: min(1280px, 100% - 2 * var(--gut)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.h2 { font-size: clamp(36px, 4.6vw, 60px); }
.lede { font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 52ch; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4.5vw, 56px); }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 48px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--rust); }
.btn-primary .ic { transition: transform .25s var(--ease); }
.btn-primary:hover .ic { transform: translateX(2px); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(28,26,23,.04); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.linklike:hover { text-decoration-color: currentColor; color: var(--rust); }
.linklike.inline { display: inline; font-size: inherit; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--ink); }

/* ---------- EpicTech concept bar ---------- */
.et-bar { position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--etbar-h); background: #050609; color: #f3f5f8; border-bottom: 1px solid rgba(255,255,255,.08); font: 500 12.5px/1.3 "Jost", system-ui, sans-serif; }
.et-inner { height: 100%; width: min(1280px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.et-bar p { display: flex; align-items: center; gap: 8px; color: #c9ceda; }
.et-bar strong { color: #f3f5f8; font-weight: 600; }
.et-dot { width: 7px; height: 7px; border-radius: 50%; background: #8257ff; box-shadow: 0 0 0 3px rgba(130,87,255,.25); flex: none; }
.et-bar nav { display: flex; gap: 6px; align-items: center; flex: none; }
.et-bar a { text-decoration: none; padding: 6px 10px; border-radius: 999px; color: #c9ceda; white-space: nowrap; min-height: 28px; display: inline-flex; align-items: center; }
.et-bar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.et-bar a.et-cta { background: #8257ff; color: #fff; font-weight: 600; }
.et-bar a.et-cta:hover { background: #a98dff; color: #050609; }
.et-bar a:focus-visible { outline: 2px solid #a98dff; outline-offset: 2px; }
@media (max-width: 640px) {
  :root { --etbar-h: 62px; --head-h: 64px; }
  .et-inner { flex-direction: column; justify-content: center; gap: 4px; }
  .et-bar p { font-size: 11.5px; }
  .et-bar a { padding: 3px 10px; font-size: 12px; min-height: 26px; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: var(--etbar-h); z-index: 100; background: rgba(246,241,233,.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: clamp(150px, 16vw, 196px); text-decoration: none; color: var(--ink); }
.brand svg { width: 100%; height: auto; overflow: visible; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 14.5px; letter-spacing: .03em; padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav-links a:hover { background-size: 100% 1px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14.5px; transition: border-color .2s, background .2s; }
.bag-btn:hover { border-color: var(--ink); }
.bag-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.bag-count.bump { transform: scale(1.25); background: var(--rust); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -5px; }
.menu summary span::after { position: absolute; top: 5px; }
.menu-panel { position: absolute; right: 0; top: 54px; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 24px 48px -20px rgba(28,26,23,.35); }
.menu-panel a { display: block; padding: 12px 14px; text-decoration: none; border-radius: 10px; font-weight: 500; }
.menu-panel a:hover { background: var(--paper-2); }
@media (min-width: 960px) { .nav-links { display: flex; } .menu { display: none; } }
@media (max-width: 420px) { .bag-label { display: none; } .bag-btn { padding: 0 12px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.02fr; gap: 64px; } }
.hero h1 { font-size: clamp(50px, 6.6vw, 98px); line-height: .98; letter-spacing: -.025em; margin-bottom: 26px; }
.hero h1 em { display: block; }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14.5px; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-art { position: relative; height: clamp(440px, 52vw, 640px); }
.hero-arch { position: absolute; left: 4%; top: 0; width: 62%; height: 100%; border-radius: 999px 999px 18px 18px; display: grid; place-items: center; overflow: hidden; text-decoration: none; transition: transform .6s var(--ease); }
.hero-arch .garment { width: 80%; margin-top: 4%; }
.hero-card { position: absolute; right: 0; bottom: 6%; width: 42%; aspect-ratio: 4 / 5; border-radius: 16px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(28,26,23,.5); text-decoration: none; border: 6px solid var(--paper); transition: transform .6s var(--ease); }
.hero-card .garment { width: 74%; }
.hero-arch:hover, .hero-card:hover { transform: translateY(-4px); }
.tag-float { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; white-space: nowrap; background: rgba(246,241,233,.92); border-radius: 999px; padding: 8px 16px; font-size: 13px; display: inline-flex; gap: 8px; }
.tag-float span { color: var(--rust); font-weight: 600; }
.tag-float.small { bottom: 14px; font-size: 12px; padding: 6px 12px; }
.hero-ring { position: absolute; right: 8%; top: 4%; width: clamp(92px, 9vw, 120px); color: var(--ink-2); background: var(--paper); border-radius: 50%; padding: 4px; }
.hero-ring svg { overflow: visible; }
@media (max-width: 640px) {
  .hero-art { height: 470px; }
  .hero-arch { left: 0; width: 70%; }
  .hero-card { width: 46%; bottom: 0; }
  .hero-ring { right: 0; top: 0; }
  .tag-float { font-size: 12px; padding: 7px 12px; bottom: 16px; }
}

/* ---------- Category chips ---------- */
.cats { border-block: 1px solid var(--line); }
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; text-decoration: none; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.cat-chip:hover { border-color: var(--line-2); background: var(--paper-2); }
@media (min-width: 1100px) { .cat-row { justify-content: space-between; } }

/* ---------- Lookbook ---------- */
.lookbook { background: var(--paper-2); }
.looks { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 12px; scroll-padding-inline: var(--gut); }
.look { scroll-snap-align: start; }
@media (min-width: 900px) {
  .looks { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 28px; overflow: visible; margin: 0; padding: 0; }
  .look-2 { margin-top: 72px; }
}
.look-art { position: relative; aspect-ratio: 4 / 5.2; border-radius: 6px; overflow: hidden; }
.look-art .garment { position: absolute; transition: transform .8s var(--ease); }
.look-art .piece-back { width: 64%; left: 4%; top: 6%; }
.look-art .piece-front { width: 58%; right: 2%; top: 26%; filter: drop-shadow(-12px 16px 18px rgba(28,26,23,.18)); }
.look:hover .piece-back { transform: translate(-6px, -4px); }
.look:hover .piece-front { transform: translate(6px, 4px); }
.look-no { position: absolute; right: 18px; top: 8px; font: italic 400 clamp(64px, 7vw, 96px)/1 var(--serif); color: rgba(255,255,255,.55); }
.look-cap { padding: 20px 2px 0; }
.look-cap h3 { font-size: 26px; margin-bottom: 8px; }
.look-cap > p { font-size: 15px; margin-bottom: 14px; }
.look-pieces { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.look-pieces a { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.look-pieces a .muted { margin-left: auto; }
.look-pieces a:hover { color: var(--rust); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(28,26,23,.2); flex: none; }

/* ---------- Shop ---------- */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.shop-sub { margin-top: 10px; font-size: 14.5px; }
.shop-tools { display: flex; gap: 10px; align-items: center; }
.fcount:empty { display: none; }
.fcount { min-width: 20px; height: 20px; border-radius: 999px; background: var(--rust); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; padding: 0 5px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.sort select { min-height: 42px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c1a17' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 11px; appearance: none; color: var(--ink); cursor: pointer; }
.shop-layout { display: grid; gap: 28px; }
.filters { display: grid; gap: 26px; align-content: start; }
.js .filters { display: none; }
.js .filters.is-open { display: grid; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
@media (min-width: 1000px) {
  .shop-layout { grid-template-columns: 236px 1fr; gap: 48px; }
  .js .filters, .js .filters.is-open { display: grid; padding: 0; border: 0; background: none; position: sticky; top: calc(var(--etbar-h) + var(--head-h) + 24px); }
  .filter-toggle { display: none; }
}
.fgroup legend { font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; display: inline-flex; }
button.fchip, .fchip > span { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; display: inline-flex; align-items: center; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fchip.box > span { min-width: 48px; justify-content: center; border-radius: 10px; }
button.fchip:hover, .fchip:hover > span { border-color: var(--ink); }
button.fchip[aria-pressed="true"], .fchip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fchip input, .fcolour input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.fchip input:focus-visible + span, .fcolour input:focus-visible ~ span:last-child { outline: 2px solid var(--rust); outline-offset: 2px; }
.colour-set { display: grid; gap: 4px; }
.fcolour { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 14.5px; cursor: pointer; border-radius: 8px; padding: 0 6px; margin: 0 -6px; }
.fcolour:hover { background: rgba(28,26,23,.04); }
.fcolour .sw { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28,26,23,.2); transition: box-shadow .2s; }
.fcolour input:checked ~ .sw { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.fcolour input:checked ~ span:last-child { font-weight: 600; }
.clear-all { justify-self: start; }
.result-count { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559px) { .grid-3 li:nth-child(3) { display: none; } }
.card[hidden] { display: none; }
.card-art { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.card-art-link { position: absolute; inset: 0; display: grid; place-items: center; }
.card-art .garment { width: 74%; transition: transform .7s var(--ease); }
.card:hover .card-art .garment { transform: scale(1.05) translateY(-2%); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--paper); color: var(--ink); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.qv-btn { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 44px; border-radius: 999px; border: 0; background: rgba(246,241,233,.95); font-size: 14px; font-weight: 500; cursor: pointer; transform: translateY(calc(100% + 16px)); transition: transform .4s var(--ease), background .2s, color .2s; }
.qv-btn:hover { background: var(--ink); color: var(--paper); }
.card:hover .qv-btn, .qv-btn:focus-visible { transform: none; }
@media (hover: none) { .qv-btn { transform: none; left: auto; right: 10px; bottom: 10px; min-height: 36px; padding: 0 14px; font-size: 13px; } }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.card-info h3 { font: 500 15.5px/1.35 var(--sans); letter-spacing: 0; }
.card-info h3 a { text-decoration: none; }
.card-info h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.price { font-size: 15px; white-space: nowrap; }
.card-dots { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 6px; }
@media (max-width: 559px) { .card-info { flex-direction: column; gap: 2px; } }
.no-results { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 14px; display: grid; gap: 10px; justify-items: center; }
.js .card.is-moving { animation: ft-in .45s var(--ease); }
@keyframes ft-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Care ---------- */
.care-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .care-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.care-card { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.care-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 22px; color: var(--rust); }
.care-ic .ic { width: 22px; height: 22px; }
.care-card h3 { font-size: 26px; margin-bottom: 10px; }
.care-card p { color: var(--ink-2); }

/* ---------- Newsletter ---------- */
.letters { background: var(--ink); color: var(--paper); }
.letters .eyebrow, .letters .lede { color: #bfb6aa; }
.letters h2 em { color: #e6a688; }
.letters-inner { display: grid; gap: 36px; align-items: end; }
@media (min-width: 900px) { .letters-inner { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.news-form { display: grid; gap: 10px; }
.news-form label { font-size: 14px; color: #d8d0c4; }
.news-row { display: flex; gap: 8px; flex-wrap: wrap; }
.news-row input { flex: 1 1 220px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(246,241,233,.3); background: rgba(246,241,233,.06); color: var(--paper); }
.news-row input::placeholder { color: #9b9286; }
.news-row input:focus-visible { outline: 2px solid #e6a688; outline-offset: 2px; }
.letters .btn-primary { background: var(--paper); color: var(--ink); min-height: 52px; }
.letters .btn-primary:hover { background: #e6a688; }
.letters :focus-visible { outline-color: #e6a688; }
.concept-note { font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: rgba(246,241,233,.08); color: #d8d0c4; transition: background .3s, color .3s; }
.concept-note .ic { width: 16px; height: 16px; margin-top: 2px; }
.concept-note.flash { background: #e6a688; color: var(--ink); }
.pdp-info .concept-note { background: var(--paper-2); color: var(--ink-2); margin: 12px 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 0; border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; max-width: 46ch; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-word { font: 400 30px/1 var(--serif); margin-bottom: 14px; }
.foot-word em { color: var(--rust); }
.foot-brand .muted { font-size: 14.5px; }
.foot-col { display: grid; gap: 4px; align-content: start; justify-items: start; }
.foot-col h2 { font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.foot-col a, .foot-col .linklike { font-size: 15px; text-decoration: none; padding: 6px 0; min-height: 36px; display: inline-flex; align-items: center; }
.foot-col a:hover, .foot-col .linklike:hover { color: var(--rust); text-decoration: underline; }
.foot-base { margin-top: 56px; padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); background: var(--paper); border: 0; padding: 0; }
dialog::backdrop { background: rgba(28,26,23,.45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
dialog.in::backdrop { opacity: 1; }
.modal { width: min(940px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border-radius: 18px; overflow: auto; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.modal.in { opacity: 1; transform: none; }
.modal-x { position: absolute; right: 16px; top: 16px; z-index: 2; }
.qv-grid { display: grid; }
@media (min-width: 760px) { .qv-grid { grid-template-columns: 1fr 1fr; } }
.qv-art { display: grid; place-items: center; min-height: 300px; padding: 28px; }
.qv-art .garment { width: min(78%, 320px); }
.qv-info { position: relative; padding: 32px 28px 28px; display: grid; gap: 16px; align-content: start; }
.qv-info h2 { font-size: clamp(30px, 3vw, 40px); padding-right: 48px; }
.qv-info .eyebrow { margin: 0; }
.qv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qv-actions .btn-primary { flex: 1 1 200px; }
.sample { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-left: 8px; }
.price.big { font-size: 22px; }

.picker { display: grid; gap: 12px; }
.picker legend, .picker-label { font-size: 14.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.picker-label { margin: 0; }
.picker-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(28,26,23,.2); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(28,26,23,.2), 0 0 0 3px var(--paper), 0 0 0 4.5px var(--ink); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 56px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size.is-out { color: #9b9286; text-decoration: line-through; cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(28,26,23,.05) 6px 7px); }
.size.is-out:hover { border-color: var(--line-2); }
.pick-msg { font-size: 14px; color: var(--rust); min-height: 1px; }
.pick-msg:empty { display: none; }
.pick-msg.ok { color: #3c5a3a; }

.sg { width: min(640px, calc(100% - 24px)); padding: 32px 28px 28px; }
.sg h2 { font-size: 36px; margin-bottom: 10px; }
.sg .eyebrow { margin-bottom: 8px; }
.unit-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); margin: 20px 0 14px; }
.unit-toggle button { min-height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.unit-toggle button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table thead th { font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); }
.size-table tbody tr:last-child > * { border-bottom: 0; }
.size-table tbody th { font-weight: 600; }
.measure { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }

/* Drawer */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%; transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.in { transform: none; }
.drawer-inner { position: relative; height: 100%; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 28px; }
.drawer-head h2 .muted { font: 400 15px var(--sans); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.bag-list { list-style: none; margin: 0; padding: 0; }
.bag-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-thumb { aspect-ratio: 4 / 5; border-radius: 6px; display: grid; place-items: center; }
.bag-thumb .garment { width: 80%; }
.bag-meta { display: grid; gap: 4px; align-content: start; }
.bag-meta .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bag-meta .name { font-weight: 500; }
.bag-meta .var { font-size: 13.5px; color: var(--ink-2); }
.bag-meta .row.ctl { margin-top: 8px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: rgba(28,26,23,.06); }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.bag-item .qty button { width: 34px; height: 34px; }
.bag-item .qty .ic { width: 15px; height: 15px; }
.remove { font-size: 13px; }
.bag-empty { text-align: center; padding: 56px 12px; display: grid; gap: 10px; justify-items: center; }
.bag-empty-title { font: 400 26px/1.1 var(--serif); }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 12px; background: var(--paper-2); }
.free-ship p { font-size: 14px; margin-bottom: 8px; }
.meter { display: block; height: 4px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--rust); border-radius: 4px; transition: width .5s var(--ease); }
.totals { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 600; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); }
.drawer-foot[hidden] { display: none; }
.checkout-panel { position: absolute; inset: 0; background: var(--paper); padding: 72px 28px 28px; display: grid; align-content: center; gap: 16px; text-align: center; justify-items: center; }
.checkout-panel[hidden] { display: none; }
.checkout-panel h3 { font-size: 30px; max-width: 16ch; }
.checkout-panel .muted { max-width: 38ch; }
.co-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--rust); }
.co-icon .ic { width: 26px; height: 26px; }
.co-actions { display: grid; gap: 10px; width: 100%; max-width: 300px; margin-top: 8px; }

/* ---------- Product page ---------- */
.crumbs ol { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; gap: 32px; padding-bottom: 24px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; } .pdp-info { position: sticky; top: calc(var(--etbar-h) + var(--head-h) + 24px); } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 960px) { .gallery { grid-template-columns: 92px 1fr; } .thumbs { order: -1; flex-direction: column; } }
.gallery-main { position: relative; aspect-ratio: 4 / 4.6; border-radius: 8px; overflow: hidden; }
.view { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .45s var(--ease); }
.view.is-on { opacity: 1; }
.view .garment { width: 68%; }
.view[data-view="detail"] .garment { width: 100%; height: 100%; object-fit: cover; }
.view[data-view="fabric"] .garment { width: 100%; height: 100%; }
.view svg[viewBox="70 40 100 120"] { width: 100%; height: 100%; }
.thumbs { display: flex; gap: 10px; }
.thumb { position: relative; width: 84px; aspect-ratio: 4 / 5; border-radius: 6px; border: 0; padding: 0; overflow: hidden; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.thumb .garment { width: 80%; }
.thumb .fabric, .thumb svg[viewBox="70 40 100 120"] { width: 100%; height: 100%; }
.thumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; padding: 2px 0; background: rgba(246,241,233,.85); }
.thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.pdp-info { display: grid; gap: 20px; align-content: start; }
.pdp-info .eyebrow { margin: 0; }
.pdp-title { font-size: clamp(38px, 4.4vw, 58px); letter-spacing: -.02em; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .qty { min-height: 52px; }
.btn-grow { flex: 1 1 220px; min-height: 52px; }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.assure li { display: flex; align-items: center; gap: 10px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { transition: transform .3s var(--ease); }
.acc details[open] summary .ic { transform: rotate(90deg); }
.acc details > :not(summary) { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; }
.acc ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.notfound { padding: 96px 0; display: grid; gap: 18px; justify-items: start; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s); animation: ft-safety 0s linear 2.5s forwards; }
.js [data-reveal].in { opacity: 1; translate: none; }
@keyframes ft-safety { to { opacity: 1; translate: none; } }
.sway { transform-origin: 50% 4%; animation: ft-sway 2.6s var(--ease) .6s 1 both; }
@keyframes ft-sway { 0% { transform: rotate(0); } 30% { transform: rotate(2.4deg); } 60% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
