/* ============================================================
   Ryvex Labs — main stylesheet
   ============================================================ */

/* ---------- Variables ----------
   Palette: clean navy/blue lab aesthetic — deep navy + bright blue accent.
   The --a1p-accent var name is kept for backwards compat with the rest of
   the stylesheet; its value is the bright blue accent. */
:root {
  --a1p-navy: #00236c;           /* deep navy */
  --a1p-navy-deep: #001a52;
  --a1p-navy-soft: #0a47b8;      /* mid blue */
  --a1p-accent: #0a47b8;         /* bright blue accent */
  --a1p-accent-soft: #5b8df0;    /* lighter blue for dark-bg accents */
  --a1p-accent-deep: #00236c;    /* deep navy for hovers */
  --a1p-red: #0a47b8;            /* explicit aliases */
  --a1p-red-soft: #5b8df0;
  --a1p-red-deep: #00236c;
  --a1p-cream: #eaf0fb;          /* soft blue tint background */
  --a1p-text: #0e1c3d;
  --a1p-muted: #5d6b8a;
  --a1p-bg: #fbfcff;
  --a1p-bg-alt: #f4f7fd;
  --a1p-bg-dim: #eaf0fb;
  --a1p-border: #e2e8f4;
  --a1p-border-strong: #c7d2ea;
  --a1p-radius: 6px;
  --a1p-container: 1200px;
  --a1p-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --a1p-display: 'Sora', 'Inter', system-ui, sans-serif;
  --a1p-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--a1p-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--a1p-text);
  background: var(--a1p-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--a1p-navy); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--a1p-accent-deep); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--a1p-display);
  font-weight: 600;
  color: var(--a1p-navy);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ---------- Utility ---------- */
.a1p-container {
  max-width: var(--a1p-container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.a1p-section { padding: 72px 0; }
.a1p-accent { color: var(--a1p-accent); }
.a1p-skip-link {
  position: absolute; left: -9999px;
  background: var(--a1p-navy); color: #fff;
  padding: 8px 16px; z-index: 9999;
}
.a1p-skip-link:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.a1p-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--a1p-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.a1p-btn-primary {
  background: var(--a1p-accent);
  color: #ffffff;
  border-color: var(--a1p-accent);
}
.a1p-btn-primary:hover {
  background: var(--a1p-accent-deep);
  border-color: var(--a1p-accent-deep);
  color: #ffffff;
}
.a1p-btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.a1p-btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

/* ---------- Announcement strip ----------
   Thin accent bar that sits above the navy header. */
.a1p-vet-strip {
  background: var(--a1p-red);
  color: #ffffff;
  font-family: var(--a1p-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.4;
}
.a1p-vet-strip strong { font-weight: 600; }
.a1p-vet-strip .a1p-vet-star {
  display: inline-block;
  margin: 0 8px;
  opacity: 0.85;
}

/* Accent badge — reusable pill used inside pages (About, hero, etc.) */
.a1p-vet-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--a1p-red);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--a1p-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.a1p-vet-badge .a1p-vet-badge-icon {
  width: 14px; height: 14px;
  display: inline-block;
}
/* On dark backgrounds, allow an outlined-white variant */
.a1p-vet-badge-outline {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

/* Dedicated full-width section variant for About / static pages */
.a1p-vet-section {
  background: var(--a1p-cream);
  border-top: 1px solid var(--a1p-border);
  border-bottom: 1px solid var(--a1p-border);
  padding: 36px 0;
}
.a1p-vet-section-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.a1p-vet-section-h {
  font-family: var(--a1p-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--a1p-navy);
  margin: 0;
  letter-spacing: -0.01em;
}
.a1p-vet-section-p {
  margin: 6px 0 0;
  color: var(--a1p-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 540px;
}

/* ---------- Header ---------- */
.a1p-header {
  background: #ffffff;
  border-bottom: 1px solid #e4e8ee;
  position: sticky; top: 0; z-index: 100;
}
.a1p-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  max-width: 1080px;
}
.a1p-brand { display: inline-flex; align-items: center; }
.a1p-brand img, .custom-logo { max-height: 104px; width: auto; display: block; }
.a1p-wordmark {
  color: #ffffff;
  font-family: var(--a1p-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.a1p-nav { flex: 1; display: flex; justify-content: center; }
.a1p-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.a1p-menu li > a {
  color: rgba(0, 35, 108,0.80);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  display: inline-block;
  position: relative;
}
.a1p-menu li > a:hover { color: var(--a1p-navy); }
.a1p-menu li.current-menu-item > a,
.a1p-menu li.current_page_item > a { color: var(--a1p-navy); }
.a1p-menu li.current-menu-item > a::after,
.a1p-menu li.current_page_item > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--a1p-accent);
}

.a1p-header-actions { display: inline-flex; align-items: center; gap: 8px; }
.a1p-cart {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--a1p-navy);
  padding: 8px 12px;
  border: 1px solid rgba(0, 35, 108,0.18);
  border-radius: 999px;
  transition: border-color 0.15s ease;
}
.a1p-cart:hover { border-color: var(--a1p-accent); color: var(--a1p-navy); }
.a1p-cart svg { display: block; }
.a1p-cart-count {
  font-family: var(--a1p-mono);
  font-size: 11px;
  min-width: 18px;
  text-align: center;
  background: var(--a1p-accent);
  color: #ffffff;
  border-radius: 999px;
  padding: 1px 6px;
}

/* ---------- Footer ---------- */
.a1p-footer { background: var(--a1p-bg-alt); color: var(--a1p-muted); margin-top: 0; border-top: 1px solid var(--a1p-border); }
.a1p-footer-top { padding: 64px 0 48px; border-bottom: 1px solid var(--a1p-border); }
.a1p-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.a1p-footer-brand {
  font-family: var(--a1p-display);
  font-weight: 700;
  color: var(--a1p-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 16px;
}
.a1p-footer-logo { height: 64px !important; width: auto !important; max-width: 220px; display: block; }
.a1p-footer-tagline { font-size: 14px; line-height: 1.55; margin: 0 0 18px; color: var(--a1p-muted); }
.a1p-footer-address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  color: var(--a1p-muted);
}
.a1p-footer-address a { color: var(--a1p-accent); }
.a1p-footer-address a:hover { color: var(--a1p-navy); }
.a1p-footer-vet {
  margin-top: 14px;
  display: inline-block;
  background: rgba(10, 71, 184,0.15);
  border: 1px solid rgba(10, 71, 184,0.4);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--a1p-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.a1p-footer-bottom-sep { margin: 0 8px; opacity: 0.4; }
.a1p-footer-bottom-vet { color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 0.06em; }
.a1p-footer-h {
  color: var(--a1p-navy);
  font-family: var(--a1p-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.a1p-footer-menu li { margin-bottom: 10px; }
.a1p-footer-menu a {
  color: var(--a1p-muted);
  font-size: 14px;
}
.a1p-footer-menu a:hover { color: var(--a1p-accent); }
.a1p-footer-ruo {
  background: var(--a1p-bg-dim);
  padding: 16px 0;
  font-size: 12px;
  font-family: var(--a1p-mono);
  letter-spacing: 0.02em;
  color: var(--a1p-muted);
}
.a1p-footer-ruo strong { color: var(--a1p-accent); font-weight: 600; }
.a1p-footer-bottom {
  padding: 18px 0;
  font-size: 12px;
  font-family: var(--a1p-mono);
  letter-spacing: 0.02em;
  color: var(--a1p-muted);
  text-align: center;
  border-top: 1px solid var(--a1p-border);
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* ---------- Hero (full-bleed) ---------- */
.a1p-hero {
  position: relative;
  background:
    linear-gradient(170deg, #eef3fc 0%, #f7faff 60%, #ffffff 100%),
    var(--a1p-bg);
  color: var(--a1p-text);
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}
/* Soft blue glow behind hero copy, right-anchored. */
.a1p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 78% 0%, rgba(10,71,184,.10), rgba(0,35,108,0) 55%);
  pointer-events: none;
  z-index: 0;
}
.a1p-hero-inner { position: relative; z-index: 1; }
/* Subtle thin accent band along the bottom of the hero */
.a1p-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--a1p-navy) 0%, var(--a1p-navy-soft) 100%);
  opacity: 0.8;
  z-index: 1;
}
.a1p-eyebrow {
  font-family: var(--a1p-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a1p-accent);
  margin-bottom: 28px;
}
.a1p-eyebrow-soft { color: rgba(255,255,255,0.6); }
.a1p-eyebrow-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--a1p-accent); border-radius: 50%;
  margin-right: 10px; vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(10, 71, 184,0.25);
}
.a1p-hero-h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 880px;
  margin: 0 auto 22px;
  color: var(--a1p-navy);
}
.a1p-hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--a1p-muted);
  max-width: 620px;
  margin: 0 auto 40px;
}
.a1p-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Ghost button is white-on-dark by default (dark bands); on the light hero make it navy. */
.a1p-hero .a1p-btn-ghost { color: var(--a1p-navy); border-color: var(--a1p-border-strong); }
.a1p-hero .a1p-btn-ghost:hover { color: var(--a1p-navy); border-color: var(--a1p-navy); background: rgba(0,35,108,0.05); }
.a1p-hero-ticker {
  margin-top: 56px;
  display: flex; justify-content: center; gap: 40px;
  font-family: var(--a1p-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a1p-muted);
}
.a1p-hero-ticker span { display: inline-flex; align-items: center; gap: 8px; }
.a1p-pill {
  display: inline-block; padding: 3px 8px;
  border: 1px solid rgba(10, 71, 184,0.5);
  border-radius: 999px;
  color: var(--a1p-accent);
}

