/*
|==========================================================================
| Wellness Recovery Co. — field manual
|==========================================================================
|
| Single stylesheet. Replaces the inherited style.css + brand.css entirely,
| so nothing here is a re-skin of another storefront's look.
|
| Direction: field manual. Warm newsprint stock, heavy ink rules, mono
| headings, bracketed labels, section numerals, dotted leader lines, and
| prices set like a parts list. Stamp red is used sparingly and always
| means "this is the number that matters".
|
| Contents
|   01  Tokens
|   02  Reset + base
|   03  Utilities + field-manual primitives
|   04  Header + nav
|   05  Home (.wrc-*)
|   06  Ebook cover
|   07  Shop
|   08  Product detail
|   09  Cart drawer
|   10  Search modal
|   11  Account sidebar
|   12  Checkout
|   13  Thank you / order
|   14  FAQ
|   15  Policy
|   16  Footer
|   17  Responsive + reduced motion
|
*/

/* ==== 01 Tokens ======================================================= */
:root {
  /* stock */
  --stock: #e9e3d6;
  --sheet: #f6f2e9;
  --sheet-2: #ded7c7;
  --plate: #1c1a15;

  /* ink */
  --ink: #1a1712;
  --ink-2: #4a4438;
  --ink-3: #6f6858;
  --ink-4: #948c78;

  /* rules — this system leans on weight, not colour */
  --rule: #c9c1ae;
  --rule-2: #1a1712;
  --rule-hair: 1px;
  --rule-mid: 2px;
  --rule-heavy: 3px;

  /* accents */
  --stamp: #bd3f24;
  --stamp-ink: #9c3319;
  --olive: #555b3f;

  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --gutter: 22px;
  --max: 1340px;
  --bar: 46px;
}

/* ==== 02 Reset + base ================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  overflow-x: clip;
  background: var(--stock);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

ul,
ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Every figure is a spec value — keep the columns honest. */
.price-new,
.price-old,
.pdp-price,
.wrc-price-tag b,
.wrc-part-price,
.wrc-strip-buy b,
.subtotal-amount,
.cart-item-price,
.order-item-price,
.order-summary-total,
.amount,
.value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

::selection { background: var(--stamp); color: var(--sheet); }

.brand-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--stamp);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  transform: translateY(-200%);
}
.brand-skip-link:focus { transform: none; }

/* ==== 03 Utilities + field-manual primitives ========================== */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-padding { padding: clamp(44px, 5.5vw, 80px) 0; }
.section-bg { background: var(--sheet); }
.bg-cream-light { background: var(--sheet); }
.full-width { width: 100%; }

/* Bracketed micro-label — the manual's voice. */
.wrc-eyebrow,
.faq-category,
.form-label,
.subtotal-label,
.order-number-label,
.order-detail-item .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
}
.wrc-eyebrow::before { content: "[ "; }
.wrc-eyebrow::after { content: " ]"; }
.wrc-eyebrow.dark { color: var(--olive); }

/* Rating glyphs carry the stamp colour. */
.stars { color: var(--stamp); letter-spacing: -0.05em; }
.stars-count { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-4); }

/* Section heads sit under a heavy rule. */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.6rem;
  border-bottom: var(--rule-heavy) solid var(--rule-2);
}
.section-title { font-size: clamp(1.4rem, 2.7vw, 2.2rem); }

.view-all-link,
.back-link,
.section-header > a {
  flex: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
  white-space: nowrap;
}
.view-all-link:hover,
.back-link:hover,
.section-header > a:hover { text-decoration: underline; }

