/* ==========================================================================
   VRENLORA — vrenlora.com
   --------------------------------------------------------------------------
   LAYOUT SYSTEM: "night ledger"
   Read from the pack: 50 evening / modest / knitwear pieces shot on greige
   plaster. Palette sampled from the photos: concrete greige #b7b1a6, candle
   ivory #efe3d2, espresso #2a1d15; brass #c19a58 taken from the gold
   embroidery on the ivory abaya.

   1. HOME MODULES   masthead strip · split hero (type 5/12 + portrait 7/12)
                     · category ledger tabs · 20-line piece ledger
                     · atelier spread (text + 2 stills) · 3 service clauses
                     · ledger footer
   2. FIRST SCREEN   asymmetric split, type left on ink, full-bleed portrait
                     right; display 56–86px in three fixed steps (390/1024/1440)
   3. #homeIndex     two-column hairline ledger, mono numbering, 56×74 thumbs,
                     name + type left, category + price right; no cards
   4. PRODUCT CARD   3:4 portrait on matte panel, text under, no frame;
                     hover = image scale 1.035 + brass hairline
   5. DENSITY        medium-high: 8/12/18/28/44/68/104/150 scale, 28px gutters
   6. GRID           12 cols, max 1440, gutter clamp(18px,4vw,56px);
                     1440 → 4 card cols, 1024 → 3, 760 → 2, 390 → 2
   7. TYPE           Fraunces (display, incl. italic accents) / Archivo (body)
                     / IBM Plex Mono (numbers, labels, prices); steps 1.3
   8. SHAPES         square corners everywhere, 1px hairlines, text-tab chips,
                     bottom-rule inputs, 44px square size buttons
   9. IMAGE          3:4, object-fit cover, #1b1613 matte, no borders,
                     mono caption overlays only on the hero and stills
  10. ORNAMENT       hairlines + mono numbering + rotated edge labels; nothing else
  11. FOOTER         four-column ledger, oversized wordmark baselined last
  12. MOTION         hover only (opacity / 1.035 scale, 220ms)
   ========================================================================== */

