/*
Theme Name:  Ascentra Labs
Theme URI:   https://ascentralabs.co
Description: Ascentra Labs — clinical, documentation-first WooCommerce theme for research peptide supply. Ported from the production static site. Sage-on-bone, light, Research Use Only framing throughout.
Version:     1.0.0
Author:      Ascentra Labs
Text Domain: ascentra
License:     Proprietary
*/

/* =====================================================================
   ASCENTRA LABS — Clinical Luxury Design System
   Full CSS ported from static site styles.css (production-verified).
   Google Fonts are enqueued via functions.php; do not add @import here.

   Type roles:
     Source Serif 4  → display / headlines
     IBM Plex Sans   → body, UI, nav
     IBM Plex Mono   → product codes, lot numbers, COA/HPLC-MS labels
   ===================================================================== */

:root {
  --bg:             #F4F1E8;
  --bg-sunken:      #EDE9DC;
  --surface:        #FBFAF5;
  --surface-raised: #FFFFFF;

  --forest:         #1F3A2E;
  --forest-soft:    #2C4A3A;
  --forest-tint:    #E6ECE4;

  --accent:         #6E9150;
  --accent-hover:   #5E8043;
  --accent-quiet:   #8FAE76;

  --text:           #1A1A1A;
  --text-secondary: #4D4A45;
  --text-muted:     #6B6760;
  --text-on-forest: #EDEFEA;
  --text-on-forest-muted: #B7C4B2;

  --border:         #D8D3C4;
  --border-strong:  #C8C4B4;
  --border-hair:    #E4DFD2;

  --chip-ok-bg:     #E6ECE4;
  --chip-ok-text:   #3C5A3F;
  --chip-todo-bg:   #F1E9D2;
  --chip-todo-text: #7A6A36;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(31,58,46,.04), 0 2px 8px rgba(31,58,46,.05);
  --shadow-md: 0 4px 12px rgba(31,58,46,.06), 0 12px 28px rgba(31,58,46,.07);
  --shadow-lg: 0 10px 24px rgba(31,58,46,.08), 0 24px 60px rgba(31,58,46,.10);

  --radius:    10px;
  --radius-lg: 16px;
  --maxw:      1180px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Legacy aliases — retained for legacy page support only */
  --border-light:   #DAD6C8;
  --accent-faint:   #EDF0E6;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--text);
}
h1.display { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2.display { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; }
h3.display { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 52ch;
}
.muted { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); }
.section--sunken { background: var(--bg-sunken); }
.section--forest {
  background: var(--forest);
  color: var(--text-on-forest);
  background-image: radial-gradient(120% 120% at 85% -10%, rgba(110,145,80,.22), transparent 55%);
}
.section--forest .display { color: var(--text-on-forest); }
.section--forest .lead    { color: var(--text-on-forest-muted); }
.section--forest .eyebrow { color: var(--accent-quiet); }

.divider { height: 1px; background: var(--border-hair); border: 0; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--forest);
  color: var(--text-on-forest-muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-align: center;
  padding: .55rem 1rem;
}
.announce strong { color: var(--text-on-forest); font-weight: 500; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-hair);
}
.nav {
  display: flex; align-items: center; flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 1rem; row-gap: .65rem;
  padding-block: 1.1rem;
}
.nav-search {
  flex: 1 1 180px; max-width: 240px; min-width: 0;
  position: relative; display: flex; align-items: center;
}
.nav-search input[type="search"] {
  width: 100%;
  font-family: var(--font-body); font-size: .85rem;
  padding: .42rem .85rem .42rem 2.05rem;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--bg); color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.nav-search input[type="search"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110,145,80,.14);
}
.nav-search input[type="search"]::placeholder { color: var(--text-muted); }
.nav-search .search-ico {
  position: absolute; left: .68rem;
  width: 14px; height: 14px;
  color: var(--text-muted); pointer-events: none; flex-shrink: 0;
}
.nav-search input[type="search"]::-webkit-search-cancel-button { display: none; }

.brand-lockup { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-lockup img { height: 48px; width: auto; object-fit: contain; }
.brand-mark { width: 38px; height: 38px; color: var(--accent); flex: 0 0 auto; display: block; }
.brand-lockup .wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

.nav-links { display: flex; gap: .2rem; align-items: center; flex-shrink: 0; }
.nav-links a, .nav-links .nav-item > a {
  font-size: .92rem; color: var(--text-secondary);
  padding: .35rem .68rem; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--forest-tint); }