/* ==== 04 Header + nav ================================================= */
.wrc-ticker {
  overflow: hidden;
  background: var(--plate);
  color: var(--sheet);
  border-bottom: var(--rule-mid) solid var(--rule-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wrc-ticker > div {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  padding: 0.5rem 0;
  animation: wrc-scroll 34s linear infinite;
}
.wrc-ticker span { display: inline-flex; align-items: center; gap: 0.6rem; }
.wrc-ticker span::before { content: "\2022"; color: var(--stamp); }
@keyframes wrc-scroll { to { transform: translateX(-50%); } }

.main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--sheet);
  border-bottom: var(--rule-heavy) solid var(--rule-2);
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.6rem;
  max-width: var(--max);
  min-height: 66px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo { display: flex; align-items: center; width: 226px; }
.logo-img { max-height: 34px; width: auto; }

.nav-menu { display: flex; justify-self: end; align-items: center; gap: 0.3rem; }

.nav-link {
  display: inline-flex;
  align-items: center;
  height: var(--bar);
  padding: 0 0.9rem;
  border: var(--rule-hair) solid transparent;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-link:hover { border-color: var(--rule-2); }

.nav-shop-link {
  margin-right: 0.5rem;
  padding: 0 1.3rem;
  background: var(--stamp);
  border-color: var(--stamp);
  color: #fff;
}
.nav-shop-link:hover { background: var(--stamp-ink); border-color: var(--stamp-ink); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 0.3rem; }

.action-icon-btn,
.mobile-toggle {
  display: grid;
  place-items: center;
  width: var(--bar);
  height: var(--bar);
  border: var(--rule-hair) solid var(--rule);
  font-size: 0.95rem;
}
.action-icon-btn:hover,
.mobile-toggle:hover { border-color: var(--rule-2); background: var(--sheet-2); }

.cart-btn-container { position: relative; }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  background: var(--stamp);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mobile-toggle { display: none; }

@media (max-width: 1000px) {
  .header-container { grid-template-columns: 1fr auto; min-height: 58px; }
  .logo { width: 186px; }
  .mobile-toggle { display: grid; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 950;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(330px, 84vw);
    padding-top: 66px;
    background: var(--sheet);
    border-left: var(--rule-heavy) solid var(--rule-2);
    transform: translateX(100%);
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav-menu.active { transform: translateX(0); }
  .nav-link {
    height: 54px;
    justify-content: center;
    border: 0;
    border-bottom: var(--rule-hair) solid var(--rule);
  }
  .nav-shop-link { margin: 0; }
}

@media (max-width: 480px) {
  .header-container { gap: 0.45rem; padding-left: 16px; padding-right: 16px; }
  .logo { width: 132px; }
  .header-actions { gap: 0; }
  .action-icon-btn,
  .mobile-toggle { width: 42px; }
}

/* ==== 05 Home ========================================================= */
.wrc-page { background: var(--stock); }

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

/* -- cover page: copy over a full-bleed plate -- */
.wrc-cover {
  background: var(--sheet);
  border-bottom: var(--rule-heavy) solid var(--rule-2);
}

.wrc-cover-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 92px) var(--gutter) clamp(32px, 4vw, 56px);
  text-align: center;
}

.wrc-cover-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  animation: wrc-cover-rise 0.55s 0.05s both;
}
.wrc-cover-labels .wrc-eyebrow { margin: 0; }
.wrc-physical-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border: var(--rule-hair) solid var(--rule-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wrc-physical-badge i { color: var(--stamp); }

.wrc-cover h1 {
  margin: 1rem 0 1.3rem;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  animation: wrc-cover-rise 0.65s 0.14s both;
}
.wrc-cover h1 em { color: var(--stamp); font-style: normal; }

.wrc-cover-lede {
  max-width: 60ch;
  margin: 0 auto 1.8rem;
  color: var(--ink-2);
  font-size: 1.02rem;
  animation: wrc-cover-rise 0.65s 0.24s both;
}

.wrc-cover-buy {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  animation: wrc-cover-rise 0.65s 0.34s both;
}

.wrc-price-tag {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  background: var(--plate);
  color: var(--sheet);
  text-align: left;
}
.wrc-price-tag b { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }
.wrc-price-tag small {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a08c;
}

.wrc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0 1.7rem;
  background: var(--stamp);
  border: var(--rule-mid) solid var(--stamp);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}