:root {
  --ink: #100d0b;
  --ink-2: #17120f;
  --ink-3: #1e1814;
  --matte: #1b1613;
  --bone: #efe6d8;
  --bone-dim: #c8bcab;
  --muted: #93867a;
  --brass: #c19a58;
  --brass-deep: #8a6c3c;
  --line: rgba(239, 230, 216, 0.16);
  --line-soft: rgba(239, 230, 216, 0.075);
  --danger: #d0836a;
  --ok: #8fae86;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --wide: 1440px;
  --gutter: clamp(18px, 4vw, 56px);
  --s1: 6px;
  --s2: 12px;
  --s3: 18px;
  --s4: 28px;
  --s5: 44px;
  --s6: 68px;
  --s7: 104px;
  --s8: 150px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
s { text-decoration-thickness: 1px; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }
body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.012em; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.rule { border-top: 1px solid var(--line); }

/* ---------- announce strip ---------- */
.announce {
  background: #0a0807;
  border-bottom: 1px solid var(--line-soft);
  color: var(--brass);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 11px var(--gutter);
}

/* ---------- site head ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s4);
  padding: 16px var(--gutter);
  background: rgba(16, 13, 11, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-head .wordmark { grid-column: 1; justify-self: start; }
.wordmark {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}
.wordmark:hover { color: var(--brass); }

.nav-main {
  display: flex;
  gap: var(--s4);
  justify-self: center;
  grid-column: 2;
}
.nav-main a {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-main a:hover { color: var(--bone); border-bottom-color: var(--brass); }

.nav-side {
  display: flex;
  align-items: center;
  gap: var(--s3);
  grid-column: 3;
}
.nav-side a {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.nav-side a:hover { color: var(--brass); }
.bag-link { display: inline-flex; gap: 6px; align-items: baseline; }
.bag-link span { color: var(--brass); }

.nav-toggle {
  display: none;
  width: 34px;
  height: 26px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bone);
}
.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 17px; }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  padding: 110px var(--gutter) var(--s5);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-drawer a {
  font-family: var(--f-display);
  font-size: 30px;
  letter-spacing: -0.01em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer a:hover { color: var(--brass); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--bone);
  background: transparent;
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.btn:hover { background: var(--bone); color: var(--ink); }
.btn--primary { background: var(--brass); border-color: var(--brass); color: #150f08; }
.btn--primary:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.link-u {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--brass-deep);
  padding-bottom: 3px;
}
.link-u:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 10px);
  background: var(--bone);
  color: var(--ink);
  padding: 12px 22px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-foot {
  margin-top: var(--s8);
  border-top: 1px solid var(--line);
  background: #0c0a08;
  padding-top: var(--s6);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.7fr 0.85fr 0.85fr 0.95fr;
  gap: var(--s5);
  padding-bottom: var(--s5);
}
.foot-brand .wordmark { font-size: 21px; letter-spacing: 0.32em; }
.foot-brand p {
  margin-top: var(--s3);
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.foot-col h4 {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s2);
}
.foot-col a {
  display: block;
  font-size: 12.5px;
  color: var(--bone-dim);
  padding: 5px 0;
}
.foot-col a:hover { color: var(--brass); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding: var(--s3) 0 var(--s4);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- generic page head / prose / empty ---------- */
.page-head {
  padding: var(--s7) 0 var(--s5);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(38px, 6vw, 76px);
  margin-top: var(--s3);
  max-width: 18ch;
}
.page-head p.lede {
  margin-top: var(--s3);
  max-width: 58ch;
  color: var(--bone-dim);
  font-size: 15px;
  line-height: 1.7;
}
.page-body { padding: var(--s6) 0 0; }

.prose { max-width: 74ch; padding: var(--s6) 0 0; }
.prose h2 {
  font-size: 24px;
  margin: var(--s5) 0 var(--s2);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose li { color: var(--bone-dim); font-size: 14.5px; line-height: 1.8; }
.prose p + p { margin-top: var(--s2); }
.prose ul { list-style: none; margin: var(--s2) 0; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass-deep);
}
.prose a { color: var(--brass); border-bottom: 1px solid var(--brass-deep); }
.prose strong { color: var(--bone); font-weight: 500; }

.empty-state {
  border: 1px solid var(--line);
  padding: var(--s6) var(--s4);
  text-align: center;
}
.empty-state h3 { font-size: 24px; margin-bottom: var(--s2); }
.empty-state p { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   HOME — split hero, category ledger, twenty-line piece ledger
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vh, 96px) var(--s5) clamp(40px, 6vh, 80px) var(--gutter);
  border-right: 1px solid var(--line);
}
.hero-title {
  font-size: clamp(42px, 5.3vw, 84px);
  margin: var(--s4) 0 var(--s3);
  max-width: 12ch;
}
.hero-title em { font-style: italic; color: var(--brass); }
.hero-lede {
  max-width: 40ch;
  color: var(--bone-dim);
  font-size: 14.5px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s5);
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: var(--s4);
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-soft);
}
.hero-facts dt {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.hero-facts dd { font-size: 12.5px; color: var(--bone-dim); margin-top: 4px; }

.hero-figure {
  position: relative;
  min-height: 620px;
  background: var(--matte);
  overflow: hidden;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero-figure::after {
  content: "LOOKBOOK 01 — VRENLORA";
  position: absolute;
  top: var(--s4);
  right: 14px;
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.34em;
  color: rgba(239, 230, 216, 0.5);
}
.hero-figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 16px 26px 18px;
  max-width: 78%;
  background: rgba(12, 10, 8, 0.9);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.hero-figure figcaption span {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.hero-figure figcaption b {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.2;
}
.hero-figure figcaption a {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--bone-dim);
  margin-top: 2px;
}
.hero-figure figcaption a:hover { color: var(--brass); }

/* category ledger tabs */
.strip { padding: var(--s6) 0 0; border-bottom: 1px solid var(--line); }
.band-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 38ch);
  align-items: end;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
.band-head h2 { font-size: clamp(28px, 3.2vw, 44px); margin-top: 10px; }
.band-head p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 38ch; }

