/* ============================================================
   America 1st Peptides — main stylesheet
   ============================================================ */

/* ---------- Variables ----------
   Palette: American-flag — Old Glory Navy + Old Glory Red + White.
   The --a1p-accent var name is kept for backwards compat with the rest of
   the stylesheet; its value is now flag red (was emerald). */
:root {
  --a1p-navy: #0A2240;           /* Old Glory Blue (deepened) */
  --a1p-navy-deep: #061633;
  --a1p-navy-soft: #3C3B6E;      /* Old Glory Blue (mid) */
  --a1p-accent: #B22234;         /* Old Glory Red — flag red */
  --a1p-accent-soft: #E4596A;    /* lighter red for dark-bg accents */
  --a1p-accent-deep: #8A1A28;    /* darker red for hovers */
  --a1p-red: #B22234;            /* explicit aliases */
  --a1p-red-soft: #E4596A;
  --a1p-red-deep: #8A1A28;
  --a1p-cream: #F5F1E8;          /* warm parchment-flag background */
  --a1p-text: #1a2332;
  --a1p-muted: #5b6470;
  --a1p-bg: #ffffff;
  --a1p-bg-alt: #fafbfc;
  --a1p-bg-dim: #f3f5f8;
  --a1p-border: #e5e7eb;
  --a1p-border-strong: #cbd1d8;
  --a1p-radius: 6px;
  --a1p-container: 1200px;
  --a1p-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --a1p-display: 'IBM Plex Sans', '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;
}

/* ---------- Veteran-owned announcement strip ----------
   Thin flag-red 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;
}

/* Veteran 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;
}
.a1p-brand { display: inline-flex; align-items: center; }
.a1p-brand img, .custom-logo { max-height: 52px; 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(10,34,64,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(10,34,64,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-navy-deep); color: rgba(255,255,255,0.7); margin-top: 0; }
.a1p-footer-top { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.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: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 16px;
}
.a1p-footer-tagline { font-size: 14px; line-height: 1.55; margin: 0 0 18px; color: rgba(255,255,255,0.65); }
.a1p-footer-address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.a1p-footer-address a { color: var(--a1p-accent-soft); }
.a1p-footer-address a:hover { color: #ffffff; }
.a1p-footer-vet {
  margin-top: 14px;
  display: inline-block;
  background: rgba(178,34,52,0.15);
  border: 1px solid rgba(178,34,52,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: #ffffff;
  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: rgba(255,255,255,0.65);
  font-size: 14px;
}
.a1p-footer-menu a:hover { color: var(--a1p-accent-soft); }
.a1p-footer-ruo {
  background: var(--a1p-navy);
  padding: 16px 0;
  font-size: 12px;
  font-family: var(--a1p-mono);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
}
.a1p-footer-ruo strong { color: var(--a1p-accent-soft); font-weight: 600; }
.a1p-footer-bottom {
  padding: 18px 0;
  font-size: 12px;
  font-family: var(--a1p-mono);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.4);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}

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

/* ---------- Hero (full-bleed) ---------- */
.a1p-hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(6,22,51,0.96) 0%, rgba(10,34,64,0.92) 55%, rgba(138,26,40,0.55) 100%),
    var(--a1p-navy);
  color: #ffffff;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}
/* Real Statue of Liberty photo, right-anchored, behind hero copy.
   Swapped from the line-art silhouette per merchant request (2026-05-29).
   Image: Statue of Liberty (transparent cut-out), via Wikimedia Commons. */
.a1p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/liberty-photo.png');
  background-repeat: no-repeat;
  background-position: right -20px bottom;
  background-size: auto 96%;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
.a1p-hero-inner { position: relative; z-index: 1; }
/* Subtle thin tri-color 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-soft) 0%,
    var(--a1p-navy-soft) 33.3%,
    #ffffff 33.3%,
    #ffffff 66.6%,
    var(--a1p-red) 66.6%,
    var(--a1p-red) 100%);
  opacity: 0.55;
  z-index: 1;
}
.a1p-eyebrow {
  font-family: var(--a1p-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a1p-accent-soft);
  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(178,34,52,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: #ffffff;
}
.a1p-hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin: 0 auto 40px;
}
.a1p-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.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: rgba(255,255,255,0.55);
}
.a1p-hero-ticker span { display: inline-flex; align-items: center; gap: 8px; }
.a1p-pill {
  display: inline-block; padding: 3px 8px;
  border: 1px solid rgba(178,34,52,0.5);
  border-radius: 999px;
  color: var(--a1p-accent-soft);
}

/* ---------- 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(6,26,46,0.7) 0%, rgba(6,26,46,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(178,34,52,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(178,34,52,0.4);
  border-radius: 3px;
  background: rgba(178,34,52,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-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(6, 26, 46, 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(6, 26, 46, 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: #c43b3b; }
.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; }
}
