/* ==========================================================================
   TRELNOVIA — atelier catalogue
   Design notes: printed-lookbook system. Warm parchment paper, hairline
   rules, Didone display type, oxblood ink for emphasis, brass for detail.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --paper-3: #ffffff;
  --ink: #211b17;
  --ink-soft: #5d5147;
  --ink-faint: #8c7d6f;
  --line: #d6c8b5;
  --line-dark: #b6a48d;
  --wine: #7c2e2b;
  --wine-deep: #5e211f;
  --brass: #a9823f;
  --rose: #dcc4b8;
  --cream: #ffffff;
  --ok: #3d6b55;
  --radius: 2px;
  --shadow: 0 18px 46px -28px rgba(33, 27, 23, 0.45);
  --ff-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --ff-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --step: clamp(0.72rem, 0.6rem + 0.3vw, 0.82rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(rgba(160, 138, 110, 0.12) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }

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

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

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 44px;
}

/* ---------- type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--wine);
}

.eyebrow--plain::before { display: none; }

.sec-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.muted { color: var(--ink-soft); }
.small { font-size: 12.5px; }

.link-u {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 3px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-u:hover { color: var(--wine); border-color: var(--wine); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 15px 30px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover { background: var(--ink); color: var(--cream); }

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

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

.btn--ghost { border-color: var(--line-dark); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- announce + header ---------- */

