/* ============================================================
   DRELNOVIA — house ledger design system
   Palette: espresso ink, bone paper, oxblood, umber
   Type: Fraunces (display serif) / Jost (workhorse sans)
   ============================================================ */

:root {
  --ink: #171310;
  --ink-2: #221c17;
  --ink-soft: #3c332b;
  --paper: #f5efe4;
  --paper-2: #ebe1d0;
  --cream: #fbf7ef;
  --umber: #7c4b2f;
  --ochre: #b98a5c;
  --oxblood: #5c1d20;
  --olive: #3f4237;
  --line: #d7c9b2;
  --line-soft: #e6dccb;
  --line-dark: rgba(245, 239, 228, 0.16);
  --muted: #857868;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(18px, 4.2vw, 68px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 24px 60px -40px rgba(23, 19, 16, 0.55);
}

*,
*::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;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
ul, ol { list-style: none; }
s { text-decoration-thickness: 1px; }

::selection { background: var(--oxblood); color: var(--cream); }

.wrap { max-width: 1340px; margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--umber);
}

.muted { color: var(--muted); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  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(--oxblood); border-color: var(--oxblood); }
.btn--wine { background: var(--oxblood); border-color: var(--oxblood); }
.btn--wine:hover { background: var(--ink); border-color: var(--ink); }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.link-u {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-u:hover { color: var(--oxblood); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.arrow-link span { transition: transform 0.35s var(--ease); }
.arrow-link:hover span { transform: translate(3px, -3px); }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span,
.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
select { border-radius: 0; }

/* ---------- announce + header ---------- */
.announce {
  background: var(--ink);
  color: rgba(251, 247, 239, 0.82);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px var(--pad);
  background: rgba(245, 239, 228, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-main {
  display: flex;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-main a { position: relative; padding: 4px 0; color: var(--ink-soft); }
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--oxblood);
  transition: width 0.35s var(--ease);
}
.nav-main a:hover { color: var(--ink); }
.nav-main a:hover::after { width: 100%; }

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  line-height: 1;
  white-space: nowrap;
}

.nav-side {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-contact { color: var(--ink-soft); }
.nav-contact:hover { color: var(--oxblood); }
.bag-link { display: inline-flex; align-items: baseline; gap: 6px; }
.bag-link [data-bag-count] {
  display: inline-block;
  min-width: 18px;
  padding: 1px 4px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 24px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 8px; }
.nav-toggle span:last-child { top: 16px; }
body.is-nav-open .nav-toggle span:first-child { top: 12px; transform: rotate(45deg); }
body.is-nav-open .nav-toggle span:last-child { top: 12px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 55;
  width: min(420px, 88vw);
  padding: 96px 30px 40px;
  background: var(--ink);
  color: var(--cream);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.nav-drawer.is-open { transform: none; }
.nav-drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
}
.nav-drawer a:hover { color: var(--ochre); }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 84px) 0 26px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line-dark);
}
.foot-brand .wordmark { display: inline-block; font-size: 24px; letter-spacing: 0.3em; }
.foot-brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(245, 239, 228, 0.62);
}
.foot-col h4 {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.42);
}
.foot-col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(245, 239, 228, 0.76);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.foot-col a:hover { color: var(--cream); padding-left: 4px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.42);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 20px);
  padding: 14px 24px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--line-dark);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- page head (interior pages) ---------- */
.page-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--pad) clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  margin-top: 14px;
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.page-head .head-note {
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- prose (policy / about / contact) ---------- */
.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 70px) var(--pad) clamp(60px, 8vw, 110px);
}
.prose h2 {
  margin: 42px 0 12px;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; font-size: 18px; }
.prose p {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.prose ul { margin: 0 0 18px; padding-left: 0; }
.prose li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--umber);
}
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--ink); }
.prose strong { font-weight: 500; color: var(--ink); }

