/* ==========================================================================
   ZRENVOLA — garment archive / spec sheet
   --------------------------------------------------------------------------
   Visual decisions:
   - Ground: warm bone paper, printed-ink black, one acid-lime marker colour.
   - Structure: hairline rules everywhere; content sits in ruled bands, not cards.
   - Type: Archivo for display + body; IBM Plex Mono for every piece of meta
     (numbers, codes, labels, prices). Uppercase mono always tracked wide.
   - Imagery: catalogue plates — full grey by default, colour on hover/focus.
   - Home is a ledger: an oversized title block, then a numbered index of 20
     pieces with tiny plates, then a category mosaic of unequal tiles.
   - Shapes are square. No rounded corners, no shadows, no gradients.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --paper-3: #ffffff;
  --ink: #17160f;
  --ink-soft: #3d3a31;
  --muted: #7d7869;
  --line: #cdc6b6;
  --line-strong: #17160f;
  --acid: #ccf24b;
  --acid-deep: #a8cf22;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --fs-meta: 10.5px;
  --fs-body: 14.5px;
  --fs-lede: 17px;
  --track: 0.14em;

  --pad: clamp(18px, 4vw, 52px);
  --gap: clamp(16px, 2.2vw, 32px);
  --band: clamp(28px, 4vw, 56px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
s { text-decoration: line-through; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- primitives ---------- */
.wrap { width: min(1500px, 100%); margin: 0 auto; padding: 0 var(--pad); }

.meta {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}
.meta--ink { color: var(--ink); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-3);
  font-family: var(--mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; background: var(--paper-2); border-color: var(--line); color: var(--muted); }

.link-u {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--track);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.link-u:hover { background: var(--acid); border-color: var(--ink); }

/* images behave like catalogue plates */
.plate img,
.p-media img,
.cat-tile img,
.idx-thumb img,
.cart-prod img,
.ck-item img,
.pdp-thumbs img,
#pdpMain {
  filter: grayscale(1) contrast(1.03);
  transition: filter .5s var(--ease), transform .7s var(--ease);
}
a:hover .p-media img,
a:hover .cat-tile img,
a:hover .idx-thumb img,
.p-media:hover img,
.cat-tile:hover img,
.pdp-thumbs button:hover img { filter: grayscale(0) contrast(1); }