.announce {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 10px 20px;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 44px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-main,
.nav-side {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-side { justify-self: end; gap: 20px; }

.nav-main a,
.nav-contact,
.bag-link {
  position: relative;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 2px;
}

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

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

.bag-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line-dark);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.bag-link:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.bag-link [data-bag-count] {
  font-size: 9px;
  letter-spacing: 0.04em;
  background: var(--wine);
  color: var(--cream);
  border-radius: 999px;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.wordmark {
  font-family: var(--ff-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 30px;
  border: 1px solid var(--line-dark);
  background: transparent;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 14px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 12px; }
.nav-toggle span:last-child { top: 17px; }
.is-nav-open .nav-toggle span:first-child { transform: translateY(2.5px) rotate(45deg); }
.is-nav-open .nav-toggle span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  padding: 130px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-102%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}

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

.nav-drawer a {
  font-family: var(--ff-display);
  font-size: 27px;
  line-height: 1.25;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.nav-drawer a:last-child { border-bottom: 0; }

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

.site-foot {
  margin-top: 110px;
  background: var(--ink);
  color: var(--paper);
  padding: 74px 0 28px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.foot-brand .wordmark { color: var(--paper); font-size: 30px; }

.foot-brand p {
  margin-top: 20px;
  max-width: 330px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(244, 237, 226, 0.62);
}

.foot-col h4 {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

.foot-col a {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  color: rgba(244, 237, 226, 0.72);
  transition: color 0.25s var(--ease);
}

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

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(244, 237, 226, 0.16);
  padding-top: 24px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 237, 226, 0.5);
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--cream);
  padding: 13px 24px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 200;
  max-width: calc(100vw - 32px);
  text-align: center;
}

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

/* ---------- page head (static pages) ---------- */

.page-head {
  padding: 84px 0 46px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.page-head h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-head p {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- home: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  padding: 58px 0 96px;
  align-items: center;
}

.hero-copy { max-width: 470px; }

.hero-copy h1 {
  margin: 22px 0 24px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 2rem + 3.9vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

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

.hero-copy .lede {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  max-width: 400px;
}

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

.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; background: var(--brass); transform: rotate(45deg); }

.hero-plates {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: start;
}

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

.hero-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.hero-plate:hover img { transform: scale(1.045); }

.hero-plate--tall { aspect-ratio: 3 / 4.15; }

.hero-plate--short {
  aspect-ratio: 3 / 3.5;
  margin-top: 62px;
}

.hero-plate figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  color: var(--cream);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(20, 14, 11, 0.7);
}

.hero-plate figcaption b {
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---------- home: service ribbon ---------- */

.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ribbon div {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ribbon div + div { border-left: 1px solid var(--line); }

.ribbon b {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--wine);
  letter-spacing: 0.02em;
}

/* ---------- home: catalogue index ---------- */

.index-sec { padding: 92px 0 20px; }

.index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.index-head p {
  max-width: 380px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

#homeIndex { border-top: 1px solid var(--ink); }

.index-row a {
  display: grid;
  grid-template-columns: 46px 78px minmax(0, 1fr) 150px 92px 22px;
  align-items: center;
  gap: 20px;
  padding: 15px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.index-row a:hover { background: var(--paper-3); padding-left: 18px; }

.idx-no {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.idx-thumb {
  display: block;
  width: 78px;
  aspect-ratio: 3 / 3.8;
  overflow: hidden;
  background: var(--paper-2);
}

.idx-thumb img { width: 100%; height: 100%; object-fit: cover; }

.idx-name h3 {
  font-family: var(--ff-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.idx-name > span {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

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

.idx-price {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.idx-arrow { color: var(--wine); font-size: 15px; text-align: right; }

/* ---------- home: category strip ---------- */

.cat-sec { padding: 76px 0 10px; }

#catStrip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

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

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.2s var(--ease), filter 0.5s var(--ease);
}

.cat-tile:hover img { transform: scale(1.06); filter: saturate(1); }

.cat-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 12px 12px;
  background: linear-gradient(to top, rgba(24, 18, 14, 0.78), transparent);
  color: var(--cream);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}

/* ---------- home: atelier editorial ---------- */

.atelier {
  padding: 100px 0 30px;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 70px;
  align-items: center;
}

.atelier-plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.atelier-plates figure { overflow: hidden; background: var(--paper-2); aspect-ratio: 3 / 4; }
.atelier-plates figure:last-child { margin-top: 46px; }
.atelier-plates img { width: 100%; height: 100%; object-fit: cover; }

.atelier-copy .sec-title { margin: 20px 0 22px; }
.atelier-copy p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; max-width: 470px; }

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

.atelier-notes li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.atelier-notes b {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.08em;
}

.atelier-notes span {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.atelier-notes strong { color: var(--ink); }

/* ---------- home: quote band ---------- */

.quote-band {
  margin: 96px 0 0;
  background: var(--wine);
  color: var(--cream);
  padding: 84px 44px;
  text-align: center;
}

.quote-band blockquote {
  margin: 0 auto;
  max-width: 820px;
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
}

.quote-band span {
  display: block;
  margin-top: 26px;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(253, 249, 241, 0.7);
}

/* ---------- home: service triptych ---------- */

.services { padding: 92px 0 0; }

.svc-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.svc {
  padding: 30px 32px 8px 0;
  border-right: 1px solid var(--line);
}

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

.svc h3 {
  font-family: var(--ff-display);
  font-size: 23px;
  font-weight: 400;
  margin-bottom: 12px;
}

.svc p { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }

.svc span {
  display: block;
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- shop ---------- */

.shop-head { padding-top: 74px; }

.shop-head .page-head { border-bottom: 0; padding: 0; }

.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

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

.chip {
  border: 1px solid var(--line-dark);
  background: transparent;
  padding: 8px 15px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--wine); border-color: var(--wine); color: var(--cream); }

.shop-tools { display: flex; align-items: center; gap: 18px; }

#shopCount {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

#sortSel {
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  padding: 6px 22px 6px 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}

#shopGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 26px;
}

.p-card { display: block; }

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

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

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

.p-quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  padding: 10px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(140%);
  transition: transform 0.35s var(--ease);
}

.p-card:hover .p-quick { transform: translateY(0); }

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

.p-meta h3 {
  font-family: var(--ff-display);
  font-size: 18.5px;
  font-weight: 400;
  line-height: 1.25;
}

.p-type {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.p-price {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 3px;
}

.p-price s {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line-dark);
}

.empty-state h3 { font-family: var(--ff-display); font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); font-size: 14px; }

/* ---------- product ---------- */

.crumbs {
  padding: 26px 0 0;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  padding: 32px 0 20px;
  align-items: start;
}

.pdp-gallery {
  position: sticky;
  top: 116px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
}

.pdp-mainwrap {
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 3 / 3.85;
}

#pdpMain {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--px, 50%) var(--py, 50%);
  transform: scale(var(--pz, 1));
  transform-origin: var(--px, 50%) var(--py, 50%);
  transition: transform 0.7s var(--ease), object-position 0.7s var(--ease);
}

#pdpThumbs { display: flex; flex-direction: column; gap: 10px; order: -1; }

#pdpThumbs button {
  border: 1px solid transparent;
  padding: 0;
  background: var(--paper-2);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

#pdpThumbs button img { width: 100%; height: 100%; object-fit: cover; }
#pdpThumbs button:hover { opacity: 0.9; }
#pdpThumbs button.is-active { opacity: 1; border-color: var(--ink); }

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

#pdpCat {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 16px;
}

#pdpName {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 1.9vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

#pdpPrice {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#pdpPrice s { font-size: 14px; font-weight: 400; color: var(--ink-faint); }

#pdpDesc {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 480px;
}

.opt-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.opt-label span { color: var(--ink-faint); font-weight: 400; letter-spacing: 0.06em; text-transform: none; }

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

.size-btn {
  min-width: 50px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  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(--cream); }

#sizeNote {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
}

