/* ========= Oliver's Bullion — Core Styles ========= */

:root {
  --navy-950: #0a1425;
  --navy-900: #0f1e36;
  --navy-800: #17294a;
  --navy-700: #1f3760;
  --navy-100: #e8ecf3;
  --gold-600: #a67c1e;
  --gold-500: #c9a352;
  --gold-400: #d9b76a;
  --gold-300: #e6c988;
  --gold-100: #f7efd9;
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink-900: #1a1a1a;
  --ink-700: #3a3a3a;
  --ink-500: #6b6b6b;
  --ink-300: #b8b8b8;
  --line: #e6e1d6;
  --green: #2d7a4a;
  --red: #b23a3a;
  --shadow-sm: 0 1px 2px rgba(10, 20, 37, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 20, 37, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 20, 37, 0.14);
  --radius: 4px;
  --radius-lg: 10px;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy-950);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Info pages carry both .container and .info-shell on one element; each page's
   inline `.info-shell { padding: 40px 0 80px }` zeroes the horizontal padding,
   so on mobile (viewport < the 760px max-width) the copy runs to the screen
   edge. This higher-specificity selector restores side padding without
   touching the vertical padding, matching the container's responsive rhythm. */
.container.info-shell { padding-left: 24px; padding-right: 24px; }
@media (max-width: 760px) { .container.info-shell { padding-left: 18px; padding-right: 18px; } }
@media (max-width: 420px) { .container.info-shell { padding-left: 16px; padding-right: 16px; } }

/* ========= Top strip: live prices ========= */
.price-strip {
  background: var(--navy-950);
  color: var(--navy-100);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(201, 163, 82, 0.15);
}

.price-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.price-feed {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.ticker-item .metal {
  color: var(--gold-400);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.ticker-item .price {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.ticker-item .change {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.change.up { color: #8ed1a1; }
.change.down { color: #e59494; }

.strip-right {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: rgba(232, 236, 243, 0.75);
}

.strip-right a:hover { color: var(--gold-400); }

/* ========= Header ========= */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 2;
  justify-self: center;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-300), var(--gold-600));
  color: var(--navy-950);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25), 0 2px 8px rgba(166, 124, 30, 0.35);
}

/* Real brand emblem (silver brushed ring + cursive O, transparent PNG).
   On the white header the silver is faint, so we sit it on a navy disc. */
.logo-img {
  background: var(--navy-950);
  box-shadow: none;
  object-fit: contain;
  padding: 3px;
}
.site-footer .logo-img, .mobile-drawer .logo-img {
  background: transparent; /* already on navy */
  padding: 0;
}

.logo-text {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy-950);
  letter-spacing: 0.01em;
}
.logo-text .apos { color: var(--gold-600); }

.header-search {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 8px 14px;
  max-width: 360px;
  width: 100%;
  grid-column: 1;
}
.header-search input {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}
.header-search .icon { color: var(--ink-500); margin-right: 8px; }

.header-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
  grid-column: 3;
  font-size: 13px;
}
.header-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-700);
}
.header-actions a:hover { color: var(--navy-950); }
.header-actions .cart-dot {
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 11px;
  border-radius: 50%;
  padding: 1px 6px;
  font-weight: 600;
}

/* ========= Primary Nav ========= */
.nav-primary {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-primary .container {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.nav-primary a {
  padding: 14px 18px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-700);
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  position: relative;
}
.nav-primary a:hover,
.nav-primary a.active {
  color: var(--navy-950);
  border-bottom-color: var(--gold-500);
}
.nav-primary a.accent {
  color: var(--gold-600);
  font-weight: 500;
}

/* ========= Buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: all .18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--navy-950);
  color: var(--gold-300);
  border-color: var(--navy-950);
}
.btn-primary:hover {
  background: var(--navy-800);
  color: var(--gold-300);
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  border-color: var(--gold-500);
  font-weight: 600;
}
.btn-gold:hover {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-400));
}
.btn-ghost {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--navy-950);
}
.btn-ghost:hover {
  background: var(--navy-950);
  color: var(--gold-300);
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* ========= Hero ========= */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,20,37,0.88) 0%, rgba(15,30,54,0.78) 70%),
    radial-gradient(ellipse at 80% 40%, rgba(201,163,82,0.35), transparent 55%),
    var(--navy-950);
  color: var(--navy-100);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><defs><pattern id='p' x='0' y='0' width='40' height='40' patternUnits='userSpaceOnUse'><circle cx='20' cy='20' r='0.6' fill='rgba(217,183,106,0.12)'/></pattern></defs><rect width='600' height='600' fill='url(%23p)'/></svg>");
  opacity: 0.6;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 90px 24px 110px;
}
.hero-eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold-400);
  margin-bottom: 22px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.hero-eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: var(--gold-400);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero h1 em { color: var(--gold-300); font-style: italic; font-weight: 400; }