/* ---------- Trust strip (boxed) ---------- */
.a1p-trust-section { padding: 0; }
.a1p-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--a1p-border);
  border-bottom: 1px solid var(--a1p-border);
}
.a1p-trust.a1p-trust-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .a1p-trust.a1p-trust-4 { grid-template-columns: repeat(2, 1fr); }
  .a1p-trust.a1p-trust-4 .a1p-trust-cell:nth-child(2) { border-right: none; }
}
.a1p-trust-cell {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--a1p-border);
}
.a1p-trust-cell:last-child { border-right: none; }
.a1p-trust-label {
  font-family: var(--a1p-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a1p-muted);
  margin-bottom: 8px;
}
.a1p-trust-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--a1p-navy);
  letter-spacing: -0.01em;
}

/* ---------- Featured products + section heads (boxed) ---------- */
.a1p-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--a1p-border);
  padding-bottom: 18px;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.a1p-section-label {
  font-family: var(--a1p-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a1p-muted);
  margin-bottom: 8px;
}
.a1p-section-h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.a1p-view-all {
  font-family: var(--a1p-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--a1p-navy);
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.a1p-view-all:hover { border-bottom-color: var(--a1p-accent); color: var(--a1p-navy); }

/* ---------- Navy band (full-bleed) ---------- */
.a1p-navy {
  position: relative;
  background: linear-gradient(135deg, var(--a1p-navy-deep) 0%, var(--a1p-navy) 100%);
  color: #ffffff;
  padding: 96px 0;
  overflow: hidden;
}
.a1p-navy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.a1p-navy-h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 18px;
}
.a1p-navy-p { color: rgba(255,255,255,0.7); margin: 0 0 28px; line-height: 1.6; }
.a1p-navy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.a1p-navy-stat-big {
  font-family: var(--a1p-mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--a1p-accent-soft);
  line-height: 1;
  margin-bottom: 8px;
}
.a1p-navy-stat-label {
  font-family: var(--a1p-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ---------- Stats strip (boxed) ---------- */
.a1p-stats-section { padding: 0; }
.a1p-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--a1p-bg-dim);
  border-top: 1px solid var(--a1p-border);
  border-bottom: 1px solid var(--a1p-border);
}
.a1p-stat-cell {
  padding: 56px 24px;
  text-align: center;
  border-right: 1px solid var(--a1p-border);
}
.a1p-stat-cell:last-child { border-right: none; }
.a1p-stat-big {
  font-family: var(--a1p-mono);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--a1p-navy);
  line-height: 1;
  margin-bottom: 12px;
}
.a1p-stat-label {
  font-family: var(--a1p-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a1p-muted);
}