.buy-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  padding: 0 4px;
}

.qty button {
  width: 34px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 17px;
  line-height: 1;
  color: var(--ink-soft);
}

.qty button:hover { color: var(--wine); }

#qtyVal { font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; }

.buy-row #addBtn { height: 50px; }

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

.pdp-assure p {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.pdp-assure b {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
  padding-top: 2px;
}

.related-sec { padding: 96px 0 0; }

.related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.related-head h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1;
}

#relatedGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

/* ---------- cart ---------- */

.cart-page { padding-top: 62px; }

.cart-page h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 60px;
  align-items: start;
  margin-top: 44px;
}

.cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 110px 84px;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

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

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 110px 84px;
  gap: 14px;
  align-items: center;
  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: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-2);
}

.cart-prod h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
}

.cart-prod span {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cart-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cart-qty button {
  width: 30px;
  height: 34px;
  border: 1px solid var(--line-dark);
  background: transparent;
  font-size: 14px;
  line-height: 1;
}

.cart-qty button:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }

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

.cart-line { text-align: center; font-size: 13.5px; font-weight: 600; }

.cart-remove {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid transparent;
}

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

.cart-summary {
  border: 1px solid var(--ink);
  background: var(--paper-3);
  padding: 28px;
  position: sticky;
  top: 120px;
}

.cart-summary h2 {
  font-family: var(--ff-display);
  font-size: 25px;
  font-weight: 400;
  margin-bottom: 20px;
}

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

.sum-row span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

.sum-row.is-total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--ff-display);
  font-size: 21px;
  color: var(--ink);
}

.sum-row.is-total span:last-child { font-weight: 500; font-size: 22px; }

.sum-note {
  margin: 14px 0 20px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-faint);
}

.cart-summary .btn { margin-bottom: 14px; }

.cart-summary .link-u { display: block; text-align: center; }

.cart-empty {
  margin-top: 42px;
  padding: 74px 24px;
  border: 1px dashed var(--line-dark);
  text-align: center;
}

.cart-empty h2 { font-family: var(--ff-display); font-size: 30px; font-weight: 400; margin-bottom: 10px; }
.cart-empty p { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }

/* ---------- checkout ---------- */

.ck-head { padding: 62px 0 0; }

.ck-head h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.7rem);
  line-height: 1;
}

.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 386px;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.ck-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 34px;
}