#catStrip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: cat;
}
.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 158px;
  padding: 20px 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-increment: cat;
  overflow: hidden;
  transition: background 0.25s;
}
.cat-tile::before {
  content: "0" counter(cat);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--brass);
}
.cat-tile::after {
  content: "↗";
  position: absolute;
  right: 14px;
  bottom: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-tile span {
  position: relative;
  z-index: 1;
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1.15;
  max-width: 10ch;
}
.cat-tile:hover { background: var(--ink-3); }
.cat-tile:hover img { opacity: 0.16; }
.cat-tile:hover span { color: var(--brass); }
.cat-tile:hover::after { color: var(--brass); transform: translate(2px, -2px); }

/* the ledger: two columns of hairline rows */
.ledger { padding: var(--s7) 0 var(--s6); border-bottom: 1px solid var(--line); }
#homeIndex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--s6);
  border-top: 1px solid var(--line);
}
.index-row a {
  display: grid;
  grid-template-columns: 26px 56px minmax(0, 1fr) 74px 16px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.index-row a:hover { background: rgba(193, 154, 88, 0.045); }
.idx-no {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
}
.idx-thumb {
  width: 56px;
  height: 74px;
  overflow: hidden;
  background: var(--matte);
}
.idx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.index-row a:hover .idx-thumb img { transform: scale(1.06); }
.idx-name { min-width: 0; }
.idx-name h3 {
  font-size: 16.5px;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.index-row a:hover .idx-name h3 { color: var(--brass); }
.idx-name > span {
  display: block;
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.idx-cat { display: none; }
.idx-price {
  font-family: var(--f-mono);
  font-size: 11.5px;
  text-align: right;
  color: var(--bone-dim);
}
.idx-arrow {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--brass);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.index-row a:hover .idx-arrow { opacity: 1; transform: none; }
.ledger-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s4);
}

/* atelier spread */
.atelier {
  padding: var(--s7) 0;
  border-bottom: 1px solid var(--line);
}
.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s6);
}
.atelier-copy h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  max-width: 16ch;
  margin: var(--s3) 0 var(--s4);
}
.atelier-copy > p {
  max-width: 42ch;
  color: var(--bone-dim);
  font-size: 14.5px;
  line-height: 1.8;
}
.atelier-notes { margin-top: var(--s5); border-top: 1px solid var(--line-soft); }
.atelier-notes div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: var(--s3);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.atelier-notes dt {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 3px;
}
.atelier-notes dd { font-size: 13px; color: var(--bone-dim); line-height: 1.6; }
.atelier-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  align-items: start;
}
.atelier-stills figure { margin: 0; }
.atelier-stills figure:nth-child(2) { margin-top: 84px; }
.atelier-stills img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--matte);
}
.atelier-stills figcaption {
  padding-top: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.atelier-stills figcaption span { color: var(--brass); }

/* service clauses */
.clauses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s6);
  border-top: 1px solid var(--line);
  counter-reset: clause;
}
.clause {
  padding: var(--s4) var(--s4) var(--s4) 0;
  border-right: 1px solid var(--line-soft);
  counter-increment: clause;
}
.clause + .clause { padding-left: var(--s4); }
.clause:last-child { border-right: 0; }
.clause::before {
  content: counter(clause, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--brass);
}
.clause h3 { font-size: 21px; margin: 12px 0 8px; }
.clause p { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 34ch; }

/* ==========================================================================
   SHOP
   ========================================================================== */
.shop-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--s5);
  align-items: end;
  padding: var(--s7) 0 var(--s5);
  border-bottom: 1px solid var(--line);
}
.shop-head h1 {
  font-size: clamp(40px, 5vw, 72px);
  margin-top: 14px;
}
.shop-head-side {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-head-side p {
  max-width: 34ch;
  margin-left: auto;
  line-height: 1.85;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--bone-dim);
}
.shop-head-side .shop-count {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--brass);
}

.shop-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 14px 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
#filterBar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: center;
}
.chip {
  position: relative;
  padding: 4px 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.chip:hover { color: var(--bone); }
.chip.is-active { color: var(--bone); }
.chip.is-active::after { transform: scaleX(1); }

.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.sort select {
  appearance: none;
  padding: 7px 26px 7px 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone);
  background: transparent;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
                    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}
.sort select:focus { outline: none; border-color: var(--brass); }
.sort select option { background: var(--ink-2); color: var(--bone); }

#shopGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5) var(--s3);
  padding: var(--s5) 0 var(--s7);
}
.shop-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-bottom: var(--s7);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* product card — shared by shop, related, home */
.p-card { display: block; }
.p-media {
  position: relative;
  overflow: hidden;
  background: var(--matte);
  aspect-ratio: 3 / 4;
}
.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s;
}
.p-card:hover .p-media img { transform: scale(1.035); opacity: 0.86; }
.p-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none;
}
.p-card:hover .p-media::after { border-color: rgba(193, 154, 88, 0.5); }
.p-quick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 11px 14px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(16, 13, 11, 0.82);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.p-card:hover .p-quick { transform: none; }
.p-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-top: 11px;
}
.p-meta h3 {
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--bone);
}
.p-type {
  display: block;
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22ch;
}
.p-price {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--bone);
  text-align: right;
  white-space: nowrap;
}
.p-price s {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--muted);
}

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s6);
  align-items: start;
  padding: var(--s5) 0 var(--s7);
}
#crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: var(--s3) 0 0;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
#crumbs a { color: var(--muted); transition: color 0.2s; }
#crumbs a:hover { color: var(--brass); }
#crumbs span { color: var(--brass-deep); }

.pdp-gallery { position: relative; }
.pdp-frame {
  position: relative;
  overflow: hidden;
  background: var(--matte);
}
#pdpMain {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: var(--px, 50%) var(--py, 50%);
  transform: scale(var(--pz, 1));
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), object-position 0.75s ease;
}
.pdp-frame-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 9px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(16, 13, 11, 0.78);
  pointer-events: none;
}
#pdpThumbs {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 10px;
  margin-top: 12px;
}
#pdpThumbs button {
  padding: 0;
  border: 1px solid transparent;
  background: var(--matte);
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
}
#pdpThumbs button img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
#pdpThumbs button:hover { opacity: 0.85; }
#pdpThumbs button.is-active { opacity: 1; border-color: var(--brass); }

.pdp-detail {
  position: sticky;
  top: 84px;
  padding-top: 6px;
}
.pdp-cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.pdp-cat::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
}
.pdp-detail h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
}
#pdpPrice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--bone);
}
#pdpPrice s { font-size: 12px; color: var(--muted); }

.pdp-rule {
  margin: var(--s4) 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.pdp-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 11px;
}
.pdp-label b { color: var(--bone-dim); font-weight: 400; letter-spacing: 0.06em; }
#sizeRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.size-btn:hover { color: var(--bone); border-color: var(--bone-dim); }
.size-btn.is-active {
  color: var(--ink);
  background: var(--bone);
  border-color: var(--bone);
}
#sizeNote {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.pdp-buy {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: var(--s4);
}
.qty {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  border: 1px solid var(--line);
}
.qty button {
  height: 100%;
  min-height: 52px;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--bone-dim);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.qty button:hover { color: var(--brass); }
.qty span {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--bone);
}
.pdp-buy .btn { min-height: 52px; }

.pdp-notes {
  margin-top: var(--s4);
  border-top: 1px solid var(--line-soft);
}
.pdp-notes div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s3);
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pdp-notes dt {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 3px;
}
.pdp-notes dd { font-size: 12.5px; line-height: 1.65; color: var(--bone-dim); }
#pdpDesc {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--bone-dim);
  max-width: 52ch;
}