/* ---------- Image banner (full-bleed) ---------- */
.a1p-image-banner {
  position: relative;
  padding: 80px 0;
  background-color: var(--a1p-navy-deep);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
}
.a1p-image-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 82,0.7) 0%, rgba(0, 26, 82,0.5) 100%);
}
.a1p-image-banner-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.a1p-image-banner-h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 28px;
}

/* ---------- RUO strip (boxed) ---------- */
.a1p-ruo-strip { padding: 32px 0; background: var(--a1p-bg-alt); }
.a1p-ruo-strip p {
  margin: 0;
  font-size: 13px;
  color: var(--a1p-muted);
  text-align: center;
}
.a1p-ruo-strip strong { color: var(--a1p-navy); }

/* ============================================================
   PRODUCT GRID + CARDS (shop archive + homepage featured)
   ============================================================ */
.a1p-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.a1p-product-grid--shop { grid-template-columns: repeat(4, 1fr); }

.a1p-product {
  background: #ffffff;
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.a1p-product:hover {
  border-color: var(--a1p-accent);
  box-shadow: 0 4px 16px rgba(10, 71, 184,0.08);
}
.a1p-product-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  flex: 1;
}
.a1p-product-imgwrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--a1p-bg-dim);
}
.a1p-product-img,
.a1p-product-imgwrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.a1p-product:hover .a1p-product-img { transform: scale(1.03); }
.a1p-product-imgph {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--a1p-bg-dim) 25%, transparent 25%) -10px 0,
              linear-gradient(225deg, var(--a1p-bg-dim) 25%, transparent 25%) -10px 0;
  background-size: 20px 20px;
  background-color: #fff;
}
.a1p-product-body { padding: 16px 18px 18px; }
.a1p-product-sku {
  font-family: var(--a1p-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a1p-muted);
  margin-bottom: 6px;
}
.a1p-product-title {
  font-family: var(--a1p-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--a1p-navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.a1p-product-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.a1p-product-coa {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(10, 71, 184,0.4);
  border-radius: 3px;
  background: rgba(10, 71, 184,0.08);
  color: var(--a1p-accent-deep);
  font-family: var(--a1p-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.a1p-product-purity {
  font-family: var(--a1p-mono);
  font-size: 11px;
  color: var(--a1p-muted);
  letter-spacing: 0.04em;
}
.a1p-product-price {
  font-family: var(--a1p-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--a1p-navy);
  letter-spacing: -0.01em;
}
.a1p-product-price .amount { color: inherit; }
.a1p-product-price del { opacity: 0.4; margin-right: 6px; font-weight: 400; }

/* Add-to-cart button outside the link */
.a1p-product > a.button,
.a1p-product > a.add_to_cart_button {
  display: block;
  margin: 0 18px 18px;
  padding: 11px 18px;
  background: var(--a1p-navy);
  color: #ffffff !important;
  text-align: center;
  font-family: var(--a1p-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.15s ease;
  text-decoration: none;
}
.a1p-product > a.button:hover,
.a1p-product > a.add_to_cart_button:hover {
  background: var(--a1p-accent-deep);
  color: #ffffff !important;
}
.a1p-product > a.added_to_cart {
  display: block;
  margin: 0 18px 18px;
  font-size: 12px;
  color: var(--a1p-accent-deep);
  text-align: center;
  font-family: var(--a1p-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   SHOP ARCHIVE
   ============================================================ */
.a1p-shop-header { padding: 48px 0 32px; }
.a1p-shop-h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.a1p-shop-ruo {
  background: var(--a1p-bg-alt);
  border-left: 3px solid var(--a1p-accent);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--a1p-muted);
  border-radius: 0 var(--a1p-radius) var(--a1p-radius) 0;
}
.a1p-shop-ruo strong { color: var(--a1p-navy); }
.a1p-shop-ruo a { color: var(--a1p-accent-deep); font-weight: 600; }

/* Shop toolbar — flex row, "Showing X results" left + sort dropdown right.
   Overrides WC's default float-based layout that was collapsing into the row above the grid. */
.a1p-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--a1p-border);
  border-bottom: 1px solid var(--a1p-border);
  flex-wrap: wrap;
}
.a1p-shop-toolbar .woocommerce-result-count,
.a1p-shop-toolbar .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
  font-family: var(--a1p-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--a1p-muted);
}
.a1p-shop-toolbar .woocommerce-ordering select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  font-family: var(--a1p-body);
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

.woocommerce-pagination ul {
  display: flex; gap: 6px; justify-content: center;
  margin: 40px 0 0 !important; padding: 0 !important;
  border: none !important;
}
.woocommerce-pagination li {
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
}
.woocommerce-pagination a, .woocommerce-pagination span {
  display: inline-block; padding: 8px 14px;
  font-family: var(--a1p-mono); font-size: 13px;
  color: var(--a1p-navy);
}
.woocommerce-pagination .current { background: var(--a1p-navy); color: #fff; }

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.a1p-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.a1p-single-gallery img { border-radius: var(--a1p-radius); }
.a1p-single-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.a1p-single-price {
  font-family: var(--a1p-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--a1p-navy);
  margin: 18px 0 24px;
}
.a1p-single-price .price { font-size: inherit; color: inherit; }
.a1p-single-shortdesc {
  font-size: 15px; line-height: 1.65;
  color: var(--a1p-text);
  margin-bottom: 28px;
}
.a1p-single-form { margin-bottom: 32px; }
.a1p-single-form .quantity {
  display: inline-flex; align-items: center;
  margin-right: 12px;
}
.a1p-single-form .quantity input {
  width: 70px; padding: 11px 12px;
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  font-family: var(--a1p-mono); font-size: 14px;
  text-align: center;
}
.a1p-single-form button[type="submit"],
.a1p-single-form .single_add_to_cart_button {
  background: var(--a1p-navy);
  color: #ffffff !important;
  border: 1px solid var(--a1p-navy);
  padding: 12px 28px;
  font-family: var(--a1p-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.a1p-single-form button[type="submit"]:hover,
.a1p-single-form .single_add_to_cart_button:hover {
  background: var(--a1p-accent-deep);
  border-color: var(--a1p-accent-deep);
}
.a1p-single-meta {
  font-family: var(--a1p-mono);
  font-size: 12px;
  color: var(--a1p-muted);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--a1p-border);
  padding-top: 18px;
}
.a1p-single-meta span { display: block; margin-bottom: 4px; }
.a1p-single-ruo {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--a1p-bg-alt);
  border-left: 3px solid var(--a1p-accent);
  border-radius: 0 var(--a1p-radius) var(--a1p-radius) 0;
  font-size: 13px;
  color: var(--a1p-muted);
}
.a1p-single-ruo strong { color: var(--a1p-navy); }

.a1p-single-tabs-section { padding-top: 16px; }
.woocommerce-tabs ul.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--a1p-border) !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}
.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 12px 18px !important;
  font-family: var(--a1p-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a1p-muted) !important;
  border-bottom: 2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--a1p-navy) !important;
  border-bottom-color: var(--a1p-accent);
}