.nav-links a[aria-current="page"],
.nav-links a.is-active,
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a { background: var(--accent); color: #fff; }
.nav-links a[aria-current="page"]:hover,
.nav-links a.is-active:hover,
.nav-links .current-menu-item > a:hover { background: var(--accent-hover); color: #fff; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 1px solid var(--border-strong); cursor: pointer;
  border-radius: var(--radius); padding: .5rem .8rem; color: var(--text-secondary);
  font-family: var(--font-body); font-size: .9rem;
  transition: border-color .2s var(--ease), color .2s var(--ease);
  text-decoration: none;
}
.cart-btn:hover { border-color: var(--accent); color: var(--text); }
.cart-btn .count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .68rem; font-family: var(--font-mono);
  display: inline-grid; place-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: .94rem; font-weight: 500;
  padding: .72rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero (split) ---------- */
.hero { padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.hero-copy .eyebrow { display: block; margin-bottom: 1.25rem; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: .9rem; margin-top: 2.25rem; flex-wrap: wrap; }

.hero-visual {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-sunken), var(--surface));
  border: 1px solid var(--border-hair);
  min-height: 440px; padding: 2rem;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-visual .vial {
  max-height: 300px; max-width: 56%;
  position: relative; z-index: 1;
  justify-self: start; align-self: start;
  margin: 2.5rem 0 0 1.5rem;
  filter: drop-shadow(0 24px 40px rgba(31,58,46,.18));
}
.coa-card {
  position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 2;
  width: min(54%, 220px); background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1rem 1.1rem;
}
.coa-card .coa-title { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase; }
.coa-card .coa-row { display: flex; justify-content: space-between; gap: .75rem; font-family: var(--font-mono); font-size: .66rem; color: var(--text-secondary); margin-top: .6rem; }
.coa-card .coa-line { height: 6px; border-radius: 3px; background: var(--border-hair); margin-top: .6rem; }
.coa-card .coa-line.short { width: 60%; }
.badge-float {
  position: absolute; left: 1.25rem; top: 1.25rem; z-index: 3;
  max-width: calc(100% - 2.5rem);
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 999px; padding: .4rem .85rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em;
  color: var(--forest); box-shadow: var(--shadow-md);
}
.badge-float .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Hero rotator ---------- */
.hero-headline-stack { position: relative; min-height: 2.1em; }
.hero-headline-stack .hero-headline {
  position: absolute; inset: 0; opacity: 0; margin: 0;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}
.hero-headline-stack .hero-headline.is-active {
  opacity: 1; position: relative; pointer-events: auto;
}
.hero-visual .hero-vial {
  position: absolute; top: 2.5rem; left: 1.5rem;
  max-height: 300px; max-width: 56%; z-index: 1;
  opacity: 0; transform: scale(.985);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  filter: drop-shadow(0 24px 40px rgba(31,58,46,.18));
}
.hero-visual .hero-vial.is-active { opacity: 1; transform: none; }
.hero-dots { display: flex; gap: .5rem; margin-top: 1.75rem; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--accent-quiet); background: transparent;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-dot:hover { background: var(--accent-quiet); }
.hero-dot.is-active { background: var(--accent); transform: scale(1.15); }
.hero-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .hero-headline-stack .hero-headline,
  .hero-visual .hero-vial { transition: none; }
}

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--border-hair); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-cell { padding: 1.6rem var(--gutter); display: flex; gap: .8rem; align-items: flex-start; border-left: 1px solid var(--border-hair); }
.trust-cell:first-child { border-left: 0; }
.trust-cell .ico { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.trust-cell .t-title { font-weight: 600; font-size: .92rem; }
.trust-cell .t-sub { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; color: var(--text-muted); margin-top: .2rem; }

/* ---------- Product grid + cards ---------- */
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.viewall { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: var(--accent); display: inline-flex; align-items: center; gap: .4rem; }
.viewall .arrow { transition: transform .2s var(--ease); }
.viewall:hover .arrow { transform: translateX(3px); }

.product-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-quiet);
}
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-card--pending { cursor: default; }
.product-media {
  background: radial-gradient(120% 90% at 50% 20%, var(--surface-raised), var(--bg-sunken));
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border-hair);
  /* Vertical padding gives tall vial images (cap-to-base) breathing room. */
  padding: 8% 10%;
}
/* 100% fills the padded cell; contain scales the full uncropped image to fit. */
.product-media img { width: 100%; height: 100%; object-fit: contain; object-position: center center; transition: transform .4s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-cat { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.product-code { font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; font-variant-ligatures: none; }
.product-compound { font-size: .9rem; color: var(--text-secondary); }
.product-present { font-size: .82rem; color: var(--text-muted); }
.product-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.chip {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .04em;
  padding: .25rem .55rem; border-radius: 999px;
}
.chip--ok   { background: var(--chip-ok-bg);   color: var(--chip-ok-text); }
.chip--todo { background: var(--chip-todo-bg); color: var(--chip-todo-text); }
.product-foot {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border-hair);
  display: flex; align-items: center; justify-content: space-between;
}
.product-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
/* Strip WooCommerce price HTML spans */
.product-price .woocommerce-Price-amount,
.product-price bdi { font-family: inherit; font-size: inherit; font-weight: inherit; }
.product-cta { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.product-cta--pending { color: var(--text-muted); }
.product-card:hover .product-cta .arrow { transform: translateX(3px); }
.product-cta .arrow { transition: transform .2s var(--ease); }

/* ---------- WooCommerce pagination ---------- */
.woocommerce-pagination { margin: 3rem 0 1.5rem; }
.woocommerce-pagination .page-numbers {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem;
}
.woocommerce-pagination .page-numbers li { display: contents; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1rem; height: 2.1rem; padding: 0 .5rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.woocommerce-pagination .page-numbers a:hover {
  background: var(--accent-faint); border-color: var(--accent); color: var(--accent);
}
.woocommerce-pagination .page-numbers .current {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
.woocommerce-pagination .page-numbers .next,
.woocommerce-pagination .page-numbers .prev {
  font-family: var(--font-body); font-size: .85rem; letter-spacing: 0; padding: 0 .75rem;
}

/* ---------- Hero scene: layered transparent vials ---------- */
.hero-scene { position: relative; width: 100%; height: 100%; min-height: 420px; }
.hero-scene img { position: absolute; object-fit: contain; display: block; }
.hero-scene .v-front {
  height: 82%; max-height: 350px; left: 50%; bottom: 3%; transform: translateX(-50%);
  z-index: 3; filter: drop-shadow(0 30px 44px rgba(31,58,46,.24));
}
.hero-scene .v-left {
  height: 56%; max-height: 235px; left: 1%; top: 7%; transform: rotate(-5deg);
  z-index: 1; opacity: .9; filter: drop-shadow(0 22px 34px rgba(31,58,46,.15));
}
.hero-scene .v-right {
  height: 52%; max-height: 220px; right: 1%; top: 13%; transform: rotate(5deg);
  z-index: 2; opacity: .88; filter: drop-shadow(0 22px 34px rgba(31,58,46,.15));
}
@keyframes vialFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hero-scene .v-front { animation: vialFloat 7s ease-in-out infinite; }
.hero-scene .v-left  { animation: vialFloat 8.5s ease-in-out -2.5s infinite; }
.hero-scene .v-right { animation: vialFloat 9.5s ease-in-out -1.2s infinite; }
.hero-scene img { transition: scale .4s var(--ease), filter .4s var(--ease); }
.hero-scene img:hover { scale: 1.045; }
.hero-badge {
  position: absolute; right: 1rem; top: 1rem; z-index: 4;
  background: var(--forest);
  border-radius: var(--radius); box-shadow: 0 4px 18px rgba(31,58,46,.38);
  padding: .45rem .7rem;
  display: flex; flex-direction: column; gap: .15rem;
  min-width: 130px;
  transition: opacity .28s ease;
}
.hero-badge-title {
  font-family: var(--font-display); font-size: .75rem; font-weight: 600;
  line-height: 1.1; letter-spacing: -.01em; color: #fff; white-space: nowrap;
}
.hero-badge-meta {
  font-family: var(--font-mono); font-size: .5rem;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.62); white-space: nowrap;
}
.hero-scene .hero-brand-mark {
  position: absolute; left: 1.25rem; bottom: 1rem; z-index: 0;
  width: 108px; height: auto; opacity: .65; pointer-events: none;
}

/* ---------- Forest trust band ---------- */
.band-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band-head .display { margin-top: .65rem; }
.trust-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.trust-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid transparent; border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem 1.7rem; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.trust-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-quiet); }
.trust-card.is-active {
  transform: translateY(-4px);
  border-color: var(--accent-quiet);
  box-shadow: 0 0 0 1px rgba(110,145,80,.22), var(--shadow-lg);
}
.trust-card.is-active::before { transform: scaleX(1); }
.trust-card .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 1rem; transition: transform .3s var(--ease); }
.trust-card:hover .ico, .trust-card.is-active .ico { transform: translateY(-2px) scale(1.06); }
.trust-card h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.trust-card p { font-size: .88rem; color: var(--text-secondary); }