.ck-form legend {
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.ck-form legend b { color: var(--wine); margin-right: 10px; }

.field { display: block; margin-bottom: 18px; }

.field > span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

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

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

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row--3 { grid-template-columns: 1.4fr 0.8fr 0.8fr; }

#shipOpts { display: grid; gap: 10px; margin-bottom: 8px; }

#shipOpts label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

#shipOpts label.is-active { border-color: var(--ink); background: var(--paper-2); }

#shipOpts b { display: block; font-size: 12.5px; letter-spacing: 0.02em; }
#shipOpts small { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
#shipOpts label > span:last-of-type { font-size: 13px; font-weight: 600; }

#ckShipNote { font-size: 11.5px; color: var(--brass); margin: 4px 0 0; }

#formErr { color: var(--wine); font-size: 12.5px; margin-bottom: 12px; }

.ck-form .btn { margin-top: 6px; }

.ck-aside {
  border: 1px solid var(--ink);
  background: var(--paper-3);
  padding: 26px;
  position: sticky;
  top: 120px;
}

.ck-aside h2 {
  font-family: var(--ff-display);
  font-size: 23px;
  font-weight: 400;
  margin-bottom: 18px;
}

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

.ck-item img { width: 54px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-2); }
.ck-item h4 { font-family: var(--ff-display); font-size: 15px; font-weight: 400; line-height: 1.25; }
.ck-item span { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.ck-item b { font-size: 12.5px; font-weight: 600; }

#ckTotals { margin-top: 14px; }

/* ---------- order complete ---------- */

.done-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 84px 0 20px;
  text-align: center;
}

.done-wrap .eyebrow { justify-content: center; }

.done-wrap h1 {
  margin: 18px 0 12px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.9rem);
  line-height: 1.02;
}

.done-wrap > p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

#doneTicket {
  margin: 40px 0 34px;
  border: 1px solid var(--ink);
  background: var(--paper-3);
  text-align: left;
}

.ticket-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px dashed var(--line-dark);
}

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

.ticket-head strong { font-family: var(--ff-display); font-size: 17px; font-weight: 500; }

.ticket-items { padding: 18px 26px; }

.ticket-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.ticket-item span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

#doneTicket .sum-note { padding: 0 26px 22px; }

#doneTicket .sum-row { padding-left: 26px; padding-right: 26px; }
#doneTicket .sum-row.is-total { font-size: 20px; }

.done-next {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: left;
}

/* ---------- prose / static pages ---------- */

.prose { max-width: 780px; padding-top: 40px; padding-bottom: 20px; }

.prose h2 {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 38px 0 12px;
}

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

.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.prose p + p { margin-top: 12px; }

.prose ul { margin: 10px 0 14px; padding-left: 2px; }

.prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 1px;
  background: var(--brass);
}

.prose a { color: var(--wine); border-bottom: 1px solid rgba(124, 46, 43, 0.35); }
.prose a:hover { border-bottom-color: var(--wine); }

/* about */

.about-hero {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 60px;
  align-items: center;
  padding: 76px 0 80px;
}

.about-hero h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 20px 0 22px;
}

.about-hero p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; max-width: 450px; }

.about-plate { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 4.6; }
.about-plate img { width: 100%; height: 100%; object-fit: cover; }

.about-body {
  display: grid;
  grid-template-columns: 3fr 6fr;
  gap: 70px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  padding-top: 52px;
}

.about-body .label {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.about-copy p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 640px;
}

.about-copy p:first-child::first-letter {
  font-family: var(--ff-display);
  font-size: 52px;
  line-height: 0.9;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--wine);
}

.pull {
  margin: 34px 0;
  padding: 24px 0 24px 26px;
  border-left: 2px solid var(--wine);
  font-family: var(--ff-display);
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  max-width: 600px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-top: 20px;
}

