/* ==========================================================================
   BRILVAX — knit house storefront
   Design system: warm bone paper, oxblood accent, Fraunces display.
   ========================================================================== */

:root {
  --paper: #f4eee5;
  --paper-2: #eae1d3;
  --paper-3: #fbf7f1;
  --ink: #201a16;
  --ink-2: #4d4239;
  --muted: #7c6e62;
  --wine: #6c2333;
  --wine-2: #4e1825;
  --camel: #b78c5d;
  --line: rgba(32, 26, 22, 0.15);
  --line-strong: rgba(32, 26, 22, 0.38);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1320px;
  --pad: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--wine); color: var(--paper-3); }

:focus-visible { outline: 1px solid var(--wine); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine);
}

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

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-3);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover { background: var(--wine); border-color: var(--wine); color: var(--paper-3); }

.btn--wine { background: var(--wine); border-color: var(--wine); }
.btn--wine:hover { background: var(--wine-2); border-color: var(--wine-2); }

.btn--full { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }

.link-u {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}
.link-u:hover { color: var(--wine); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.text-link:hover { color: var(--wine); border-color: var(--wine); }

/* ---------- announcement + header ---------- */

.announce {
  background: var(--wine);
  color: #f7efe4;
  text-align: center;
  padding: 9px 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 76px;
  padding-inline: var(--pad);
  background: rgba(244, 238, 229, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-main a { position: relative; padding: 4px 0; }

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-main a:hover::after { transform: scaleX(1); }

.wordmark {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-left: 0.3em;
  white-space: nowrap;
  justify-self: center;
}

.nav-side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bag-link { display: inline-flex; align-items: baseline; gap: 6px; }

.bag-link [data-bag-count] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span { display: block; height: 1px; width: 100%; background: var(--ink); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 96px var(--pad) 40px;
  background: var(--paper);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}

.nav-drawer.is-open { transform: translateY(0); visibility: visible; }

.nav-drawer a {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.nav-drawer a:hover { color: var(--wine); }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 96px;
  background: var(--ink);
  color: var(--paper);
  padding: 76px 0 24px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand .wordmark {
  justify-self: start;
  color: var(--paper-3);
  font-size: 20px;
}

.foot-brand p {
  margin-top: 18px;
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 238, 229, 0.6);
}

.foot-col h4 {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  padding: 4px 0;
  font-size: 12.5px;
  color: rgba(244, 238, 229, 0.78);
  transition: color 0.3s var(--ease);
  word-break: break-word;
}

.foot-col a:hover { color: var(--paper-3); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 238, 229, 0.16);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(244, 238, 229, 0.5);
}

.foot-bottom span:last-child { text-align: right; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper-3);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- shared page furniture ---------- */

.page-head {
  padding: clamp(48px, 7vw, 84px) var(--pad) clamp(30px, 4vw, 46px);
  max-width: var(--wrap);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(38px, 6vw, 72px);
  margin: 14px 0 16px;
  letter-spacing: -0.035em;
}

.page-head p {
  max-width: 540px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.prose {
  max-width: 840px;
  margin: 0 auto;
  padding-block: clamp(44px, 6vw, 72px) 40px;
}

.prose h2 {
  font-size: 25px;
  margin: 44px 0 14px;
  letter-spacing: -0.02em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 30px 0 8px;
}

.prose p,
.prose li {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.prose ul { padding-left: 0; margin: 0 0 18px; }

.prose li {
  position: relative;
  padding-left: 18px;
}

.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--wine);
}

.prose a { border-bottom: 1px solid var(--line-strong); }

.prose a:hover { color: var(--wine); border-color: var(--wine); }

.empty-state {
  text-align: center;
  padding: 72px 20px;
}

.empty-state h3 { font-size: 26px; margin-bottom: 10px; }

.empty-state p { color: var(--muted); font-size: 13.5px; }

/* ---------- section header ---------- */

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 26px;
}

.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  margin-top: 8px;
}

.sec-head .sec-note {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 300px;
  text-align: right;
}

/* ==========================================================================
   HOME
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(38px, 5.5vw, 78px) var(--pad) clamp(46px, 6vw, 82px);
}

.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--wine);
}

.hero-lede {
  max-width: 390px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  gap: clamp(24px, 4vw, 46px);
  margin-top: clamp(36px, 5vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-meta span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.hero-figure { margin: 0; }

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-figure figcaption a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero-figure figcaption a:hover { color: var(--wine); border-color: var(--wine); }

/* numbered index */