/* related */
.related {
  padding: var(--s6) 0 var(--s7);
  border-top: 1px solid var(--line);
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.related-head h2 { font-size: clamp(24px, 2.6vw, 34px); }
#relatedGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}

/* ==========================================================================
   BAG
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: var(--s6);
  align-items: start;
  padding-bottom: var(--s7);
}
.cart-head,
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 110px 74px;
  gap: var(--s3);
  align-items: center;
}
.cart-head {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-head span:nth-child(2),
.cart-head span:nth-child(3) { text-align: center; }
.cart-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-prod {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.cart-prod img {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--matte);
}
.cart-prod h3 {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.cart-prod span {
  display: block;
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-qty {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  border: 1px solid var(--line);
  justify-self: center;
  width: 100%;
  max-width: 112px;
}
.cart-qty button {
  height: 34px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--bone-dim);
  background: none;
  border: 0;
  cursor: pointer;
}
.cart-qty button:hover { color: var(--brass); }
.cart-qty span {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
}
.cart-line {
  font-family: var(--f-mono);
  font-size: 12px;
  text-align: center;
  color: var(--bone);
}
.cart-remove {
  justify-self: end;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cart-remove:hover { color: var(--danger); border-color: var(--danger); }

.cart-summary {
  position: sticky;
  top: 88px;
  padding: var(--s4);
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.cart-summary h2,
.ck-summary h2 {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--bone-dim);
}
.sum-row span:last-child { color: var(--bone); white-space: nowrap; }
.sum-row.is-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--bone);
}
.sum-note {
  margin: 12px 0 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.cart-summary .btn { margin-top: 4px; }

.cart-empty {
  padding: var(--s7) 0 var(--s8);
  max-width: 46ch;
}
.cart-empty h2 { font-size: clamp(28px, 3vw, 40px); }
.cart-empty p {
  margin: 14px 0 26px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--bone-dim);
}

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: var(--s6);
  align-items: start;
  padding: var(--s5) 0 var(--s7);
}
.ck-block {
  padding: 0 0 var(--s5);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--line-soft);
}
.ck-block:last-of-type { border-bottom: 0; }
.ck-block > h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 21px;
  margin-bottom: var(--s4);
}
.ck-block > h2 em {
  font-family: var(--f-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.16em;
  color: var(--brass);
}
.ck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3) var(--s3);
}
.ck-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ck-grid .span-2 { grid-column: 1 / -1; }
.field label,
.field > span {
  display: block;
  margin-bottom: 7px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  width: 100%;
  padding: 10px 0;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.2s;
}
.field input::placeholder { color: #6b6157; }
.field input:focus { outline: none; border-bottom-color: var(--brass); }

#shipOpts { display: grid; gap: 10px; }
#shipOpts label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
#shipOpts label:hover { border-color: var(--bone-dim); }
#shipOpts label.is-active {
  border-color: var(--brass);
  background: rgba(193, 154, 88, 0.06);
}
#shipOpts b {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--bone);
}
#shipOpts small {
  display: block;
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
#shipOpts label > span:last-of-type {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--bone);
}
#ckShipNote {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.form-err {
  min-height: 18px;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--danger);
}

.ck-summary {
  position: sticky;
  top: 88px;
  padding: var(--s4);
  background: var(--ink-2);
  border: 1px solid var(--line);
}
#ckItems { padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.ck-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
}
.ck-item img {
  width: 52px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--matte);
}
.ck-item h4 {
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
}
.ck-item span {
  display: block;
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ck-item b {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--bone);
}
.ck-summary .btn { margin-top: 18px; }
.ck-secure {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   ORDER COMPLETE
   ========================================================================== */
.done-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s7) 0 var(--s8);
}
.done-head { text-align: center; margin-bottom: var(--s5); }
.done-head h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  margin: 16px 0 12px;
}
.done-head p {
  max-width: 44ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
  color: var(--bone-dim);
}
.ticket {
  padding: var(--s4);
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.ticket-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.ticket-head > div > span {
  display: block;
  margin-bottom: 7px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-head strong {
  font-family: var(--f-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--brass);
  letter-spacing: 0.02em;
}
.ticket-head > div:nth-child(2) strong,
.ticket-head > div:nth-child(3) strong { color: var(--bone); }
.ticket-items { padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.ticket-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--bone-dim);
}
.ticket-item span:last-child {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--bone);
  white-space: nowrap;
}
.done-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--s5);
}

/* ==========================================================================
   ABOUT / CONTACT
   ========================================================================== */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--s6);
  align-items: end;
  padding: var(--s7) 0 var(--s6);
  border-bottom: 1px solid var(--line);
}
.about-hero h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  margin-top: 16px;
}
.about-hero-fig {
  margin: 0;
  position: relative;
}
.about-hero-fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--matte);
}
.about-hero-fig figcaption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s6);
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--line);
}
.about-side {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  line-height: 2;
}
.about-copy p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--bone-dim);
  max-width: 62ch;
}
.about-copy p + p { margin-top: 16px; }
.about-copy p:first-child { color: var(--bone); font-size: 16px; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  padding: var(--s6) 0;
}
.about-fact {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.about-fact span {
  display: block;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.about-fact b {
  display: block;
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--bone);
}
.about-fact p { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s6);
  padding: var(--s6) 0 var(--s7);
}
.contact-lead h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: var(--s4); }
.contact-lead p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--bone-dim);
  max-width: 50ch;
}
.contact-lead p + p { margin-top: 12px; }
.contact-card {
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.contact-card div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--s3);
  padding: 16px var(--s4);
  border-bottom: 1px solid var(--line-soft);
}
.contact-card div:last-child { border-bottom: 0; }
.contact-card dt {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 3px;
}
.contact-card dd { font-size: 13px; line-height: 1.7; color: var(--bone-dim); }
.contact-card dd a { color: var(--bone); border-bottom: 1px solid var(--line); }
.contact-card dd a:hover { border-color: var(--brass); color: var(--brass); }