.about-facts div { padding: 26px 24px 10px 0; border-right: 1px solid var(--line); }
.about-facts div:last-child { border-right: 0; }
.about-facts b {
  display: block;
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 400;
  color: var(--wine);
  line-height: 1;
  margin-bottom: 8px;
}
.about-facts span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 70px;
  padding: 44px 0 20px;
}

.contact-lead {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 26px;
}

.contact-mail {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem);
  color: var(--wine);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 6px;
  margin-bottom: 32px;
  word-break: break-word;
}

.contact-copy p { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 12px; max-width: 520px; }

.contact-cards { border-top: 1px solid var(--ink); }

.contact-card { padding: 22px 0; border-bottom: 1px solid var(--line); }

.contact-card h3 {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}

.contact-card p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.contact-card p + p { margin-top: 4px; }

/* ==========================================================================
   BACK OFFICE — the atelier ledger
   Ink desk, parchment worksheets, brass rules.
   ========================================================================== */

.ad-body { background: var(--paper-2); }

.ad-body #adApp { min-height: 100vh; }

.ad-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-faint);
}

.ad-err {
  min-height: 17px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--wine);
}

/* buttons */

.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.ad-btn--ghost { background: transparent; color: var(--ink-soft); border-color: var(--line-dark); }
.ad-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.ad-btn--danger { background: transparent; color: var(--wine); border-color: rgba(124, 46, 43, 0.45); }
.ad-btn--danger:hover { background: var(--wine); border-color: var(--wine); color: var(--cream); }

/* password gate */

.ad-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(169, 130, 63, 0.12), transparent 46%),
    radial-gradient(circle at 84% 88%, rgba(124, 46, 43, 0.1), transparent 48%),
    var(--paper-2);
}

.ad-gate-card {
  width: min(424px, 100%);
  padding: 46px 40px 36px;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

.ad-gate-card .wordmark { font-size: 20px; letter-spacing: 0.26em; }

.ad-gate-card p {
  margin: 22px 0 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.ad-gate-card .field { margin-bottom: 14px; }
.ad-gate-card input { background: var(--paper); }

/* shell */

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

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

.ad-side .wordmark { color: var(--paper); font-size: 18px; letter-spacing: 0.22em; }

.ad-side > small {
  display: block;
  margin-top: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(244, 237, 226, 0.14);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.ad-nav {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.ad-nav a,
.ad-nav .is-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 0;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: rgba(244, 237, 226, 0.52);
}

.ad-nav a:hover { color: var(--cream); }

.ad-nav a.is-active {
  color: var(--cream);
  border-left: 2px solid var(--brass);
  padding-left: 12px;
  margin-left: -2px;
}

.ad-nav .is-static { color: rgba(244, 237, 226, 0.28); cursor: default; }

.ad-nav .is-static::after {
  content: "";
  width: 8px;
  height: 1px;
  background: rgba(244, 237, 226, 0.22);
}

.ad-side-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 237, 226, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-side-foot button,
.ad-side-foot a {
  border: 0;
  background: none;
  padding: 6px 0;
  text-align: left;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 237, 226, 0.55);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

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

.ad-main {
  min-width: 0;
  padding: 34px 40px 70px;
}

.ad-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.ad-top h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

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

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

.ad-lang button {
  border: 0;
  background: transparent;
  height: 34px;
  padding: 0 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s 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));
  margin-top: 26px;
}

.ad-stat {
  padding: 17px 20px 19px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-right: 0;
}

.ad-stat:last-child { border-right: 1px solid var(--line); }

.ad-stat span {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ad-stat strong {
  display: block;
  margin-top: 10px;
  font-family: var(--ff-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.ad-stat:nth-child(2) strong { color: var(--wine); }

/* toolbar + table */

.ad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 14px;
}

.ad-search { flex: 0 1 330px; display: block; }

.ad-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--paper-3);
  padding: 0 14px;
  font-size: 12.5px;
}

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

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

.ad-table { width: 100%; border-collapse: collapse; }

.ad-table th {
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.ad-table th:first-child { padding-left: 20px; }

.ad-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  vertical-align: middle;
}

.ad-table td:first-child { padding-left: 20px; }
.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:hover td { background: rgba(169, 130, 63, 0.07); }

.o-no {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wine);
  border-bottom: 1px solid rgba(124, 46, 43, 0.32);
}

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