.wrc-btn:hover:not(:disabled) { background: var(--stamp-ink); border-color: var(--stamp-ink); color: #fff; }
.wrc-btn:disabled { background: var(--olive); border-color: var(--olive); cursor: default; }
.wrc-btn.ghost { background: transparent; border-color: var(--rule-2); color: var(--ink); }
.wrc-btn.ghost:hover { background: var(--plate); border-color: var(--plate); color: var(--sheet); }

/* Full-bleed plate under the cover copy. */
.wrc-cover-plate { margin: 0; border-top: var(--rule-mid) solid var(--rule-2); }
.wrc-cover-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 3vw, 42px);
  background: #e8e5e0;
  animation: wrc-plate-reveal 0.85s 0.18s both;
}
.wrc-cover-plate img {
  width: min(100%, 760px);
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.06);
  animation: wrc-product-settle 6s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: filter 0.35s ease, transform 0.7s ease;
}
.wrc-cover-plate:hover img { filter: grayscale(0.25) contrast(1.04); transform: scale(1.018); }
.wrc-cover-plate figcaption {
  padding: 0.55rem var(--gutter);
  background: var(--plate);
  color: var(--sheet);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wrc-cover-plate figcaption::before { content: "FIG. 1 — "; color: var(--stamp); }

@keyframes wrc-cover-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wrc-plate-reveal {
  from { opacity: 0; clip-path: inset(0 50% 0 50%); }
  to { opacity: 1; clip-path: inset(0); }
}
@keyframes wrc-product-settle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.wrc-hero-mix {
  display: grid;
  grid-template-columns: 210px 1fr;
  border-top: var(--rule-mid) solid var(--rule-2);
  background: var(--stock);
  animation: wrc-cover-rise 0.65s 0.45s both;
}
.wrc-mix-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem var(--gutter);
  border-right: var(--rule-hair) solid var(--rule);
  font-family: var(--mono);
  text-transform: uppercase;
}
.wrc-mix-heading span { color: var(--stamp); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; }
.wrc-mix-heading strong { font-size: 0.68rem; line-height: 1.45; }
.wrc-hero-mix ul { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); min-width: 0; }
.wrc-hero-mix li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.8rem;
  border-right: var(--rule-hair) solid var(--rule);
}
.wrc-hero-mix li:last-child { border-right: 0; }
.wrc-hero-mix img { width: 64px; height: 64px; object-fit: cover; filter: grayscale(0.75); transition: filter 0.25s, transform 0.25s; }
.wrc-hero-mix li:hover img { filter: grayscale(0); transform: scale(1.04); }
.wrc-hero-mix li div { min-width: 0; }
.wrc-hero-mix small { display: block; overflow: hidden; color: var(--ink-3); font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wrc-hero-mix b { display: block; margin-top: 0.2rem; font-size: 0.75rem; line-height: 1.25; }
.wrc-hero-mix li > span { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; }

@media (max-width: 1180px) {
  .wrc-hero-mix { grid-template-columns: 1fr; }
  .wrc-mix-heading { border-right: 0; border-bottom: var(--rule-hair) solid var(--rule); }
  .wrc-hero-mix ul { overflow-x: auto; }
}

/* -- numbered sections: numeral hangs in the left margin -- */
.wrc-sec {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: clamp(16px, 3vw, 40px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 76px) var(--gutter);
  border-bottom: var(--rule-hair) solid var(--rule);
}

.wrc-sec-num {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 0.8;
  color: var(--stamp);
  letter-spacing: -0.04em;
}

.wrc-sec-body { min-width: 0; }

.wrc-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  margin-bottom: 1.4rem;
  border-bottom: var(--rule-heavy) solid var(--rule-2);
}
.wrc-sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.wrc-sec-head .wrc-eyebrow { margin: 0; }

.wrc-sec-intro { max-width: 62ch; margin-bottom: 1.6rem; color: var(--ink-2); }

.wrc-sec-note {
  max-width: 68ch;
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: var(--rule-hair) dotted var(--ink-4);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--ink-3);
}

/* -- spec sheet: two-column definition grid -- */
.wrc-specsheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.wrc-specsheet > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
}
.wrc-specsheet dt {
  flex: none;
  min-width: 130px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wrc-specsheet dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 0.9rem; }

/* -- protocol strips: plate left, copy centre, price right -- */
.wrc-strips { display: flex; flex-direction: column; }

.wrc-strip {
  display: grid;
  grid-template-columns: 46px 168px 1fr 180px;
  align-items: start;
  gap: clamp(14px, 2vw, 28px);
  padding: 1.4rem 0;
  border-bottom: var(--rule-mid) solid var(--rule-2);
}
.wrc-strip:first-child { border-top: var(--rule-mid) solid var(--rule-2); }

.wrc-strip-num {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--stamp);
  padding-top: 0.15rem;
}

.wrc-strip-plate {
  display: block;
  aspect-ratio: 1;
  background: var(--sheet-2);
  border: var(--rule-hair) solid var(--rule-2);
  overflow: hidden;
}
.wrc-strip-plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wrc-strip-plate:hover img { transform: scale(1.04); }

.wrc-strip-copy { min-width: 0; }
.wrc-strip-cat {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wrc-strip-copy h3 { margin: 0.35rem 0 0.3rem; font-size: clamp(1.05rem, 1.9vw, 1.45rem); }
.wrc-strip-copy h3 a:hover { color: var(--stamp); }
.wrc-strip-sub { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }
.wrc-strip-blurb { max-width: 58ch; margin-top: 0.6rem; font-size: 0.88rem; color: var(--ink-2); }

.wrc-strip-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; text-align: right; }
.wrc-strip-buy b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
}
.wrc-strip-add {
  width: 100%;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--plate);
  color: var(--sheet);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.wrc-strip-add:hover:not(:disabled) { background: var(--stamp); }
.wrc-strip-add:disabled { background: var(--olive); cursor: default; }
.wrc-strip-buy > a {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wrc-strip-buy > a:hover { color: var(--stamp); }

/* -- parts list: dotted leaders between name and price -- */
.wrc-parts { border-top: var(--rule-mid) solid var(--rule-2); }
.wrc-parts > li { border-bottom: var(--rule-hair) solid var(--rule); }
.wrc-parts > li > a,
.wrc-parts > li.wrc-part-ship {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.6rem 0;
}
.wrc-parts > li > a:hover { color: var(--stamp); }
.wrc-parts > li > a:hover .wrc-part-dots { border-bottom-color: var(--stamp); }

.wrc-part-name { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.wrc-part-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
/* The leader is a single dotted rule that stretches to fill the gap. */
.wrc-part-dots { align-self: center; border-bottom: 1px dotted var(--ink-4); transform: translateY(-2px); }
.wrc-part-price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}
.wrc-part-ship .wrc-part-name { color: var(--ink-3); }

.wrc-parts-sub {
  margin: 2rem 0 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--stamp);
}

