/* ═════════════════════════════════════════════════════════════════════
   Superior Water Truck Parts — site.css
   Inherits Superior Equipment DS-v1 palette + DM Sans / Source Sans 3.
   E-commerce extensions: cart, product cards, checkout flow.
   2026-05-22 WDM v0.1
   ═════════════════════════════════════════════════════════════════════ */

:root {
  /* TIER 1 · BRAND (inherits from Superior Equipment) */
  --brand-primary:        #1e3a8a;
  --brand-primary-dark:   #0f1f4a;
  --brand-primary-bright: #2848a8;
  --brand-accent:         #ff6b1a;
  --brand-accent-hover:   #e25513;
  --brand-accent-soft:    #ffd9c2;
  --brand-water:          #0891b2;  /* SP-specific accent — water-trucks */
  --brand-water-soft:     #cffafe;

  /* TIER 2 · SURFACES */
  --surface-page:    #fbfaf5;
  --surface-card:    #ffffff;
  --surface-band:    #f4f1e8;
  --surface-stripe:  #faf8f1;
  --surface-dark:    #0f1f4a;
  --surface-darker:  #070f30;

  /* TIER 3 · TEXT */
  --ink:              #1a1a1a;
  --ink-muted:        #4a4a4a;
  --ink-faint:        #6d6d6d;
  --ink-on-dark:      #f7f3e8;
  --ink-on-dark-muted:#d4cfbf;

  /* TIER 4 · BORDERS */
  --border:        #e6e2d4;
  --border-strong: #c9c2ac;

  /* TIER 5 · STATE */
  --ok:        #18794e;
  --ok-soft:   #d9f0e2;
  --warn:      #c47900;
  --warn-soft: #fbe9c8;
  --err:       #b94545;
  --err-soft:  #f9dada;

  /* SPACING */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 74, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 31, 74, 0.12);
  --shadow-lg: 0 12px 32px rgba(15, 31, 74, 0.18);

  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container-max: 1280px;
  --container-pad: clamp(20px, 4vw, 32px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--brand-accent); }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 800; line-height: 1.15;
  margin: 0; color: var(--ink); letter-spacing: -0.015em;
}
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border-radius: var(--radius-md);
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: all 0.18s ease;
  letter-spacing: -0.005em;
}
.btn--primary {
  background: var(--brand-accent); color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 26, 0.28), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn--primary:hover {
  background: var(--brand-accent-hover); color: #fff; text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 26, 0.4);
}
.btn--secondary {
  background: transparent; color: var(--ink); border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--surface-band); color: var(--ink); text-decoration: none;
  border-color: var(--brand-primary);
}
.btn--on-dark {
  background: transparent; color: var(--ink-on-dark);
  border-color: rgba(255,255,255,0.4);
}
.btn--on-dark:hover {
  background: rgba(255,255,255,0.1); color: var(--ink-on-dark); text-decoration: none;
}
.btn--lg { padding: var(--space-4) var(--space-8); font-size: 16px; }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: 13.5px; }

/* ─── TRUST STRIP ─── */
.trust-strip {
  background: var(--brand-primary-dark);
  color: var(--ink-on-dark-muted);
  font-size: 13px;
  padding: var(--space-2) 0;
}
.trust-strip__inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3) var(--space-6);
}
.trust-strip__item {
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.trust-strip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-accent);
}
.trust-strip a { color: var(--ink-on-dark); font-weight: 700; }

/* ─── HEADER ─── */
.site-header {
  background: var(--surface-page);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: var(--space-4);
}
.site-logo {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  color: var(--brand-primary); text-decoration: none; letter-spacing: -0.015em;
}
.site-logo:hover { color: var(--brand-primary); text-decoration: none; }
.site-logo__mark {
  width: 38px; height: 38px;
  background: var(--brand-primary); color: var(--brand-accent);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.site-logo__word { line-height: 1.05; }
.site-logo__word small {
  display: block; font-weight: 600; font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase;
}
.site-logo__accent { color: var(--brand-accent); }

.site-nav {
  display: flex; gap: var(--space-6); align-items: center;
}
.site-nav a {
  color: var(--ink-muted); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  padding: var(--space-2) 0;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--brand-accent); }

.site-header__actions { display: flex; gap: var(--space-3); align-items: center; }