.field { display: block; }
.field > span {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #ffffff;
}
.field input::placeholder { color: #a8a292; }

/* ==========================================================================
   1. CHROME — announcement bar, header, drawer, footer
   ========================================================================== */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px var(--pad);
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.nav-main { display: flex; flex-wrap: wrap; gap: 22px; }
.nav-main a {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-main a:hover::after { transform: scaleX(1); }

.wordmark {
  justify-self: center;
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: .36em;
  text-indent: .36em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-side { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.nav-side a {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.nav-side a:hover { background: var(--acid); }
.bag-link { display: inline-flex; align-items: center; gap: 6px; }
.bag-link [data-bag-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9.5px;
  letter-spacing: 0;
}
.bag-link:hover [data-bag-count] { background: var(--acid); color: var(--ink); }

.nav-toggle { display: none; width: 30px; height: 30px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 4px;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 18px; }
body.is-nav-open .nav-toggle span:nth-child(1) { top: 15px; transform: rotate(45deg); }
body.is-nav-open .nav-toggle span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 90px var(--pad) 40px;
  background: var(--paper);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .38s var(--ease), visibility .38s;
}
.nav-drawer.is-open { transform: translateY(0); visibility: visible; }
.nav-drawer a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.nav-drawer a:hover { padding-left: 8px; background: var(--acid); }

/* footer */
.site-foot {
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink);
  color: var(--paper);
}
.site-foot .wrap { padding-top: clamp(38px, 5vw, 64px); padding-bottom: 22px; }
.foot-top {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: clamp(34px, 4vw, 54px);
}
.foot-brand .wordmark {
  display: block;
  justify-self: start;
  color: var(--paper);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: .3em;
}
.foot-brand p {
  max-width: 34ch;
  margin-top: 18px;
  color: #b5b0a1;
  font-size: 13px;
  line-height: 1.65;
}
.foot-col h4 {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--acid);
}
.foot-col a {
  display: block;
  padding: 5px 0;
  color: #d8d3c6;
  font-size: 12.5px;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.foot-col a:hover { color: var(--acid); border-color: var(--acid); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8f8a7c;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 20px);
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* shared page heading block for inner pages */
.page-head {
  padding: clamp(30px, 4.5vw, 62px) 0 clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--ink);
}
.page-head .meta { display: block; margin-bottom: 12px; }
.page-head h1 {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.02;
}
.page-head p {
  max-width: 58ch;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: var(--fs-lede);
}

/* ==========================================================================
   2. HOME — masthead, plate row, category mosaic, ledger index, notes, cta
   ========================================================================== */
.sec { padding: var(--band) 0; }
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 18px;
}
.sec-head h2 {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -.02em;
}
.sec-head .meta { white-space: nowrap; }

/* masthead */
.hero { border-bottom: 1px solid var(--ink); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: end;
  padding-top: clamp(26px, 3.6vw, 52px);
  padding-bottom: clamp(26px, 3.6vw, 46px);
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  margin-bottom: clamp(20px, 3vw, 38px);
}
.hero-title {
  font-size: clamp(48px, 8.8vw, 132px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  text-stroke: 1px var(--ink);
}
.hero-title .title-no {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: .1em;
  vertical-align: top;
  transform: translateY(4px);
  padding: 4px 7px;
  background: var(--acid);
}
.hero-side {
  align-self: end;
  padding-left: var(--gap);
  border-left: 1px solid var(--line);
}
.hero-lede { max-width: 36ch; font-size: 14.5px; line-height: 1.68; color: var(--ink-soft); }
.hero-spec { margin-top: 22px; border-top: 1px solid var(--line); }
.hero-spec > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-spec dt { color: var(--muted); }
.hero-spec dd { color: var(--ink); text-align: right; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.hero-plates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.hero-plates .plate { margin: 0; background: var(--paper); overflow: hidden; }
.hero-plates .plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-plates .plate figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-plates .plate:hover figcaption { background: var(--acid); color: var(--ink); }

/* category mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  padding: var(--band) 0;
  border-bottom: 1px solid var(--ink);
}
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 3.6;
}
.cat-tile:nth-child(2n) { aspect-ratio: 3 / 4.3; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile span {
  position: absolute;
  left: -1px;
  bottom: -1px;
  padding: 7px 10px 6px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .2s var(--ease);
}
.cat-tile:hover span { background: var(--acid); }

/* ledger index */
.ledger { padding: var(--band) 0 0; }
#homeIndex { border-top: 1px solid var(--ink); }
.index-row { border-bottom: 1px solid var(--line); }
.index-row > a {
  display: grid;
  grid-template-columns: 42px 74px minmax(0, 1fr) 132px 104px 30px;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  padding: 11px clamp(2px, .8vw, 10px);
  transition: background .2s var(--ease), color .2s var(--ease), padding .2s var(--ease);
}
.index-row .idx-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}
.index-row .idx-thumb {
  display: block;
  width: 74px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.index-row .idx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.index-row .idx-name { min-width: 0; }
.index-row .idx-name h3 {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.index-row .idx-name > span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.index-row .idx-cat {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.index-row .idx-price {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}
.index-row .idx-arrow {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  color: var(--muted);
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.index-row > a:hover {
  background: var(--ink);
  color: var(--paper-3);
  padding-left: clamp(10px, 1.2vw, 20px);
}
.index-row > a:hover .idx-no,
.index-row > a:hover .idx-cat,
.index-row > a:hover .idx-name > span { color: #b6b1a2; }
.index-row > a:hover .idx-arrow { color: var(--acid); transform: translate(3px, -3px); }
.index-row > a:hover .idx-thumb img { filter: grayscale(0) contrast(1); }

/* notes */
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: var(--band);
}
.note { padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.4vw, 32px); border-right: 1px solid var(--line); }
.note:last-child { border-right: 0; }
.note .no {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 6px;
  background: var(--acid);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--ink);
}
.note h3 { margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.note p { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }

/* closing band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: var(--band);
  padding: clamp(28px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper);
}
.cta-band h2 {
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
  max-width: 20ch;
}
.cta-band .btn { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.cta-band .btn:hover { background: var(--paper); border-color: var(--paper); }
.cta-band p { margin-top: 12px; color: #b5b0a1; font-size: 13px; max-width: 40ch; }

/* ==========================================================================
   3. SHOP + PRODUCT — filter rail, hairline product grid, sticky plate stage
   ========================================================================== */
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 20px;
}
#filterBar { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }

.shop-tools { display: flex; align-items: center; gap: 20px; }
#shopCount {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sort-wrap { display: flex; align-items: center; gap: 8px; position: relative; }
.sort-wrap::after {
  content: "▾";
  position: absolute;
  right: 1px;
  bottom: 9px;
  font-size: 9px;
  color: var(--ink);
  pointer-events: none;
}
#sortSel {
  appearance: none;
  -webkit-appearance: none;
  min-height: 32px;
  padding: 4px 20px 4px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.grid4, #relatedGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.p-card {
  display: block;
  background: var(--paper);
  padding-bottom: 13px;
  transition: background .2s var(--ease);
}
.p-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-card:hover .p-media img { transform: scale(1.035); }
.p-quick {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.p-card:hover .p-quick { opacity: 1; transform: translateY(0); }
.p-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px 0;
}
.p-meta h3 { font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
.p-type {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.p-price { flex: none; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.p-price s { display: block; margin-top: 2px; text-align: right; font-size: 10px; color: var(--muted); }

.empty-state { grid-column: 1 / -1; padding: clamp(50px, 9vw, 110px) 20px; background: var(--paper); text-align: center; }
.empty-state h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 13.5px; }

/* product detail */
.pdp { padding-top: 20px; }
#crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
#crumbs a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }
#crumbs span { color: #b3ad9d; }

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(22px, 3.4vw, 60px);
  align-items: start;
}
.pdp-stage { position: sticky; top: 92px; }
.pdp-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
#pdpMain {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--px, 50%) var(--py, 50%);
  transform: scale(var(--pz, 1));
  transition: transform .55s var(--ease), filter .45s var(--ease);
}
.pdp-frame:hover #pdpMain { filter: grayscale(0) contrast(1); }

.pdp-thumbs { display: flex; gap: 7px; margin-top: 8px; }
.pdp-thumbs button {
  width: 60px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: .55;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.pdp-thumbs button:hover { opacity: .9; }
.pdp-thumbs button.is-active { opacity: 1; border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb-note {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-info { padding-top: 4px; }
#pdpCat {
  display: inline-block;
  padding: 4px 8px 3px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#pdpName {
  margin-top: 14px;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.028em;
}
#pdpPrice {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: .02em;
}
#pdpPrice s { margin-left: 10px; font-size: 12px; color: var(--muted); }

.pdp-desc {
  max-width: 52ch;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.pdp-field { margin-top: 24px; }
.pdp-field > .meta { display: block; margin-bottom: 9px; }
#sizeRow { display: flex; flex-wrap: wrap; gap: 6px; }
.size-btn {
  min-width: 46px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }
#sizeNote {
  display: block;
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.pdp-buy { display: flex; align-items: stretch; gap: 10px; margin-top: 24px; }
.qty { display: inline-flex; flex: none; align-items: center; border: 1px solid var(--ink); }
.qty button {
  width: 38px;
  height: 46px;
  font-family: var(--mono);
  font-size: 15px;
  transition: background .18s var(--ease);
}
.qty button:hover { background: var(--acid); }
#qtyVal {
  min-width: 34px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#addBtn { flex: 1; }

.pdp-service {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-service span { display: inline-flex; align-items: center; gap: 6px; }
.pdp-service span::before { content: ""; width: 5px; height: 5px; background: var(--acid); }

.related { margin-top: var(--band); }
.related .sec-head { border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.related #relatedGrid { border-top: 0; }

/* ==========================================================================
   4. TRANSACTION — bag, checkout, receipt; then editorial + policy pages
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-top: 28px;
}
.cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 110px 74px;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 110px 74px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-prod { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-prod img {
  flex: none;
  width: 70px;
  height: 88px;
  object-fit: cover;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.cart-prod h3 { font-size: 14px; font-weight: 500; line-height: 1.3; }
.cart-prod span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-qty { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--line); }
.cart-qty button { width: 30px; height: 32px; font-family: var(--mono); font-size: 14px; transition: background .18s var(--ease); }
.cart-qty button:hover { background: var(--acid); }
.cart-qty > span { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 11px; }
.cart-line { font-family: var(--mono); font-size: 12.5px; text-align: right; white-space: nowrap; }
.cart-remove {
  justify-self: end;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-remove:hover { color: var(--ink); border-color: var(--ink); }

.cart-summary,
.ck-aside {
  position: sticky;
  top: 92px;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--paper-3);
  border: 1px solid var(--ink);
}
.cart-summary h2,
.ck-aside h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sum-row span:last-child { color: var(--ink); white-space: nowrap; }
.sum-row.is-total {
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px solid var(--ink);
  font-size: 12.5px;
  color: var(--ink);
}
.sum-row.is-total span:last-child { font-size: 15px; }
.sum-note {
  margin: 14px 0 18px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}
.cart-summary .btn { margin-bottom: 14px; }
.cart-empty {
  padding: clamp(48px, 8vw, 100px) 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cart-empty h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -.02em; }
.cart-empty p { max-width: 40ch; margin: 10px auto 24px; color: var(--muted); font-size: 13.5px; }

/* checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-top: 26px;
}
.ck-block { padding: 18px 0 6px; border-top: 1px solid var(--ink); }
.ck-block:first-of-type { padding-top: 22px; }
.ck-block-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ck-step {
  flex: none;
  padding: 3px 6px;
  background: var(--acid);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink);
}
.ck-block-head h2 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.ck-block-head .meta { margin-left: auto; }
.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.ck-grid .span2 { grid-column: 1 / -1; }

#shipOpts { display: grid; gap: 8px; }
#shipOpts label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
#shipOpts label:hover { border-color: var(--ink); }
#shipOpts label.is-active { border-color: var(--ink); background: var(--acid); }
#shipOpts b { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
#shipOpts small { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-soft); }
#shipOpts > label > span:last-of-type { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
#ckShipNote { margin-top: 10px; font-size: 11.5px; color: var(--muted); }

#ckItems { padding-top: 4px; border-top: 1px solid var(--line); }
.ck-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ck-item img { width: 52px; height: 66px; object-fit: cover; background: var(--paper-2); }
.ck-item h4 { font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.ck-item span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ck-item b { font-family: var(--mono); font-size: 11.5px; font-weight: 400; white-space: nowrap; }
#ckTotals { margin-top: 8px; }
#formErr {
  min-height: 16px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a12a17;
}
.checkout-submit { margin-top: 6px; }
.pay-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-note::before { content: ""; width: 5px; height: 5px; background: var(--acid); flex: none; }

/* order complete */
.done-wrap { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad) 0; }
.done-head { margin-bottom: 26px; text-align: center; }
.done-head .meta { display: block; margin-bottom: 10px; }
.done-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 500; letter-spacing: -.03em; }
.done-head p { max-width: 48ch; margin: 10px auto 0; color: var(--muted); font-size: 13.5px; }
#doneTicket {
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper-3);
  border: 1px solid var(--ink);
}
.ticket-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.ticket-head > div > span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-head strong { font-family: var(--mono); font-size: 19px; font-weight: 500; letter-spacing: .02em; }
.ticket-items { padding: 12px 0; }
.ticket-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ticket-item:last-child { border-bottom: 0; }
.ticket-item span:last-child { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
#doneTicket .sum-row { padding: 7px 0; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* ==========================================================================
   5. EDITORIAL + POLICY — about / contact / four fixed policy pages
   ========================================================================== */
.page-head .eyebrow,
.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.static-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-top: clamp(24px, 3.4vw, 44px);
}
.static-aside {
  position: sticky;
  top: 92px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}
.static-aside .meta { display: block; margin-bottom: 10px; }
.static-aside h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.static-aside p { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.static-body p { max-width: 66ch; margin-bottom: 1.05em; font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
.static-body p:last-child { margin-bottom: 0; }
.static-body h2 { margin: 30px 0 12px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.static-body h2:first-child { margin-top: 0; }
.static-body ul { margin: 0 0 18px; border-top: 1px solid var(--line); }
.static-body ul li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.static-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.static-body strong { font-weight: 500; color: var(--ink); }
.static-body a { border-bottom: 1px solid var(--ink); }

.about-plates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.about-plates figure { margin: 0; background: var(--paper-2); overflow: hidden; }
.about-plates img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-plates figcaption {
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: var(--band) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.about-facts > div { padding: 20px 16px; border-right: 1px solid var(--line); }
.about-facts > div:last-child { border-right: 0; }
.about-facts strong { display: block; font-family: var(--mono); font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; }
.about-facts span {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pullquote {
  max-width: 30ch;
  margin: 0 0 26px;
  padding: 22px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-card { padding: clamp(18px, 2.2vw, 26px); background: var(--paper); }
.contact-card .meta { display: block; margin-bottom: 10px; }
.contact-card a { font-size: 17px; border-bottom: 1px solid var(--ink); }
.contact-card a:hover { background: var(--acid); }
.contact-card p { margin-top: 9px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* policy prose (content injected by render-policies.js) */
.prose { max-width: 860px; padding-top: clamp(24px, 3.4vw, 40px); }
.prose h2 {
  margin: 32px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { max-width: 72ch; margin-bottom: 1em; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.prose ul { margin: 0 0 18px; border-top: 1px solid var(--line); }
.prose li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { border-bottom: 1px solid var(--ink); color: var(--ink); }

/* ==========================================================================
   6. ADMIN — the stock ledger. Ink sidebar, paper desk, monospaced figures.
   ========================================================================== */
body.ad-body {
  background: var(--paper-2);
  color: var(--ink);
}
.ad-body #adApp { min-height: 100vh; }

/* --- password gate --- */
.ad-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--paper-2);
}
.ad-gate-card {
  width: min(392px, 100%);
  padding: 34px 30px 32px;
  background: var(--paper-3);
  border: 1px solid var(--ink);
}
.ad-gate-card .wordmark { font-size: 14px; letter-spacing: .22em; }
.ad-gate-card > p {
  margin: 18px 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-gate-card .field { margin-bottom: 6px; }

/* --- shell --- */
.ad-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.ad-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid var(--ink);
}
.ad-side .wordmark { color: var(--paper); font-size: 14px; letter-spacing: .22em; }
.ad-side > small {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .45);
}
.ad-nav {
  display: flex;
  flex-direction: column;
  margin-top: 34px;
  border-top: 1px solid rgba(239, 234, 224, .18);
}
.ad-nav a,
.ad-nav .is-static {
  padding: 12px 0 12px 10px;
  border-bottom: 1px solid rgba(239, 234, 224, .12);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .5);
}
.ad-nav a {
  position: relative;
  color: var(--paper);
  text-decoration: none;
}
.ad-nav a.is-active { color: var(--acid); }
.ad-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--acid);
}
.ad-nav .is-static { color: rgba(239, 234, 224, .34); cursor: default; }
.ad-side-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(239, 234, 224, .18);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ad-side-foot button,
.ad-side-foot a {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .62);
  text-decoration: none;
  cursor: pointer;
}
.ad-side-foot button:hover,
.ad-side-foot a:hover { color: var(--acid); }

.ad-main { min-width: 0; padding-bottom: 70px; }
.ad-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px 22px;
  border-bottom: 1px solid var(--ink);
}
.ad-top h1 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
}
.ad-tools { display: flex; align-items: center; gap: 12px; }
.ad-lang {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--paper-3);
}
.ad-lang button {
  padding: 8px 13px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.ad-lang button.is-active { background: var(--ink); color: var(--paper); }

/* --- buttons --- */
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.ad-btn:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.ad-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ad-btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ad-btn--danger { background: transparent; color: #a5432f; border-color: #d9bdb4; }
.ad-btn--danger:hover { background: #a5432f; border-color: #a5432f; color: var(--paper); }

/* --- stats --- */
.ad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 34px;
  border-bottom: 1px solid var(--ink);
}
.ad-stat {
  padding: 20px 22px 22px;
  border-left: 1px solid var(--line);
}
.ad-stat:first-child { border-left: 0; padding-left: 0; }
.ad-stat span {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-stat strong {
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 500;
  letter-spacing: -.02em;
}

/* --- toolbar + table --- */
.ad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 34px;
  border-bottom: 1px solid var(--line);
}
.ad-search { display: block; }
.ad-search input {
  width: 268px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
}
.ad-search input:focus { outline: none; border-color: var(--ink); }
.ad-search input::placeholder { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.ad-note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-panel { padding: 0 34px; overflow-x: auto; }
.ad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ad-table thead th {
  padding: 13px 10px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  white-space: nowrap;
}
.ad-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ad-table tbody tr:hover td { background: var(--paper-3); }
.o-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.o-no:hover { border-bottom-color: var(--ink); }
.o-cust { font-weight: 500; }
.o-cust span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--muted);
}

.ad-badge {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ad-badge.st-pending { color: #8a6a12; background: #f6ecc8; }
.ad-badge.st-paid { color: #2f5c8a; background: #e2eaf4; }
.ad-badge.st-shipped { color: #3f5f28; background: #e7eecf; }
.ad-badge.st-delivered { color: #1f6b52; background: #dcefe6; }
.ad-badge.st-cancelled { color: #8c3a2c; background: #f4e0da; }

.o-actions { text-align: right; white-space: nowrap; }
.ad-more-btn {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.ad-more-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --- row action menu --- */
.ad-menu {
  position: fixed;
  z-index: 300;
  display: none;
  width: 176px;
  padding: 5px;
  background: var(--paper-3);
  border: 1px solid var(--ink);
}
.ad-menu.is-on { display: block; }
.ad-menu button {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.ad-menu button:hover { background: var(--ink); color: var(--paper); }
.ad-menu button.is-danger { color: #a5432f; }
.ad-menu button.is-danger:hover { background: #a5432f; color: var(--paper); }

/* --- modal --- */
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(23, 22, 15, .56);
}
.ad-modal.is-on { display: flex; }
.ad-modal-card {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: 88vh;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.ad-modal-card--wide { width: min(720px, 100%); }
.ad-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--ink);
}
.ad-modal-head h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.ad-close {
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.ad-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ad-modal-body { padding: 20px 22px; overflow-y: auto; }
.ad-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.ad-modal-foot .right { display: flex; gap: 10px; margin-left: auto; }

.ad-kv {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}
.ad-kv dt,
.ad-kv dd {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.ad-kv dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-kv dd { margin: 0; color: var(--ink); }

.ad-items { border-top: 1px solid var(--ink); }
.ad-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ad-item img {
  width: 44px;
  height: 55px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.ad-item h4 {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}
.ad-item div > span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-item b { font-family: var(--mono); font-size: 11px; font-weight: 500; }

.ad-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.ad-line span:first-child { color: var(--ink-soft); }
.ad-line span:last-child { font-family: var(--mono); font-size: 11px; }
.ad-line.is-total {
  margin-top: 4px;
  padding-top: 12px;
  border-bottom: 0;
  border-top: 1px solid var(--ink);
  font-weight: 500;
}
.ad-line.is-total span:last-child { font-size: 13px; }

.ad-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.ad-form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-form-row .field input,
.ad-form-row .field select { min-height: 40px; font-size: 13px; }

.ad-empty {
  padding: 72px 20px;
  text-align: center;
}
.ad-empty h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.ad-empty p {
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-err {
  min-height: 17px;
  margin: 4px 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #a5432f;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .ad-stats { padding: 0 24px; }
  .ad-top, .ad-toolbar, .ad-panel { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-side { max-width: 520px; }
  .pdp-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pdp-stage { position: static; }
  .cart-layout,
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary,
  .ck-aside { position: static; }
  .static-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .static-aside { position: static; display: flex; gap: 18px; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .ad-shell { display: block; }
  .ad-side {
    position: static;
    height: auto;
    padding: 18px 20px 0;
  }
  .ad-side > small { margin-bottom: 14px; }
  .ad-nav {
    flex-direction: row;
    gap: 18px;
    margin-top: 0;
    padding-bottom: 12px;
    border-top: 0;
    border-bottom: 1px solid rgba(239, 234, 224, .18);
    overflow-x: auto;
  }
  .ad-nav a,
  .ad-nav .is-static {
    padding: 6px 0;
    border-bottom: 0;
    white-space: nowrap;
  }
  .ad-nav a.is-active::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; }
  .ad-side-foot {
    flex-direction: row;
    gap: 18px;
    margin-top: 12px;
    padding: 12px 0;
  }
  .ad-main { padding-bottom: 48px; }
  .ad-top { padding-top: 22px; }
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .ad-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ad-stat:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .ad-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav-main { display: none; }
  .nav-toggle { display: inline-flex; }
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index-row > a { grid-template-columns: 34px 60px minmax(0, 1fr) 96px 30px; }
  .index-row .idx-price { display: none; }
}

@media (max-width: 760px) {
  :root { --pad: 18px; }
  .announce { font-size: 8.5px; letter-spacing: .1em; }
  .hero-title { font-size: clamp(38px, 13vw, 68px); }
  .hero-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  #filterBar { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .shop-tools { width: 100%; justify-content: space-between; }
  .cart-head { display: none; }
  .cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .cart-row .cart-qty { grid-column: 1; }
  .cart-row .cart-line { grid-column: 2; grid-row: 1; justify-self: end; }
  .cart-row .cart-remove { grid-column: 2; grid-row: 2; justify-self: end; }
  .ck-grid { grid-template-columns: minmax(0, 1fr); }
  .ck-grid.span2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .about-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }

  /* admin table becomes a stack of cards */
  .ad-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ad-tools { width: 100%; justify-content: space-between; }
  .ad-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ad-search, .ad-search input { width: 100%; }
  .ad-panel { padding: 0 18px; overflow-x: visible; }
  .ad-table { display: block; }
  .ad-table thead { display: none; }
  .ad-table tbody,
  .ad-table tr,
  .ad-table td { display: block; width: 100%; }
  .ad-table tbody tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: var(--paper-3);
  }
  .ad-table tbody tr:hover td { background: transparent; }
  .ad-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 13px;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  .ad-table tbody td::before {
    content: attr(data-th);
    flex: none;
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
  }
  .ad-table tbody td:last-child { border-bottom: 0; }
  .ad-table tbody td.o-cust { display: block; text-align: left; }
  .ad-table tbody td.o-cust::before { display: block; margin-bottom: 4px; }
  .ad-table tbody td.o-actions { justify-content: flex-end; }
  .ad-table tbody td.o-actions::before { content: none; }
  .ad-more-btn { width: 100%; padding: 10px; }
  .ad-modal { padding: 12px; }
  .ad-modal-card { max-height: 94vh; }
  .ad-form-row,
  .ad-form-row--3 { grid-template-columns: minmax(0, 1fr); }
  .ad-kv { grid-template-columns: 92px minmax(0, 1fr); }
  .ad-stat strong { font-size: 19px; }
}

@media (max-width: 520px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-row > a { grid-template-columns: 26px 52px minmax(0, 1fr) 26px; }
  .index-row .idx-cat { display: none; }
  .pdp-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp-buy { flex-direction: column; align-items: stretch; }
  .pdp-buy .btn { width: 100%; }
  .qty { justify-content: space-between; }
  .about-plates { grid-template-columns: minmax(0, 1fr); }
  .done-actions { flex-direction: column; }
  .done-actions .btn { width: 100%; }
  .ad-stats { padding: 0 18px; }
  .ad-top, .ad-toolbar { padding-left: 18px; padding-right: 18px; }
  .ad-modal-body { padding: 16px; }
  .ad-modal-head { padding: 14px 16px; }
  .ad-modal-foot { padding: 12px 16px; flex-wrap: wrap; }
  .ad-modal-foot .right { width: 100%; }
  .ad-modal-foot .right .ad-btn { flex: 1; }
}

@media (max-width: 390px) {
  .hero-spec { grid-template-columns: minmax(0, 1fr); }
  .ad-lang button { padding: 8px 10px; }
  .ad-stat { padding-right: 10px; }
}