.hero p.lede {
  color: rgba(232,236,243,0.82);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(217,183,106,0.2);
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--gold-300);
  display: block;
}
.hero-stat .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(232,236,243,0.7);
}

.hero-visual {
  position: relative;
  height: 440px;
}

/* ========= Sections ========= */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title .eyebrow {
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p {
  color: var(--ink-500);
  max-width: 620px;
  margin: 0 auto;
}

/* ========= Category tiles ========= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}
.cat-tile .tile-visual {
  width: 120px; height: 120px;
  display: grid; place-items: center;
}
.cat-tile h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
}
.cat-tile p {
  color: var(--ink-500);
  font-size: 13px;
}
.cat-tile .shop-link {
  color: var(--gold-600);
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========= Product grid ========= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.product-media {
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.8) 0%, transparent 65%),
    linear-gradient(160deg, #faf7f1 0%, #ede6d4 100%);
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.product-card.silver .product-media {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.85) 0%, transparent 65%),
    linear-gradient(160deg, #f7f7f9 0%, #e2e3e7 100%);
}
.product-card.platinum .product-media {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.85) 0%, transparent 65%),
    linear-gradient(160deg, #f4f5f6 0%, #d8dadc 100%);
}
.product-media > .coin { --coin-size: 160px; max-width: 100%; max-height: 100%; }
.product-media > .bar  { --bar-w: 170px; max-width: 100%; }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--navy-950);
  color: var(--gold-300);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.product-badge.best { background: var(--gold-600); color: #fff; }
.product-badge.new { background: var(--green); color: #fff; }
.product-badge.pre-release { background: var(--navy-950); color: var(--gold-300); }
.product-badge.sale { background: var(--red); color: #fff; }

/* Sale price on cards: current price + struck-through "was". */
.product-price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-was {
  font-size: 0.95rem;
  color: var(--ink-500);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.product-info {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy-950);
  line-height: 1.25;
}
.product-meta {
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 12px;
  gap: 10px;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-950);
  font-variant-numeric: tabular-nums;
}
.product-per {
  font-size: 11.5px;
  color: var(--ink-500);
}
.product-stock {
  font-size: 11.5px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.product-stock::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.product-stock.low { color: var(--gold-600); }
.product-stock.low::before { background: var(--gold-600); }
.product-stock.out { color: var(--red); }
.product-stock.out::before { background: var(--red); }
.product-cta {
  margin-top: 12px;
  width: 100%;
  background: var(--navy-950);
  color: var(--gold-300);
  padding: 10px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background .15s;
}
.product-cta:hover { background: var(--navy-800); }

/* ========= Coin/Bar illustrations ========= */
.coin {
  --coin-size: 180px;
  width: var(--coin-size);
  height: var(--coin-size);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 30% 30%, #fae9b8, #d4a93f 55%, #8a6a19 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.25),
    inset 0 -12px 25px rgba(0,0,0,0.25),
    0 12px 24px rgba(166,124,30,0.25);
  display: grid;
  place-items: center;
  color: rgba(69, 50, 10, 0.75);
  font-family: var(--serif);
  text-align: center;
  flex-shrink: 0;
}
.coin.silver {
  background: radial-gradient(circle at 30% 30%, #f5f5f5, #bfc2c7 55%, #6e7178 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.4),
    inset 0 -12px 25px rgba(0,0,0,0.25),
    0 12px 24px rgba(110,113,120,0.25);
  color: rgba(60,65,72,0.8);
}
.coin.platinum {
  background: radial-gradient(circle at 30% 30%, #fafafa, #d0d2d4 55%, #8a8d91 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.5),
    inset 0 -12px 25px rgba(0,0,0,0.2),
    0 12px 24px rgba(138,141,145,0.25);
  color: rgba(80,85,90,0.8);
}
.coin.sm { --coin-size: 130px; }
.coin.xs { --coin-size: 90px; }

.coin-inner {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 1px dashed rgba(69, 50, 10, 0.35);
  display: grid;
  place-items: center;
  padding: calc(var(--coin-size) * 0.067);
}
.coin.silver .coin-inner, .coin.platinum .coin-inner {
  border-color: rgba(60,65,72,0.35);
}
.coin-label {
  font-size: calc(var(--coin-size) * 0.056);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.coin-label strong {
  display: block;
  font-size: calc(var(--coin-size) * 0.082);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 4px 0;
}

.bar {
  --bar-w: 180px;
  width: var(--bar-w);
  height: calc(var(--bar-w) * 2 / 3);
  border-radius: 6px;
  background: linear-gradient(160deg, #fae9b8 0%, #d4a93f 50%, #a67c1e 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.3),
    inset 0 -10px 20px rgba(0,0,0,0.2),
    0 10px 20px rgba(166,124,30,0.25);
  display: grid;
  place-items: center;
  position: relative;
  color: rgba(69, 50, 10, 0.85);
  font-family: var(--serif);
  text-align: center;
  padding: calc(var(--bar-w) * 0.078);
  flex-shrink: 0;
}
.bar.silver {
  background: linear-gradient(160deg, #f5f5f5 0%, #bfc2c7 50%, #6e7178 100%);
  color: rgba(60,65,72,0.9);
}
.bar.platinum {
  background: linear-gradient(160deg, #fafafa 0%, #d0d2d4 50%, #8a8d91 100%);
  color: rgba(80,85,90,0.9);
}
.bar-label {
  font-size: calc(var(--bar-w) * 0.062);
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bar-label strong {
  display: block;
  font-family: var(--serif);
  font-size: calc(var(--bar-w) * 0.1);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 2px 0;
}
.bar.sm { --bar-w: 140px; }

/* ========= Hero coin stack ========= */
.hero-coins {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
}
.hero-coins .coin {
  position: absolute;
  transform: rotate(-4deg);
}
.hero-coins .coin:nth-child(1) { top: 30px; left: 20px; transform: rotate(-8deg); width: 150px; height: 150px; }
.hero-coins .coin:nth-child(2) { top: 80px; left: 160px; transform: rotate(6deg); width: 200px; height: 200px; z-index: 2; }
.hero-coins .coin:nth-child(3) { bottom: 40px; left: 60px; transform: rotate(10deg); }
.hero-coins .bar { position: absolute; bottom: 0px; right: 0px; transform: rotate(-6deg); }

.hero-coin-1 {
  --coin-size: 180px;
  top: 20px; left: 10px;
  transform: rotate(-10deg);
  z-index: 1;
}
.hero-coin-2 {
  --coin-size: 240px;
  top: 70px; left: 160px;
  transform: rotate(5deg);
  z-index: 3;
}
.hero-coin-3 {
  --coin-size: 170px;
  bottom: 20px; left: 60px;
  transform: rotate(12deg);
  z-index: 2;
}
.hero-bar-1 {
  --bar-w: 180px;
  bottom: 30px; right: 0;
  transform: rotate(-8deg);
  z-index: 4;
}
/* Each slot animates only when it is itself hovered, not its neighbours. */
.hero-coin-1:hover { transform: rotate(-14deg) translateY(-6px); }
.hero-coin-2:hover { transform: rotate(3deg) translateY(-4px) scale(1.02); }
.hero-coin-3:hover { transform: rotate(16deg) translateY(-8px); }
.hero-bar-1:hover { transform: rotate(-12deg) translateY(-6px); }

/* ========= Trust / features ========= */
.trust-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-700);
}
.trust-item .ico {
  color: var(--gold-600);
  flex-shrink: 0;
}
.trust-item strong {
  display: block;
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

/* ========= Price panel ========= */
.price-panel {
  background: var(--navy-950);
  color: var(--navy-100);
  padding: 70px 0;
  position: relative;
}
.price-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(201,163,82,0.18), transparent 50%);
  pointer-events: none;
}
.price-panel .section-title { position: relative; }
.price-panel .section-title h2 { color: #fff; }
.price-panel .section-title .eyebrow { color: var(--gold-400); }
.price-panel .section-title p { color: rgba(232,236,243,0.7); }

.price-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.price-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(217,183,106,0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(6px);
}
.price-card .pc-metal {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  margin-bottom: 10px;
}
.price-card .pc-value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.price-card .pc-unit {
  font-size: 13px;
  color: rgba(232,236,243,0.6);
  margin-top: 2px;
}
.price-card .pc-chg {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  align-items: center;
}
.price-card .pc-chg .lbl { color: rgba(232,236,243,0.6); }
.spark {
  margin-top: 14px;
  height: 32px;
  width: 100%;
}

/* ========= Two-column editorial ========= */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.editorial .e-visual {
  aspect-ratio: 4/5;
  background:
    linear-gradient(145deg, rgba(10,20,37,0.1), rgba(201,163,82,0.1)),
    var(--navy-900);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.editorial .e-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(217,183,106,0.18), transparent 60%);
}
.editorial h2 { margin-bottom: 18px; }
.editorial p { color: var(--ink-700); margin-bottom: 16px; font-size: 15.5px; }
.editorial .sig {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy-950);
  font-style: italic;
}
.editorial .role {
  color: var(--ink-500);
  font-size: 13px;
  font-style: normal;
}

/* ========= Testimonials ========= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tcard {
  background: var(--paper);
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}
.tcard .stars { color: var(--gold-500); margin-bottom: 14px; font-size: 14px; letter-spacing: 2px; }
.tcard .quote { font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; color: var(--navy-950); margin-bottom: 18px; }
.tcard .attr { font-size: 13px; color: var(--ink-500); }
.tcard .attr strong { color: var(--navy-950); font-weight: 500; display: block; }

.tp-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 13.5px;
  color: var(--ink-500);
}
.tp-logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: #00b67a;
}
.tp-logo::before {
  content: "★"; background: #00b67a; color: #fff; width: 18px; height: 18px;
  display: inline-grid; place-items: center; border-radius: 2px; font-size: 12px;
}

/* ========= Footer ========= */
.site-footer {
  background: var(--navy-950);
  color: rgba(232,236,243,0.7);
  padding: 72px 0 30px;
  border-top: 3px solid var(--gold-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(232,236,243,0.08);
}
.footer-col h4 {
  color: var(--gold-300);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 13.5px; }
.footer-col a:hover { color: var(--gold-300); }
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 14px 0 18px;
  max-width: 320px;
}
.footer-brand .logo { justify-self: start; grid-column: auto; }
.footer-brand .logo-text { color: #fff; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .ico { color: var(--gold-400); margin-top: 2px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 12.5px;
  color: rgba(232,236,243,0.5);
  flex-wrap: wrap;
  gap: 18px;
}
.footer-pay {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pay-logo {
  width: 40px;
  height: 25px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: block;
}
.footer-legal {
  padding-top: 26px;
  border-top: 1px solid rgba(232,236,243,0.08);
  margin-top: 40px;
  font-size: 12px;
  color: rgba(232,236,243,0.5);
  line-height: 1.7;
}

/* ========= Page header (interior) ========= */
.page-head {
  background: var(--navy-950);
  color: #fff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 50%, rgba(201,163,82,0.22), transparent 55%);
}
.page-head .container { position: relative; }
.page-head .crumbs {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-400);
  margin-bottom: 16px;
}
.page-head .crumbs a:hover { color: #fff; }
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head p { color: rgba(232,236,243,0.72); max-width: 640px; font-size: 15.5px; }

/* ========= Filters / listing layout ========= */
.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 60px 0 90px;
}
.filter-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 150px;
}
/* Mobile-only chrome injected by wireFilterDrawer — hide on desktop. */
.filter-panel-head, .filter-panel-apply { display: none; }
.filter-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.filter-group:last-child { border-bottom: none; }
.filter-group h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-950);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.filter-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-700);
  margin-bottom: 8px;
  cursor: pointer;
}
.filter-opt input { accent-color: var(--gold-600); }
.filter-opt .n { color: var(--ink-500); margin-left: auto; font-size: 12.5px; }