.site-cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.site-cart-btn:hover { border-color: var(--brand-accent); background: var(--surface-band); color: var(--ink); text-decoration: none; }
.site-cart-btn__count {
  background: var(--brand-accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  padding: 2px 7px; border-radius: var(--radius-pill);
  min-width: 20px; text-align: center;
  display: none;  /* JS shows when count > 0 */
}
.site-cart-btn--has-items .site-cart-btn__count { display: inline-block; }

.site-header__cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--brand-accent); color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
}
.site-header__cta:hover { background: var(--brand-accent-hover); color: #fff; text-decoration: none; }

@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-header__cta-label { display: none; }
  .site-cart-btn { padding: var(--space-2); }
}

/* ─── HERO ─── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 92% 18%, rgba(255, 138, 12, 0.22), transparent 65%),
    radial-gradient(ellipse 80% 60% at 8% 92%, rgba(8, 145, 178, 0.30), transparent 70%),
    linear-gradient(165deg, var(--brand-primary-dark) 0%, var(--brand-primary) 55%, #1a3580 100%);
  color: var(--ink-on-dark);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px);
}
.hero::before {
  /* Water-ripple silhouette at the base — subtle, on-brand for water trucks */
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 15, 48, 0.45) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'><path fill='%23070f30' fill-opacity='0.55' d='M0 260 Q120 220 240 250 T480 240 T720 260 T960 230 T1200 250 T1440 240 L1440 320 L0 320 Z'/><path fill='%23070f30' fill-opacity='0.7' d='M0 290 Q160 260 320 280 T640 280 T960 270 T1280 285 T1440 280 L1440 320 L0 320 Z'/></svg>") center bottom / 100% 100% no-repeat;
  pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 920px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 13px; color: var(--brand-accent-soft);
  margin-bottom: var(--space-4);
}
.hero__eyebrow::before {
  content: ''; width: 32px; height: 2px; background: var(--brand-accent);
}
.hero__title {
  font-size: clamp(34px, 5.8vw, 62px); line-height: 1.02;
  color: var(--ink-on-dark); margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}
.hero__title em { font-style: normal; color: var(--brand-accent); }
.hero__lede {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6;
  color: rgba(247, 243, 232, 0.88);
  max-width: 64ch; margin-bottom: var(--space-8);
}
.hero__cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero__signal {
  display: flex; gap: var(--space-6) var(--space-8); flex-wrap: wrap;
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(247, 243, 232, 0.15);
}
.hero__signal-item {
  display: flex; flex-direction: column; gap: 3px;
}
.hero__signal-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 26px; color: #f7f3e8;
  letter-spacing: -0.02em; line-height: 1;
}
.hero__signal-lab {
  text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 11px; font-weight: 700;
  color: rgba(247, 243, 232, 0.6);
}

/* ─── SECTION ─── */
.section { padding: var(--space-16) 0; }
.section--band { background: var(--surface-band); }
.section--dark { background: var(--surface-dark); color: var(--ink-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--ink-on-dark); }
.section--dark p { color: var(--ink-on-dark-muted); }
.section__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-accent);
  margin-bottom: var(--space-3);
}
.section__heading {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.018em;
  margin-bottom: var(--space-4);
}
.section__lede {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-muted);
  max-width: 64ch; margin: 0 0 var(--space-8);
  line-height: 1.55;
}
.section--dark .section__lede { color: var(--ink-on-dark-muted); }