.index-sec { padding-top: clamp(26px, 4vw, 44px); }

.index-list {
  border-top: 1px solid var(--line-strong);
}

.index-row { border-bottom: 1px solid var(--line); }

.index-row > a {
  display: grid;
  grid-template-columns: 38px 72px minmax(0, 1fr) 140px 86px 22px;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding: 11px 4px;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.index-row > a:hover { background: var(--paper-3); padding-inline: 14px 4px; }

.idx-no {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.idx-thumb { overflow: hidden; }

.idx-thumb img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: var(--paper-2);
}

.idx-name h3 {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.25;
}

.idx-name > span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.idx-cat {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.idx-price {
  font-family: var(--serif);
  font-size: 16px;
}

.idx-arrow {
  justify-self: end;
  font-size: 13px;
  color: var(--wine);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.index-row > a:hover .idx-arrow { opacity: 1; transform: none; }

.index-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}

/* category mosaic */

.cat-sec { padding-top: clamp(64px, 8vw, 104px); }

.cat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 178px;
  gap: 11px;
}

.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-2);
}

.cat-tile:first-child { grid-column: span 3; grid-row: span 2; }
.cat-tile:nth-child(2) { grid-column: span 3; }
.cat-tile:nth-child(3),
.cat-tile:nth-child(4),
.cat-tile:nth-child(5) { grid-column: span 1; }

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 18, 15, 0.72), rgba(24, 18, 15, 0) 62%);
  opacity: 0.92;
  transition: opacity 0.4s var(--ease);
}

.cat-tile:hover img { transform: scale(1.05); }
.cat-tile:hover::after { opacity: 1; }

.cat-tile > span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  z-index: 2;
  color: #fbf7f1;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.cat-tile:first-child > span { font-size: clamp(24px, 2.8vw, 36px); }

/* manifesto band */

.manifesto {
  margin-top: clamp(66px, 9vw, 108px);
  padding: clamp(54px, 7vw, 92px) var(--pad);
  background: var(--ink);
  color: var(--paper);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
}

.manifesto .eyebrow { color: var(--camel); }

.manifesto blockquote {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3.5vw, 42px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.manifesto blockquote em { color: var(--camel); }

.mani-body {
  max-width: 430px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(244, 238, 229, 0.66);
}

.mani-body + .mani-body { margin-top: 18px; }

.mani-body a {
  color: var(--paper);
  border-bottom: 1px solid rgba(244, 238, 229, 0.4);
}

.mani-body a:hover { color: var(--camel); border-color: var(--camel); }

/* services */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 7vw, 86px);
  border-top: 1px solid var(--line-strong);
}

.service {
  padding: 28px 32px 0 0;
  border-right: 1px solid var(--line);
}

.service + .service { padding-left: 32px; }
.service:last-child { border-right: 0; padding-right: 0; }

.service-no {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--wine);
  letter-spacing: 0.08em;
}

.service h3 {
  margin: 12px 0 8px;
  font-size: 19px;
}

.service p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 280px;
}

/* ==========================================================================
   SHOP
   ========================================================================== */

.shop-head { border-bottom: 0; padding-bottom: clamp(20px, 3vw, 32px); }

.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) 18px;
  border-bottom: 1px solid var(--line-strong);
}

#filterBar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.chip:hover { border-color: var(--ink); }

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-3);
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

#sortSel {
  padding: 9px 30px 9px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

#shopCount {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--pad) 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
  max-width: var(--wrap);
  margin: 22px auto 0;
  padding: 0 var(--pad);
}

.p-card { display: block; min-width: 0; }

.p-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.p-card:hover .p-media img { transform: scale(1.045); }

.p-quick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 11px 8px;
  background: rgba(32, 26, 22, 0.9);
  color: var(--paper-3);
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}

.p-card:hover .p-quick { transform: none; }

.p-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
}

.p-meta h3 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.p-type {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.p-price {
  flex: none;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
}

.p-price s {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

/* ==========================================================================
   PRODUCT
   ========================================================================== */

#crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--pad) 6px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

#crumbs a { transition: color 0.3s var(--ease); }
#crumbs a:hover { color: var(--wine); }
#crumbs span { opacity: 0.5; }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 22px) var(--pad) 0;
}

.pdp-gallery { position: sticky; top: 98px; }

.pdp-main {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--px, 50%) var(--py, 50%);
  transform: scale(var(--pz, 1));
  transition: transform 0.5s var(--ease), object-position 0.5s var(--ease);
  background: var(--paper-2);
}