/* ============================================================
   HOME
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(30px, 4vw, 52px) 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(24px, 4vw, 62px);
  align-items: end;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.hero-kicker {
  margin-bottom: clamp(20px, 3vw, 38px);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre);
}
.hero-title {
  font-size: clamp(50px, 7.6vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.hero-title em { font-style: normal; color: var(--ochre); }
.hero-lede {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(245, 239, 228, 0.64);
  margin-bottom: 30px;
}
.hero-copy .arrow-link { color: var(--paper); }
.hero-copy .arrow-link:hover { color: var(--ochre); }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  object-fit: cover;
  object-position: center 22%;
}
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-dark);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.48);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1340px;
  margin: clamp(30px, 4vw, 56px) auto 0;
  padding: 22px var(--pad) 26px;
  border-top: 1px solid var(--line-dark);
}
.hero-meta > div { padding-left: 16px; border-left: 1px solid var(--line-dark); }
.hero-meta > div:first-child { padding-left: 0; border-left: 0; }
.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
}
.hero-meta span {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.45);
}

/* section furniture */
.sec { padding: clamp(44px, 6vw, 88px) 0; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 48px;
  max-width: 1340px;
  margin: 0 auto clamp(24px, 3vw, 38px);
  padding: 0 var(--pad);
}
.sec-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -0.02em;
}
.sec-note {
  max-width: 32ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  text-align: right;
}

/* numbered index */
.index {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.index-row a {
  display: grid;
  grid-template-columns: 40px 88px minmax(0, 1fr) 148px 92px 30px;
  align-items: center;
  gap: 22px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}
.index-row:last-child a { border-bottom: 1px solid var(--line-soft); }
.idx-no {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.idx-thumb { overflow: hidden; display: block; }
.idx-thumb img {
  width: 88px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.idx-name h3 {
  font-size: 19px;
  font-weight: 300;
  transition: color 0.3s var(--ease);
}
.idx-name span {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.idx-cat {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--umber);
}
.idx-price {
  font-family: var(--serif);
  font-size: 15px;
  text-align: right;
}
.idx-arrow {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.index-row a:hover .idx-thumb img { transform: scale(1.06); }
.index-row a:hover .idx-name h3 { color: var(--oxblood); }
.index-row a:hover .idx-arrow { color: var(--oxblood); transform: translate(3px, -3px); }
.index-foot {
  max-width: 1340px;
  margin: 28px auto 0;
  padding: 0 var(--pad);
}

/* category band */
.cats { padding: 0 0 clamp(48px, 6vw, 92px); }
.cat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-2);
}
.cat-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.cat-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 14px;
  background: linear-gradient(transparent, rgba(23, 19, 16, 0.8));
  color: var(--cream);
  font-family: var(--serif);
  font-size: 14px;
}
.cat-tile:hover img { transform: scale(1.06); }

/* philosophy */
.philosophy {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(52px, 7vw, 104px) 0;
}
.philo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 6vw, 90px);
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.philo-grid .statement {
  font-size: clamp(27px, 4.2vw, 52px);
  line-height: 1.08;
  max-width: 17ch;
  letter-spacing: -0.02em;
}
.philo-body p {
  max-width: 46ch;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(245, 239, 228, 0.64);
}
.philo-sign {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.42);
}

/* service notes */
.services { padding: clamp(46px, 6vw, 84px) 0; background: var(--paper-2); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.svc { border-top: 1px solid var(--umber); padding-top: 18px; }
.svc-no { font-family: var(--serif); font-size: 26px; color: var(--umber); }
.svc h3 { margin: 10px 0 8px; font-size: 20px; }
.svc p { max-width: 34ch; font-size: 13px; line-height: 1.85; color: var(--ink-soft); }

/* closing band */
.cta-band {
  padding: clamp(52px, 7vw, 100px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  max-width: 20ch;
  margin: 0 auto 22px;
  font-size: clamp(30px, 4.4vw, 58px);
  letter-spacing: -0.025em;
}

/* ============================================================
   SHOP
   ============================================================ */
.shop-intro {
  max-width: 40ch;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.shop-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 32px;
  flex-wrap: wrap;
  max-width: 1340px;
  margin: 0 auto;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.chip {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); border-color: var(--ink); }
.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sort select {
  padding: 4px 4px 4px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.shop-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 18px var(--pad) 14px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
#shopGrid,
#relatedGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 22px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
#shopGrid { padding-bottom: clamp(60px, 8vw, 110px); }

/* product card */
.p-card { display: block; }
.p-media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.p-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.p-quick {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 13px 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.p-card:hover .p-media img { transform: scale(1.045); }
.p-card:hover .p-quick { transform: none; }
.p-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-top: 12px;
}
.p-meta h3 {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.25;
  transition: color 0.3s var(--ease);
}
.p-card:hover .p-meta h3 { color: var(--oxblood); }
.p-type {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.p-price {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 14px;
  white-space: nowrap;
  text-align: right;
}
.p-price s {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--cream);
}
.empty-state h3 { font-size: 26px; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--muted); }

/* ============================================================
   PDP
   ============================================================ */
.pdp {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px) var(--pad) clamp(40px, 5vw, 70px);
}
#crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
#crumbs a:hover { color: var(--ink); }
#crumbs span { color: var(--line); }
.pdp-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}
.pdp-main-wrap { overflow: hidden; background: var(--paper-2); }
#pdpMain {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 80vh;
  object-fit: cover;
  object-position: var(--px, 50%) var(--py, 50%);
  transform: scale(var(--pz, 1));
  transform-origin: center;
  transition: transform 0.65s var(--ease), object-position 0.65s var(--ease);
}
#pdpThumbs { display: flex; gap: 10px; margin-top: 12px; }
#pdpThumbs button {
  width: 76px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