.listing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.listing-count { color: var(--ink-500); font-size: 13.5px; }
.sort-sel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13.5px;
}

/* ========= Product detail ========= */
.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 60px;
  padding: 60px 0;
}
.pdp-gallery {
  position: sticky;
  top: 150px;
  align-self: start;
  min-width: 0;
}
.pdp-info { min-width: 0; }
.pdp-main-img {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.85) 0%, transparent 65%),
    linear-gradient(160deg, #faf7f1 0%, #ede6d4 100%);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 30px;
  overflow: hidden;
}
/* Free-text `badge:<text>` badge — distinct from best/new/pre-release. */
.product-badge.custom { background: var(--navy-950); color: var(--gold-300); }
.pdp-main-img > .product-badge { top: 16px; left: 16px; z-index: 2; }
.pdp-main-img > .coin { --coin-size: 340px; max-width: 100%; max-height: 100%; }
.pdp-main-img > .bar  { --bar-w: 360px; max-width: 100%; }
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.pdp-thumb {
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,255,255,0.8) 0%, transparent 65%),
    linear-gradient(160deg, #faf7f1 0%, #ede6d4 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 10px;
  overflow: hidden;
}
.pdp-thumb > .coin { --coin-size: 60px; max-width: 100%; max-height: 100%; }
.pdp-thumb > .bar  { --bar-w: 70px; max-width: 100%; }
.pdp-thumb.active { border: 2px solid var(--gold-500); padding: 9px; }