#pdpThumbs {
  display: flex;
  gap: 9px;
  margin-top: 9px;
}

#pdpThumbs button {
  width: 72px;
  height: 90px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

#pdpThumbs button.is-active { opacity: 1; border-color: var(--ink); }

#pdpThumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { padding-top: 6px; }

.pdp-info h1 {
  margin: 12px 0 14px;
  font-size: clamp(31px, 3.7vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

#pdpPrice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
}

#pdpPrice s {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted);
}

.pdp-desc {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}

.pdp-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 26px 0 10px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pdp-label span:last-child {
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 11px;
}

#sizeRow { display: flex; flex-wrap: wrap; gap: 7px; }

.size-btn {
  min-width: 52px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s 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;
  color: var(--muted);
}

.pdp-buy {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  flex: none;
}

.qty button {
  width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.qty button:hover { background: var(--paper-2); }

#qtyVal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  font-size: 12.5px;
}

#addBtn { flex: 1; }

.pdp-notes {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.pdp-notes li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.pdp-notes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--wine);
}

.pdp-related { padding-top: clamp(58px, 7vw, 88px); }

.pdp-related .sec-head { margin-bottom: 24px; }

.pdp-related .product-grid { padding-inline: 0; }

/* ==========================================================================
   CART
   ========================================================================== */

#cartWrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(8px, 2vw, 18px) var(--pad) 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 96px 64px;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-head span:nth-child(3),
.cart-head span:nth-child(4) { text-align: right; }

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 96px 64px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-prod {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.cart-prod img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  background: var(--paper-2);
  flex: none;
}

.cart-prod h3 {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.3;
}

.cart-prod span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  justify-self: start;
}

.cart-qty button {
  width: 31px;
  height: 33px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.cart-qty button:hover { background: var(--paper-2); }

.cart-qty span {
  min-width: 26px;
  text-align: center;
  font-size: 11.5px;
}

.cart-line {
  justify-self: end;
  font-family: var(--serif);
  font-size: 15px;
}

.cart-remove {
  justify-self: end;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cart-remove:hover { color: var(--wine); border-color: var(--wine); }

.cart-summary {
  position: sticky;
  top: 100px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.cart-summary h2 { font-size: 22px; margin-bottom: 16px; }

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.sum-row.is-total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

.sum-note {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 18px;
}

.cart-empty {
  padding: 72px 24px;
  border: 1px solid var(--line);
  text-align: center;
}

.cart-empty h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.cart-empty p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

/* ==========================================================================
   CHECKOUT
   ========================================================================== */

.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: clamp(26px, 4vw, 60px);
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(6px, 2vw, 16px) var(--pad) 0;
}

.ck-block {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line-strong);
}

.ck-block h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 21px;
}

.ck-block h2 span {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--wine);
}

.ck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ck-grid .span-2 { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > span,
.field > label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }

.ship-opts { display: grid; gap: 8px; }

.ship-opts label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.ship-opts label:hover { border-color: var(--line-strong); }
.ship-opts label.is-active { border-color: var(--ink); background: var(--paper-3); }

.ship-opts b {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
}

.ship-opts small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.ship-opts label > span:last-of-type {
  font-family: var(--serif);
  font-size: 15px;
  flex: none;
}

.ck-paynote {
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--wine);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

.form-err {
  min-height: 17px;
  margin: 2px 0 10px;
  font-size: 12px;
  color: var(--wine);
}

.ck-summary {
  position: sticky;
  top: 100px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.ck-summary h2 { font-size: 22px; margin-bottom: 8px; }

.ck-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.ck-item img { width: 52px; height: 66px; object-fit: cover; background: var(--paper-2); }

.ck-item h4 {
  margin: 0 0 3px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.ck-item span { font-size: 10.5px; color: var(--muted); }

.ck-item b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
}

.ck-summary #ckTotals { padding-top: 12px; }

/* ==========================================================================
   ORDER COMPLETE
   ========================================================================== */

.done-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) var(--pad) 0;
  text-align: center;
}