/* ---------- Product carousel ---------- */
.carousel-nav { display: flex; gap: .5rem; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-secondary);
  display: inline-grid; place-items: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel-btn:disabled { opacity: .4; cursor: default; }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-block: .5rem 1rem;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); padding-inline: var(--gutter); width: max-content; }
.carousel-track .product-card { flex: 0 0 clamp(230px, 72vw, 264px); scroll-snap-align: start; }
.carousel-foot { margin-top: 2rem; display: flex; justify-content: center; }

.catalog-cta {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 500;
  padding: .9rem 2.2rem; border-radius: 999px;
  border: 2px solid var(--accent); color: var(--forest);
  background: transparent; letter-spacing: .01em;
  transition: background .22s var(--ease), color .22s var(--ease),
              transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.catalog-cta .arrow { transition: transform .22s var(--ease); }
.catalog-cta:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(110,145,80,.28);
}
.catalog-cta:hover .arrow { transform: translateX(4px); }
.catalog-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Documentation split ---------- */
.doc-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.doc-split > * { min-width: 0; }
.doc-copy .display { margin: .65rem 0 1.1rem; }
.doc-copy p { color: var(--text-secondary); max-width: 56ch; margin-bottom: 1rem; }
.doc-copy p:last-child { margin-bottom: 0; }
.doc-doc {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.5rem 1.6rem;
}
.doc-doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-hair); }
.doc-doc-head .dh-title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.doc-doc-head .dh-lot { font-family: var(--font-mono); font-size: .66rem; color: var(--accent); }
.doc-line-item { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--border-hair); }
.doc-line-item:last-child { border-bottom: 0; }
.doc-line-item .dli-ico { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.doc-line-item .dli-label { font-weight: 600; font-size: .92rem; }
.doc-line-item .dli-val { margin-left: auto; font-family: var(--font-mono); font-size: .67rem; letter-spacing: .04em; color: var(--text-muted); text-transform: uppercase; }

/* ---------- RUO card ---------- */
.ruo-section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.ruo-card {
  background: var(--surface); border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(2.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 760px; margin-inline: auto; text-align: center;
}
.ruo-logo { width: clamp(150px, 22vw, 200px); height: auto; margin: 0 auto 1.5rem; opacity: .95; }
.ruo-card .eyebrow { color: var(--accent); }
.ruo-card .display { margin: .5rem 0 .9rem; }
.ruo-card p { max-width: 58ch; margin-inline: auto; color: var(--text-secondary); }
.ruo-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }

/* ---------- About hero ---------- */
.about-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-hero > * { min-width: 0; }
.about-hero-visual { display: grid; place-items: center; }
.about-lockup { width: clamp(220px, 32vw, 360px); height: auto; }

/* ---------- Documentation suite ---------- */
.docsuite-head { margin-bottom: 1.75rem; }
.docsuite-head .display { margin-top: .5rem; }
.docsuite-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.docsuite-card {
  background: var(--surface-raised); border: 1px solid var(--border-hair);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.docsuite-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-quiet); }