/* ==========================================================================
   ADMIN — order ledger
   ========================================================================== */
.ad-body { background: var(--ink); }
.ad-body .field input {
  width: 100%;
  padding: 10px 0;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.ad-body .field input:focus { outline: none; border-bottom-color: var(--brass); }
.ad-body .field > span {
  display: block;
  margin-bottom: 7px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* gate */
.ad-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s5);
  background:
    radial-gradient(circle at 20% 0%, rgba(193, 154, 88, 0.09), transparent 55%),
    var(--ink);
}
.ad-gate-card {
  width: 100%;
  max-width: 392px;
  padding: var(--s5);
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.ad-gate-card .wordmark {
  display: block;
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.12em;
  color: var(--bone);
}
.ad-gate-card > p {
  margin: 14px 0 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.ad-note {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.ad-err {
  min-height: 16px;
  margin: 8px 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--danger);
}

/* shell */
.ad-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.ad-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--s4) var(--s3);
  border-right: 1px solid var(--line);
  background: var(--ink-2);
}
.ad-side .wordmark {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--bone);
}
.ad-side > small {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.ad-nav {
  display: flex;
  flex-direction: column;
  margin-top: var(--s4);
  border-top: 1px solid var(--line-soft);
}
.ad-nav a,
.ad-nav .is-static {
  padding: 11px 0 11px 14px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.ad-nav .is-static { cursor: default; opacity: 0.55; }
.ad-nav a.is-active { color: var(--bone); }
.ad-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--brass);
}
.ad-nav a:hover { color: var(--bone); }
.ad-side-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: var(--s3);
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ad-side-foot button,
.ad-side-foot a {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: color 0.2s;
}
.ad-side-foot button:hover,
.ad-side-foot a:hover { color: var(--brass); }