.done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid var(--wine);
  border-radius: 50%;
  color: var(--wine);
  font-size: 18px;
}

.done-wrap h1 {
  margin: 14px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 300;
}

.done-wrap > p {
  max-width: 460px;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

#doneTicket {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  text-align: left;
}

.ticket-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
}

.ticket-head span {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticket-head strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.ticket-items { padding-top: 12px; }

.ticket-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
  font-size: 12.5px;
}

.ticket-item span:last-child { font-family: var(--serif); }

.done-actions {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: end;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 52px) var(--pad) 0;
}

.about-hero figure { margin: 0; }

.about-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}

.about-hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 300;
  line-height: 0.98;
}

.about-hero h1 em { font-style: italic; color: var(--wine); }

.about-hero .about-lede {
  max-width: 430px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 88px) var(--pad) 0;
}

.about-grid h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
}

.about-copy p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.about-copy p:last-child { margin-bottom: 0; }

.about-facts {
  margin-top: clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--line-strong);
}

.about-facts li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}

.about-facts li > span:first-child {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.about-band {
  margin-top: clamp(58px, 8vw, 96px);
  padding: clamp(48px, 6vw, 78px) var(--pad);
  background: var(--paper-2);
}

.about-band-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--wrap);
  margin: 0 auto;
}

.about-band-inner > div {
  padding: 0 28px;
  border-left: 1px solid var(--line-strong);
}

.about-band-inner > div:first-child { padding-left: 0; border-left: 0; }

.about-band-inner strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1;
}