.a1p-related-section { padding-top: 16px; }
.a1p-related-section h2 {
  font-size: 22px;
  margin: 0 0 24px;
}
.a1p-related-section .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
}

/* ============================================================
   STATIC PAGE TEMPLATE
   ============================================================ */
.a1p-page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--a1p-border);
}
.a1p-page-h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}
.a1p-page-section { padding-top: 48px; }
.a1p-page-content {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
}

/* Wide layout for non-prose pages: contact (has columns), and ALL WC pages.
   These need the full 1200px container, not the 760px reading width.
   The `a1p-wide` body class is added by the theme's body_class filter — see functions.php. */
body.a1p-wide .a1p-page-content { max-width: 100%; }
.a1p-page-content h2 {
  font-size: 24px;
  margin: 36px 0 14px;
}
.a1p-page-content h3 {
  font-size: 19px;
  margin: 28px 0 12px;
}
.a1p-page-content p { margin: 0 0 16px; }
.a1p-page-content ul, .a1p-page-content ol {
  margin: 0 0 16px; padding-left: 22px; list-style: disc;
}
.a1p-page-content ol { list-style: decimal; }
.a1p-page-content li { margin-bottom: 6px; }
.a1p-page-content a {
  color: var(--a1p-accent-deep);
  border-bottom: 1px solid transparent;
}
.a1p-page-content a:hover { border-bottom-color: var(--a1p-accent); }

/* ============================================================
   WOOCOMMERCE: cart / checkout / my-account light styling
   ============================================================ */
.woocommerce { font-family: var(--a1p-body); }
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button {
  background: var(--a1p-navy) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-family: var(--a1p-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 11px 22px !important;
  border: 1px solid var(--a1p-navy) !important;
  transition: all 0.15s ease;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--a1p-accent-deep) !important;
  border-color: var(--a1p-accent-deep) !important;
  color: #fff !important;
}
.woocommerce .button.alt,
.woocommerce a.button.alt {
  background: var(--a1p-accent) !important;
  border-color: var(--a1p-accent) !important;
}
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover {
  background: var(--a1p-accent-deep) !important;
  border-color: var(--a1p-accent-deep) !important;
}

.woocommerce table.shop_table {
  border: 1px solid var(--a1p-border);
  border-collapse: separate;
  border-radius: var(--a1p-radius);
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--a1p-bg-dim);
  font-family: var(--a1p-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a1p-muted);
  padding: 14px 16px;
}
.woocommerce table.shop_table td { padding: 14px 16px; }
.woocommerce table.shop_table tbody tr { border-bottom: 1px solid var(--a1p-border); }
.woocommerce table.shop_table tfoot { background: var(--a1p-bg-alt); }

.woocommerce form .form-row label {
  font-family: var(--a1p-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a1p-muted);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  padding: 11px 14px;
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  font-family: var(--a1p-body);
  font-size: 14px;
}
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--a1p-accent);
  outline: 0;
}

.woocommerce-MyAccount-navigation ul {
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  overflow: hidden;
}
.woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid var(--a1p-border);
}
.woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 16px;
  color: var(--a1p-navy);
  font-size: 14px;
  font-weight: 500;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--a1p-navy);
  color: #fff;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--a1p-accent) !important;
  background: var(--a1p-bg-alt) !important;
  font-size: 14px;
}
.woocommerce-message::before { color: var(--a1p-accent) !important; }

/* ============================================================
   MY ACCOUNT — legacy shortcode rendering, 2-col layout
   ============================================================ */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
/* WooCommerce's .woocommerce::before/::after clearfix become phantom grid items,
   which push the content box onto a 2nd row (240px column) — the "tabs in one row,
   section in another" bug. Remove them and drop WC's float/width on the columns. */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { content: none; display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  overflow: hidden;
  background: #fff;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  list-style: none;
  border-bottom: 1px solid var(--a1p-border);
  margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 13px 16px;
  font-family: var(--a1p-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--a1p-text);
  text-decoration: none;
  transition: background 0.15s ease;
  border-bottom: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--a1p-bg-alt);
  color: var(--a1p-navy);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--a1p-navy);
  color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  padding: 32px;
}
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content p:last-child { margin-bottom: 0; }
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  max-width: 480px;
  padding: 32px !important;
  border: 1px solid var(--a1p-border) !important;
  border-radius: var(--a1p-radius);
  background: #fff;
}
.woocommerce-account .u-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.woocommerce-account .u-columns .col-1,
.woocommerce-account .u-columns .col-2 { width: 100% !important; float: none !important; }

/* ============================================================
   LEGACY CART — table-based fallback (if blocks ever swapped back)
   ============================================================ */
.woocommerce-cart .cart-collaterals {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  margin-top: 24px;
}
.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--a1p-bg-alt);
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  padding: 28px;
  width: 100%;
  float: none;
}
.woocommerce-cart .cart_totals h2 {
  font-size: 18px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--a1p-border);
}

/* ============================================================
   BLOCK CART + BLOCK CHECKOUT — our palette + spacing
   ============================================================ */
/* Make the block container take advantage of full available width */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  max-width: 100% !important;
  margin: 0 !important;
}