/* -- field reports: numbered, not carded -- */
.wrc-reports { counter-reset: report; border-top: var(--rule-mid) solid var(--rule-2); }
.wrc-reports > li {
  position: relative;
  counter-increment: report;
  padding: 1.1rem 0 1.1rem 3.2rem;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
}
.wrc-reports > li::before {
  content: counter(report, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stamp);
}
.wrc-reports blockquote { font-size: 1.02rem; }
.wrc-reports cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wrc-closing {
  padding: clamp(52px, 6.5vw, 92px) 0;
  background: var(--plate);
  color: var(--sheet);
  text-align: center;
  border-top: var(--rule-heavy) solid var(--rule-2);
}
.wrc-closing h2 { margin-bottom: 0.9rem; font-size: clamp(1.8rem, 4.4vw, 3.4rem); }
.wrc-closing p { max-width: 52ch; margin: 0 auto 1.8rem; color: #ada593; }

/* ==== 06 Ebook cover (digital products on the PDP) ================== */
.ebook-cover { position: relative; display: grid; place-items: center; background: var(--plate); }
.ebook-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.1; }
.ebook-cover-inner { position: relative; z-index: 2; padding: 1.5rem; }
.ebook-cover-brand {
  margin-bottom: 0.7rem;
  color: var(--stamp);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ebook-cover-title { color: var(--sheet); font-size: 1.05rem; }
.ebook-cover-tagline { margin-top: 0.4rem; color: #a49c88; font-size: 0.76rem; }

/* ==== 07 Shop ========================================================= */
.shop-page-header,
.page-header {
  padding: clamp(36px, 4.5vw, 64px) 0 clamp(24px, 3vw, 36px);
  background: var(--sheet);
  border-bottom: var(--rule-heavy) solid var(--rule-2);
}
.page-header-bg { display: none; }
.shop-page-header h1,
.page-header h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.shop-page-header p,
.page-header p { max-width: 60ch; margin-top: 0.7rem; color: var(--ink-2); }

.products-section { padding: clamp(36px, 4.5vw, 64px) 0; }

/* ==== 08 Product detail =============================================== */
.pdp-main { padding-bottom: clamp(40px, 5vw, 72px); }

.pdp-breadcrumb {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: var(--rule-mid) solid var(--rule-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pdp-breadcrumb a:hover { color: var(--stamp); }

/* Single-column manual page: plate across the top, spec beneath it, one
   measure of text. Deliberately not the two-column shop layout. */
.pdp-layout {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding-top: clamp(24px, 3vw, 44px);
}

.pdp-image {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 44px);
  margin-bottom: clamp(24px, 3vw, 40px);
  background: var(--sheet);
  border: var(--rule-mid) solid var(--rule-2);
}
.pdp-image::after {
  content: "FIG. 1";
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.35rem 0.7rem;
  background: var(--plate);
  color: var(--sheet);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.pdp-image img { width: 100%; max-width: 440px; height: auto; }

.pdp-info { padding-bottom: clamp(24px, 3vw, 44px); }

.pdp-title { margin-bottom: 0.5rem; font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.pdp-sub {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pdp-stars {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.9rem;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
  font-size: 0.85rem;
}
.pdp-stars { color: var(--stamp); }
.pdp-stars .stars-count { color: var(--ink-3); }

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: var(--rule-mid) solid var(--rule-2);
  font-size: 2rem;
  font-weight: 700;
}
.pdp-old-price { font-size: 0.95rem; color: var(--ink-4); text-decoration: line-through; }

.pdp-desc { padding: 1.1rem 0; color: var(--ink-2); }
.pdp-desc p + p { margin-top: 0.8rem; }

.pdp-highlights { margin-bottom: 1.3rem; border-top: var(--rule-hair) dotted var(--ink-4); }
.pdp-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
  font-size: 0.88rem;
}
.pdp-highlights i { margin-top: 0.25rem; color: var(--stamp); font-size: 0.7rem; }

/* Spec block, set as a two-column parts sheet. */
.pdp-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 3vw, 44px);
  margin-bottom: 1.5rem;
  padding-top: 0.4rem;
  border-top: var(--rule-mid) solid var(--rule-2);
}
.pdp-spec > div {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.45rem 0;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
}
.pdp-spec dt {
  flex: none;
  min-width: 104px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pdp-spec dd { margin: 0; font-size: 0.87rem; }
@media (max-width: 620px) { .pdp-spec { grid-template-columns: 1fr; } }

.pdp-buy-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }

.qty-selector { display: flex; align-items: stretch; border: var(--rule-mid) solid var(--rule-2); }
.qty-selector button { width: 42px; font-size: 1rem; }
.qty-selector button:hover { background: var(--sheet-2); }
.qty-selector input {
  width: 48px;
  border: 0;
  border-inline: var(--rule-hair) solid var(--rule);
  background: transparent;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty { font-family: var(--mono); }

.pdp-add-btn,
.pdp-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 160px;
  min-height: 54px;
  padding: 0 1.3rem;
  border: var(--rule-mid) solid var(--rule-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.pdp-add-btn { background: transparent; }
.pdp-add-btn:hover { background: var(--plate); color: var(--sheet); }
.pdp-buy-btn { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.pdp-buy-btn:hover { background: var(--stamp-ink); border-color: var(--stamp-ink); }

.pdp-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: var(--rule-hair) dotted var(--ink-4);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-3);
}
.pdp-meta span { display: flex; align-items: center; gap: 0.6rem; }
.pdp-meta i { color: var(--stamp); }

/* ==== 09 Cart drawer ================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 23, 18, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.cart-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  background: var(--sheet);
  border-left: var(--rule-heavy) solid var(--rule-2);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: var(--rule-heavy) solid var(--rule-2);
}
.cart-drawer-title { font-size: 0.8rem; letter-spacing: 0.12em; }
.cart-drawer-count { font-family: var(--mono); color: var(--ink-3); }
.cart-drawer-close { display: grid; place-items: center; width: 32px; height: 32px; }
.cart-drawer-close:hover { background: var(--sheet-2); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 0 1.1rem; }
.cart-items { display: flex; flex-direction: column; }

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
}
.cart-item-image { aspect-ratio: 1; background: var(--sheet-2); border: var(--rule-hair) solid var(--rule); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.cart-item-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.cart-item-name { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.cart-item-sub,
.cart-item-each { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-3); }
.cart-item-price { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }

.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cart-item-quantity { display: flex; align-items: center; width: max-content; margin-top: 0.3rem; border: var(--rule-hair) solid var(--rule-2); }
.quantity-btn { width: 28px; height: 28px; }
.quantity-btn:hover { background: var(--sheet-2); }
.quantity-value {
  min-width: 30px;
  border-inline: var(--rule-hair) solid var(--rule-2);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  text-align: center;
  line-height: 28px;
}
.cart-item-remove { flex: none; margin-top: 0.3rem; color: var(--ink-4); font-size: 0.75rem; }
.cart-item-remove:hover { color: var(--stamp); }

.cart-empty { display: grid; place-items: center; gap: 1rem; padding: 3.4rem 1rem; text-align: center; color: var(--ink-3); }
.btn-shop-now {
  display: inline-flex;
  align-items: center;
  height: var(--bar);
  padding: 0 1.4rem;
  background: var(--stamp);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-shop-now:hover { background: var(--stamp-ink); color: #fff; }

.cart-drawer-footer { padding: 1.1rem; border-top: var(--rule-heavy) solid var(--rule-2); }
.cart-subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.subtotal-amount { font-size: 1.35rem; font-weight: 700; }

.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  background: var(--stamp);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.cart-checkout-btn:hover { background: var(--stamp-ink); color: #fff; }

.cart-continue-link {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}
.cart-continue-link:hover { color: var(--stamp); }

/* ==== 10 Search modal ================================================= */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: start center;
  padding: 12vh var(--gutter) var(--gutter);
  background: rgba(26, 23, 18, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.search-modal.active { opacity: 1; visibility: visible; }

.search-modal-content {
  position: relative;
  width: min(660px, 100%);
  padding: 1.8rem;
  background: var(--sheet);
  border: var(--rule-heavy) solid var(--rule-2);
}
.search-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; }
.search-close:hover { background: var(--sheet-2); }
.search-modal-header h3 { font-size: 1.2rem; }
.search-modal-header p { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }

.search-form { margin: 1.3rem 0; }
.search-input-wrapper { display: flex; align-items: center; gap: 0.8rem; padding: 0 1rem; border: var(--rule-mid) solid var(--rule-2); }
.search-input-wrapper i { color: var(--ink-4); }
.search-input { flex: 1; height: 52px; border: 0; background: transparent; outline: none; }

.search-suggestions h4 {
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--stamp);
}
.search-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-tag {
  padding: 0.4rem 0.8rem;
  border: var(--rule-hair) solid var(--rule-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}
.search-tag:hover { background: var(--plate); color: var(--sheet); }

/* ==== 11 Account sidebar ============================================== */
.login-sidebar { position: fixed; inset: 0; z-index: 1100; visibility: hidden; }
.login-sidebar.active { visibility: visible; }
.login-sidebar-overlay { position: absolute; inset: 0; background: rgba(26, 23, 18, 0.45); opacity: 0; transition: opacity 0.2s; }
.login-sidebar.active .login-sidebar-overlay { opacity: 1; }

.login-sidebar-panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(400px, 100vw);
  padding: 1.4rem;
  overflow-y: auto;
  background: var(--sheet);
  border-left: var(--rule-heavy) solid var(--rule-2);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.login-sidebar.active .login-sidebar-panel { transform: translateX(0); }

.login-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; }
.login-close:hover { background: var(--sheet-2); }

.login-sidebar-header { padding-bottom: 1.1rem; border-bottom: var(--rule-mid) solid var(--rule-2); }
.login-logo { max-width: 190px; margin-bottom: 0.8rem; }
.login-sidebar-header p { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }

.login-options { display: flex; flex-direction: column; }
.login-option {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
}
.login-option:hover { color: var(--stamp); }
.login-icon { display: grid; place-items: center; width: 36px; height: 36px; border: var(--rule-hair) solid var(--rule-2); }
.login-text { display: flex; flex-direction: column; }
.login-title { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.login-desc { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-3); }

.login-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.login-back-btn:hover { color: var(--stamp); }

.login-signup-header { margin-bottom: 1.1rem; }
.login-signup-header h3 { font-size: 1.2rem; }
.login-signup-header p { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }

.login-input-group { margin-bottom: 0.65rem; }
.login-input-group input {
  width: 100%;
  height: 48px;
  padding: 0 0.9rem;
  border: var(--rule-hair) solid var(--rule-2);
  background: var(--stock);
  outline: none;
}
.login-input-group input:focus { border-color: var(--stamp); }

.login-forgot { margin-bottom: 0.9rem; text-align: right; }
.forgot-password-link { font-family: var(--mono); font-size: 0.66rem; color: var(--stamp); }

.login-submit-btn {
  width: 100%;
  min-height: 50px;
  background: var(--stamp);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.login-submit-btn:hover { background: var(--stamp-ink); }

.login-divider { position: relative; margin: 1rem 0; text-align: center; }
.login-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; border-top: var(--rule-hair) dotted var(--ink-4); }
.login-divider span {
  position: relative;
  padding: 0 0.8rem;
  background: var(--sheet);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  color: var(--ink-4);
}

.login-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  border: var(--rule-hair) solid var(--rule-2);
  font-size: 0.85rem;
}
.login-google-btn:hover { background: var(--sheet-2); }

.login-terms { margin-top: 1rem; font-size: 0.72rem; color: var(--ink-3); }
.login-terms a { color: var(--stamp); }

/* The three sub-panels are toggled inline by scripts.js; they only need to
   own their own stacking, not their visibility. */
.login-panel,
.login-signup-panel,
.forgot-password-panel { display: flex; flex-direction: column; }

.login-form,
.login-signup-form,
.forgot-password-form { display: flex; flex-direction: column; }

.login-sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: var(--rule-mid) solid var(--rule-2);
  font-size: 0.82rem;
}
.login-signup-link { color: var(--stamp); font-weight: 700; }
.login-status { font-family: var(--mono); font-size: 0.7rem; color: var(--olive); }