.about-band-inner span {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-band-inner p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

.about-outro {
  padding-bottom: clamp(48px, 7vw, 84px);
  border-bottom: 0;
}

.about-outro h1 { font-size: clamp(30px, 4vw, 46px); }

.about-outro .btn { margin-top: 6px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(10px, 2vw, 20px) var(--pad) 0;
}

.contact-card {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.contact-card + .contact-card { margin-top: 30px; }

.contact-card h2 {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 440px;
}

.contact-card a {
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-card a:hover { color: var(--wine); border-color: var(--wine); }

.contact-card .contact-big {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--ink);
}

.contact-aside {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.contact-aside h2 {
  font-size: 25px;
  margin-bottom: 14px;
}

.contact-aside p {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.contact-hours {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 11.5px;
  color: var(--ink-2);
}

.contact-hours span:first-child { color: var(--muted); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index-row > a { grid-template-columns: 34px 64px minmax(0, 1fr) 110px 76px 18px; }
  .idx-thumb img { width: 64px; height: 80px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-figure { max-width: 520px; }
  .hero-figure img { aspect-ratio: 5 / 6; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service + .service { padding-left: 0; }
  .service:last-child { border-bottom: 0; padding-bottom: 0; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .ck-layout { grid-template-columns: 1fr; }
  .ck-summary { position: static; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero figure { max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-band-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-band-inner > div { padding: 0 0 0 18px; }
  .about-band-inner > div:first-child { padding-left: 18px; border-left: 1px solid var(--line-strong); }
  .cat-strip { grid-auto-rows: 150px; }
}

@media (max-width: 860px) {
  .site-head { grid-template-columns: 1fr auto; height: 64px; }
  .nav-main, .nav-side .nav-contact { display: none; }
  .nav-toggle { display: flex; }
  .nav-side { grid-column: 2; }
  .wordmark { justify-self: start; font-size: 15px; }
  .site-head > .wordmark { grid-column: 1; grid-row: 1; }
  .nav-side { grid-row: 1; }
  .index-row > a { grid-template-columns: 30px 56px minmax(0, 1fr) 74px; gap: 12px; }
  .idx-thumb img { width: 56px; height: 70px; }
  .idx-cat, .idx-arrow { display: none; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .cat-tile:first-child { grid-column: span 2; grid-row: span 2; }
  .cat-tile:nth-child(2) { grid-column: span 2; }
  .cat-tile:nth-child(3),
  .cat-tile:nth-child(4),
  .cat-tile:nth-child(5) { grid-column: span 1; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; }
  .cart-prod { grid-column: 1 / -1; }
  .cart-qty { grid-column: 1; }
  .cart-line { grid-column: 2; grid-row: 2; }
  .cart-remove { grid-column: 2; grid-row: 3; justify-self: end; }
  .ticket-head { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .shop-bar { padding-bottom: 14px; }
  .shop-sort { width: 100%; justify-content: space-between; }
  .p-meta { flex-direction: column; gap: 4px; }
  .p-price { text-align: left; }
  .p-price s { display: inline; margin-left: 6px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-meta { gap: 22px; flex-wrap: wrap; }
  .index-row > a { padding: 9px 2px; }
  .idx-name h3 { font-size: 14.5px; }
  .ck-grid { grid-template-columns: 1fr; }
  .ck-grid .span-2 { grid-column: auto; }
  .pdp-buy { flex-wrap: wrap; }
  .qty { flex: 1; justify-content: space-between; }
  .qty button { width: 46px; }
  #addBtn { flex: 1 0 100%; }
  .done-wrap { text-align: left; }
  .done-mark { margin-bottom: 14px; }
  .done-wrap > p { margin: 0; }
  .done-actions { justify-content: flex-start; }
  .ticket-head { grid-template-columns: 1fr; gap: 12px; }
  .ticket-head > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .ticket-head span { margin-bottom: 0; }
  .about-facts li { grid-template-columns: 1fr; gap: 4px; }
  .site-foot { padding-top: 54px; }
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .foot-bottom { flex-direction: column; }
  .foot-bottom span:last-child { text-align: left; }
  .cat-strip { grid-auto-rows: 132px; }
}

/* ==========================================================================
   ADMIN — order ledger
   ========================================================================== */

.ad-body {
  background: var(--paper-2);
  min-height: 100vh;
}

/* password gate */

.ad-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.ad-gate-card {
  width: min(392px, 100%);
  padding: 38px 34px 34px;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
}

.ad-gate-card .wordmark {
  display: block;
  margin-bottom: 22px;
  font-size: 15px;
}

.ad-gate-card > p {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
}

.ad-gate-card .field { margin-bottom: 4px; }

.ad-err {
  min-height: 18px;
  margin: 8px 0 4px;
  font-size: 11.5px;
  color: var(--wine);
}

/* shell */

.ad-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.ad-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100vh;
  padding: 30px 26px 24px;
  background: var(--ink);
  color: var(--paper);
}

.ad-side .wordmark {
  display: block;
  color: var(--paper-3);
  font-size: 15px;
}

.ad-side > small {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--camel);
}

.ad-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 44px;
}

.ad-nav a,
.ad-nav .is-static {
  padding: 10px 0 10px 14px;
  border-left: 1px solid rgba(244, 238, 229, 0.16);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 229, 0.6);
}

.ad-nav a { transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.ad-nav a:hover { color: var(--paper-3); }

.ad-nav a.is-active {
  border-left-color: var(--camel);
  color: var(--paper-3);
}

.ad-nav .is-static { opacity: 0.34; cursor: default; }

.ad-side-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(244, 238, 229, 0.16);
}

.ad-side-foot button,
.ad-side-foot a {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 238, 229, 0.62);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.ad-side-foot button:hover,
.ad-side-foot a:hover { color: var(--camel); }

.ad-main {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px) clamp(18px, 3vw, 40px) 60px;
}

.ad-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.ad-top h1 { font-size: clamp(23px, 2.6vw, 30px); }

.ad-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-lang {
  display: inline-flex;
  border: 1px solid var(--line);
}

.ad-lang button {
  padding: 7px 11px;
  border: 0;
  background: transparent;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.ad-lang button.is-active { background: var(--ink); color: var(--paper-3); }

/* buttons */

.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-3);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.ad-btn:hover { background: var(--wine); border-color: var(--wine); }

.ad-btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.ad-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }

.ad-btn--danger {
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
}

.ad-btn--danger:hover { background: var(--wine); color: var(--paper-3); }

.ad-btn[disabled] { opacity: 0.35; cursor: not-allowed; }

/* stats */

.ad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.ad-stat {
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.ad-stat span {
  display: block;
  margin-bottom: 6px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-stat strong {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* toolbar + table */

.ad-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}

.ad-search input {
  width: 270px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
}

.ad-search input:focus { outline: none; border-color: var(--ink); }

.ad-note {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}

.ad-panel {
  border: 1px solid var(--line);
  background: var(--paper-3);
  overflow-x: auto;
}

.ad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.ad-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ad-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table tbody tr { transition: background 0.25s var(--ease); }
.ad-table tbody tr:hover { background: var(--paper); }

.o-no {
  font-family: var(--serif);
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.o-no:hover { color: var(--wine); border-color: var(--wine); }

.o-cust span {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: var(--muted);
}

.o-actions { text-align: right; }

.ad-more-btn {
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.ad-more-btn:hover { border-color: var(--ink); background: var(--paper-2); }

.ad-badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid currentColor;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ad-badge.st-pending { color: #9a6b2f; background: rgba(183, 140, 93, 0.12); }
.ad-badge.st-paid { color: #4b6070; background: rgba(75, 96, 112, 0.1); }
.ad-badge.st-shipped { color: #5a5f84; background: rgba(90, 95, 132, 0.09); }
.ad-badge.st-delivered { color: #456b4d; background: rgba(69, 107, 77, 0.1); }
.ad-badge.st-cancelled { color: #8a6a62; background: rgba(138, 106, 98, 0.1); }

.ad-empty {
  padding: 60px 22px;
  text-align: center;
}

.ad-empty h3 { font-size: 24px; margin-bottom: 8px; }
.ad-empty p { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

/* floating menus */

.ad-menu {
  position: fixed;
  z-index: 200;
  display: none;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  box-shadow: 0 18px 42px rgba(32, 26, 22, 0.14);
}

.ad-menu.is-on { display: block; }

.ad-menu button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.ad-menu button:hover { background: var(--paper-2); }
.ad-menu button.is-danger { color: var(--wine); }

/* modal */

.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 18, 15, 0.52);
}

.ad-modal.is-on { display: flex; }

.ad-modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
}

.ad-modal-card--wide { max-width: 720px; }

.ad-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.ad-modal-head h2 { font-size: 22px; line-height: 1.1; }

.ad-modal-head div > span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.ad-close:hover { border-color: var(--ink); color: var(--wine); }

.ad-modal-body { padding: 22px 24px; }

.ad-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
}

.ad-modal-foot .right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-kv {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 7px 16px;
  margin: 0 0 18px;
  font-size: 12px;
}

.ad-kv dt {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.ad-kv dd { margin: 0; line-height: 1.55; }

.ad-items {
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
}

.ad-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ad-item img,
.ad-item > span:first-child {
  width: 46px;
  height: 58px;
  object-fit: cover;
  background: var(--paper-2);
}

.ad-item h4 {
  margin: 0 0 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.ad-item span { font-size: 10px; color: var(--muted); }

.ad-item b {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 400;
}

.ad-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--ink-2);
}

.ad-line.is-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.ad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ad-form-row--3 { grid-template-columns: repeat(3, 1fr); }

.ad-modal-body .field input,
.ad-modal-body .field select,
.ad-modal-body .field textarea { background: var(--paper); }

.ad-modal-body .field select { cursor: pointer; }

@media (max-width: 1080px) {
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .ad-shell { grid-template-columns: 1fr; }
  .ad-side {
    position: static;
    height: auto;
    padding: 18px 20px;
  }
  .ad-side .wordmark { font-size: 14px; }
  .ad-side > small { display: none; }
  .ad-nav {
    flex-direction: row;
    gap: 18px;
    margin-top: 14px;
    overflow-x: auto;
  }
  .ad-nav a,
  .ad-nav .is-static {
    padding: 2px 0;
    border-left: 0;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
  }
  .ad-nav a.is-active { border-bottom-color: var(--camel); }
  .ad-side-foot {
    flex-direction: row;
    gap: 20px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .ad-main { padding: 22px 18px 50px; }
  .ad-table th,
  .ad-table td { padding-inline: 11px; }
}

@media (max-width: 620px) {
  .ad-top { align-items: flex-start; }
  .ad-tools { width: 100%; justify-content: space-between; }
  .ad-search { width: 100%; }
  .ad-search input { width: 100%; }
  .ad-toolbar { flex-direction: column; align-items: stretch; }
  .ad-form-row,
  .ad-form-row--3 { grid-template-columns: 1fr; }
  .ad-modal { padding: 10px; }
  .ad-modal-head,
  .ad-modal-body,
  .ad-modal-foot { padding-inline: 18px; }
  .ad-modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .ad-modal-foot .right { justify-content: flex-end; }
  .ad-kv { grid-template-columns: 1fr; gap: 2px; }
  .ad-kv dt { margin-top: 8px; }
}