.ad-main {
  padding: var(--s5) var(--s5) var(--s8);
  min-width: 0;
}
.ad-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.ad-top h1 { font-size: clamp(26px, 2.8vw, 36px); }
.ad-tools { display: flex; align-items: center; gap: 12px; }
.ad-lang {
  display: flex;
  border: 1px solid var(--line);
}
.ad-lang button {
  padding: 8px 11px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.ad-lang button.is-active { background: var(--bone); color: var(--ink); }

.ad-btn {
  padding: 10px 18px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ad-btn:hover { background: var(--bone); border-color: var(--bone); }
.ad-btn--ghost {
  color: var(--bone-dim);
  background: transparent;
  border-color: var(--line);
}
.ad-btn--ghost:hover { color: var(--bone); background: transparent; border-color: var(--bone-dim); }
.ad-btn--danger {
  color: var(--danger);
  background: transparent;
  border-color: rgba(208, 131, 106, 0.4);
}
.ad-btn--danger:hover { background: rgba(208, 131, 106, 0.12); border-color: var(--danger); color: var(--danger); }
.ad-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--s4);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.ad-stat {
  padding: 18px;
  background: var(--ink-2);
}
.ad-stat span {
  display: block;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-stat strong {
  display: block;
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--bone);
}
.ad-stat:nth-child(4) strong { color: var(--brass); }

.ad-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s4);
}
.ad-search { flex: 1; max-width: 340px; }
.ad-search input {
  width: 100%;
  padding: 9px 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.ad-search input::placeholder { color: var(--muted); }
.ad-search input:focus { outline: none; border-bottom-color: var(--brass); }

.ad-panel {
  margin-top: var(--s3);
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow-x: auto;
}
.ad-table {
  width: 100%;
  border-collapse: collapse;
}
.ad-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ad-table td {
  padding: 14px;
  font-size: 12.5px;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:hover { background: rgba(239, 230, 216, 0.03); }
.ad-table .o-no {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--brass);
  border-bottom: 1px solid transparent;
}
.ad-table .o-no:hover { border-color: var(--brass); }
.ad-table .o-cust { color: var(--bone); }
.ad-table .o-cust span {
  display: block;
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  color: var(--muted);
}
.ad-table .o-actions { text-align: right; }
.ad-more-btn {
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-soft);
  cursor: pointer;
}
.ad-more-btn:hover { color: var(--bone); border-color: var(--line); }
.ad-empty {
  padding: var(--s6);
  text-align: center;
}
.ad-empty h3 { font-size: 24px; }
.ad-empty p {
  margin: 12px auto 20px;
  max-width: 40ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.ad-badge {
  display: inline-block;
  padding: 4px 9px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.ad-badge.st-pending { color: #c19a58; border-color: rgba(193, 154, 88, 0.42); }
.ad-badge.st-paid { color: #8fae86; border-color: rgba(143, 174, 134, 0.42); }
.ad-badge.st-shipped { color: #9fb0c4; border-color: rgba(159, 176, 196, 0.42); }
.ad-badge.st-delivered { color: var(--bone); border-color: var(--line); }
.ad-badge.st-cancelled { color: var(--danger); border-color: rgba(208, 131, 106, 0.42); }

/* floating row menu */
.ad-menu {
  position: fixed;
  z-index: 90;
  display: none;
  min-width: 170px;
  padding: 6px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.ad-menu.is-on { display: block; }
.ad-menu button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: none;
  border: 0;
  cursor: pointer;
}
.ad-menu button:hover { background: rgba(239, 230, 216, 0.06); color: var(--bone); }
.ad-menu button.is-danger { color: var(--danger); }

/* modal */
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: var(--s4);
  background: rgba(8, 6, 5, 0.78);
  overflow-y: auto;
}
.ad-modal.is-on { display: grid; }
.ad-modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.ad-modal-card--wide { max-width: 620px; }
.ad-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px var(--s4);
  border-bottom: 1px solid var(--line);
}
.ad-modal-head h2 { font-size: 20px; }
.ad-close {
  width: 30px;
  height: 30px;
  font-family: var(--f-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-soft);
  cursor: pointer;
}
.ad-close:hover { color: var(--bone); border-color: var(--line); }
.ad-modal-body { padding: var(--s4); max-height: 64vh; overflow-y: auto; }
.ad-modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px var(--s4);
  border-top: 1px solid var(--line);
}
.ad-modal-foot .right { display: flex; gap: 8px; margin-left: auto; }
.ad-form-row { margin-bottom: 16px; }
.ad-form-row--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ad-form-row--3 > .field { min-width: 0; }

.ad-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: var(--s4);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.ad-kv dt {
  padding: 9px 12px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--ink-2);
}
.ad-kv dd {
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--bone-dim);
  background: var(--ink-2);
  word-break: break-word;
}
.ad-items {
  max-height: 210px;
  overflow-y: auto;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}
.ad-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--bone-dim);
}
.ad-item img {
  width: 34px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--matte);
}
.ad-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--bone-dim);
}
.ad-line.is-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--bone);
}