/* ==== 12 Checkout ===================================================== */
.checkout-page { padding-bottom: clamp(40px, 5vw, 72px); }
.checkout-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumb-cart-link:hover { color: var(--stamp); }

.checkout-title { margin-bottom: 1.5rem; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

.checkout-grid { display: grid; grid-template-columns: 1fr 370px; align-items: start; gap: 16px; }
.checkout-form-section { display: flex; flex-direction: column; gap: 16px; }

.checkout-card { padding: 1.3rem; background: var(--sheet); border: var(--rule-mid) solid var(--rule-2); }
.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: var(--rule-mid) solid var(--rule-2);
}
.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--stamp);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}
.checkout-card-title { flex: 1; font-size: 0.95rem; }
.checkout-card-change {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
}
.saved-info { color: var(--ink-2); font-size: 0.85rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-row.full-width { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.75rem; }
.form-input,
.form-select {
  height: 46px;
  padding: 0 0.8rem;
  border: var(--rule-hair) solid var(--rule-2);
  background: var(--stock);
  outline: none;
}
.form-input:focus,
.form-select:focus { border-color: var(--stamp); }
.form-error { font-family: var(--mono); font-size: 0.64rem; color: var(--stamp); }

.shipping-method,
.payment-methods { display: flex; flex-direction: column; gap: 0.55rem; }

.shipping-option,
.payment-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: var(--rule-hair) solid var(--rule-2);
  cursor: pointer;
}
.shipping-option.selected,
.payment-option.selected { border-width: var(--rule-mid); background: var(--sheet-2); }