.pdp-info h1 { margin-bottom: 10px; }
.pdp-sub { color: var(--ink-500); font-size: 13.5px; margin-bottom: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.pdp-rating { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-500); margin-bottom: 20px; }
.pdp-rating .stars { color: var(--gold-500); letter-spacing: 2px; }

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.pdp-price .big {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--navy-950);
  font-variant-numeric: tabular-nums;
}
.pdp-price .prem { color: var(--ink-500); font-size: 13.5px; margin-left: auto; }

.pdp-qty-grid {
  margin-bottom: 24px;
}
.pdp-qty-grid table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.pdp-qty-grid th, .pdp-qty-grid td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.pdp-qty-grid th {
  color: var(--ink-500);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.pdp-qty-grid tr.active td {
  background: var(--gold-100);
}

.pdp-buy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.qty-box button {
  padding: 12px 14px;
  color: var(--ink-700);
  font-size: 16px;
}
.qty-box input {
  width: 52px;
  text-align: center;
  border: none;
  outline: none;
  background: none;
  font-weight: 500;
  font-size: 14px;
  /* Hide the browser's native number spinner — the custom − / + buttons replace it. */
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}
.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-features {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-700);
  padding-top: 22px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.pdp-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pdp-features .ico { color: var(--gold-600); }

.pdp-tabs {
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.pdp-tablist {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.pdp-tablist button {
  padding: 18px 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
}
.pdp-tablist button.active {
  color: var(--navy-950);
  border-bottom-color: var(--gold-500);
}
.pdp-tabpanel { padding: 32px 0; }
.pdp-tabpanel h3 { margin-bottom: 14px; }
.pdp-tabpanel p { color: var(--ink-700); margin-bottom: 14px; font-size: 15px; }
/* Restock / release email alert box on the PDP. */
.restock-alert { position: relative; margin-top: 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 16px 18px; }
.restock-alert .ra-head { font-weight: 600; color: var(--navy-950); margin-bottom: 4px; }
.restock-alert .ra-sub { font-size: 13.5px; color: var(--ink-700); margin: 0 0 12px; }
.restock-alert .ra-row { display: flex; gap: 8px; }
.restock-alert .ra-row input { flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; outline: none; }
.restock-alert .ra-row input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(217,183,106,0.16); }
.restock-alert .ra-row .btn { white-space: nowrap; }
.restock-alert .ra-status { font-size: 13px; margin-top: 10px; min-height: 16px; }
@media (max-width: 480px) { .restock-alert .ra-row { flex-direction: column; } }

/* Rich Shopify description HTML — preserve merchant formatting. */
.pdp-desc-rich { color: var(--ink-700); font-size: 15px; line-height: 1.65; }
.pdp-desc-rich p { margin-bottom: 14px; }
.pdp-desc-rich ul, .pdp-desc-rich ol { margin: 0 0 16px; padding-left: 22px; }
.pdp-desc-rich li { margin-bottom: 8px; padding-left: 4px; }
.pdp-desc-rich strong, .pdp-desc-rich b { color: var(--navy-950); }
.pdp-desc-rich a { color: var(--gold-600); text-decoration: underline; }
.pdp-desc-rich h1, .pdp-desc-rich h2, .pdp-desc-rich h3, .pdp-desc-rich h4 { color: var(--navy-950); margin: 20px 0 10px; }
.pdp-desc-rich img { max-width: 100%; height: auto; border-radius: 8px; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td {
  padding: 12px 16px;
}
.spec-table td:first-child {
  color: var(--ink-500);
  width: 200px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ========= Charts page ========= */
.chart-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 28px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.chart-price {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--navy-950);
}
.chart-ranges {
  display: flex;
  gap: 4px;
}
.chart-ranges button {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 3px;
  color: var(--ink-500);
}
.chart-ranges button.active {
  background: var(--navy-950);
  color: var(--gold-300);
}
.chart-svg {
  width: 100%;
  height: 260px;
}

/* ========= About / content ========= */
.about-intro {
  padding: 80px 0;
  text-align: center;
}
.about-intro p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--ink-700);
  line-height: 1.65;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}
.value-card .ico {
  color: var(--gold-600);
  margin-bottom: 18px;
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--ink-700); font-size: 14.5px; }