.docsuite-card .ico { width: 24px; height: 24px; color: var(--accent); margin-bottom: .9rem; }
.docsuite-card h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; margin-bottom: .4rem; }
.docsuite-card p { font-size: .86rem; color: var(--text-secondary); }
.docsuite-note { margin-top: 1.25rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--text-muted); }

/* ---------- Accordion ---------- */
.pdp-acc { transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.pdp-acc[open] { border-color: var(--accent-quiet); box-shadow: var(--shadow-sm); }
.pdp-acc[open] > summary { color: var(--accent); }
.pdp-acc[open] .pdp-acc-body { animation: accOpen .28s var(--ease); }
@keyframes accOpen { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* ---------- Bottom nav ---------- */
.bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bottom-nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border-hair); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; font-size: .95rem; color: var(--text);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.bottom-nav-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bottom-nav-link .arrow { color: var(--accent); transition: transform .2s var(--ease); }
.bottom-nav-link:hover .arrow { transform: translateX(3px); }

/* ---------- Doc cards ---------- */
.doc-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.doc-card {
  background: var(--surface); border: 1px solid var(--border-hair);
  border-radius: var(--radius); padding: 1.6rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.doc-card:hover { border-color: var(--accent-quiet); transform: translateY(-3px); }
.doc-card .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 1rem; }
.doc-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: .5rem; }
.doc-card p { font-size: .9rem; color: var(--text-secondary); }

/* ---------- RUO band ---------- */
.ruo { text-align: left; }
.ruo .display { max-width: 18ch; }
.ruo p { max-width: 60ch; }

/* ---------- Product Detail Page (PDP) ---------- */
.pdp-breadcrumb {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--text-muted); padding-block: 1.25rem .25rem;
}
.pdp-breadcrumb a { color: var(--text-muted); transition: color .2s var(--ease); }
.pdp-breadcrumb a:hover { color: var(--accent); }
.pdp-breadcrumb [aria-current] { color: var(--text-secondary); }