.shipping-radio,
.payment-radio { accent-color: var(--stamp); width: 16px; height: 16px; }
.shipping-option-left { display: flex; align-items: center; gap: 0.8rem; flex: 1; }
.shipping-option-details { display: flex; flex-direction: column; }
.shipping-option-details .name { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.shipping-option-details span:last-child { font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); }
.shipping-option-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; }

.payment-option-label { display: flex; align-items: center; gap: 0.6rem; flex: 1; font-size: 0.88rem; }
.payment-icon { color: var(--ink-3); font-size: 1.2rem; }
.card-fields { margin-top: 1rem; padding-top: 1rem; border-top: var(--rule-hair) dotted var(--ink-4); }

.place-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 56px;
  margin-top: 1rem;
  background: var(--stamp);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.place-order-btn:hover { background: var(--stamp-ink); }

.secure-checkout,
.support-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--ink-3);
}

.guarantees { display: grid; gap: 0.55rem; margin-top: 1.1rem; }
.guarantee-item { display: flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); }
.guarantee-item i { color: var(--olive); }

.order-summary,
.order-summary-card,
.order-details-card,
.order-processing-card {
  padding: 1.3rem;
  background: var(--sheet);
  border: var(--rule-mid) solid var(--rule-2);
}
.order-summary { position: sticky; top: 86px; }
.order-summary-title,
.order-summary-section h3 {
  padding-bottom: 0.75rem;
  margin-bottom: 0.9rem;
  border-bottom: var(--rule-mid) solid var(--rule-2);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.order-items,
.order-items-list { display: flex; flex-direction: column; }
.order-item,
.order-item-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
}
.order-item-image,
.order-item-thumb { aspect-ratio: 1; background: var(--sheet-2); border: var(--rule-hair) solid var(--rule); }
.order-item-image img,
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-item-details,
.order-item-info { display: flex; flex-direction: column; min-width: 0; }
.order-item-name { font-family: var(--mono); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.order-item-sub,
.order-item-qty { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-3); }
.order-item-price,
.price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.86rem; font-weight: 700; }