.o-cust { color: var(--ink); }

.o-cust span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--ink-faint);
  word-break: break-word;
}

.o-actions { text-align: right; white-space: nowrap; }

.ad-more-btn {
  height: 29px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.ad-empty { padding: 74px 24px; text-align: center; }

.ad-empty h3 {
  font-family: var(--ff-display);
  font-size: 27px;
  font-weight: 400;
  margin-bottom: 8px;
}

.ad-empty p { font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; }

/* status badges */

.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ad-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.st-pending { color: #8a6520; }
.st-paid { color: #2f5b7c; }
.st-shipped { color: #5b4a86; }
.st-delivered { color: var(--ok); }
.st-cancelled { color: #96403a; }

/* floating row menu */

.ad-menu {
  position: fixed;
  z-index: 120;
  min-width: 170px;
  padding: 5px 0;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  box-shadow: 0 22px 44px -22px rgba(33, 27, 23, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
}

.ad-menu.is-on { opacity: 1; visibility: visible; transform: translateY(0); }

.ad-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 18px;
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
}

.ad-menu button:hover { background: var(--paper-2); color: var(--ink); }
.ad-menu button.is-danger { color: var(--wine); }
.ad-menu button.is-danger:hover { background: rgba(124, 46, 43, 0.08); }

/* modals */

.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(33, 27, 23, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.ad-modal.is-on { opacity: 1; visibility: visible; }

.ad-modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}

.ad-modal-card--wide { width: min(764px, 100%); }

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

.ad-modal-head h2 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

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

.ad-close {
  flex: none;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: transparent;
  font-size: 17px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.ad-modal-body { padding: 24px; overflow-y: auto; }

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

.ad-modal-foot .right { display: flex; gap: 9px; margin-left: auto; }
.ad-modal-foot .ad-btn { height: 37px; }

/* order detail pieces */

.ad-kv {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.ad-kv dt {
  padding-top: 3px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ad-kv dd { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); word-break: break-word; }

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

.ad-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.ad-item > img,
.ad-item > span:first-child {
  flex: none;
  width: 44px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-2);
}

.ad-item > div { flex: 1; min-width: 0; }

.ad-item h4 {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

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

.ad-item b { flex: none; font-size: 12.5px; color: var(--ink); }

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

.ad-line span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

.ad-line.is-total {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--ff-display);
  font-size: 17px;
}

.ad-line.is-total span:last-child { font-size: 18px; font-weight: 500; }

/* modal forms */

.ad-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ad-form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-form-row .field { margin-bottom: 14px; }
.ad-modal-body .field > span { font-size: 8.5px; }
.ad-modal-body .field input,
.ad-modal-body .field select { background: var(--paper-3); padding: 10px 12px; font-size: 13px; }
.ad-modal-body .field input[disabled] { opacity: 0.55; background: var(--paper-2); }

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

@media (max-width: 1180px) {
  .site-head { padding: 20px 26px; gap: 18px; }
  .wrap { padding-left: 26px; padding-right: 26px; }
  .hero { gap: 38px; }
  .atelier { gap: 46px; }
  .cart-layout,
  .ck-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 38px; }
  #shopGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-shell { grid-template-columns: 226px minmax(0, 1fr); }
  .ad-main { padding: 30px 28px 60px; }
}

@media (max-width: 980px) {
  .nav-main { display: none; }
  .nav-toggle { display: block; }
  .site-head { grid-template-columns: auto 1fr auto; }
  .site-head .wordmark { font-size: 20px; letter-spacing: 0.2em; }
  .site-head > .wordmark { justify-self: center; }
  .nav-side { gap: 14px; }
  .nav-contact { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 42px 0 70px; }
  .hero-copy { max-width: 560px; }
  .hero-plates { max-width: 620px; }
  #catStrip { grid-template-columns: repeat(3, 1fr); }
  .atelier { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 70px 0 20px; }
  .atelier-plates { max-width: 520px; }
  .quote-band { padding: 64px 30px; margin-top: 70px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc + .svc { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .pdp-gallery { position: static; }
  #relatedGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout,
  .ck-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .cart-summary,
  .ck-aside { position: static; }
  .about-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 56px 0 56px; }
  .about-plate { max-width: 520px; }
  .about-body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }

  .ad-shell { grid-template-columns: minmax(0, 1fr); }
  .ad-side {
    position: static;
    height: auto;
    padding: 20px 24px 16px;
  }
  .ad-side > small { display: none; }
  .ad-nav {
    flex-direction: row;
    margin-top: 14px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ad-nav::-webkit-scrollbar { display: none; }
  .ad-nav a,
  .ad-nav .is-static { padding: 7px 0; white-space: nowrap; font-size: 10.5px; }
  .ad-nav a.is-active { border-left: 0; border-bottom: 1px solid var(--brass); padding-left: 0; margin-left: 0; }
  .ad-nav a + a,
  .ad-nav .is-static { margin-left: 18px; }
  .ad-nav .is-static::after { display: none; }
  .ad-side-foot {
    flex-direction: row;
    gap: 20px;
    margin-top: 14px;
    padding-top: 12px;
  }
  .ad-main { padding: 26px 24px 60px; }
}

@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .announce { font-size: 8.5px; letter-spacing: 0.16em; padding: 9px 16px; }
  .site-head { padding: 15px 20px; }
  .site-head .wordmark { font-size: 17px; letter-spacing: 0.16em; }
  .hero-copy h1 { font-size: clamp(2.5rem, 1.6rem + 7vw, 3.6rem); }
  .hero-meta { gap: 16px; }
  .ribbon { grid-template-columns: repeat(2, 1fr); }
  .ribbon div { padding: 18px 16px; border-top: 1px solid var(--line); }
  .ribbon div:nth-child(odd) { border-left: 0; }
  .index-sec { padding: 62px 0 10px; }
  .index-row a {
    grid-template-columns: 34px 62px minmax(0, 1fr) 78px;
    gap: 12px;
    padding: 12px 4px;
  }
  .index-row a:hover { padding-left: 4px; }
  .idx-thumb { width: 62px; }
  .idx-cat,
  .idx-arrow { display: none; }
  .idx-name h3 { font-size: 17px; }
  .cat-sec { padding: 56px 0 6px; }
  #catStrip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-head { padding-top: 46px; }
  .shop-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .shop-tools { width: 100%; justify-content: space-between; }
  #shopGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .p-meta h3 { font-size: 17px; }
  .p-quick { display: none; }
  .crumbs { flex-wrap: wrap; row-gap: 6px; }
  .pdp-gallery { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .pdp-info { padding-top: 0; }
  #pdpName { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.5rem); }
  .buy-row { grid-template-columns: 104px minmax(0, 1fr); }
  .related-sec { padding: 66px 0 0; }
  .cart-page { padding-top: 46px; }
  .cart-head { display: none; }
  .cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "prod prod"
      "qty line";
    row-gap: 14px;
    padding: 18px 0;
  }
  .cart-prod { grid-area: prod; }
  .cart-qty { grid-area: qty; justify-content: flex-start; }
  .cart-line { grid-area: line; text-align: right; }
  .cart-remove { grid-column: 1 / -1; justify-self: start; }
  .cart-summary { padding: 22px; }
  .ck-head { padding-top: 46px; }
  .ck-layout { margin-top: 28px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field-row--3 { grid-template-columns: minmax(0, 1fr); }
  .ck-aside { padding: 22px; }
  .done-wrap { padding: 56px 0 20px; }
  .done-next { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .ticket-head { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .ticket-head > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
  .ticket-head span { margin-bottom: 0; }
  .ticket-items { padding: 14px 20px; }
  #doneTicket .sum-row { padding-left: 20px; padding-right: 20px; }
  #doneTicket .sum-note { padding: 0 20px 20px; }
  .page-head { padding: 52px 0 32px; }
  .page-head h1 { font-size: clamp(2.2rem, 1.6rem + 4vw, 3rem); }
  .prose { padding-top: 26px; }
  .prose h2 { font-size: 22px; margin-top: 30px; }
  .about-facts { grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
  .about-facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0 16px;
  }
  .about-facts div:last-child { border-bottom: 0; }
  .about-facts b { font-size: 28px; display: inline-block; margin-right: 14px; margin-bottom: 0; }
  .contact-lead { font-size: 24px; }
  .site-foot { margin-top: 70px; padding: 52px 0 22px; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 34px; }
  .foot-bottom { flex-direction: column; gap: 8px; font-size: 8.5px; }
  .quote-band blockquote { font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2rem); }

  .ad-main { padding: 22px 18px 52px; }
  .ad-top { flex-wrap: wrap; gap: 14px; align-items: flex-start; }
  .ad-top h1 { font-size: 1.75rem; }
  .ad-tools { width: 100%; justify-content: space-between; }
  .ad-stats { grid-template-columns: 1fr 1fr; }
  .ad-stat { border-right: 1px solid var(--line); }
  .ad-stat:nth-child(2) { border-right: 0; }
  .ad-stat:nth-child(n + 3) { border-top: 0; }
  .ad-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ad-search { flex: 1 1 auto; width: 100%; }
  .ad-panel { border: 0; background: transparent; }
  .ad-table,
  .ad-table tbody,
  .ad-table tr,
  .ad-table td { display: block; width: 100%; }
  .ad-table thead { display: none; }
  .ad-table tr {
    background: var(--paper-3);
    border: 1px solid var(--line);
    margin-bottom: 10px;
    padding: 4px 0;
  }
  .ad-table tbody tr:hover td { background: transparent; }
  .ad-table td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 7px 16px;
    border-bottom: 0;
    text-align: left;
  }
  .ad-table td:first-child { padding-left: 16px; }
  .ad-table td::before {
    content: attr(data-th);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .ad-table td.o-actions { grid-template-columns: minmax(0, 1fr); justify-items: end; padding-top: 4px; }
  .ad-table td.o-actions::before { display: none; }
  .ad-empty { border: 1px dashed var(--line-dark); padding: 52px 20px; }
  .ad-modal { padding: 16px 12px; }
  .ad-modal-card { max-height: calc(100vh - 32px); }
  .ad-modal-head { padding: 16px 18px; }
  .ad-modal-body { padding: 18px; }
  .ad-modal-foot { padding: 13px 18px; }
  .ad-modal-foot .ad-btn { flex: 1; }
  .ad-modal-foot .right { flex: 1; }
  .ad-modal-foot .right .ad-btn { width: 100%; }
  .ad-form-row,
  .ad-form-row--3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ad-kv { grid-template-columns: minmax(0, 1fr); gap: 3px 0; }
  .ad-kv dt { padding-top: 8px; }
  .ad-gate-card { padding: 34px 26px 28px; }
}

@media (max-width: 420px) {
  .site-head .wordmark { font-size: 15px; letter-spacing: 0.12em; }
  .bag-link { padding: 6px 10px; font-size: 9px; letter-spacing: 0.12em; }
  #shopGrid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .p-meta h3 { font-size: 18px; }
  .hero-plates { gap: 10px; }
  .cart-prod img { width: 62px; }
  .cart-prod h3 { font-size: 17px; }
  .ad-nav a + a,
  .ad-nav .is-static { margin-left: 14px; }
  .ad-table td { grid-template-columns: 88px minmax(0, 1fr); }
}