#pdpThumbs button img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
#pdpThumbs button:hover { opacity: 0.8; }
#pdpThumbs button.is-active { opacity: 1; border-color: var(--ink); }

.pdp-info { padding-top: 8px; }
#pdpName {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
#pdpPrice {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 21px;
}
#pdpPrice s { font-size: 14px; color: var(--muted); }
#pdpDesc {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.opt-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
#sizeRow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.size-btn {
  min-width: 50px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.size-btn:hover { border-color: var(--ink); }
.size-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
#sizeNote { margin-bottom: 24px; font-size: 11.5px; color: var(--muted); }

.pdp-buy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.qty {
  display: grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  height: 54px;
  border: 1px solid var(--line);
}
.qty button {
  height: 100%;
  border: 0;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-soft);
}
.qty button:hover { color: var(--ink); }
#qtyVal { text-align: center; font-size: 13px; }
#addBtn { height: 54px; }

.pdp-notes {
  display: grid;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.pdp-notes b { font-weight: 500; }

.related {
  padding: clamp(40px, 5vw, 76px) 0 clamp(60px, 7vw, 100px);
  border-top: 1px solid var(--line);
}
.related .sec-head { margin-bottom: 26px; }
.related #relatedGrid { grid-template-columns: repeat(4, 1fr); gap: 24px 18px; }

/* ============================================================
   BAG
   ============================================================ */
.bag-main { padding: clamp(30px, 4vw, 54px) 0 clamp(64px, 8vw, 110px); }

.cart-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cart-empty h2 { font-size: clamp(26px, 3vw, 38px); }
.cart-empty p {
  margin: 16px auto 28px;
  max-width: 40ch;
  font-size: 14px;
  color: var(--ink-soft);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 4.4vw, 68px);
  align-items: start;
}

.cart-head,
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px 104px 74px;
  gap: 16px;
  align-items: center;
}
.cart-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-head span:nth-child(2) { text-align: center; }
.cart-head span:nth-child(3) { text-align: right; }