/* ─── CATEGORY TILES (home page grid) ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.cat-tile {
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
  color: inherit; text-decoration: none;
}
.cat-tile__photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  display: grid; place-items: center;
  color: var(--brand-accent-soft);
  position: relative; overflow: hidden;
}
.cat-tile__photo svg { width: 56%; height: 56%; opacity: 0.85; }
.cat-tile__photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__body {
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-1);
  flex: 1;
}
.cat-tile__label {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; color: var(--ink);
  letter-spacing: -0.01em;
}
.cat-tile__lede {
  font-size: 14px; color: var(--ink-muted);
  line-height: 1.45;
}
.cat-tile__cta {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--brand-accent);
  margin-top: var(--space-3);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.cat-tile:hover .cat-tile__cta { gap: var(--space-3); }

/* ─── PRODUCT CARDS (catalog + featured grid) ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
  text-decoration: none; color: inherit;
}
.product-card__photo {
  aspect-ratio: 4/3;
  background: var(--surface-band);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.product-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card__photo-placeholder {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em;
  text-align: center; padding: var(--space-3);
}
.product-card__badge {
  position: absolute; top: var(--space-2); left: var(--space-2);
  background: var(--brand-accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 10.5px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.product-card__body {
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-1);
  flex: 1;
}
.product-card__sku {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.04em;
}
.product-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15.5px; color: var(--ink);
  letter-spacing: -0.005em; line-height: 1.3;
}
.product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.product-card__price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; color: var(--brand-accent);
  letter-spacing: -0.01em; line-height: 1;
}
.product-card__price--call {
  color: var(--ink-muted); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.product-card__stock {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ok);
}
.product-card__stock--low { color: var(--warn); }
.product-card__stock--out { color: var(--ink-faint); }

/* ─── PRODUCT DETAIL ─── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding: var(--space-12) 0;
}
@media (min-width: 880px) {
  .product-detail { grid-template-columns: 1.1fr 1fr; gap: var(--space-12); }
}
.product-gallery__main {
  aspect-ratio: 4/3;
  background: var(--surface-band);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2);
  margin-top: var(--space-3);
}
.product-gallery__thumb {
  aspect-ratio: 1; background: var(--surface-band);
  border: 2px solid transparent; border-radius: var(--radius-md);
  overflow: hidden; padding: 0; cursor: pointer;
  transition: border-color 0.15s ease;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb[aria-pressed="true"] { border-color: var(--brand-accent); }

.product-info { display: flex; flex-direction: column; gap: var(--space-3); }
.product-info__crumb {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
}
.product-info__crumb a { color: var(--brand-primary); }
.product-info__title {
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em;
  margin: 0;
}
.product-info__sku-row {
  display: flex; gap: var(--space-3); align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted);
}
.product-info__price-block {
  margin: var(--space-4) 0;
  padding: var(--space-5);
  background: var(--surface-band);
  border-radius: var(--radius-lg);
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-3);
}
.product-info__price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 36px; color: var(--brand-accent);
  letter-spacing: -0.02em; line-height: 1;
}
.product-info__price-note {
  font-size: 13px; color: var(--ink-muted);
}
.product-info__stock {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--ok);
}
.product-info__stock::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
}
.product-info__stock--low { color: var(--warn); }
.product-info__stock--low::before { background: var(--warn); }
.product-info__stock--out { color: var(--ink-faint); }
.product-info__stock--out::before { background: var(--ink-faint); }

.qty-control {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); overflow: hidden;
}
.qty-control button {
  width: 40px; height: 40px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--ink-muted);
  transition: background 0.15s ease;
}
.qty-control button:hover { background: var(--surface-band); color: var(--brand-accent); }
.qty-control input {
  width: 52px; height: 40px;
  border: 0; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  background: var(--surface-card);
}
.qty-control input:focus { outline: 0; background: var(--surface-band); }

.product-info__cta-row {
  display: flex; gap: var(--space-3); align-items: stretch;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.product-info__cta-row .qty-control { flex-shrink: 0; }
.product-info__cta-row .btn--primary { flex: 1; min-width: 220px; }

.specs {
  margin-top: var(--space-6);
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
}
.specs__title {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin-bottom: var(--space-3);
}
.specs__list {
  display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6);
  margin: 0; padding: 0;
}
.specs__list dt {
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em;
}
.specs__list dd {
  margin: 0; font-size: 14.5px; color: var(--ink);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--brand-primary); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-accent); text-decoration: underline; }
.breadcrumb .sep { margin: 0 var(--space-2); color: var(--ink-faint); }

/* ─── CART PAGE ─── */
.cart-layout {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6);
  padding: var(--space-12) 0;
}
@media (min-width: 880px) {
  .cart-layout { grid-template-columns: 1fr 380px; gap: var(--space-8); }
}
.cart-items {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__photo {
  width: 90px; height: 90px;
  background: var(--surface-band);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cart-item__photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info {
  display: flex; flex-direction: column; gap: 4px;
}
.cart-item__title {
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  color: var(--ink);
}
.cart-item__title a { color: var(--ink); text-decoration: none; }
.cart-item__title a:hover { color: var(--brand-accent); }
.cart-item__sku {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint);
}
.cart-item__controls {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-2);
}
.cart-item__price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; color: var(--brand-accent);
  letter-spacing: -0.01em;
}
.cart-item__remove {
  background: transparent; border: 0;
  font-family: var(--font-display); font-size: 12.5px;
  color: var(--ink-faint); cursor: pointer;
  text-decoration: underline;
}
.cart-item__remove:hover { color: var(--err); }