.pdp-hero {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
  padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 4rem);
}
.pdp-hero > * { min-width: 0; }

.pdp-media {
  display: grid; place-items: center;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); min-height: 460px;
  background: radial-gradient(120% 90% at 50% 20%, var(--surface-raised), var(--bg-sunken));
  overflow: hidden;
}
.pdp-media img {
  width: auto; max-width: 84%; max-height: 400px;
  object-fit: contain; object-position: center;
  transform: translateY(-3%);
  filter: drop-shadow(0 26px 42px rgba(31,58,46,.18));
}

#documentation { scroll-margin-top: 88px; }

.pdp-detail { padding-top: .25rem; }
.pdp-code {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -.015em;
  margin: .85rem 0 .2rem; font-variant-ligatures: none;
}
.pdp-compound { font-size: 1.05rem; color: var(--text-secondary); }
.pdp-descriptor {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 1.1rem; color: var(--text-secondary); margin: .9rem 0 0;
}
.pdp-lede { color: var(--text-secondary); margin: 1.1rem 0 1.5rem; max-width: 54ch; }

.pdp-pricerow { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.3rem; }
.pdp-price { font-family: var(--font-display); font-weight: 500; font-size: 2rem; letter-spacing: -.01em; }
.pdp-price .woocommerce-Price-amount,
.pdp-price bdi { font-family: inherit; font-size: inherit; font-weight: inherit; }
.pdp-present { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: var(--text-muted); }

.pdp-trust { list-style: none; display: grid; gap: .55rem; margin: 0 0 1.5rem; padding: 0; }
.pdp-trust li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--text-secondary); }
.pdp-trust svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; margin-top: .14rem; }

/* WooCommerce add-to-cart form — styled to match the design */
.pdp-buy,
.pdp-buy form.cart {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  padding: 1.1rem 1.2rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.pdp-buy form.cart { border: 0; padding: 0; }
.pdp-qty,
.pdp-buy .quantity { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-secondary); }
.pdp-qty select,
.pdp-buy .quantity input[type="number"] {
  font-family: var(--font-body); font-size: .92rem; padding: .5rem .6rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text);
  width: 4.5rem;
}
.pdp-buy .btn { flex: 1 1 160px; justify-content: center; }
.pdp-buy .single_add_to_cart_button {
  flex: 1 1 160px; justify-content: center;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: .94rem; font-weight: 500;
  padding: .72rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pdp-buy .single_add_to_cart_button:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pdp-coa-btn { display: flex; justify-content: center; width: 100%; margin-top: .6rem; font-size: .9rem; }
.pdp-buy .btn:disabled, .pdp-buy .btn[disabled],
.pdp-buy .single_add_to_cart_button:disabled {
  background: var(--bg-sunken); color: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none;
}

.pdp-ruo {
  display: flex; gap: .7rem; margin-top: 1rem; padding: .9rem 1.1rem;
  background: var(--forest-tint); border: 1px solid var(--border-hair); border-radius: var(--radius);
}
.pdp-ruo svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: .1rem; }
.pdp-ruo p { font-size: .82rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }
.pdp-ruo strong { color: var(--text); font-weight: 600; }

/* Accordions */
.pdp-sections { display: grid; gap: .75rem; max-width: 860px; }
.pdp-acc { border: 1px solid var(--border-hair); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pdp-acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.05rem 1.3rem;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; color: var(--text);
  transition: color .2s var(--ease);
}
.pdp-acc summary:hover { color: var(--accent); }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pdp-acc .plus { position: relative; width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent); }
.pdp-acc .plus::before, .pdp-acc .plus::after { content: ""; position: absolute; background: currentColor; }
.pdp-acc .plus::before { top: 6px; left: 0; width: 14px; height: 2px; }
.pdp-acc .plus::after { left: 6px; top: 0; width: 2px; height: 14px; transition: transform .25s var(--ease); }
.pdp-acc[open] .plus::after { transform: scaleY(0); }
.pdp-acc-body { padding: 0 1.3rem 1.3rem; }
.pdp-acc-body p { color: var(--text-secondary); margin: 0 0 .8rem; max-width: 68ch; }
.pdp-acc-body p:last-child { margin-bottom: 0; }
.pdp-spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pdp-spec th, .pdp-spec td { text-align: left; vertical-align: top; padding: .6rem 0; border-bottom: 1px solid var(--border-hair); }
.pdp-spec tr:last-child th, .pdp-spec tr:last-child td { border-bottom: 0; }
.pdp-spec th { width: 40%; font-weight: 600; color: var(--text-secondary); overflow-wrap: break-word; }
.pdp-spec td { color: var(--text); overflow-wrap: break-word; }
.pdp-chip {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .03em;
  padding: .12rem .5rem; border-radius: 999px; background: var(--chip-todo-bg); color: var(--chip-todo-text);
}