.cart-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-prod { display: flex; align-items: center; gap: 18px; min-width: 0; }
.cart-prod img {
  width: 84px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-2);
  flex: 0 0 auto;
}
.cart-prod h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}
.cart-prod span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-qty {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  justify-self: center;
  width: 104px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--cream);
}
.cart-qty button {
  height: 100%;
  border: 0;
  background: none;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.cart-qty button:hover { color: var(--oxblood); }
.cart-qty span { text-align: center; font-size: 12px; }

.cart-line {
  justify-self: end;
  font-family: var(--serif);
  font-size: 17px;
  white-space: nowrap;
}
.cart-remove {
  justify-self: end;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  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(--oxblood); border-color: var(--oxblood); }

.cart-summary {
  position: sticky;
  top: 108px;
  padding: 26px 26px 30px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.cart-summary h2 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.sum-row span:last-child { white-space: nowrap; }
.sum-row.is-total {
  margin-top: 12px;
  padding: 16px 0 0;
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}
.sum-note {
  margin: 16px 0 20px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.cart-summary .link-u { display: block; margin-top: 16px; text-align: center; color: var(--muted); }
.cart-summary .link-u:hover { color: var(--oxblood); }

/* ============================================================
   CHECKOUT
   ============================================================ */
.ck-main { padding: clamp(30px, 4vw, 54px) 0 clamp(64px, 8vw, 110px); }
.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.ck-block {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.ck-block:last-of-type { border-bottom: 0; }
.ck-block h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.ck-block h2 small {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.ck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.ck-grid .span-2 { grid-column: 1 / -1; }

#shipOpts { display: grid; gap: 10px; }
#shipOpts label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
#shipOpts label:hover { border-color: var(--ochre); }
#shipOpts label.is-active { border-color: var(--ink); background: #fff; box-shadow: inset 3px 0 0 var(--oxblood); }
#shipOpts b {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}
#shipOpts small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}
#shipOpts label > span:last-of-type { font-size: 13px; white-space: nowrap; }
#ckShipNote { margin-top: 12px; font-size: 11.5px; color: var(--muted); }

#ckItems { display: grid; gap: 12px; }
.ck-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.ck-item img {
  width: 54px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-2);
}
.ck-item h4 { font-family: var(--serif); font-size: 15px; font-weight: 400; line-height: 1.2; }
.ck-item span {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ck-item b { font-family: var(--serif); font-size: 15px; font-weight: 400; white-space: nowrap; }

.ck-aside {
  position: sticky;
  top: 108px;
  padding: 26px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.ck-aside h2 {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}
.ck-aside #ckTotals { margin-bottom: 6px; }
.ck-aside #ckItems { padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.ck-aside .sum-note { margin: 12px 0 0; }
.ck-aside .secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

#formErr {
  min-height: 0;
  margin-bottom: 14px;
  font-size: 12px;
  color: #9a2a25;
}
#formErr:empty { margin-bottom: 0; }
.ck-submit { margin-top: 6px; }
.ck-submit[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ============================================================
   ORDER COMPLETE
   ============================================================ */
.done-main { padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 110px); }
.done-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}
.done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 26px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
}
.done-wrap > h1 {
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -0.03em;
  line-height: 0.96;
}
.done-wrap > .done-lede {
  max-width: 46ch;
  margin: 18px auto 34px;
  font-size: 14px;
  color: var(--ink-soft);
}
#doneTicket {
  padding: clamp(22px, 3.4vw, 38px);
  background: var(--cream);
  border: 1px solid var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}
.ticket-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.ticket-head span {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-head strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.ticket-items { padding: 18px 0 6px; }
.ticket-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.ticket-item span:last-child { white-space: nowrap; }
.done-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */
.split-main { padding: 0 0 clamp(64px, 8vw, 110px); }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: clamp(36px, 5vw, 68px) 0;
}
.split-figure { position: sticky; top: 108px; }
.split-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
}
.split-figure figcaption {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.split-body h2 {
  margin: 40px 0 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.015em;
}
.split-body h2:first-child { margin-top: 0; }
.split-body p {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.split-body .lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
  color: var(--ink);
}
.split-body a { border-bottom: 1px solid var(--line); }
.split-body a:hover { border-color: var(--ink); }

.fact-list { margin: 22px 0; border-top: 1px solid var(--line); }
.fact-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.fact-list dt {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.fact-list dd { color: var(--ink-soft); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 8px;
}
.contact-card {
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p { font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); margin: 0; }
.contact-card .eyebrow { display: block; margin-bottom: 12px; }

/* ============================================================
   ADMIN / LEDGER
   ============================================================ */
.ad-body {
  background: var(--paper-2);
  font-size: 14px;
  min-height: 100vh;
}

.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ad-btn:hover { background: var(--oxblood); border-color: var(--oxblood); }
.ad-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ad-btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.ad-btn--danger { background: transparent; color: #8d2b26; border-color: #d9bcb8; }
.ad-btn--danger:hover { background: #8d2b26; border-color: #8d2b26; color: var(--cream); }
.ad-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.ad-note { font-size: 12px; line-height: 1.7; color: var(--muted); }
.ad-err { min-height: 18px; font-size: 12px; color: #9a2a25; }

/* ---------- gate ---------- */
.ad-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(185, 138, 92, 0.16), transparent 42%),
    radial-gradient(circle at 84% 82%, rgba(92, 29, 32, 0.22), transparent 46%),
    var(--ink);
}
.ad-gate-card {
  width: 100%;
  max-width: 408px;
  padding: 44px 40px 38px;
  background: var(--paper);
  border: 1px solid rgba(23, 19, 16, 0.1);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
}
.ad-gate-card .wordmark {
  display: block;
  margin-bottom: 26px;
  font-size: 24px;
  letter-spacing: 0.34em;
}
.ad-gate-card > p:not(.ad-note):not(.ad-err) {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
}
.ad-gate-card .ad-note { margin-bottom: 22px; }
.ad-gate-card .ad-err { margin: 0 0 12px; }
.ad-gate-card .field { margin-bottom: 18px; }

/* ---------- shell ---------- */
.ad-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}
.ad-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 30px 26px 24px;
  background: var(--ink);
  color: var(--paper);
}
.ad-side .wordmark { color: var(--cream); font-size: 17px; letter-spacing: 0.28em; }
.ad-side small {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.5);
}
.ad-nav {
  display: grid;
  gap: 2px;
  margin-top: 38px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ad-nav a,
.ad-nav span {
  position: relative;
  padding: 10px 0 10px 18px;
  color: rgba(245, 239, 228, 0.72);
  border-left: 1px solid rgba(245, 239, 228, 0.16);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ad-nav a:hover { color: var(--cream); }
.ad-nav a.is-active {
  color: var(--cream);
  border-color: var(--ochre);
}
.ad-nav a.is-active::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  background: var(--ochre);
  border-radius: 50%;
}
.ad-nav .is-static { color: rgba(245, 239, 228, 0.32); cursor: default; }
.ad-side-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 239, 228, 0.14);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ad-side-foot button,
.ad-side-foot a {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: rgba(245, 239, 228, 0.55);
  cursor: pointer;
  letter-spacing: inherit;
  text-transform: inherit;
  font-size: inherit;
  transition: color 0.3s var(--ease);
}
.ad-side-foot button:hover,
.ad-side-foot a:hover { color: var(--cream); }

.ad-main {
  min-width: 0;
  padding: clamp(24px, 3.4vw, 46px) clamp(20px, 3.4vw, 48px) 70px;
}
.ad-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.ad-top h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
}
.ad-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-lang {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--cream);
}
.ad-lang button {
  padding: 9px 13px;
  border: 0;
  background: none;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.ad-lang button.is-active { background: var(--ink); color: var(--cream); }

/* ---------- stats ---------- */
.ad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 26px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ad-stat {
  padding: 20px 20px 18px;
  background: var(--paper);
}
.ad-stat span {
  display: block;
  margin-bottom: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-stat strong {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---------- toolbar + table ---------- */
.ad-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.ad-search { flex: 0 1 320px; }
.ad-search input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
}
.ad-search input:focus { outline: none; border-color: var(--ink); }

.ad-panel { border: 1px solid var(--line); background: var(--paper); }
.ad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ad-table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  white-space: nowrap;
}
.ad-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  color: var(--ink-soft);
}
.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(--cream); }
.ad-table .o-no {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.ad-table .o-no:hover { border-color: var(--oxblood); color: var(--oxblood); }
.ad-table .o-cust { white-space: nowrap; }
.ad-table .o-cust span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}
.ad-table td.o-actions { width: 64px; text-align: right; }
.ad-more-btn {
  width: 34px;
  height: 30px;
  border: 1px solid transparent;
  background: none;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.ad-more-btn:hover { border-color: var(--line); background: var(--cream); color: var(--ink); }

.ad-badge {
  display: inline-block;
  padding: 4px 9px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.ad-badge.st-pending { background: #f6e6cd; color: #81511a; border-color: #e8d2b0; }
.ad-badge.st-paid { background: #dfe6d8; color: #40502f; border-color: #cbd6c1; }
.ad-badge.st-shipped { background: #dbe5eb; color: #2c4b5d; border-color: #c4d5df; }
.ad-badge.st-delivered { background: #2f4636; color: #eef4ec; border-color: #2f4636; }
.ad-badge.st-cancelled { background: #f0dcda; color: #7d2226; border-color: #e2c5c2; }

.ad-empty {
  padding: clamp(40px, 6vw, 74px) 24px;
  text-align: center;
}
.ad-empty h3 { font-size: 24px; margin-bottom: 10px; }
.ad-empty p {
  max-width: 40ch;
  margin: 0 auto 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- floating menus ---------- */
.ad-menu {
  position: fixed;
  z-index: 120;
  display: none;
  min-width: 178px;
  padding: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(23, 19, 16, 0.45);
}
.ad-menu.is-on { display: block; }
.ad-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
}
.ad-menu button:hover { background: var(--paper-2); color: var(--ink); }
.ad-menu button.is-danger { color: #9a2a25; }
.ad-menu button.is-danger:hover { background: #f6e3e1; }

/* ---------- modal ---------- */
.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(23, 19, 16, 0.55);
  overflow-y: auto;
}
.ad-modal.is-on { display: flex; }
.ad-modal-card {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2 * clamp(16px, 4vw, 56px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
  animation: adRise 0.3s var(--ease);
}
.ad-modal-card--wide { max-width: 780px; }
@keyframes adRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.ad-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.ad-modal-head h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.ad-modal-head span {
  display: block;
  margin-top: 5px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: none;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.ad-close:hover { border-color: var(--ink); color: var(--ink); }
.ad-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
}
.ad-modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.ad-modal-foot .right { margin-left: auto; display: flex; gap: 10px; }

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

.ad-items { display: grid; gap: 10px; margin-bottom: 18px; }
.ad-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}
.ad-item img {
  width: 44px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-2);
}
.ad-item h4 { font-family: var(--serif); font-size: 14px; font-weight: 400; line-height: 1.2; }
.ad-item span { display: block; margin-top: 3px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ad-item b { font-family: var(--serif); font-size: 14px; font-weight: 400; white-space: nowrap; }

.ad-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.ad-line.is-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.ad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.ad-form-row--3 { grid-template-columns: 1.2fr 0.7fr 0.9fr; }
.ad-form-row .field { margin-bottom: 14px; }

/* ---------- admin responsive ---------- */
@media (max-width: 1024px) {
  .ad-shell { grid-template-columns: 208px minmax(0, 1fr); }
  .ad-side { padding: 26px 20px 22px; }
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ad-shell { grid-template-columns: minmax(0, 1fr); }
  .ad-side {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
  }
  .ad-side .wordmark { font-size: 14px; }
  .ad-side small { display: none; }
  .ad-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 0; margin-left: auto; }
  .ad-nav a,
  .ad-nav span { padding: 4px 0 4px 10px; font-size: 9.5px; }
  .ad-nav .is-static { display: none; }
  .ad-side-foot {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: flex;
    gap: 12px;
  }
  .ad-main { padding: 22px 16px 60px; }
  .ad-top { flex-wrap: wrap; align-items: flex-start; }
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-toolbar { flex-wrap: wrap; }
  .ad-search { flex: 1 1 100%; }

  .ad-table thead { display: none; }
  .ad-table,
  .ad-table tbody,
  .ad-table tr,
  .ad-table td { display: block; width: 100%; }
  .ad-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .ad-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 6px 0;
    border: 0;
    text-align: right;
  }
  .ad-table tbody td::before {
    content: attr(data-th);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
  }
  .ad-table td.o-actions { width: 100%; padding-top: 8px; }
  .ad-table td.o-actions::before { content: ""; }
  .ad-modal-card,
  .ad-modal-card--wide { max-width: 100%; }
  .ad-modal-head { padding: 18px 18px 14px; }
  .ad-modal-body { padding: 18px; }
  .ad-modal-foot { padding: 14px 18px; flex-wrap: wrap; }
  .ad-form-row,
  .ad-form-row--3 { grid-template-columns: 1fr; }
  .ad-kv { grid-template-columns: 104px minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .ad-stats { grid-template-columns: 1fr; }
  .ad-side { flex-wrap: wrap; }
  .ad-nav { margin-left: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .cart-head,
  .cart-row { grid-template-columns: minmax(0, 1fr) 108px 92px 66px; gap: 12px; }
  .cart-prod img { width: 72px; }
  .cart-qty { width: 92px; grid-template-columns: 28px 1fr 28px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .index-row a { grid-template-columns: 34px 72px minmax(0, 1fr) 120px 84px 24px; gap: 16px; }
  .idx-thumb img { width: 72px; }
  .pdp-layout { grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
  .cart-layout { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr); gap: 30px; }
  .ck-layout { grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr); gap: 34px; }
  .foot-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-top > :nth-child(4) { display: none; }
  .split { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 900px) {
  .site-head { grid-template-columns: auto 1fr auto; padding: 16px var(--pad); }
  .nav-main { display: none; }
  .nav-toggle { display: block; }
  .nav-side { gap: 16px; }
  .wordmark { font-size: 19px; letter-spacing: 0.26em; text-indent: 0.26em; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-figure { max-width: 560px; }
  .index-row a { grid-template-columns: 28px 64px minmax(0, 1fr) 80px 24px; }
  .index-row .idx-cat { display: none; }
  .idx-thumb img { width: 64px; }
  .philo-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  #shopGrid { grid-template-columns: repeat(2, 1fr); }
  .related #relatedGrid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .ck-layout { grid-template-columns: 1fr; }
  .ck-aside { position: static; }
  .split { grid-template-columns: 1fr; }
  .split-figure { position: static; }
  .split-figure img { aspect-ratio: 4 / 3; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .page-head {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 34px;
  }
  .page-head .head-note { text-align: left; max-width: 100%; }
  .page-head h1 { font-size: clamp(32px, 8vw, 46px); }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sec-note { max-width: 100%; }

  .index-row a { grid-template-columns: 24px 58px minmax(0, 1fr) 22px; gap: 12px; padding: 12px 0; }
  .index-row .idx-price { display: none; }
  .idx-thumb img { width: 58px; }
  .idx-name h3 { font-size: 16px; }
  .idx-name span { font-size: 8.5px; }

  .cat-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile span { padding: 20px 10px 10px; font-size: 9px; }

  .pdp-layout { grid-template-columns: 1fr; }
  .pdp-info { padding-top: 0; }
  #pdpThumbs { overflow-x: auto; padding-bottom: 4px; }
  #pdpThumbs button { width: 64px; flex: 0 0 auto; }
  .pdp-buy { grid-template-columns: 1fr; }
  .qty { width: 100%; grid-template-columns: 1fr 1fr 1fr; height: 48px; }
  #addBtn { height: 50px; }
  .related #relatedGrid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }

  .cart-head { display: none; }
  .cart-row {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    padding: 16px 0;
  }
  .cart-prod { grid-column: 1 / -1; }
  .cart-prod img { width: 70px; }
  .cart-qty { justify-self: start; }
  .cart-line { justify-self: end; align-self: center; }
  .cart-remove { grid-column: 2; justify-self: end; }

  .ck-grid { grid-template-columns: 1fr; }
  .ck-block h2 { flex-wrap: wrap; gap: 6px 12px; }
  #shipOpts label { padding: 13px 14px; }

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

  .foot-top { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .foot-top > :nth-child(4) { display: block; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .split-body .lede { font-size: 18px; }
  .fact-list div { grid-template-columns: 1fr; gap: 4px; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav-contact { display: none; }
  .announce { font-size: 8.5px; letter-spacing: 0.14em; padding: 8px 12px; }
  .site-head { padding: 14px var(--pad); }
  .wordmark { font-size: 17px; letter-spacing: 0.2em; text-indent: 0.2em; }
  .nav-side { gap: 12px; font-size: 10px; }

  .hero-title { font-size: clamp(38px, 12vw, 58px); }
  .hero-lede { font-size: 13px; }

  #shopGrid { grid-template-columns: 1fr; gap: 28px; }
  .p-quick { transform: none; position: static; background: none; color: var(--muted); padding: 8px 0 0; font-size: 8.5px; }
  .cat-strip { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; }

  .cart-empty { padding-left: 4px; padding-right: 4px; }
  .cart-summary,
  .ck-aside { padding: 20px 18px; }
  .ticket-head { grid-template-columns: 1fr; }
  .done-actions .btn { width: 100%; }

  .foot-top { grid-template-columns: 1fr; }
}