.ad-body .toast { z-index: 120; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  #shopGrid,
  #relatedGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s5); }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: var(--s5); }
  .ck-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s5); }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: var(--s5);
  }
  .hero-figure { min-height: 0; }
  .hero-figure img { aspect-ratio: 4 / 5; height: auto; }
  #catStrip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #homeIndex { column-gap: var(--s5); }
  .atelier-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .atelier-stills { max-width: 640px; }
  .clauses { grid-template-columns: 1fr; }
  .clause {
    padding: var(--s4) 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .clause + .clause { padding-left: 0; }
  .clause:last-child { border-bottom: 0; }

  .shop-head { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s6); }
  .shop-head-side { text-align: left; }
  .shop-head-side p { margin-left: 0; }
  .shop-bar { flex-wrap: wrap; gap: 12px; }
  #shopGrid,
  #relatedGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pdp { grid-template-columns: 1fr; }
  .pdp-detail { position: static; }
  #pdpMain { aspect-ratio: 4 / 5; }

  .cart-layout,
  .ck-layout { grid-template-columns: 1fr; }
  .cart-summary,
  .ck-summary { position: static; }
  .ck-summary { order: -1; }

  .about-hero { grid-template-columns: 1fr; gap: var(--s5); align-items: start; }
  .about-body { grid-template-columns: 1fr; gap: var(--s4); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }

  .ad-shell { grid-template-columns: 1fr; }
  .ad-side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 14px var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ad-side > small { margin-top: 0; }
  .ad-nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 0 0 auto;
    border-top: 0;
  }
  .ad-nav a,
  .ad-nav .is-static {
    padding: 6px 12px;
    border-bottom: 0;
  }
  .ad-nav .is-static { display: none; }
  .ad-nav a.is-active::before { top: auto; bottom: 0; left: 12px; right: 12px; width: auto; height: 1px; }
  .ad-side-foot { display: none; }
  .ad-main { padding: var(--s4) var(--gutter) var(--s7); }
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-head {
    grid-template-columns: 1fr auto;
    gap: var(--s3);
    padding: 14px var(--gutter);
  }
  .site-head .wordmark { grid-column: 1; }
  .nav-main { display: none; }
  .nav-side { grid-column: 2; }
  .nav-toggle { display: block; }
  .announce { font-size: 9px; letter-spacing: 0.12em; padding: 9px 16px; }
  .hero-title { font-size: clamp(38px, 9vw, 54px); }
  .hero-facts { grid-template-columns: 1fr; gap: 10px; }
  .hero-facts div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 10px; }
  #catStrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #homeIndex { grid-template-columns: 1fr; }
  .index-row a { grid-template-columns: 24px 48px minmax(0, 1fr) 66px; }
  .idx-thumb { width: 48px; height: 64px; }
  .idx-arrow { display: none; }
  .atelier-stills figure:nth-child(2) { margin-top: 0; }
  .atelier-stills { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }

  #shopGrid,
  #relatedGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #shopGrid { gap: var(--s4) 12px; }
  .shop-bar { position: static; }
  #filterBar {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  #filterBar::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }

  .pdp-buy { grid-template-columns: 96px minmax(0, 1fr); }
  #pdpThumbs { grid-template-columns: repeat(3, 64px); }

  .cart-head { display: none; }
  .cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 0;
  }
  .cart-prod { grid-column: 1 / -1; grid-template-columns: 64px minmax(0, 1fr); }
  .cart-prod img { width: 64px; }
  .cart-qty { justify-self: start; max-width: 104px; }
  .cart-line { text-align: right; }
  .cart-remove { justify-self: end; }

  .ck-grid,
  .ck-grid--3 { grid-template-columns: 1fr; }
  .ticket-head { grid-template-columns: 1fr 1fr; }
  .ticket-head > div:first-child { grid-column: 1 / -1; }

  .about-facts { grid-template-columns: 1fr; gap: var(--s3); }
  .contact-card div { grid-template-columns: 84px minmax(0, 1fr); }

  .ad-top { align-items: flex-start; }
  .ad-tools { width: 100%; justify-content: space-between; }
  .ad-modal-card--wide { max-width: 100%; }
  .ad-form-row--3 { grid-template-columns: 1fr 1fr; }
  .ad-kv { grid-template-columns: 1fr; }
  .ad-modal-body { max-height: 70vh; }

  .ad-panel { border: 0; background: transparent; overflow: visible; }
  .ad-table thead { display: none; }
  .ad-table,
  .ad-table tbody,
  .ad-table tr,
  .ad-table td { display: block; width: 100%; }
  .ad-table tr {
    margin-bottom: 10px;
    padding: 6px 14px;
    background: var(--ink-2);
    border: 1px solid var(--line);
  }
  .ad-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line-soft);
    text-align: right;
  }
  .ad-table td::before {
    content: attr(data-th);
    font-family: var(--f-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
  }
  .ad-table td:last-child { border-bottom: 0; }
  .ad-table td[data-th=""]::before { content: ""; }
  .ad-table .o-actions { text-align: right; }
  .ad-table .o-cust span { text-align: right; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .hero-figure::after { display: none; }
  .page-head { padding: var(--s5) 0 var(--s4); }
  .foot-top { grid-template-columns: 1fr; gap: var(--s4); }
  .pdp-buy { grid-template-columns: 1fr; }
  .qty { max-width: 118px; }
  .pdp-buy .btn { width: 100%; }
  .ticket-head { grid-template-columns: 1fr; }
  .ticket-head strong { font-size: 20px; }
  .ad-stats { grid-template-columns: 1fr 1fr; }
  .ad-stat { padding: 14px 12px; }
  .ad-stat strong { font-size: 22px; }
  .ad-lang { display: none; }
}