/* Dotted leaders make the totals read like a printed invoice. */
.order-summary-row,
.order-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.86rem;
}
.order-summary-row .label,
.order-total-row .label { color: var(--ink-2); }
.order-total-row {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: var(--rule-mid) solid var(--rule-2);
  font-size: 1rem;
  font-weight: 700;
}
.order-summary-total { font-size: 1.4rem; font-weight: 700; }

.order-details-grid { display: grid; gap: 0.5rem; }
.order-detail-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: var(--rule-hair) dotted var(--ink-4);
  font-size: 0.85rem;
}

.order-number { margin-bottom: 1.1rem; }
.order-number-label { display: block; }
.order-number-value { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em; }

@media (max-width: 980px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

/* ==== 13 Thank you / order ============================================ */
.thankyou-page { padding: clamp(44px, 5.5vw, 84px) 0; }
.thankyou-container { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }

.thankyou-icon,
.success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.3rem;
  background: var(--olive);
  color: var(--sheet);
  font-size: 1.5rem;
}
.thankyou-title { margin-bottom: 0.5rem; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.thankyou-subtitle { margin-bottom: 1.8rem; color: var(--ink-2); }
.thankyou-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.btn-continue-shopping,
.btn-track-order {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: var(--rule-mid) solid var(--rule-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-continue-shopping { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.btn-continue-shopping:hover { background: var(--stamp-ink); border-color: var(--stamp-ink); color: #fff; }
.btn-track-order:hover { background: var(--plate); color: var(--sheet); }

.order-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--sheet);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.order-processing-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.processing-state,
.success-state { display: grid; justify-items: center; text-align: center; gap: 0.5rem; }
.processing-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border: 2px solid var(--rule);
  border-top-color: var(--stamp);
  border-radius: 50%;
  animation: wrc-spin 0.7s linear infinite;
}
@keyframes wrc-spin { to { transform: rotate(360deg); } }
.processing-title { font-size: 1.15rem; }
.processing-sub { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); }

/* ==== 14 FAQ ========================================================== */
.faq-hero-container,
.faq-container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.faq-header {
  padding: clamp(36px, 4.5vw, 64px) 0 clamp(22px, 3vw, 34px);
  background: var(--sheet);
  border-bottom: var(--rule-heavy) solid var(--rule-2);
}
.faq-header h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.faq-header p { margin-top: 0.6rem; color: var(--ink-2); }

.faq-section { padding: clamp(32px, 4vw, 56px) 0; }

/* .faq-category is a section wrapper; the heading inside carries the style. */
.faq-category + .faq-category { margin-top: 2.4rem; }
.faq-category > h2,
.editorial-font { margin-bottom: 0.9rem; font-size: clamp(1.1rem, 2vw, 1.5rem); }
h1.editorial-font { font-size: clamp(1.9rem, 4vw, 2.9rem); }

.faq-list { border-top: var(--rule-mid) solid var(--rule-2); }
.faq-item { border-bottom: var(--rule-hair) dotted var(--ink-4); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { color: var(--stamp); }
.faq-question i { flex: none; color: var(--ink-4); font-size: 0.8rem; transition: transform 0.2s; }
.faq-item.active .faq-question i,
.faq-item.expanded .faq-question i { transform: rotate(45deg); color: var(--stamp); }
.faq-answer { max-height: 0; overflow: hidden; color: var(--ink-2); transition: max-height 0.28s ease, padding 0.28s ease; }
.faq-item.active .faq-answer,
.faq-item.expanded .faq-answer { max-height: 640px; padding-bottom: 1.1rem; }

.faq-contact-list { display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.contact-box { padding: 1.3rem; background: var(--sheet); border-left: var(--rule-heavy) solid var(--stamp); }

/* ==== 15 Policy ======================================================= */
.policy-page { padding-bottom: clamp(44px, 5.5vw, 84px); }
.policy-container { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }
.policy-header {
  padding: clamp(36px, 4.5vw, 64px) 0 clamp(22px, 3vw, 34px);
  background: var(--sheet);
  border-bottom: var(--rule-heavy) solid var(--rule-2);
}
.policy-title { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.policy-meta { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.policy-section { padding-top: 2rem; }
.policy-section h2 { margin-bottom: 0.7rem; font-size: 1.1rem; }
.policy-section h3 { margin: 1.1rem 0 0.45rem; font-size: 0.95rem; }
.policy-section p { margin-bottom: 0.8rem; color: var(--ink-2); }
.policy-section ul { margin: 0 0 0.9rem 1.1rem; list-style: square; color: var(--ink-2); }
.policy-section li { margin-bottom: 0.3rem; }
.policy-section a { color: var(--stamp); text-decoration: underline; }
.policy-card { padding: 1.3rem; background: var(--sheet); border-left: var(--rule-heavy) solid var(--olive); }

/* ==== 16 Footer ======================================================= */
.main-footer { background: var(--plate); color: #a49c88; border-top: var(--rule-heavy) solid var(--rule-2); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 4.5vw, 64px) var(--gutter);
}
.brand-col { max-width: 320px; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo-img { max-width: 210px; }
.brand-description { font-size: 0.85rem; line-height: 1.6; }

.footer-col h3 {
  margin-bottom: 0.9rem;
  color: var(--sheet);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.footer-links-list { display: grid; gap: 0.45rem; }
.footer-links-list a { font-size: 0.84rem; }
.footer-links-list a:hover { color: var(--sheet); }

.footer-bottom { border-top: var(--rule-hair) solid rgba(246, 242, 233, 0.16); }
.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-links { display: flex; gap: 1.2rem; }
.legal-links a:hover { color: var(--sheet); }

/* ==== 17 Responsive + reduced motion ================================== */
.reveal { opacity: 1; }

html.scroll-reveal-ready .wrc-page .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.62s ease,
    transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--reveal-order, 0) * 45ms);
  will-change: opacity, transform;
}
html.scroll-reveal-ready .wrc-page .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .wrc-strip { grid-template-columns: 40px 132px 1fr 150px; }
}

/* The hanging numeral folds up above the section once the margin is gone. */
@media (max-width: 860px) {
  .wrc-sec { grid-template-columns: 1fr; gap: 0.6rem; }
  .wrc-sec-num { font-size: 2rem; }
  .wrc-specsheet { grid-template-columns: 1fr; }
  .wrc-strip { grid-template-columns: 34px 110px 1fr; grid-template-areas: "num plate copy" ". . buy"; }
  .wrc-strip-num { grid-area: num; }
  .wrc-strip-plate { grid-area: plate; }
  .wrc-strip-copy { grid-area: copy; }
  .wrc-strip-buy { grid-area: buy; flex-direction: row; align-items: center; justify-content: flex-end; gap: 0.9rem; margin-top: 0.8rem; }
  .wrc-strip-add { width: auto; }
  .pdp-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .wrc-part-meta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrc-cover-buy { flex-direction: column; }
  .wrc-strip { grid-template-columns: 1fr; grid-template-areas: "num" "plate" "copy" "buy"; }
  .wrc-strip-plate { max-width: 180px; }
  .wrc-strip-buy { justify-content: flex-start; }
  .wrc-hero-mix ul { grid-template-columns: repeat(5, 240px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wrc-ticker > div { animation: none; width: 100%; justify-content: center; }
  .wrc-ticker span:nth-child(n + 5) { display: none; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html.scroll-reveal-ready .wrc-page .scroll-reveal { opacity: 1; transform: none; }
}