@media (max-width: 880px) {
  .pdp-hero { grid-template-columns: 1fr; gap: 1.75rem; }
  .pdp-media { min-height: 340px; }
}
@media (max-width: 560px) {
  .pdp-spec th, .pdp-spec td { display: block; width: auto; padding: .15rem 0; border-bottom: 0; }
  .pdp-spec tr { display: block; padding: .55rem 0; border-bottom: 1px solid var(--border-hair); }
  .pdp-spec tr:last-child { border-bottom: 0; }
  .pdp-spec th { color: var(--text-muted); font-size: .8rem; }
}

/* ---------- PDP sticky bar ---------- */
.pdp-page { padding-bottom: 80px; }

@media (min-width: 881px) {
  .pdp-hero .pdp-media {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}

.pdp-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid var(--border-hair);
  box-shadow: 0 -4px 20px rgba(31,58,46,.08);
  padding: .85rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
  opacity: 0; transform: translateY(100%); pointer-events: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.pdp-sticky-bar.is-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.sbar-thumb {
  flex: 0 0 44px; width: 44px; height: 44px;
  background: radial-gradient(circle at 50% 40%, rgba(110,145,80,.13), var(--bg-sunken));
  border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center;
}
.sbar-thumb img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(31,58,46,.14)); }
.sbar-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .07rem; }
.sbar-code {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbar-detail {
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .04em;
  color: var(--text-muted); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbar-price {
  flex: 0 0 auto;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  letter-spacing: -.01em;
}
.sbar-price .woocommerce-Price-amount, .sbar-price bdi { font-family: inherit; font-size: inherit; font-weight: inherit; }
.sbar-cta { flex: 0 0 auto; white-space: nowrap; }
.sbar-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sbar-avail {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}

@media (max-width: 560px) {
  .pdp-sticky-bar { gap: .75rem; padding: .75rem var(--gutter); }
  .sbar-thumb  { display: none; }
  .sbar-detail { display: none; }
  .sbar-code   { font-size: .95rem; }
  .sbar-price  { font-size: 1.1rem; }
  .sbar-cta    { font-size: .82rem; padding: .6rem 1rem; }
}

/* ---------- Inquiry-only states ---------- */
.product-foot--inquiry { flex-direction: column; align-items: flex-start; gap: .45rem; }
.product-inq-status {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
}
.product-inq-actions { display: flex; gap: .75rem; align-items: center; }
.product-inq-link {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.product-inq-link:hover { color: var(--accent-hover); }

.pdp-coa-pending { margin-top: .6rem; display: flex; justify-content: center; }

.pdp-inquiry {
  display: flex; flex-direction: column; gap: .9rem;
  padding: 1.1rem 1.2rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--surface);
}
.pdp-avail-status {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
  padding: .25rem .65rem; border-radius: 999px;
  background: var(--bg-sunken); border: 1px solid var(--border-hair);
  display: inline-block; align-self: flex-start;
}
.pdp-inquiry-toggle { align-self: flex-start; }
.pdp-inquiry-toggle .arrow { display: inline-block; transition: transform .2s var(--ease); }
.pdp-inquiry-toggle[aria-expanded="true"] .arrow { transform: rotate(90deg); }

.pdp-inquiry-panel {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-hair); border-radius: var(--radius);
  background: var(--bg-sunken);
  animation: pdp-inquiry-panel-in .22s var(--ease);
}
.pdp-inquiry-panel[hidden] { display: none; }
.pdp-inquiry-panel-copy { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.pdp-inquiry-methods { display: flex; flex-direction: column; gap: .9rem; }
.pdp-inquiry-method {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem;
  padding-top: .9rem; border-top: 1px solid var(--border-hair);
}
.pdp-inquiry-method:first-child { padding-top: 0; border-top: 0; }
.pdp-inquiry-method-label {
  flex: 0 0 auto; min-width: 4.25rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
}
.pdp-inquiry-email-text { font-family: var(--font-mono); font-size: .85rem; color: var(--text); word-break: break-all; }
.pdp-inquiry-method-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-left: auto; }
.pdp-inquiry-method-btn { font-size: .8rem; padding: .55rem .95rem; }
.pdp-inquiry-copy {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
  color: var(--accent); background: transparent; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: .55rem .9rem;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.pdp-inquiry-copy:hover { border-color: var(--accent); color: var(--accent-hover); }

@keyframes pdp-inquiry-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-inquiry-panel { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-sunken); border-top: 1px solid var(--border-hair); padding-block: 3rem; }
.footer-logo { width: 120px; height: auto; margin-bottom: 1.5rem; opacity: .9; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-links a { font-size: .9rem; color: var(--text-secondary); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-legal a { font-size: .82rem; color: var(--text-muted); transition: color .2s var(--ease); }
.footer-legal a:hover { color: var(--accent); }
.footer-fine { font-size: .82rem; color: var(--text-muted); max-width: 70ch; line-height: 1.7; }
.footer-fine + .footer-fine { margin-top: .6rem; }
.footer-social { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1.25rem 0 1.5rem; }
.footer-social a {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; color: var(--text-secondary);
  text-decoration: none; transition: color .2s var(--ease);
}
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-copy {
  font-size: .78rem; color: var(--text-muted);
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border-hair);
}

/* ---------- Legal pages ---------- */
.legal-doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-hair); }
.legal-header h1.display { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: .75rem; }
.legal-updated { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--text-muted); margin-top: .75rem; }
.legal-prose { max-width: 70ch; }
.legal-intro { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--text-secondary); line-height: 1.7; margin-bottom: 2.5rem; }
.legal-prose h2 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--text);
  margin: 2.75rem 0 .7rem; padding-top: 2.5rem; border-top: 1px solid var(--border-hair);
}
.legal-prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-prose p { color: var(--text-secondary); margin: 0 0 1em; line-height: 1.7; }
.legal-prose ul, .legal-prose ol { color: var(--text-secondary); margin: 0 0 1em 1.25em; line-height: 1.7; }
.legal-prose li { margin-bottom: .4em; }
.legal-prose strong { color: var(--text); font-weight: 600; }
.legal-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose a:hover { color: var(--accent-hover); }
.legal-prose hr { border: 0; height: 1px; background: var(--border-hair); margin: 2.5rem 0; }
.legal-ruo { font-style: italic; font-size: .88rem; color: var(--text-muted); }