.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 90px;
  top: 10px; bottom: 10px;
  width: 2px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding-left: 130px;
  margin-bottom: 40px;
}
.tl-item .year {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-600);
  width: 80px;
  text-align: right;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 83px; top: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 4px solid var(--cream);
  z-index: 1;
}
.tl-item h3 { margin-bottom: 6px; }
.tl-item p { color: var(--ink-700); font-size: 14.5px; }

/* ========= Contact ========= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 70px 0;
}
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form .row {
  margin-bottom: 18px;
}
.contact-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--gold-500);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info h3 { margin-bottom: 20px; }
.contact-info p { color: var(--ink-700); margin-bottom: 20px; font-size: 15px; }
.contact-detail {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .ico {
  color: var(--gold-600);
  background: var(--gold-100);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-detail strong { display: block; color: var(--navy-950); margin-bottom: 4px; }

/* ========= Mobile nav toggle (hidden at desktop) ========= */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  background: none;
}
.nav-toggle svg { width: 24px; height: 24px; }
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(88vw, 360px);
  height: 100vh;
  background: var(--paper);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(10, 20, 37, 0.2);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--navy-950);
}
.mobile-drawer-search {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
  font-size: 16px;
  outline: none;
}
.mobile-drawer nav {
  padding: 8px 0;
  flex: 1;
}
.mobile-drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  color: var(--navy-950);
  border-bottom: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0;
  min-height: 56px;
}
.mobile-drawer nav a::after {
  content: "›"; font-size: 22px; color: var(--ink-500);
}
.mobile-drawer nav a.accent { color: var(--gold-600); font-weight: 500; }
.mobile-drawer nav a.active {
  background: var(--gold-100);
  border-left: 3px solid var(--gold-500);
  padding-left: 17px;
}
.mobile-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-drawer-footer a { display: block; padding: 8px 0; font-size: 14px; color: var(--ink-700); }
.mobile-drawer-footer .call-cta {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; background: var(--navy-950); color: var(--gold-300);
  border-radius: 6px; font-size: 14px; margin-top: 10px;
}

.backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 20, 37, 0.55);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.backdrop.open { opacity: 1; pointer-events: auto; }
body.no-scroll { overflow: hidden; }

/* ========= Mobile filter drawer (for listing pages) ========= */
.mobile-filter-bar {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.mobile-filter-bar .container {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--navy-950);
  background: var(--paper);
  min-height: 44px;
}
.filter-btn .count-badge {
  background: var(--navy-950);
  color: var(--gold-300);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ========= Tablet (≤ 1040px) ========= */
@media (max-width: 1040px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding: 72px 24px 90px; }
  .hero-visual { height: 340px; width: 100%; margin: 0 auto; max-width: 520px; }
  .cat-grid, .trust-grid, .price-cards, .values-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .listing-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 60px; }
  .filter-panel { display: none; }
  .pdp-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 40px 0; }
  .pdp-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section { padding: 60px 0; }
  .page-head { padding: 44px 0 50px; }
  .nav-primary .container { gap: 0; }
  .nav-primary a { padding: 12px 10px; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
}

/* ========= Mobile (≤ 760px) ========= */
@media (max-width: 760px) {
  html { scroll-behavior: auto; }

  .container { padding: 0 18px; }

  /* Price strip: horizontal scroll, not wrap */
  .price-strip .container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 8px 16px;
    gap: 16px;
    scrollbar-width: none;
    /* Fade the right edge so the horizontal scroll reads as intentional
       rather than a hard-clipped number. */
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  }
  .price-strip .container::-webkit-scrollbar { display: none; }
  .price-feed { flex-wrap: nowrap; gap: 16px; }
  .ticker-item { white-space: nowrap; }
  .strip-right { display: none; }

  /* Header: compact 3-col with hamburger + logo + cart */
  .site-header { position: sticky; top: 0; }
  .header-top {
    grid-template-columns: 44px 1fr 44px;
    padding: 10px 0;
    gap: 8px;
  }
  .logo { grid-column: 2; justify-self: center; }
  .logo-mark { width: 32px; height: 32px; font-size: 16px; }
  .logo-text { font-size: 19px; }
  /* Hide the whole search wrapper, not just the input — otherwise the empty
     wrapper stays a grid child and knocks the logo onto a second row. */
  .header-search, .header-search-wrap { display: none; }
  .header-actions { grid-column: 3; justify-content: flex-end; gap: 4px; }
  .header-actions a { padding: 8px; position: relative; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .header-actions a .lbl { display: none; }
  .header-actions a .icon svg { width: 22px; height: 22px; }
  .header-actions .cart-dot {
    font-size: 10px; padding: 1px 5px; margin-left: 0;
    position: absolute; top: 2px; right: 2px;
    min-width: 14px; text-align: center; line-height: 1.3;
  }
  .header-actions a:first-child { display: none; } /* hide Account on mobile, in drawer instead */
  .nav-toggle { display: inline-flex; grid-column: 1; }
  .nav-primary { display: none; }

  /* Hero — compact on phones so the CTA (and the Bestsellers row right below
     the hero) are reachable without scrolling. */
  .hero .container { display: flex; flex-direction: column; padding: 22px 18px 36px; gap: 16px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .18em; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); margin-bottom: 12px; }
  .hero p.lede { display: none; }   /* long lede eats the fold on phones */
  .hero-cta { flex-direction: column; gap: 10px; margin-top: 2px; }
  .hero-cta .btn { width: 100%; padding: 14px; }
  .hero-stats {
    gap: 0;
    margin-top: 22px;
    padding-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-stat .num { font-size: 1.4rem; }
  .hero-stat .lbl { font-size: 10px; letter-spacing: .1em; }

  /* Hero product images don't lay out well at phone widths — hide them.
     Products are surfaced in the Bestsellers row directly below the hero. */
  .hero-visual { display: none; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 1.6rem; }
  .section-title p { font-size: 14px; }
  .page-head { padding: 32px 0 38px; }
  .page-head h1 { font-size: 1.9rem; }
  .page-head p { font-size: 14px; }

  /* Grids: mostly single-col, product grid stays 2-up */
  .cat-grid, .trust-grid, .price-cards, .values-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }

  /* Trust items compact */
  .trust-band { padding: 18px 0; }
  .trust-item { font-size: 12.5px; padding: 6px 0; }

  /* Category tiles: image left, text stacked right (grid so the three text
     children don't spread into their own columns as they did under flex-row). */
  .cat-tile {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 16px;
    row-gap: 3px;
    align-items: center;
    padding: 18px 16px;
    text-align: left;
  }
  .cat-tile .tile-visual {
    width: 60px; height: 60px;
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
  }
  .cat-tile h3 { grid-column: 2; font-size: 1.1rem; }
  .cat-tile p { grid-column: 2; font-size: 12.5px; }
  .cat-tile .shop-link { grid-column: 2; margin-top: 4px; font-size: 12px; }

  /* Product cards compact */
  .product-card { border-radius: 8px; }
  .product-info { padding: 12px; gap: 4px; }
  .product-name { font-size: 0.92rem; line-height: 1.25; }
  .product-meta { font-size: 10.5px; }
  .product-price { font-size: 1.05rem; }
  .product-per { font-size: 10.5px; }
  .product-stock { font-size: 10.5px; }
  .product-cta { padding: 10px; font-size: 12px; margin-top: 8px; }
  .product-badge { font-size: 9.5px; padding: 3px 8px; top: 8px; left: 8px; }
  .product-media { padding: 10px; }
  .product-media > .coin { --coin-size: 130px; }
  .product-media > .bar  { --bar-w: 140px; }

  /* Price panel */
  .price-panel { padding: 50px 0; }
  .price-card { padding: 20px; }
  .price-card .pc-value { font-size: 1.5rem; }

  /* Editorial section — stack tight. Let the box size to the coin rather than
     forcing a short 4/3 ratio that clips the (square) image top and bottom. */
  .editorial { gap: 28px; }
  .editorial .e-visual { aspect-ratio: auto; padding: 28px 18px; }

  /* Listing / filters — show filter button, hide desktop listing head */
  .mobile-filter-bar { display: block; top: 54px; }
  .listing-layout { padding: 0 0 40px; gap: 0; }
  .listing-head { display: none; }
  main > .listing-count-mobile {
    padding: 16px 0 10px;
    font-size: 13px; color: var(--ink-500);
  }
  .filter-panel {
    display: none;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: min(90vw, 340px);
    z-index: 201;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    padding-bottom: 100px;
    border: none;
    box-shadow: 8px 0 40px rgba(10, 20, 37, 0.2);
  }
  .filter-panel.open { display: block; transform: translateX(0); }
  .filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: var(--paper); z-index: 2;
    margin: -24px -24px 14px;
  }
  .filter-panel-head h3 { font-family: var(--serif); font-size: 1.2rem; }
  .filter-panel-close { width: 44px; height: 44px; display: grid; place-items: center; }
  .filter-panel-head, .filter-panel-apply { display: flex; }
  .filter-panel-apply {
    position: sticky; bottom: 0;
    margin: 0 -24px -24px;
    padding: 14px 20px;
    background: var(--paper);
    box-shadow: 0 -8px 16px -8px rgba(10, 20, 37, 0.08);
  }
  .filter-panel-apply .btn { width: 100%; }

  /* PDP */
  .pdp-layout { padding: 24px 0 40px; gap: 24px; }
  .pdp-main-img { padding: 20px; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pdp-info h1 { font-size: 1.5rem; }
  .pdp-price { padding: 16px 0; flex-wrap: wrap; gap: 6px; }
  .pdp-price .big { font-size: 2rem; }
  .pdp-price .prem { width: 100%; margin-left: 0; }
  .pdp-qty-grid th, .pdp-qty-grid td { padding: 8px; font-size: 12.5px; }
  .pdp-buy { grid-template-columns: 1fr; }
  .pdp-buy .qty-box { justify-content: center; }
  .pdp-buy .btn { width: 100%; padding: 16px; }
  .pdp-tablist { overflow-x: auto; scrollbar-width: none; }
  .pdp-tablist::-webkit-scrollbar { display: none; }
  .pdp-tablist button { padding: 14px 14px; font-size: 12px; white-space: nowrap; }

  /* Charts page */
  .chart-wrap { padding: 18px; }
  .chart-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .chart-price { font-size: 1.6rem; }
  .chart-ranges { flex-wrap: wrap; gap: 4px; }
  .chart-ranges button { padding: 7px 10px; font-size: 12px; min-height: 36px; }
  .chart-svg { height: 200px; }

  /* Forms: 16px inputs to prevent iOS zoom */
  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .header-search input { font-size: 16px; }
  .contact-form { padding: 22px; }

  /* Timeline: tighter */
  .timeline::before { left: 50px; }
  .tl-item { padding-left: 80px; margin-bottom: 28px; }
  .tl-item .year { font-size: 1.2rem; width: 44px; }
  .tl-item::before { left: 46px; }

  /* Footer */
  .site-footer { padding: 48px 0 24px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; font-size: 11.5px; }
  .footer-pay { flex-wrap: wrap; }

  /* Buttons: larger touch target */
  .btn { min-height: 44px; padding: 12px 20px; }
  .btn-sm { min-height: 36px; padding: 8px 14px; }
  .btn-lg { min-height: 52px; padding: 14px 24px; }

  /* About page values grid mobile */
  .value-card { padding: 24px 20px; }
  .value-card h3 { font-size: 1.1rem; }

  /* About accreditations inline 2-col on small */
  .section[style*="background:var(--navy-950)"] > .container > div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Sell-to-us steps 1-col */
  section#sell > .container > div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  section#sell > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    padding: 26px !important;
  }
  /* Generic inline 2-col stacks on mobile */
  .container > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ========= Small phones (≤ 420px) ========= */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.9rem; }
  .section-title h2 { font-size: 1.4rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 0.85rem; }
  .product-meta { font-size: 9.5px; }
  .product-price { font-size: 0.95rem; }
  .product-cta { font-size: 11.5px; padding: 9px; }
  .product-media { padding: 8px; }
  .product-media > .coin { --coin-size: 115px; }
  .product-media > .bar  { --bar-w: 125px; }
  /* All three stats stay on a single row on small phones. */
  .hero-stats { grid-template-columns: repeat(3, 1fr); column-gap: 10px; row-gap: 0; }
  .hero-stat:nth-child(3) { grid-column: auto; border-top: none; padding-top: 0; text-align: left; }
  .logo-text { font-size: 17px; }
  .logo-mark { width: 28px; height: 28px; font-size: 14px; }
  .hero-stat .num { font-size: 1.15rem; }
  .page-head h1 { font-size: 1.55rem; }
}

/* ========= Very tiny phones (≤ 360px) ========= */
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ========= Reduced motion ========= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