.cart-summary {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: max-content;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-summary__title {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin: 0 0 var(--space-4);
}
.cart-summary__line {
  display: flex; justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: 14.5px;
}
.cart-summary__line--total {
  border-top: 2px solid var(--ink);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  color: var(--ink);
}
.cart-summary .btn--primary {
  width: 100%; margin-top: var(--space-4);
}
.cart-summary__note {
  margin-top: var(--space-3); font-size: 12px; color: var(--ink-faint);
  text-align: center; line-height: 1.5;
}
.cart-empty {
  text-align: center; padding: var(--space-16) var(--space-4);
}
.cart-empty__icon {
  width: 80px; height: 80px; margin: 0 auto var(--space-4);
  color: var(--ink-faint);
}
.cart-empty h2 {
  margin-bottom: var(--space-3); font-size: 24px;
}
.cart-empty p {
  color: var(--ink-muted); margin-bottom: var(--space-6); max-width: 36ch; margin-left: auto; margin-right: auto;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--surface-dark); color: var(--ink-on-dark-muted);
  padding: var(--space-16) 0 var(--space-8);
}
.site-footer__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.site-footer h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  color: var(--ink-on-dark); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: var(--space-3);
}
.site-footer__brand-line {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--ink-on-dark); margin: 0 0 var(--space-3); letter-spacing: -0.015em;
}
.site-footer p { font-size: 14px; line-height: 1.55; margin: 0 0 var(--space-3); }
.site-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.site-footer a {
  color: var(--ink-on-dark-muted); text-decoration: none; font-size: 14px;
}
.site-footer a:hover { color: var(--brand-accent); text-decoration: underline; }
.site-footer__legal {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(247, 243, 232, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  font-size: 12px; color: rgba(247, 243, 232, 0.55);
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center; padding: var(--space-16) var(--space-4);
  background: var(--surface-card);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.empty-state h2 { margin-bottom: var(--space-3); }
.empty-state p { color: var(--ink-muted); max-width: 50ch; margin: 0 auto var(--space-4); }

/* ─── CART NOTIFICATION TOAST ─── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--brand-primary-dark); color: var(--ink-on-dark);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: flex; align-items: center; gap: var(--space-3);
  max-width: 360px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast__icon {
  width: 24px; height: 24px; color: var(--ok);
  flex-shrink: 0;
}
.toast__body { flex: 1; }
.toast__title {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  margin: 0 0 2px; color: #fff;
}
.toast__msg {
  font-size: 13px; color: rgba(247, 243, 232, 0.85); margin: 0;
}
.toast a { color: var(--brand-accent); font-weight: 700; text-decoration: none; }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

[hidden] { display: none !important; }

/* ════════════════════════════════════════════════════════════════════
   BILINGUAL TOGGLE — EN/ES dropdown
   Pattern: small flag-icon + language label button in header. Dropdown
   shows the two options. Persists choice in localStorage via i18n.js.
   2026-05-25 WDM
   ════════════════════════════════════════════════════════════════════ */
.lang-toggle {
  position: relative;
  /* 2026-05-25 Brandon UX directive: toggle on the LEFT so Spanish
     speakers see it first as their eye scans left-to-right. The trust
     strip's flex container has the toggle as second child by markup
     order; `order: -1` slides it visually to the leftmost position. */
  order: -1;
}
.lang-toggle__btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 12px;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-toggle__btn:hover { border-color: var(--brand-accent); background: var(--surface-band); }
.lang-toggle__btn:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.lang-toggle__flag {
  font-size: 16px;
  line-height: 1;
}
.lang-toggle__label {
  line-height: 1.2;
}
.lang-toggle__caret {
  width: 10px; height: 10px;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.lang-toggle__btn[aria-expanded="true"] .lang-toggle__caret {
  transform: rotate(180deg);
}
.lang-toggle__menu {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 4px;
  min-width: 160px;
  z-index: 100;
  display: none;
}
.lang-toggle__menu.is-open { display: block; }
.lang-toggle__opt {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%; padding: 8px 12px;
  background: transparent; border: 0;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  color: var(--ink); text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s ease;
}
.lang-toggle__opt:hover { background: var(--surface-band); }
.lang-toggle__opt[aria-pressed="true"] {
  background: var(--surface-band);
  color: var(--brand-accent);
}
.lang-toggle__opt-flag { font-size: 16px; line-height: 1; }
.lang-toggle__opt-check {
  margin-left: auto;
  font-size: 14px; color: var(--brand-accent);
  opacity: 0;
}
.lang-toggle__opt[aria-pressed="true"] .lang-toggle__opt-check { opacity: 1; }

/* On the trust strip (dark background), the toggle takes on-dark colors */
.trust-strip .lang-toggle__btn {
  border-color: rgba(247, 243, 232, 0.25);
  color: var(--ink-on-dark);
}
.trust-strip .lang-toggle__btn:hover {
  border-color: var(--brand-accent);
  background: rgba(247, 243, 232, 0.08);
}

@media (max-width: 720px) {
  .lang-toggle__label { display: none; }
  .lang-toggle__btn { padding: 6px 9px; }
}