/* ---------- FAQ accordions ---------- */
.faq-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border-hair); }
.faq-section-title { font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 500; color: var(--text); margin-bottom: 2.5rem; line-height: 1.15; }
.faq-group { margin-bottom: 2.75rem; }
.faq-group-label { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.faq-list { display: grid; gap: .55rem; }
.faq-acc { border: 1px solid var(--border-hair); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem;
  font-family: var(--font-body); font-size: .98rem; font-weight: 500; color: var(--text);
  transition: color .2s var(--ease);
}
.faq-acc summary:hover { color: var(--accent); }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-acc .plus { position: relative; width: 13px; height: 13px; flex: 0 0 auto; color: var(--accent); }
.faq-acc .plus::before, .faq-acc .plus::after { content: ""; position: absolute; background: currentColor; }
.faq-acc .plus::before { top: 5px; left: 0; width: 13px; height: 2px; }
.faq-acc .plus::after { left: 5px; top: 0; width: 2px; height: 13px; transition: transform .25s var(--ease); }
.faq-acc[open] .plus::after { transform: scaleY(0); }
.faq-acc-body { padding: 0 1.25rem 1.1rem; }
.faq-acc-body p { color: var(--text-secondary); margin: 0 0 .7rem; line-height: 1.65; font-size: .95rem; }
.faq-acc-body p:last-child { margin-bottom: 0; }
.faq-acc-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.faq-acc-body a:hover { color: var(--accent-hover); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 1rem 0 3rem; }
.contact-grid--3 { grid-template-columns: repeat(3, 1fr); }
.contact-grid > * { min-width: 0; }
.contact-block {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 1.65rem 1.75rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.contact-block:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(110,145,80,.10); transform: translateY(-3px); }
.contact-block h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--text); margin: 0 0 .9rem; letter-spacing: -.01em; }
.contact-block p { font-family: var(--font-body); font-size: .9rem; color: var(--text-secondary); margin: 0 0 .6rem; line-height: 1.55; }
.contact-block p:last-child { margin-bottom: 0; }
.contact-email { font-family: var(--font-mono); font-size: .85rem; color: var(--accent); text-decoration: none; letter-spacing: .01em; }
.contact-email:hover { color: var(--accent-hover); text-decoration: underline; }
.contact-note { font-size: .82rem !important; color: var(--text-muted) !important; border-top: 1px solid var(--border-light); padding-top: .6rem; margin-top: .5rem !important; }
.contact-channel { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
.contact-channel:hover { color: var(--accent-hover); }
.contact-ico { width: 15px; height: 15px; flex-shrink: 0; color: inherit; }
.contact-channel-meta { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; margin: .15rem 0 .55rem 1.4rem; }

/* ---------- Page head (legacy contact/testing layout) ---------- */
.page-head { padding: 44px 0 8px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; margin: 0 0 14px; color: var(--text); }
.page-head .lede { font-size: 1.05rem; color: var(--text-secondary); max-width: 66ch; margin: 0; }
.prose { padding: 8px 0 36px; }
.prose h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 28px 0 12px; color: var(--text); }
.prose p { color: var(--text-secondary); max-width: 70ch; }
.prose ul { color: var(--text-secondary); max-width: 70ch; padding-left: 1.2em; }
.prose li { margin: 0 0 6px; }
.quality-band { background: var(--accent-faint); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin: 36px 0 0; }
.quality-band .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 30px 0; }
.quality-band h3 { font-family: var(--font); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.quality-band p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* Wrap helper (contact/testing pages) */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Scroll-reveal ---------- */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- WooCommerce notices (minimal) ---------- */
.woocommerce-notices-wrapper { padding: 1rem 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  font-family: var(--font-body); font-size: .9rem; padding: .75rem 1rem;
  border-radius: var(--radius); margin-bottom: 1rem;
  background: var(--forest-tint); border: 1px solid var(--border-hair); color: var(--text);
  list-style: none;
}
.woocommerce-error { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-cell:nth-child(3) { border-left: 0; }
  .trust-cell { border-top: 1px solid var(--border-hair); }
  .trust-cell:nth-child(-n+2) { border-top: 0; }
  .nav-search { order: 10; flex: 1 1 100%; max-width: 100%; }
  .hero-scene { min-height: 340px; }
  .trust-cards { grid-template-columns: repeat(2, 1fr); }
  .pdp-hero { grid-template-columns: 1fr; gap: 1.75rem; }
  .pdp-media { min-height: 340px; }
}
@media (max-width: 820px) {
  .doc-split { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-visual { margin-top: 1.5rem; }
  .about-lockup { width: clamp(190px, 58vw, 280px); }
}
@media (max-width: 760px) {
  .docsuite-grid { grid-template-columns: 1fr; }
  .bottom-nav { grid-template-columns: 1fr; }
  .contact-grid, .contact-grid--3 { grid-template-columns: 1fr; }
  .quality-band .grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .hero-visual { padding: 1rem; min-height: 360px; }
}
@media (max-width: 560px) {
  .trust-cards { grid-template-columns: 1fr; }
  .hero-scene { min-height: 310px; }
  .hero-scene .v-front { height: 76%; max-height: 235px; }
  .hero-scene .v-left  { height: 50%; max-height: 155px; opacity: .86; transform: rotate(-2deg); left: 3%; }
  .hero-scene .v-right { height: 44%; max-height: 138px; top: 18%; opacity: .82; transform: rotate(2deg); right: 3%; }
  .hero-badge { right: .5rem; top: .5rem; }
  .hero-scene .hero-brand-mark { display: none; }
  .hero-visual { min-height: 360px; }
  .brand-lockup img { height: 38px; }
  .brand-lockup .wordmark { font-size: 1.05rem; white-space: nowrap; }
  .nav-links { gap: .1rem; }
  .nav-links a { font-size: .82rem; padding: .28rem .52rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product-body { padding: .85rem .85rem 1rem; gap: .38rem; }
  .product-code { font-size: 1.05rem; }
  .product-compound { font-size: .8rem; }
  .product-present { font-size: .72rem; }
  .product-price { font-size: 1.05rem; }
  .product-cat { font-size: .6rem; }
  .carousel-track .product-card { flex: 0 0 clamp(148px, 43vw, 196px); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-cell { border-left: 0; border-top: 1px solid var(--border-hair); }
  .trust-cell:first-child { border-top: 0; }
  .pdp-spec th, .pdp-spec td { display: block; width: auto; padding: .15rem 0; border-bottom: 0; }
  .pdp-spec tr { display: block; padding: .55rem 0; border-bottom: 1px solid var(--border-hair); }
  .pdp-spec tr:last-child { border-bottom: 0; }
  .pdp-spec th { color: var(--text-muted); font-size: .8rem; }
  .pdp-sticky-bar { gap: .75rem; padding: .75rem var(--gutter); }
  .sbar-thumb  { display: none; }
  .sbar-detail { display: none; }
  .sbar-code   { font-size: .95rem; }
  .sbar-price  { font-size: 1.1rem; }
  .sbar-cta    { font-size: .82rem; padding: .6rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-scene img { animation: none; }
  .hero-scene img:hover { scale: 1; }
}