/* Color tokens — WC Blocks reads these CSS variables */
.wc-block-components-button.contained,
.wc-block-cart__submit-container .wc-block-components-button,
.wc-block-checkout__actions_row .wc-block-components-button {
  background: var(--a1p-navy) !important;
  color: #fff !important;
  border: 1px solid var(--a1p-navy) !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  font-family: var(--a1p-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: background 0.15s ease, border-color 0.15s ease;
  min-height: auto !important;
}
.wc-block-components-button.contained:hover,
.wc-block-cart__submit-container .wc-block-components-button:hover,
.wc-block-checkout__actions_row .wc-block-components-button:hover {
  background: var(--a1p-accent-deep) !important;
  border-color: var(--a1p-accent-deep) !important;
}

/* Sidebar order summary card — ONE outer border around the whole column.
   Inner WC Blocks borders killed below so we don't get the double-border effect. */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
  background: var(--a1p-bg-alt) !important;
  border: 1px solid var(--a1p-border) !important;
  border-radius: var(--a1p-radius) !important;
  padding: 28px !important;
  box-shadow: none !important;
}
.wc-block-cart__sidebar > *,
.wc-block-checkout__sidebar > *,
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar .wc-block-components-sidebar,
.wc-block-components-sidebar-layout .wc-block-components-sidebar {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* Soften the WC Blocks totals divider lines to a single light hairline */
.wc-block-components-totals-wrapper {
  border-top: 1px solid var(--a1p-border) !important;
  border-bottom: none !important;
  padding-top: 12px !important;
  margin-top: 12px !important;
}
.wc-block-components-totals-wrapper:first-child {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Headings inside block UI */
.wc-block-cart h1,
.wc-block-checkout__terms,
.wp-block-woocommerce-cart .wc-block-components-totals-item__label,
.wc-block-cart__totals-title,
.wc-block-checkout__totals-title {
  font-family: var(--a1p-display) !important;
  color: var(--a1p-navy) !important;
  letter-spacing: -0.01em !important;
}

/* Line item rows in block cart */
.wc-block-cart-items__row,
.wc-block-cart-item__wrap { padding: 16px 0 !important; }
.wc-block-cart-item__image img {
  border-radius: var(--a1p-radius);
  background: var(--a1p-bg-dim);
}
.wc-block-cart-item__product-name {
  font-family: var(--a1p-display) !important;
  font-weight: 600 !important;
  color: var(--a1p-navy) !important;
  text-decoration: none !important;
}
.wc-block-components-product-price__value,
.wc-block-formatted-money-amount {
  font-family: var(--a1p-mono) !important;
  font-weight: 600 !important;
  color: var(--a1p-navy) !important;
}

/* Qty selector */
.wc-block-components-quantity-selector {
  border: 1px solid var(--a1p-border) !important;
  border-radius: 999px !important;
  overflow: hidden;
}
.wc-block-components-quantity-selector__button,
.wc-block-components-quantity-selector__input {
  font-family: var(--a1p-mono) !important;
  color: var(--a1p-navy) !important;
  background: transparent !important;
}

/* Totals row + grand total */
.wc-block-components-totals-item,
.wc-block-components-totals-footer-item {
  padding: 10px 0 !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--a1p-mono) !important;
  font-size: 22px !important;
  color: var(--a1p-navy) !important;
}

/* Form inputs inside Block Checkout */
.wc-block-components-text-input input,
.wc-block-components-text-input select,
.wc-block-components-checkbox__input,
.wc-block-components-select,
.wc-block-components-form .wc-block-components-text-input input {
  border: 1px solid var(--a1p-border) !important;
  border-radius: var(--a1p-radius) !important;
  font-family: var(--a1p-body) !important;
  font-size: 14px !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus,
.wc-block-components-text-input.is-active input {
  border-color: var(--a1p-accent) !important;
}

/* Payment method blocks */
.wc-block-components-payment-method-label {
  font-family: var(--a1p-display) !important;
  font-weight: 600 !important;
  color: var(--a1p-navy) !important;
}
.wc-block-components-radio-control__input:checked,
.wc-block-components-radio-control__option {
  accent-color: var(--a1p-accent);
}

/* Empty cart state */
.wc-block-cart__empty-cart__title {
  font-family: var(--a1p-display) !important;
  color: var(--a1p-navy) !important;
  letter-spacing: -0.01em !important;
}

/* Notices */
.wc-block-components-notice-banner {
  border-radius: var(--a1p-radius) !important;
  font-family: var(--a1p-body) !important;
  font-size: 14px !important;
}
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-info {
  border-color: var(--a1p-accent) !important;
}

@media (max-width: 900px) {
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-cart .cart-collaterals { grid-template-columns: 1fr; }
}

/* ============================================================
   SIDECART DRAWER
   ============================================================ */
.a1p-sc-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 26, 82, 0.55);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.a1p-sc-backdrop.is-open { opacity: 1; pointer-events: auto; }

.a1p-sc {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 26, 82, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: var(--a1p-body);
}
.a1p-sc.is-open { transform: translateX(0); }

/* Header */
.a1p-sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--a1p-border);
  background: var(--a1p-bg);
  flex-shrink: 0;
}
.a1p-sc-title {
  font-family: var(--a1p-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--a1p-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.a1p-sc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
  background: var(--a1p-accent);
  color: #ffffff;
  border-radius: 999px;
  font-family: var(--a1p-mono);
  font-size: 11px;
  font-weight: 600;
}
.a1p-sc-close {
  background: transparent;
  border: 1px solid var(--a1p-border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--a1p-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.a1p-sc-close:hover {
  color: var(--a1p-navy);
  border-color: var(--a1p-navy);
}

/* Body */
.a1p-sc-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  background: var(--a1p-bg-alt);
}

/* Empty state */
.a1p-sc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  gap: 16px;
  min-height: 100%;
}
.a1p-sc-empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--a1p-bg-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--a1p-muted);
}
.a1p-sc-empty-text {
  margin: 0;
  font-size: 15px;
  color: var(--a1p-muted);
}

/* Line items */
.a1p-sc-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.a1p-sc-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--a1p-border);
  align-items: start;
}
.a1p-sc-item-img {
  width: 72px; height: 72px;
  border-radius: var(--a1p-radius);
  background: var(--a1p-bg-dim);
  object-fit: cover;
  display: block;
}
.a1p-sc-item-body { min-width: 0; }
.a1p-sc-item-title {
  margin: 0 0 4px;
  font-family: var(--a1p-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--a1p-navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.a1p-sc-item-title a { color: inherit; text-decoration: none; }
.a1p-sc-item-title a:hover { color: var(--a1p-accent-deep); }
.a1p-sc-item-sku {
  font-family: var(--a1p-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--a1p-muted);
  margin-bottom: 8px;
}
.a1p-sc-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.a1p-sc-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--a1p-border);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}
.a1p-sc-qty-btn {
  background: transparent;
  border: none;
  width: 28px;
  font-size: 14px;
  color: var(--a1p-navy);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}
.a1p-sc-qty-btn:hover { background: var(--a1p-bg-dim); }
.a1p-sc-qty-btn:disabled { color: var(--a1p-border-strong); cursor: not-allowed; }
.a1p-sc-qty-val {
  min-width: 28px;
  text-align: center;
  font-family: var(--a1p-mono);
  font-size: 13px;
  color: var(--a1p-navy);
  border-left: 1px solid var(--a1p-border);
  border-right: 1px solid var(--a1p-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.a1p-sc-remove {
  background: transparent;
  border: none;
  color: var(--a1p-muted);
  font-size: 11px;
  font-family: var(--a1p-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}
.a1p-sc-remove:hover { color: #0a47b8; }
.a1p-sc-item-price {
  font-family: var(--a1p-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--a1p-navy);
  text-align: right;
  white-space: nowrap;
}

/* Footer */
.a1p-sc-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--a1p-border);
  background: #ffffff;
  flex-shrink: 0;
}
.a1p-sc-totals {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.a1p-sc-totals-label {
  font-family: var(--a1p-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a1p-muted);
}
.a1p-sc-totals-value {
  font-family: var(--a1p-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--a1p-navy);
  letter-spacing: -0.01em;
}
.a1p-sc-totals-note {
  margin: 0 0 16px;
  font-size: 11px;
  color: var(--a1p-muted);
  font-family: var(--a1p-mono);
  letter-spacing: 0.04em;
}
.a1p-sc-checkout {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
  padding: 14px 24px;
}
.a1p-sc-viewcart {
  display: block;
  text-align: center;
  font-family: var(--a1p-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a1p-muted);
}
.a1p-sc-viewcart:hover { color: var(--a1p-navy); }

/* Loading overlay */
.a1p-sc-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.a1p-sc-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--a1p-bg-dim);
  border-top-color: var(--a1p-accent);
  border-radius: 50%;
  animation: a1p-spin 0.7s linear infinite;
}
@keyframes a1p-spin { to { transform: rotate(360deg); } }

/* Lock body when sidecart open */
body.a1p-sc-open { overflow: hidden; }

/* Honor the [hidden] HTML attribute on sidecart elements.
   The CSS `display: flex` rules on .a1p-sc-empty + .a1p-sc-loading otherwise
   beat the user-agent `[hidden]{display:none}` rule (same specificity but
   author > UA in cascade), leaving the spinner visible permanently. */
.a1p-sc [hidden],
.a1p-sc-backdrop[hidden] { display: none !important; }

@media (max-width: 480px) {
  .a1p-sc { max-width: 100%; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .a1p-product-grid { grid-template-columns: repeat(3, 1fr); }
  .a1p-product-grid--shop { grid-template-columns: repeat(3, 1fr); }
  .a1p-navy-inner { grid-template-columns: 1fr; gap: 40px; }
  .a1p-navy-stats { grid-template-columns: 1fr 1fr; }
  .a1p-single-grid { grid-template-columns: 1fr; gap: 32px; }
  .a1p-stats { grid-template-columns: 1fr 1fr; }
  .a1p-stat-cell:nth-child(2) { border-right: none; }
  .a1p-stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--a1p-border); }
  .a1p-related-section .products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .a1p-header-inner { gap: 12px; padding: 12px 0; }
  .a1p-nav { display: none; } /* TODO: mobile menu */
  .a1p-menu { gap: 0; }
  .a1p-product-grid,
  .a1p-product-grid--shop { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .a1p-hero { padding: 72px 0 56px; }
  .a1p-hero-ticker { flex-direction: column; gap: 12px; align-items: center; }
  .a1p-trust { grid-template-columns: 1fr; }
  .a1p-trust-cell { border-right: none; border-bottom: 1px solid var(--a1p-border); }
  .a1p-trust-cell:last-child { border-bottom: none; }
  .a1p-stats { grid-template-columns: 1fr; }
  .a1p-stat-cell { border-right: none; border-bottom: 1px solid var(--a1p-border); }
  .a1p-stat-cell:last-child { border-bottom: none; }
  .a1p-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .a1p-section { padding: 48px 0; }
  .a1p-related-section .products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .a1p-product-grid,
  .a1p-product-grid--shop { grid-template-columns: 1fr; }
  .a1p-navy-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   Excellence / value-prop cards (homepage)  — added 2026-05-31
   ============================================================ */
.a1p-excellence { background: var(--a1p-bg); }
.a1p-exc-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.a1p-exc-head .a1p-section-h2 { margin-bottom: 16px; }
.a1p-exc-sub { color: var(--a1p-muted); font-size: 16px; line-height: 1.7; margin: 0; }
.a1p-exc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.a1p-exc-card {
  border: 1px solid var(--a1p-border);
  border-radius: var(--a1p-radius);
  background: var(--a1p-bg-alt);
  padding: 34px 26px;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.a1p-exc-card:hover {
  border-color: var(--a1p-accent);
  box-shadow: 0 10px 28px rgba(0, 35, 108,0.08);
  transform: translateY(-3px);
}
.a1p-exc-icon {
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(10, 71, 184,0.08);
  color: var(--a1p-accent);
}
.a1p-exc-icon svg { width: 28px; height: 28px; }
.a1p-exc-title { font-size: 18px; margin-bottom: 12px; }
.a1p-exc-text { color: var(--a1p-muted); font-size: 14px; line-height: 1.65; margin: 0; }

/* ============================================================
   Newsletter / exclusive offers (homepage)  — added 2026-05-31
   ============================================================ */
.a1p-news { background: var(--a1p-bg-dim); }
.a1p-news-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.a1p-news-h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.a1p-news-sub { color: var(--a1p-muted); font-size: 16px; line-height: 1.7; margin: 0 0 28px; }
.a1p-news-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.a1p-news-input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--a1p-border-strong);
  border-radius: 999px;
  font-family: var(--a1p-body);
  font-size: 15px;
  color: var(--a1p-text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.a1p-news-input:focus {
  outline: none;
  border-color: var(--a1p-accent);
  box-shadow: 0 0 0 3px rgba(10, 71, 184,0.12);
}
.a1p-news-btn { flex-shrink: 0; padding-left: 28px; padding-right: 28px; }
.a1p-news-thanks {
  display: inline-block;
  background: rgba(0, 35, 108,0.06);
  border: 1px solid var(--a1p-border-strong);
  color: var(--a1p-navy);
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  margin: 0;
}
.a1p-news-error { color: var(--a1p-accent-deep); font-size: 14px; margin: 0 0 16px; font-weight: 500; }
.a1p-screenreader { position: absolute; left: -9999px; }

@media (max-width: 980px) {
  .a1p-exc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .a1p-exc-grid { grid-template-columns: 1fr; }
  .a1p-news-form { flex-direction: column; }
  .a1p-news-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   HOME REDESIGN 2026-07-17 — announcement bar, split hero,
   icon trust card, featured restyle, results band
   ============================================================ */

/* ---------- Announcement top bar ---------- */
.a1p-topbar { background: var(--a1p-navy-deep); color: rgba(255,255,255,0.82); }
.a1p-topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 24px;
  font-family: var(--a1p-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3;
}
.a1p-topbar-ico { width: 14px; height: 14px; flex-shrink: 0; color: var(--a1p-accent-soft); }
.a1p-topbar-dot { opacity: 0.5; }
.a1p-topbar-promo { color: #fff; }
.a1p-topbar-promo b { color: var(--a1p-accent-soft); font-weight: 700; letter-spacing: 0.18em; padding-left: 2px; }
@media (max-width: 520px) {
  .a1p-topbar-inner { font-size: 9.5px; letter-spacing: 0.1em; gap: 7px; }
}

/* ---------- Header icon buttons (search / account) ---------- */
.a1p-header-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  color: var(--a1p-navy);
  transition: background 0.15s ease, color 0.15s ease;
}
.a1p-header-icon:hover { background: var(--a1p-bg-dim); color: var(--a1p-accent-deep); }

/* ---------- Split hero (lab / molecule composition) ---------- */
.a1p-hero--split {
  text-align: left; padding: 92px 0 84px; position: relative; overflow: hidden;
  background: linear-gradient(105deg, #f5f9ff 0%, #eaf2fd 42%, #d8e8fa 68%, #c6ddf5 100%);
}
.a1p-hero--split::after { display: none; } /* drop the base 4px band on split hero */
.a1p-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.a1p-hero-orb { position: absolute; border-radius: 50%; filter: blur(64px); }
.a1p-hero-orb-1 { width: 360px; height: 360px; top: -70px; right: 5%; background: radial-gradient(circle at 40% 35%, #b9d4f7, transparent 70%); opacity: 0.6; }
.a1p-hero-orb-2 { width: 280px; height: 280px; bottom: -50px; right: 24%; background: radial-gradient(circle at 50% 50%, #9ec3f2, transparent 70%); opacity: 0.4; }
.a1p-hero-orb-3 { width: 320px; height: 320px; top: 26%; left: -90px; background: radial-gradient(circle at 50% 50%, #e2ecfb, transparent 70%); opacity: 0.55; }
.a1p-hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; filter: drop-shadow(0 20px 40px rgba(10,62,168,0.18)); }
.a1p-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center;
}
.a1p-hero--split .a1p-hero-h1 { margin: 0 0 20px; max-width: none; }
.a1p-hero--split .a1p-hero-sub { margin: 0 0 32px; max-width: 480px; }
.a1p-hero--split .a1p-hero-cta { justify-content: flex-start; }
.a1p-hero-ruo {
  display: inline-flex; align-items: center; gap: 9px; margin: 34px 0 0;
  font-family: var(--a1p-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a1p-muted);
}
.a1p-hero-ruo svg { width: 15px; height: 15px; color: var(--a1p-accent); flex-shrink: 0; }
.a1p-hero-media { position: relative; display: flex; justify-content: center; align-items: flex-end; }
/* Fade the vial photo's studio background into the hero (no hard grey box). */
.a1p-hero-vial {
  position: relative; z-index: 1; width: auto; max-height: 540px;
  -webkit-mask: radial-gradient(ellipse 60% 72% at 50% 44%, #000 50%, transparent 100%);
  mask: radial-gradient(ellipse 60% 72% at 50% 44%, #000 50%, transparent 100%);
}
@media (max-width: 900px) {
  .a1p-hero--split { text-align: center; padding: 64px 0 56px; }
  .a1p-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .a1p-hero--split .a1p-hero-cta { justify-content: center; }
  .a1p-hero--split .a1p-hero-sub { margin-left: auto; margin-right: auto; }
  .a1p-hero-vial { max-height: 340px; }
  .a1p-hero-scene { opacity: 0.55; }
}

/* ---------- Icon trust card (overlaps hero) ---------- */
.a1p-trust-section { padding: 0; position: relative; margin-top: -46px; z-index: 3; }
.a1p-trust.a1p-trust-4 {
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--a1p-border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,35,108,0.10);
  overflow: hidden;
}
.a1p-trust-cell {
  padding: 30px 22px; text-align: center;
  border-right: 1px solid var(--a1p-border); border-top: none; border-bottom: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.a1p-trust-cell:last-child { border-right: none; }
.a1p-trust-icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(10,71,184,0.08); color: var(--a1p-accent);
}
.a1p-trust-icon svg { width: 24px; height: 24px; }
.a1p-trust-title {
  font-family: var(--a1p-display); font-size: 13.5px; font-weight: 600;
  color: var(--a1p-navy); letter-spacing: 0.02em; text-transform: uppercase;
}
.a1p-trust-desc { font-size: 12.5px; line-height: 1.5; color: var(--a1p-muted); max-width: 210px; }
@media (max-width: 860px) {
  .a1p-trust.a1p-trust-4 { grid-template-columns: repeat(2, 1fr); }
  .a1p-trust-cell:nth-child(2) { border-right: none; }
  .a1p-trust-cell:nth-child(-n+2) { border-bottom: 1px solid var(--a1p-border); }
}
@media (max-width: 480px) {
  .a1p-trust-section { margin-top: -30px; }
  .a1p-trust.a1p-trust-4 { grid-template-columns: 1fr; }
  .a1p-trust-cell { border-right: none; border-bottom: 1px solid var(--a1p-border); }
  .a1p-trust-cell:last-child { border-bottom: none; }
}

/* ---------- Featured (centered head + best-seller + purity pill + view-all) ---------- */
.a1p-featured-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.a1p-overline {
  font-family: var(--a1p-mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--a1p-accent); margin-bottom: 12px;
}
.a1p-featured-head .a1p-section-h2 { margin: 0; }
.a1p-featured-head .a1p-section-h2::after {
  content: ""; display: block; width: 54px; height: 3px;
  background: var(--a1p-accent); border-radius: 2px; margin: 16px auto 0;
}

/* full vial on a soft blue lab background (portrait images), grey studio bg masked away */
.a1p-product-imgwrap { background: radial-gradient(circle at 50% 40%, #dcebfb 0%, #c3d9f3 100%); }
.a1p-product-img, .a1p-product-imgwrap img {
  object-fit: contain; padding: 14px 10px 4px;
  -webkit-mask: radial-gradient(ellipse 76% 84% at 50% 45%, #000 58%, transparent 100%);
  mask: radial-gradient(ellipse 76% 84% at 50% 45%, #000 58%, transparent 100%);
}

.a1p-badge-bestseller {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--a1p-navy); color: #fff;
  font-family: var(--a1p-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; border-radius: 5px;
}
.a1p-product-purity-pill {
  display: inline-block; font-family: var(--a1p-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--a1p-accent-deep);
  background: rgba(10,71,184,0.08); border: 1px solid rgba(10,71,184,0.2);
  padding: 3px 8px; border-radius: 999px;
}

/* outline add-to-cart with cart glyph
   (bg/border forced !important so the generic `.woocommerce a.button` navy
   fill doesn't override just the background on WC archive pages — which left
   navy text on a navy fill = invisible button on /shop/) */
.a1p-product > a.button,
.a1p-product > a.add_to_cart_button {
  background: #ffffff !important; color: var(--a1p-navy) !important;
  border: 1px solid var(--a1p-border-strong) !important;
}
.a1p-product > a.button:hover,
.a1p-product > a.add_to_cart_button:hover {
  background: var(--a1p-navy) !important; color: #ffffff !important; border-color: var(--a1p-navy) !important;
}
.a1p-product > a.add_to_cart_button::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat;
}
.a1p-viewall-wrap { text-align: center; margin-top: 44px; }
.a1p-btn-viewall { padding-left: 34px; padding-right: 34px; color: var(--a1p-navy); border-color: var(--a1p-border-strong); }
.a1p-btn-viewall:hover { color: #fff; background: var(--a1p-navy); border-color: var(--a1p-navy); }

/* ---------- Results band (dark) ---------- */
.a1p-results { padding: 80px 0; }
.a1p-results::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(620px 420px at 12% 50%, rgba(91,141,240,0.18), transparent 62%);
}
.a1p-results-dna {
  position: absolute; left: 3%; top: 50%; transform: translateY(-50%);
  height: 84%; width: auto; z-index: 0; opacity: 0.9; pointer-events: none;
}
@media (max-width: 900px) { .a1p-results-dna { opacity: 0.25; left: -6%; } }
.a1p-results-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: center;
}
.a1p-results-h2 {
  font-family: var(--a1p-display); font-weight: 700;
  font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -0.02em;
  color: #ffffff; margin: 0;
}
.a1p-accent-soft-text { color: var(--a1p-accent-soft); }
.a1p-results-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.a1p-results-feat { display: flex; flex-direction: column; gap: 14px; }
.a1p-results-ico {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(91,141,240,0.15);
  border: 1px solid rgba(91,141,240,0.3); color: var(--a1p-accent-soft);
}
.a1p-results-ico svg { width: 22px; height: 22px; }
.a1p-results-feat-title { font-family: var(--a1p-display); font-size: 15px; font-weight: 600; color: #fff; }
.a1p-results-feat-text { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.68); }
@media (max-width: 900px) {
  .a1p-results-inner { grid-template-columns: 1fr; gap: 36px; }
  .a1p-results-features { grid-template-columns: 1fr; gap: 22px; }
  .a1p-results-feat { flex-direction: row; }
  .a1p-results-ico { flex-shrink: 0; }
}

/* ---------- Product specification table (Description tab) ---------- */
.ryv-spec { max-width: 720px; }
.ryv-spec-h { font-size: 20px; margin: 0 0 18px; }
.ryv-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.ryv-spec-table th, .ryv-spec-table td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--a1p-border); vertical-align: top;
}
.ryv-spec-table tr:first-child th, .ryv-spec-table tr:first-child td { border-top: 1px solid var(--a1p-border); }
.ryv-spec-table th {
  width: 38%; font-family: var(--a1p-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--a1p-muted); font-weight: 600; white-space: nowrap;
}
.ryv-spec-table td { color: var(--a1p-text); }
.ryv-spec-note {
  margin: 20px 0 0; font-size: 13px; color: var(--a1p-muted);
  background: var(--a1p-bg-alt); border-left: 3px solid var(--a1p-accent);
  padding: 12px 16px; border-radius: 0 6px 6px 0;
}
.ryv-spec-note strong { color: var(--a1p-navy); }
@media (max-width: 520px) { .ryv-spec-table th { width: 44%; white-space: normal; } }

/* ---------- Facility showcase band ---------- */
.a1p-facility { padding-top: 12px; }
.a1p-facility-figure { margin: 0 auto; max-width: 1040px; }
.a1p-facility-img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  border: 1px solid var(--a1p-border);
  box-shadow: 0 24px 60px rgba(0,35,108,0.16);
}
