/* ProteinPrice.com: Global Stylesheet */
/* Font: Inter from Google Fonts: loaded in each HTML page */

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

:root {
  --g50:  #F0FDF4;
  --g100: #DCFCE7;
  --g600: #16A34A;
  --g700: #15803D;
  --g800: #166534;
  --g900: #14532D;
  --n50:  #F9FAFB;
  --n100: #F3F4F6;
  --n200: #E5E7EB;
  --n300: #D1D5DB;
  --n400: #9CA3AF;
  --n500: #6B7280;
  --n600: #4B5563;
  --n700: #374151;
  --n800: #1F2937;
  --n900: #111827;
  --g200: #BBF7D0;
  --g300: #86EFAC;
  --g400: #4ADE80;
  --g500: #22C55E;
  --white: #FFFFFF;
  --gold: #B45309;
  --gold-bg: #FFFBEB;
  --gold-border: #FDE68A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--n900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; }

/* ── TICKER ─────────────────────────────────────────────── */
.ticker {
  background: var(--g600);
  color: white;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
}
.ticker strong { font-weight: 700; }
.ticker .sep { opacity: .45; margin: 0 8px; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--n200);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 8px; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: 8px;
}
.logo-icon {
  width: 34px; height: 34px; background: var(--g600); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-text {
  font-size: 18px; font-weight: 800; color: var(--n900); letter-spacing: -0.5px;
}
.logo-text em { font-style: normal; color: var(--g600); }
.site-nav { display: flex; gap: 1px; }
.site-nav a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--n500); padding: 7px 12px; border-radius: var(--radius-sm);
  transition: color .12s, background .12s; white-space: nowrap;
}
.site-nav a:hover { color: var(--n900); background: var(--n100); }
.site-nav a.active { color: var(--g600); font-weight: 600; }
.nav-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--n50); border: 1.5px solid var(--n200);
  border-radius: 10px; padding: 9px 14px; min-width: 220px;
  transition: border-color .15s, box-shadow .15s;
}
.nav-search:focus-within {
  border-color: var(--g600); background: var(--white);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.nav-search svg { color: var(--n300); flex-shrink: 0; }
.nav-search input {
  border: none; outline: none; background: none;
  font-size: 14px; font-family: inherit; color: var(--n900); width: 100%;
}
.nav-search input::placeholder { color: var(--n300); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 24px 0;
  display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--g700);
  background: var(--g50); border: 1px solid var(--g100);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 22px;
}
.pulse { width: 6px; height: 6px; background: var(--g600); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 {
  font-size: clamp(36px, 4.5vw, 56px); font-weight: 900;
  letter-spacing: -2px; line-height: 1.06; color: var(--n900); margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--g600); }
.hero-sub {
  font-size: 17px; color: var(--n500); line-height: 1.65;
  max-width: 440px; margin-bottom: 36px;
}
.hero-search {
  display: flex; max-width: 480px;
  background: var(--white); border: 2px solid var(--n200);
  border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-md);
  margin-bottom: 28px; transition: border-color .15s, box-shadow .15s;
}
.hero-search:focus-within {
  border-color: var(--g600);
  box-shadow: 0 0 0 4px rgba(22,163,74,.1), var(--shadow-md);
}
.hero-search input {
  flex: 1; padding: 15px 20px; border: none; outline: none;
  font-size: 15px; font-family: inherit; color: var(--n900);
}
.hero-search input::placeholder { color: var(--n300); }
.hero-search button {
  background: var(--g600); color: white; border: none;
  padding: 0 24px; font-weight: 700; font-size: 14px; font-family: inherit;
  transition: background .15s; white-space: nowrap;
}
.hero-search button:hover { background: var(--g700); }
.hero-stats { display: flex; gap: 28px; }
.hstat-val { display: block; font-size: 22px; font-weight: 900; color: var(--n900); letter-spacing: -0.5px; }
.hstat-lbl { display: block; font-size: 12px; color: var(--n500); font-weight: 500; }

/* Hero visual cards */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -30px -20px -30px -20px;
  background:
    radial-gradient(circle at 70% 20%, rgba(22,163,74,0.10) 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(22,163,74,0.06) 0%, transparent 60%);
  z-index: 0;
  border-radius: 24px;
  pointer-events: none;
}
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.hero-visual-label {
  position: absolute;
  top: -16px; left: 16px;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--g200);
  color: var(--g700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hcard {
  background: var(--white); border: 1px solid var(--n200);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s; text-decoration: none; display: block;
}
.hcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hcard-img {
  height: 180px; display: flex; align-items: center;
  justify-content: center; position: relative;
  background: linear-gradient(180deg, #FAFAFA 0%, #F3F4F6 100%) !important;
  border-bottom: 1px solid var(--n100);
  overflow: hidden;
}
.hcard-img .product-photo { padding: 18px !important; }
.hcard-img > svg { transform: scale(1.35); }
.hcard-body { padding: 12px 14px 14px; }
.hcard-brand { font-size: 10px; font-weight: 700; color: var(--g600); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.hcard-name { font-size: 12px; font-weight: 700; color: var(--n900); line-height: 1.3; margin-bottom: 8px; }
.hcard-price { font-size: 18px; font-weight: 900; color: var(--n900); letter-spacing: -.5px; }
.hcard-at { font-size: 11px; color: var(--n500); margin-top: 1px; }
.hcard-at strong { color: var(--g700); font-weight: 600; }

/* ── RETAILER STRIP ──────────────────────────────────────── */
.retailer-strip {
  border-top: 1px solid var(--n200); border-bottom: 1px solid var(--n200);
  background: var(--n50); padding: 16px 24px; margin-top: 56px;
}
.retailer-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.strip-label { font-size: 12px; font-weight: 600; color: var(--n400); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; flex-shrink: 0; }
.strip-pipe { width: 1px; height: 18px; background: var(--n200); flex-shrink: 0; }
.strip-logos { display: flex; gap: 6px; flex-wrap: wrap; }
.r-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--n200);
  border-radius: 7px; padding: 5px 11px; font-size: 12px; font-weight: 600;
  color: var(--n700); white-space: nowrap;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.r-chip:hover {
  border-color: var(--n300);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.r-chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--n300); flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 3px rgba(0,0,0,.04);
}

/* ── SHARED SECTION ──────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 52px 24px; }
.section + .section { padding-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.sec-head a { font-size: 14px; font-weight: 600; color: var(--g600); text-decoration: none; }
.sec-head a:hover { color: var(--g700); }

/* ── PRODUCT CARDS ───────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.pcard {
  background: var(--white); border: 1.5px solid var(--n200);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  box-shadow: var(--shadow-sm); text-decoration: none; display: block;
  color: inherit;
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--n300); }
.pcard.winner { border-color: var(--g600); border-width: 2px; box-shadow: 0 0 0 1px rgba(22,163,74,.1), var(--shadow-sm); }
.pcard-img {
  height: 260px; display: flex; align-items: center;
  justify-content: center; position: relative;
  background: linear-gradient(180deg, #FAFAFA 0%, #F3F4F6 100%) !important;
  border-bottom: 1px solid var(--n100);
  overflow: hidden;
}
.pcard-img .product-photo { padding: 22px !important; }
.pcard-img > svg { transform: scale(1.4); }
.vs-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--white); border: 1.5px solid var(--n200);
  border-radius: 10px; padding: 5px 9px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.vs-num { display: block; font-size: 16px; font-weight: 900; color: var(--g600); line-height: 1; }
.vs-lbl { display: block; font-size: 8px; font-weight: 700; color: var(--n400); text-transform: uppercase; letter-spacing: .5px; }
.top-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--g600); color: white; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
}
.pcard-body { padding: 16px 18px 20px; }
.pcard-brand { font-size: 11px; font-weight: 700; color: var(--g600); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.pcard-name { font-size: 14px; font-weight: 700; color: var(--n900); line-height: 1.35; margin-bottom: 14px; min-height: 40px; }
.pcard-rule { height: 1px; background: var(--n100); margin-bottom: 14px; }
.pcard-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.pcard-price .from { font-size: 11px; color: var(--n400); display: block; }
.pcard-price .amount { font-size: 26px; font-weight: 900; color: var(--n900); letter-spacing: -1px; line-height: 1; }
.pcard-price .at { font-size: 12px; color: var(--n500); margin-top: 2px; display: block; }
.pcard-price .at strong { color: var(--g700); font-weight: 600; }
.ppd-tag {
  background: var(--g50); border: 1px solid var(--g100);
  color: var(--g700); font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 7px; white-space: nowrap; align-self: flex-start;
}
.pcard-btn {
  width: 100%; padding: 11px; background: var(--n50);
  border: 1.5px solid var(--n200); color: var(--n700);
  border-radius: 10px; font-size: 13px; font-weight: 700;
  transition: all .15s;
}
.pcard-btn:hover, .pcard.winner .pcard-btn { background: var(--g600); border-color: var(--g600); color: white; }

/* ── CATEGORY TILES ──────────────────────────────────────── */
.cgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.ctile {
  background: var(--white); border: 1.5px solid var(--n200);
  border-radius: var(--radius-md); padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; transition: all .18s; box-shadow: var(--shadow-sm);
  color: inherit;
}
.ctile:hover { border-color: var(--g600); box-shadow: 0 4px 20px rgba(22,163,74,.1); transform: translateY(-1px); }
.ctile-icon {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: var(--g50); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ctile-name { font-size: 15px; font-weight: 700; color: var(--n900); margin-bottom: 2px; }
.ctile-sub { font-size: 12px; color: var(--n500); }
.ctile-arrow { margin-left: auto; color: var(--n300); font-size: 20px; flex-shrink: 0; font-weight: 300; }

/* ── PRICE TABLE ─────────────────────────────────────────── */
.ptable-wrap {
  background: var(--white); border: 1px solid var(--n200);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.ptable-head-section {
  padding: 28px 32px 24px; border-bottom: 1px solid var(--n100);
  display: flex; gap: 28px; align-items: flex-start;
}
.ptable-img {
  width: 96px; height: 108px; flex-shrink: 0;
  border-radius: 13px; display: flex; align-items: center; justify-content: center;
}
.ptable-meta { flex: 1; min-width: 0; }
.ptable-brand { font-size: 12px; font-weight: 700; color: var(--g600); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.ptable-name { font-size: 22px; font-weight: 900; color: var(--n900); letter-spacing: -.5px; line-height: 1.2; margin-bottom: 6px; }
.ptable-variant { font-size: 14px; color: var(--n500); margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 7px; }
.chip-green  { background: var(--g50);  color: var(--g700); }
.chip-blue   { background: #EFF6FF; color: #1D4ED8; }
.chip-amber  { background: #FFFBEB; color: #B45309; }
.ptable-scores { display: flex; flex-direction: column; align-items: center; gap: 16px; flex-shrink: 0; }
.score-donut {
  width: 96px; height: 96px; border-radius: 50%; position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(22,163,74,.2);
}
.score-donut::before { content: ''; position: absolute; inset: 9px; background: white; border-radius: 50%; }
.score-donut-inner { position: relative; z-index: 1; text-align: center; }
.sd-num { display: block; font-size: 28px; font-weight: 900; color: var(--g700); line-height: 1; letter-spacing: -1px; }
.sd-lbl { display: block; font-size: 8px; font-weight: 700; color: var(--n400); text-transform: uppercase; letter-spacing: .5px; margin-top: 1px; }
.score-duo { display: flex; gap: 20px; }
.sduo { text-align: center; }
.sduo-val { font-size: 17px; font-weight: 900; color: var(--n900); letter-spacing: -.5px; }
.sduo-lbl { font-size: 10px; color: var(--n400); text-transform: uppercase; letter-spacing: .3px; }
/* table rows */
.ptable-col-head {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 110px;
  padding: 11px 32px; font-size: 11px; font-weight: 700;
  color: var(--n300); text-transform: uppercase; letter-spacing: .7px;
  border-bottom: 1px solid var(--n100); background: var(--n50);
}
.ptable-row {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 110px;
  padding: 15px 32px; border-bottom: 1px solid var(--n100);
  align-items: center; transition: background .12s; cursor: pointer;
}
.ptable-row:last-child { border-bottom: none; }
.ptable-row:hover { background: var(--n50); }
.ptable-row.best { background: var(--g50); }
.r-cell { display: flex; align-items: center; gap: 12px; }
.r-dot {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
}
.r-name { font-size: 14px; font-weight: 600; color: var(--n900); }
.best-tag {
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  color: var(--gold); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; margin-left: 8px;
  text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
}
.price-amt { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-amt.top { color: var(--g600); }
.upd-time { font-size: 11px; color: var(--n300); }
.btn-go {
  background: var(--g600); color: white; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; transition: background .15s; white-space: nowrap;
}
.btn-go:hover { background: var(--g700); }
.btn-plain {
  background: var(--white); color: var(--n500); border: 1.5px solid var(--n200);
  border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; transition: all .15s; white-space: nowrap;
}
.btn-plain:hover { border-color: var(--g600); color: var(--g600); }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-band { background: var(--n50); border-top: 1px solid var(--n200); border-bottom: 1px solid var(--n200); padding: 56px 24px; }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-inner h2 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; text-align: center; margin-bottom: 36px; }
.how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.how-step { background: var(--white); border: 1px solid var(--n200); border-radius: var(--radius-md); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.how-n {
  width: 40px; height: 40px; background: var(--g600); border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: white; margin-bottom: 16px;
}
.how-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--n500); line-height: 1.65; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--n900);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-size: 17px; font-weight: 800; color: white; letter-spacing: -.5px; }
.footer-logo em { font-style: normal; color: #4ADE80; }
.footer-tagline { font-size: 13px; color: #6B7280; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: #9CA3AF; text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: white; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: #9CA3AF; text-decoration: none; transition: color .15s; }
.footer-nav a:hover { color: white; }
.footer-copy { font-size: 12px; color: #4B5563; }

/* ── PROTEIN TUB SHAPES ──────────────────────────────────── */
.tub {
  border-radius: 10px 10px 8px 8px; position: relative;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.22));
}
.tub::before {
  content: ''; position: absolute; top: -8px; left: -3px;
  width: calc(100% + 6px); height: 15px; border-radius: 8px 8px 0 0;
}
.tub-label {
  position: absolute; inset: 14px 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; text-align: center;
  background: rgba(255,255,255,.1); border-radius: 7px;
}
.tub-label .tb { font-size: 9px; font-weight: 800; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .4px; }
.tub-label .tn { font-size: 8px; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.2; }

/* ── PAGE HEADER (category/brand pages) ─────────────────── */
/* Clean white-based hero. Brand/category color is used as a thin accent
   bar on top + small inline pill, NOT as a full-page color flood. */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--n100);
  padding: 56px 24px 40px;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--g600) 0%, var(--g500) 100%);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--n400); margin-bottom: 16px; }
.breadcrumb a { color: var(--g600); text-decoration: none; font-weight: 500; }
.breadcrumb span { color: var(--n300); }
.page-hero h1 { font-size: clamp(28px,4vw,42px); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: var(--n500); max-width: 560px; line-height: 1.55; }

/* ── BRAND PAGE: hero band (per-brand identity) ─────────── */
/* White background, brand color as accent line on top + colored wordmark.
   No more full-page color flood. */
.brand-hero {
  position: relative;
  padding: 44px 24px 36px;
  border-bottom: 1px solid var(--n100);
  overflow: hidden;
  background: var(--white) !important;
}
.brand-hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand-accent, var(--g600));
}
.brand-hero::after {
  content: none;
}
.brand-hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center;
}
.brand-hero-left { min-width: 0; }
.brand-hero .breadcrumb { color: var(--n500); margin-bottom: 14px; }
.brand-hero .breadcrumb a { color: var(--brand-dark, var(--n700)); font-weight: 600; }
.brand-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--brand-accent, var(--g700));
  background: transparent;
  padding: 0 0 10px 0;
  border-bottom: 0;
  margin-bottom: 16px;
  border-radius: 0;
}
.brand-hero-eyebrow::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-accent, var(--g600));
}
.brand-hero-wordmark {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.02;
  color: var(--n900);
  margin: 0 0 16px;
  text-shadow: none;
}
.brand-hero-tagline {
  font-size: 17px; line-height: 1.55;
  color: var(--n600);
  max-width: 520px;
  margin: 0;
}
.brand-hero-right {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
.brand-hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  position: relative; z-index: 2;
}
.bhs {
  background: var(--n50);
  border: 1px solid var(--n100);
  border-radius: 12px;
  padding: 14px 16px;
}
.bhs-wide { grid-column: 1 / -1; }
.bhs-val {
  display: block; font-size: 24px; font-weight: 900;
  color: var(--n900);
  letter-spacing: -0.5px; line-height: 1;
}
.bhs-val-sm { font-size: 16px; }
.bhs-lbl {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--n500); margin-top: 4px;
  text-transform: uppercase; letter-spacing: .6px;
}
.brand-hero-tub {
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  opacity: .35; pointer-events: none; z-index: 1;
}
@media (max-width: 820px) {
  .brand-hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .brand-hero-tub { display: none; }
  .brand-hero-wordmark { font-size: 36px; letter-spacing: -1.4px; }
  .brand-hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ── BRAND PAGE: identity strip (founded, country, top retailer …) ── */
.brand-identity-strip {
  background: #fff;
  border-bottom: 1px solid var(--n200);
}
.bid-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bid-cell {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.bid-lbl {
  font-size: 10px; font-weight: 700;
  color: var(--n400);
  text-transform: uppercase; letter-spacing: .8px;
}
.bid-val {
  font-size: 15px; font-weight: 800;
  color: var(--n900); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bid-val-text {
  font-size: 13px; font-weight: 600; color: var(--n700);
  white-space: normal; line-height: 1.35;
}
.bid-sub { font-size: 12px; color: var(--n400); font-weight: 600; }
@media (max-width: 980px) {
  .bid-inner { grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
}
@media (max-width: 560px) {
  .bid-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Collapse the nav search to an icon-only button between ~900 and 1100px
   so the full nav (All / Powders / Bars / Drinks / Brands / Blog) fits
   without cropping. Click the icon to focus the search via the search
   page; the visual is a compact magnifying-glass tile. */
@media (max-width: 1100px) {
  .nav-search {
    min-width: 0;
    width: 42px;
    padding: 0;
    height: 38px;
    justify-content: center;
    cursor: pointer;
  }
  .nav-search input {
    display: none;
  }
  .nav-search svg {
    margin: 0;
    color: var(--n500);
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 900px) {
  .pgrid { grid-template-columns: repeat(2,1fr); }
  .cgrid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .ptable-col-head, .ptable-row { grid-template-columns: 2fr 1fr 110px; }
  .ptable-col-head > *:nth-child(3), .ptable-row > *:nth-child(3) { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 600px) {
  .pgrid { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: 1fr; }
  .section { padding: 36px 16px; }
  .hero { padding: 36px 16px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .ptable-head-section { flex-direction: column; }
  .ptable-scores { flex-direction: row; }
}

/* ── DESIGN POLISH ──────────────────────────────────────────── */

/* 1. Smooth scrolling */
html { scroll-behavior: smooth; }

/* 2. Accessible focus rings */
*:focus-visible {
  outline: 2px solid var(--g600);
  outline-offset: 2px;
}

/* ── TYPOGRAPHY IMPROVEMENTS ─────────────────────────────── */

/* Section h2s slightly larger */
.sec-head h2 { font-size: 24px; }
.how-inner h2 { font-size: 24px; }

/* Hero h1: tighter letter-spacing already set; improve line-height floor */
.hero h1 { line-height: 1.06; }

/* ── HERO PREMIUM FEEL ───────────────────────────────────── */

/* Subtle radial gradient pattern behind the hero area */
.hero {
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(22,163,74,.055) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(22,163,74,.035) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Keep hero content above the gradient overlay */
.hero-text,
.hero-visual {
  position: relative;
  z-index: 1;
}

/* Tighter letter-spacing on hero h1: already -2px in base; reinforce */
.hero h1 { letter-spacing: -2px; }

/* ── PRODUCT CARD ENTRANCE ANIMATION ─────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to every product card: stagger via nth-child */
.pgrid .pcard {
  animation: fadeInUp 0.3s ease both;
}
.pgrid .pcard:nth-child(1) { animation-delay: 0s;    }
.pgrid .pcard:nth-child(2) { animation-delay: 0.06s; }
.pgrid .pcard:nth-child(3) { animation-delay: 0.12s; }
.pgrid .pcard:nth-child(4) { animation-delay: 0.18s; }

/* ── WINNER CARD GREEN TOP STRIP ─────────────────────────── */

/* Green 3px gradient strip at the very top of winner cards */
.pcard.winner {
  position: relative;
  overflow: visible; /* allow ::before to paint above the card */
}
.pcard.winner::before {
  content: '';
  position: absolute;
  top: -1px; /* sit on top of the border */
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--g600), var(--g700));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}

/* ── CATEGORY TILE GREEN LEFT BORDER ACCENT ──────────────── */

.ctile {
  border-left-width: 3px;
  border-left-color: transparent;
  /* keep existing transition and add border-left-color */
  transition: all .18s;
}
.ctile:hover {
  border-left-color: var(--g600);
}

/* ── FOOTER PREMIUM FEEL ─────────────────────────────────── */

/* Green accent line at the top of the footer */
.site-footer {
  position: relative;
  padding-top: 0; /* the accent strip handles the top edge */
}
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--g600) 0%, var(--g700) 40%, transparent 100%);
}

/* More breathing room inside the footer */
.footer-inner {
  padding: 44px 0 36px;
}

/* Slightly brighter tagline */
.footer-tagline { color: #9CA3AF; }

/* Subtle divider between footer columns */
.footer-links {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 0; /* only show on mobile stacked layout */
}

/* ── RESPONSIVE PRODUCT GRID: SMALL MOBILE ──────────────── */

@media (max-width: 480px) {
  /* Full-width cards with generous padding on very small screens */
  .pgrid { grid-template-columns: 1fr; gap: 14px; }
  .pcard-body { padding: 14px 16px 18px; }
  .pcard-img { height: 160px; }

}

/* ── MOBILE NAV: HORIZONTAL SCROLL STRIP ────────────────── */

/* At 900px the desktop nav is hidden; replace it with a compact
   horizontally-scrollable strip that stays in the header row.
   The wrapper gets a right-edge gradient fade so users see there's
   more nav content to swipe to. */
@media (max-width: 900px) {
  /* Show the nav again as a scroll strip with fade hint on right */
  .site-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    /* hide scrollbar but keep scroll ability */
    scrollbar-width: none;
    gap: 2px;
    /* let the strip share header space; flex-shrink allows it to compress */
    flex-shrink: 1;
    min-width: 0;
    /* Fade the right edge so users see there's more nav to swipe to */
    -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, black 0, black calc(100% - 24px), transparent 100%);
    /* Make the first nav item flush left so the active state is obvious */
    padding-right: 24px;
  }
  .site-nav::-webkit-scrollbar { display: none; }

  .site-nav a {
    scroll-snap-align: start;
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  /* Keep search as a compact icon-only button beside the scroll strip */
  .nav-search {
    width: 42px;
    height: 38px;
    min-width: 0;
    padding: 0;
    flex-shrink: 0;
    justify-content: center;
  }

  /* Tighten the nav-inner so everything still fits in 64px height */
  .nav-inner { gap: 6px; }
}

/* On very small screens, push the search below the logo+nav */
@media (max-width: 480px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }
  /* Logo takes its natural width, nav fills the rest */
  .site-nav {
    flex: 1;
    order: 2;
  }
  /* Search spans full width on its own row and re-expands to a real input */
  .nav-search {
    order: 3;
    width: 100%;
    height: auto;
    min-width: 0;
    padding: 9px 14px;
    justify-content: flex-start;
  }
  .nav-search input {
    display: block;
  }
  /* Slightly smaller logo on tiny screens */
  .logo-text { font-size: 17px; }
  .logo-icon { width: 30px; height: 30px; }
  /* Ensure nav links keep adequate tap target */
  .site-nav a { min-height: 36px; display: inline-flex; align-items: center; }
}

/* ── MOBILE HERO: TIGHTER LINE-HEIGHT ───────────────────── */

@media (max-width: 1024px) {
  /* line-height 1.06 is too tight without the large clamp size */
  .hero h1 { line-height: 1.1; }
}

@media (max-width: 600px) {
  .hero h1 { line-height: 1.12; letter-spacing: -1px; }
}

/* Performance: skip rendering off-screen sections */
.section, .how-band, .retailer-strip {
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

/* ────────────────────────────────────────────────────────────────────────── */
/* Category-page filter bar (shared with /best-value/ visual language)        */
/* ────────────────────────────────────────────────────────────────────────── */
.cat-filter-wrap {
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 0 24px;
}
.cat-filter-bar {
  background: var(--white);
  border: 1px solid var(--n100);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-filter-row.scroll-x {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-filter-row.scroll-x::-webkit-scrollbar { display: none; }
.cat-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--n400);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  margin-right: 2px;
}

/* Brand chips (mobile) and inline chips */
.cat-fchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--n200);
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--n700);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  font-family: inherit;
}
.cat-fchip:hover { border-color: var(--g600); color: var(--g700); }
.cat-fchip.active { background: var(--g600); border-color: var(--g600); color: white; }

/* Brand dropdown */
.cat-filter-dd { position: relative; }
.cat-filter-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--n200);
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--n700);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  font-family: inherit;
}
.cat-filter-dd-btn:hover { border-color: var(--g600); color: var(--g700); }
.cat-filter-dd-btn.has-selected { background: var(--g600); border-color: var(--g600); color: white; }
.cat-filter-dd-btn .cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
  height: 18px;
  background: rgba(255,255,255,.25);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
.cat-filter-dd-btn:not(.has-selected) .cnt { display: none; }
.cat-filter-dd-btn .caret { transition: transform .15s; font-size: 9px; }
.cat-filter-dd.open .cat-filter-dd-btn .caret { transform: rotate(180deg); }
.cat-filter-dd-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  max-width: 320px;
  max-height: 320px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--n200);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  padding: 8px;
  z-index: 90;
}
.cat-filter-dd.open .cat-filter-dd-panel { display: block; }
.cat-filter-dd-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--n700);
  cursor: pointer;
}
.cat-filter-dd-panel label:hover { background: var(--g50); }
.cat-filter-dd-panel input[type=checkbox] {
  width: 15px; height: 15px;
  accent-color: var(--g600);
  cursor: pointer;
}
.cat-filter-dd-actions {
  display: flex;
  gap: 6px;
  padding: 6px 4px 4px;
  border-top: 1px solid var(--n100);
  margin-top: 6px;
  position: sticky;
  bottom: -8px;
  background: white;
}
.cat-filter-dd-actions button {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--n200);
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--n500);
  cursor: pointer;
  font-family: inherit;
}
.cat-filter-dd-actions button:hover { background: var(--n50); }

/* Range sliders */
.cat-filter-range {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 14px 8px;
  border-radius: 16px;
  border: 1.5px solid var(--n200);
  background: white;
  min-width: 190px;
}
.cat-filter-range .rng-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--n400);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  justify-content: space-between;
}
.cat-filter-range .rng-lbl strong { color: var(--g700); font-weight: 800; }
.cat-filter-range.active { border-color: var(--g600); background: var(--g50); }
.cat-dual-range {
  position: relative;
  height: 18px;
}
.cat-dual-range input[type=range] {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 18px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  margin: 0;
}
.cat-dual-range::before {
  content: '';
  position: absolute;
  top: 8px; left: 0;
  width: 100%;
  height: 3px;
  background: var(--n200);
  border-radius: 2px;
}
.cat-dual-range .track-fill {
  position: absolute;
  top: 8px;
  height: 3px;
  background: var(--g600);
  border-radius: 2px;
  pointer-events: none;
}
.cat-dual-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--g600);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  position: relative;
  z-index: 2;
}
.cat-dual-range input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--g600);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.cat-single-range {
  position: relative;
  height: 18px;
}
.cat-single-range input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--n200);
  border-radius: 2px;
  outline: none;
  margin: 7px 0;
}
.cat-single-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--g600);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.cat-single-range input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--g600);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* Sort select */
.cat-filter-sort {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 30px 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--n200);
  background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23374151' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 12px center;
  font-size: 13px;
  font-weight: 600;
  color: var(--n700);
  cursor: pointer;
  font-family: inherit;
}
.cat-filter-sort:hover { border-color: var(--g600); }

.cat-filter-reset {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--n500);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.cat-filter-reset:hover { color: var(--g700); }

/* Active filter summary chips */
.cat-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  padding-top: 4px;
  border-top: 1px solid var(--n100);
  margin-top: 4px;
}
.cat-filter-summary:empty { display: none; border-top: none; margin-top: 0; padding-top: 0; }
.cat-filter-summary .summary-count {
  font-weight: 700;
  color: var(--n700);
  margin-right: 4px;
}
.cat-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 10px;
  border-radius: 14px;
  background: var(--g50);
  border: 1px solid var(--g100);
  color: var(--g700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.cat-summary-chip:hover { background: var(--g100); color: var(--g800); }
.cat-summary-chip .x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(22,163,74,.15);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}
.cat-summary-chip:hover .x { background: rgba(22,163,74,.25); }
.cat-summary-clear-all {
  padding: 4px 10px;
  background: transparent;
  border: none;
  color: var(--n500);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.cat-summary-clear-all:hover { color: var(--g700); }

/* Mobile trigger + drawer */
.cat-filter-mobile-trigger { display: none; }
.cat-filter-drawer, .cat-filter-drawer-backdrop, .cat-drawer-apply-bar { display: none; }

.cat-empty-state {
  display: none;
  text-align: center;
  padding: 56px 20px;
  color: var(--n500);
}
.cat-empty-state .emoji { font-size: 36px; margin-bottom: 8px; }
.cat-empty-state .title { font-size: 16px; font-weight: 700; color: var(--n700); margin-bottom: 4px; }
.cat-empty-state .sub { font-size: 13px; margin-bottom: 14px; }
.cat-empty-state .btn-reset {
  display: inline-block;
  background: var(--g600); color: white; text-decoration: none;
  padding: 8px 18px; border-radius: 18px;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit;
}
.cat-empty-state .btn-reset:hover { background: var(--g700); }

@media (max-width: 768px) {
  .cat-filter-wrap { padding: 0 16px; }
  .cat-filter-bar { padding: 12px 14px; }

  /* Hide desktop full row; show compact mobile bar instead */
  .cat-filter-row.desktop-only { display: none; }
  .cat-filter-row.mobile-only {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cat-filter-row.mobile-only::-webkit-scrollbar { display: none; }

  .cat-filter-mobile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--n200);
    background: white;
    font-size: 13px;
    font-weight: 700;
    color: var(--n700);
    cursor: pointer;
    font-family: inherit;
  }
  .cat-filter-mobile-trigger .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: var(--g600);
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
  }
  .cat-filter-mobile-trigger .badge:empty { display: none; }

  .cat-filter-drawer {
    display: block;
    position: fixed;
    top: 0; right: -100%;
    width: 88vw;
    max-width: 360px;
    height: 100%;
    background: white;
    z-index: 200;
    overflow-y: auto;
    transition: right .25s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,.18);
    padding: 18px 18px 90px;
    box-sizing: border-box;
  }
  .cat-filter-drawer.open { right: 0; }
  .cat-filter-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  .cat-filter-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
  .cat-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--n100);
  }
  .cat-drawer-head h3 { font-size: 18px; font-weight: 800; }
  .cat-drawer-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--n200);
    background: white;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
  }
  .cat-drawer-section { margin-bottom: 22px; }
  .cat-drawer-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--n500);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
  }
  .cat-drawer-section .cat-filter-range { width: 100%; box-sizing: border-box; }
  .cat-drawer-section .cat-filter-sort { width: 100%; box-sizing: border-box; }
  .cat-drawer-brand-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--n100);
    border-radius: 10px;
    padding: 6px;
  }
  .cat-drawer-brand-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--n700);
    cursor: pointer;
  }
  .cat-drawer-brand-list label:hover { background: var(--g50); }
  .cat-drawer-brand-list input[type=checkbox] {
    width: 15px; height: 15px;
    accent-color: var(--g600);
  }
  .cat-drawer-apply-bar {
    display: flex;
    position: fixed;
    bottom: -80px;
    left: 0;
    width: 88vw;
    max-width: 360px;
    background: white;
    border-top: 1px solid var(--n100);
    padding: 12px 16px;
    gap: 8px;
    z-index: 201;
    transition: bottom .25s ease;
    box-sizing: border-box;
  }
  .cat-drawer-apply-bar.open { bottom: 0; }
  .cat-drawer-apply-bar button {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
  }
  .cat-drawer-apply-bar .btn-reset { background: white; border: 1.5px solid var(--n200); color: var(--n700); }
  .cat-drawer-apply-bar .btn-apply { background: var(--g600); color: white; }
}
@media (min-width: 769px) {
  .cat-filter-row.mobile-only { display: none; }
}

/* Visible product page H1 (replaces sr-only placeholder) */
.product-hero-h1 {
  max-width: 1200px;
  margin: 24px auto 8px;
  padding: 0 24px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--n900);
  line-height: 1.2;
}
@media (max-width: 600px) {
  .product-hero-h1 { font-size: 20px; padding: 0 16px; margin: 16px auto 4px; }
}

/* Simple category filter bar — v2: lightweight, no drawer, just works */
.simple-filter {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto 20px; padding: 0 24px;
}
.simple-filter select {
  padding: 9px 14px; border: 1.5px solid var(--n200); border-radius: 10px;
  background: white; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--n800); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.simple-filter select:focus { outline: 2px solid var(--g600); outline-offset: 2px; }
.simple-filter .filter-count { font-size: 13px; color: var(--n500); margin-left: auto; }
@media (max-width: 600px) {
  .simple-filter { padding: 0 16px; gap: 8px; }
  .simple-filter select { flex: 1; min-width: 0; }
  .simple-filter .filter-count { width: 100%; text-align: center; margin: 4px 0 0; }
}

/* Variant selector (flavor + size pills on product detail pages) */
.variant-selector {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1.5px solid var(--n200); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  margin: 0 0 20px;
}
.variant-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.variant-label {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--n500);
  min-width: 56px;
}
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill {
  display: inline-block; padding: 8px 14px; font-size: 13px; font-weight: 600;
  background: var(--n50); color: var(--n700);
  border: 1.5px solid var(--n200); border-radius: 999px;
  text-decoration: none; transition: all .15s;
}
.variant-pill:hover { border-color: var(--g500); color: var(--g700); background: var(--white); }
.variant-pill.active {
  background: var(--g600); border-color: var(--g600); color: white;
  cursor: default; pointer-events: none;
}
@media (max-width: 600px) {
  .variant-selector { padding: 14px 16px; gap: 10px; }
  .variant-row { gap: 8px; }
  .variant-label { min-width: 44px; font-size: 11px; }
  .variant-pill { padding: 6px 12px; font-size: 12px; }
}

/* ──────────────────────────────────────────────────────────── */
/* MOBILE AUDIT FIXES (2026-05-20)                              */
/* Targets common mobile issues: overflow, tap targets, cramped */
/* layouts at 375px / 414px / 768px. Pure CSS, no JS changes.   */
/* ──────────────────────────────────────────────────────────── */

/* Global safety: prevent any rogue element from horizontally
   scrolling the whole document. Many inline-styled grids set
   fixed columns that can spill past the viewport on iPhone SE. */
html, body { overflow-x: hidden; max-width: 100%; }

/* Long product / brand / retailer names should wrap, not push
   the layout sideways. word-break: break-word handles even
   slug-like strings missing whitespace.                        */
.pcard-name,
.ptable-name,
.ctile-name,
.hcard-name,
.r-name,
.product-hero-h1,
.page-hero h1,
.hero h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* ── TICKER: condense on narrow viewports ─────────────────── */
/* The ticker reads "Prices updated X min ago : 249 products
   tracked across 50 brands" : cramped at 13px on iPhone SE.   */
@media (max-width: 600px) {
  .ticker {
    font-size: 12px;
    padding: 8px 12px;
    line-height: 1.4;
  }
  .ticker .sep { margin: 0 5px; }
}
@media (max-width: 380px) {
  .ticker { font-size: 11.5px; padding: 7px 10px; }
}

/* ── HEADER: tighter logo + larger tap targets ────────────── */
/* At 480px the existing rule wraps search to its own row,
   which is good : but tighten logo to free space and ensure
   logo + nav fit nicely on the first row.                     */
@media (max-width: 480px) {
  .logo { gap: 8px; margin-right: 4px; }
  .logo-icon { width: 30px; height: 30px; }
  .logo-text { font-size: 16px; }
  /* Each nav link should be at least 36px tall for touch. */
  .site-nav a { padding: 9px 11px; min-height: 36px; display: inline-flex; align-items: center; }
  .nav-search { padding: 10px 14px; }
  .nav-search input { font-size: 16px; } /* prevent iOS zoom-on-focus */
}

/* iOS zoom-on-focus prevention : any text input below 16px
   triggers auto-zoom on iPhone. Lift inputs to 16px on small
   viewports while keeping desktop typography unchanged.       */
@media (max-width: 600px) {
  .hero-search input,
  .nav-search input,
  .simple-filter select,
  .cat-filter-sort,
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="number"],
  textarea,
  select { font-size: 16px; }
}

/* ── HERO: tighten on small phones ────────────────────────── */
@media (max-width: 600px) {
  /* Hero search button: avoid the arrow getting clipped */
  .hero-search button { padding: 0 18px; font-size: 13px; }
  .hero-search input { padding: 13px 16px; font-size: 16px; }
  /* Hero stats: 4 stats with 28px gap overflow at 375px;
     wrap them into a 2-up grid for readability.            */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
  }
  .hstat-val { font-size: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
}

/* ── RETAILER STRIP: cleaner wrap on mobile ───────────────── */
@media (max-width: 600px) {
  .retailer-strip { padding: 14px 16px; margin-top: 32px; }
  .retailer-strip-inner { gap: 10px; }
  .strip-pipe { display: none; } /* the divider line looks odd when chips wrap */
  .strip-logos { gap: 5px; }
  .r-chip { padding: 5px 10px; font-size: 11.5px; }
}

/* ── PRICE TABLE: stack rows on narrow screens ────────────── */
/* The 4-col (then 3-col at 900px) grid is too cramped on
   phones : 110px button column eats half the row width.
   Convert each row to a 2-up flex layout: retailer + price on
   one line, time + button on the next. Much more readable.   */
@media (max-width: 600px) {
  .ptable-head-section { padding: 20px 18px 18px; gap: 16px; }
  .ptable-img { width: 72px; height: 84px; }
  .ptable-name { font-size: 18px; }
  .ptable-variant { font-size: 13px; }
  .ptable-scores { gap: 14px; align-self: center; }
  .score-donut { width: 80px; height: 80px; }
  .sd-num { font-size: 24px; }
  .score-duo { gap: 14px; }
  .sduo-val { font-size: 15px; }

  /* Hide the column header row : the stacked card layout
     below is self-describing.                              */
  .ptable-col-head { display: none; }

  /* Rebuild row as a 2-line grid: retailer block then meta. */
  .ptable-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "retailer price"
      "time button";
    gap: 6px 10px;
    padding: 14px 16px;
    align-items: center;
  }
  .ptable-row > .r-cell:first-child { grid-area: retailer; min-width: 0; }
  .ptable-row > .price-amt { grid-area: price; text-align: right; font-size: 17px; }
  .ptable-row > .upd-time { grid-area: time; font-size: 11px; }
  .ptable-row > .btn-go,
  .ptable-row > .btn-plain { grid-area: button; justify-self: end; }
  .r-name { font-size: 13px; }
  .r-dot { width: 28px; height: 28px; }
  .best-tag { margin-left: 6px; font-size: 9px; padding: 2px 6px; }
}

/* ── PRODUCT CARDS: tweak min-height on mobile ────────────── */
/* The 40px min-height for .pcard-name is fine on grids but
   forces big empty space when only 1 line of text.           */
@media (max-width: 600px) {
  .pcard-name { min-height: 0; margin-bottom: 12px; }
  .pcard-img { height: 170px; }
  .pcard-body { padding: 14px 16px 18px; }
  .pcard-price .amount { font-size: 22px; }
  /* Tap-target: bump button height */
  .pcard-btn { padding: 12px; font-size: 14px; }
}

/* ── CATEGORY TILES: tighter padding ──────────────────────── */
@media (max-width: 600px) {
  .ctile { padding: 16px 18px; gap: 12px; }
  .ctile-icon { width: 42px; height: 42px; font-size: 19px; }
  .ctile-name { font-size: 14px; }
  .ctile-sub { font-size: 12px; }
}

/* ── HOMEPAGE 3-COL CATEGORY GRID (inline-styled) ─────────── */
/* index.html uses inline grid-template-columns: repeat(3,1fr)
   on .cat3grid : override at tablet+phone breakpoints.       */
@media (max-width: 900px) {
  .cat3grid { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
}
@media (max-width: 600px) {
  .cat3grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* ── PAGE HERO (category / brand pages) ───────────────────── */
@media (max-width: 600px) {
  .page-hero { padding: 32px 16px 28px; }
  .page-hero p { font-size: 14px; }
  .breadcrumb { font-size: 12px; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
}

/* ── HOW-IT-WORKS BAND ────────────────────────────────────── */
@media (max-width: 600px) {
  .how-band { padding: 40px 16px; }
  .how-inner h2 { font-size: 20px; margin-bottom: 24px; }
  .how-step { padding: 22px 20px; }
}

/* ── SECTION HEAD: stack title above link on narrow widths ─ */
@media (max-width: 480px) {
  .sec-head {
    flex-wrap: wrap;
    gap: 6px;
  }
  .sec-head h2 { font-size: 20px; }
}

/* ── FOOTER: cleaner stacked layout on mobile ─────────────── */
@media (max-width: 600px) {
  .site-footer { padding: 0 16px; }
  .footer-inner { padding: 32px 0 28px; gap: 18px; }
  .footer-links,
  .footer-nav { flex-wrap: wrap; gap: 14px 18px; }
  .footer-links a,
  .footer-nav a { font-size: 13px; padding: 4px 0; }
  .footer-copy { font-size: 11.5px; }
}

/* ── TAP-TARGET COMPLIANCE ────────────────────────────────── */
/* Apple HIG recommends >= 44px square. Bump the small buttons
   used in the price table and filter chips on touch devices.  */
@media (max-width: 600px) {
  .btn-go,
  .btn-plain {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 40px;
  }
  .cat-fchip,
  .cat-filter-dd-btn { min-height: 36px; padding: 8px 14px; }
}

/* ── VARIANT PILLS: prevent awkward 1-wide overflow ───────── */
@media (max-width: 600px) {
  .variant-selector { padding: 12px 14px; }
  /* Stack label above pills so pills get full width to wrap */
  .variant-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .variant-label { min-width: 0; }
  .variant-pill { min-height: 36px; display: inline-flex; align-items: center; }
}

/* ── SIMPLE FILTER: keep dropdowns from getting squeezed ──── */
@media (max-width: 480px) {
  .simple-filter { flex-direction: column; align-items: stretch; gap: 8px; }
  .simple-filter select { width: 100%; padding: 11px 36px 11px 14px; }
  .simple-filter .filter-count { text-align: left; margin: 0; }
}

/* ── BREADCRUMB: prevent overflow when slug is long ───────── */
.breadcrumb { flex-wrap: wrap; }
.breadcrumb a, .breadcrumb span { min-width: 0; }

/* ── SCROLL-MARGIN for sticky header on anchor jumps ──────── */
:target { scroll-margin-top: 80px; }

/* ──────────────────────────────────────────────────────────── */
/* MOBILE AUDIT PASS 2 (2026-05-20) live-curl verification     */
/* Gaps found after auditing rendered HTML at 360 / 375 / 414. */
/* ──────────────────────────────────────────────────────────── */

/* Homepage retailer-card-grid (inline grid-template-columns:
   repeat(4,1fr) on index.html line ~237). Four 85px-wide tiles
   at 360px viewport feel cramped and clip the "View deals" link.
   Drop to 2-up at tablet, keep 4-up unchanged on desktop.       */
@media (max-width: 720px) {
  .retailer-card-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
}
@media (max-width: 380px) {
  .retailer-card-grid { grid-template-columns: 1fr !important; }
}

/* Homepage retailer card tap target padding bump on phones.
   The inline padding:14px gives ~44px height which is fine but
   reduce font size of secondary line to avoid 2-line wrap.     */
@media (max-width: 600px) {
  .retailer-card-grid > a { padding: 14px 10px !important; min-height: 64px; }
}

/* Sticky header height: at 600-900px the 64px fixed nav-inner
   eats too much vertical space when stickied. Tighten to 56px
   in that band so the price table stays visible while scrolling.
   Below 480px nav-inner is already height:auto so leave alone. */
@media (min-width: 481px) and (max-width: 900px) {
  .nav-inner { height: 56px; }
  .logo-icon { width: 30px; height: 30px; }
  .logo-text { font-size: 16px; }
}

/* Ticker: prevent the longer "249 products tracked across 50
   brands" string from being clipped on iPhone SE (375px). The
   existing rule reduces font-size; also allow horizontal nowrap
   to scroll cleanly rather than break mid-word.                 */
@media (max-width: 420px) {
  .ticker {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    text-overflow: clip;
  }
  .ticker::-webkit-scrollbar { display: none; }
}

/* Inline-styled link cloud on homepage ("Explore Everything"
   section). Pills already wrap (flex-wrap), but the surrounding
   inline padding:22px 24px is heavy on phones.                  */
@media (max-width: 600px) {
  .section [style*="border-radius:18px"][style*="padding:22px 24px"] {
    padding: 16px 14px !important;
  }
}

/* Generic safety: any inline grid using repeat(4,1fr) without
   its own override should collapse on small screens. Catches
   future inline grids the author forgot to make responsive.    */
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(4,1fr)"]:not(.cgrid):not(.retailer-card-grid),
  [style*="grid-template-columns: repeat(4,1fr)"]:not(.cgrid):not(.retailer-card-grid),
  [style*="grid-template-columns: repeat(4, 1fr)"]:not(.cgrid):not(.retailer-card-grid) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Long product slug breadcrumb on /products/[id]/ wraps fine
   but the chevron separator can orphan on its own line. Keep
   each segment + its separator together where possible.        */
.breadcrumb > * { white-space: normal; }
.breadcrumb { row-gap: 4px; }

/* Variant-pill list on product pages: ensure the wrap container
   has bottom margin so it does not collide with the price table
   right below when several flavors push it to 2-3 rows.        */
@media (max-width: 600px) {
  .variant-pills { row-gap: 8px; }
  .variant-selector { margin-bottom: 24px; }
}

/* ── CATEGORY PAGE: hero band (per-category identity) ─────── */
/* Same clean white treatment as brand-hero. Category color is the top
   accent line + a single icon dot, not a full color flood. */
.category-hero {
  position: relative;
  padding: 44px 24px 36px;
  border-bottom: 1px solid var(--n100);
  overflow: hidden;
  background: var(--white) !important;
}
.category-hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--cat-accent, var(--g600));
}
.category-hero::after {
  content: none;
}
.category-hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center;
}
.category-hero-left { min-width: 0; }
.category-hero .breadcrumb { color: var(--n500); margin-bottom: 14px; }
.category-hero .breadcrumb a { color: var(--cat-dark, var(--n700)); font-weight: 600; }
.category-hero-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--cat-accent, var(--n900));
  background: rgba(255,255,255,.65);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 14px;
}
.category-hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.04;
  color: var(--cat-dark, var(--n900));
  margin: 0 0 12px;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.category-hero-tagline {
  font-size: 16px; line-height: 1.55;
  color: var(--n700);
  max-width: 560px;
  margin: 0;
}
.category-hero-right {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
.category-hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  position: relative; z-index: 2;
}
.chs {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.chs-val {
  display: block; font-size: 22px; font-weight: 900;
  color: var(--cat-dark, var(--n900));
  letter-spacing: -0.5px; line-height: 1;
}
.chs-lbl {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--n500); margin-top: 6px;
  text-transform: uppercase; letter-spacing: .6px;
}
@media (max-width: 820px) {
  .category-hero { padding: 28px 16px 24px; }
  .category-hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .category-hero-title { font-size: 32px; letter-spacing: -1.2px; }
}
@media (max-width: 420px) {
  .category-hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chs { padding: 10px 12px; }
  .chs-val { font-size: 18px; }
}

/* ── CATEGORY PAGE: "Best in category" pick card ─────────── */
.cat-best-pick {
  max-width: 1200px;
  margin: 24px auto 0;
  border-radius: 16px;
  padding: 22px 26px;
  background: var(--white) !important;
  color: var(--n900) !important;
  border: 1.5px solid var(--n200);
  border-left: 4px solid var(--pick-accent, var(--g600));
  box-shadow: var(--shadow-sm);
}
.cat-best-pick .cat-best-eyebrow {
  color: var(--pick-accent, var(--g700)) !important;
  opacity: 1 !important;
}
.cat-best-pick .cat-best-img {
  background: var(--n50) !important;
}
.cat-best-inner {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
}
.cat-best-img {
  width: 96px; height: 96px;
  background: rgba(255,255,255,.18);
  border-radius: 12px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cat-best-img img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.cat-best-body { min-width: 0; }
.cat-best-eyebrow {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px;
  opacity: .85;
  margin-bottom: 4px;
}
.cat-best-brand {
  font-size: 12px; font-weight: 700;
  opacity: .85;
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 2px;
}
.cat-best-title {
  display: block;
  font-size: 22px; font-weight: 900;
  color: inherit;
  text-decoration: none;
  line-height: 1.15;
  margin-bottom: 8px;
}
.cat-best-title:hover { text-decoration: underline; }
.cat-best-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: baseline;
  font-size: 14px;
}
.cat-best-price {
  font-size: 20px; font-weight: 900; letter-spacing: -.3px;
}
.cat-best-sep { opacity: .7; }
.cat-best-retailer { font-weight: 700; }
.cat-best-ppg { font-weight: 700; opacity: .9; }
.cat-best-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: inherit;
  text-decoration: none;
  font-size: 14px; font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease;
}
.cat-best-cta:hover { background: rgba(255,255,255,.3); }
@media (max-width: 700px) {
  .cat-best-inner {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
  }
  .cat-best-img { width: 72px; height: 72px; }
  .cat-best-cta { grid-column: 1 / -1; justify-content: center; }
  .cat-best-title { font-size: 18px; }
  .cat-best-price { font-size: 18px; }
}

/* =========================================================================
   === DESIGN POLISH PASS ===
   Appended 2026-05-20. Audit-driven overrides only. Targets real problems
   found by curl + read of 6 representative pages (home, /whey-protein/,
   product page, /brands/optimum-nutrition/, /protein-bars/, /blog/) plus
   the iPhone-UA-served home. Does not duplicate existing rules above; uses
   higher-specificity selectors or attribute selectors so it overrides
   inline styles where necessary.
   ========================================================================= */

/* 1. Section rhythm - keep desktop pacing but tighten the bottom gap on
      "internal-linking-enrichment" blocks that all set padding-bottom:32px
      inline, so the rhythm visibly steps down. Force a uniform 40px
      bottom across all sections except the last child so consecutive
      sections feel intentional, not random. */
.section[style*="padding-bottom:32px"] {
  padding-bottom: 40px !important;
}
.section:last-of-type {
  padding-bottom: 56px;
}
@media (max-width: 600px) {
  .section[style*="padding-bottom:32px"] {
    padding-bottom: 28px !important;
  }
  .section:last-of-type {
    padding-bottom: 40px;
  }
}

/* 2. Section heading hierarchy - H2 sizes drift between pages. Lock the
      sec-head h2 size and ensure inline-styled bars-content h2's match
      the same scale (currently 24px on bars page, 22px elsewhere). */
.sec-head h2 {
  font-size: clamp(20px, 2.3vw, 24px);
  line-height: 1.2;
  letter-spacing: -.6px;
}
.bars-content h2[style] {
  font-size: clamp(20px, 2.3vw, 24px) !important;
  letter-spacing: -.6px !important;
  margin-bottom: 8px !important;
}

/* 3. Retailer card grid on home (12 inline-styled tiles). The inline
      transition only fades border-color; add a real hover state with
      green border + soft lift so it doesn't look static. */
.retailer-card-grid > a {
  transition: border-color .15s, box-shadow .15s, transform .15s !important;
}
.retailer-card-grid > a:hover {
  border-color: var(--g600) !important;
  box-shadow: 0 4px 14px rgba(22,163,74,.08);
  transform: translateY(-2px);
}
.retailer-card-grid > a:focus-visible {
  outline: 2px solid var(--g600);
  outline-offset: 2px;
}
/* The inline `grid-template-columns:repeat(4,1fr)` makes 12 retailer
   cells cramped on mobile. Override at three breakpoints. */
@media (max-width: 900px) {
  .retailer-card-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 560px) {
  .retailer-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* 4. Color contrast - n400 on white is ~3.3:1, below WCAG AA. Bump
      hcard-at and ctile-sub etc to n500 on desktop too (mobile-polish
      already does this <768px). */
.hcard-at,
.pcard-price .at,
.ptable-variant,
.ctile-sub,
.upd-time,
.cat-best-meta {
  color: var(--n500);
}

/* 5. Inline product cards used on category/product/brand pages (the
      `<a>` blocks with onmouseover handlers) - wire up a real hover
      and focus state so keyboard users + people who tab around get
      feedback. Targets every <a> with the exact inline transform
      transition signature these pages share. */
a[onmouseover*="translateY(-2px)"] {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s !important;
}
a[onmouseover*="translateY(-2px)"]:focus-visible {
  outline: 2px solid var(--g600);
  outline-offset: 3px;
  border-color: var(--g600) !important;
}
a[onmouseover*="translateY(-2px)"]:hover {
  border-color: var(--g200) !important;
}

/* 6. Inline retailer pill / chip anchors used on category & brand pages
      (the `border-radius:999px` pills). Currently they have no hover at
      all. Add a subtle interactive state. */
a[style*="border-radius:999px"] {
  transition: background .15s, border-color .15s, color .15s, transform .15s !important;
}
a[style*="border-radius:999px"]:hover {
  background: var(--g50) !important;
  border-color: var(--g600) !important;
  color: var(--g700) !important;
}
a[style*="border-radius:999px"]:focus-visible {
  outline: 2px solid var(--g600);
  outline-offset: 2px;
}

/* 7. Product-card image area - currently fixed 186px. On 1024-1280
      tablet/desktop the cards squeeze to 2-col which makes the image
      look short next to body. Smooth scaling. */
@media (min-width: 600px) and (max-width: 1024px) {
  .pcard-img { height: 200px; }
}

/* 8. Mobile: simple-filter dropdowns get too narrow at 375px. Force
      proper tap height + readable text. */
@media (max-width: 480px) {
  .simple-filter {
    padding: 0 14px;
  }
  .simple-filter select {
    min-height: 44px;
    font-size: 14px;
    padding: 10px 32px 10px 12px;
  }
}

/* 9. pcard-name min-height: 40px wastes vertical real estate on mobile
      where names typically fit one line. Let it shrink. */
@media (max-width: 600px) {
  .pcard-name { min-height: 0; margin-bottom: 12px; }
}

/* 10. Inline category/brand grid tile gradients (32px swatches on whey
       page, 36px on brand page) - normalize so cross-page tile rows
       feel consistent. Plus give them a soft inner ring. */
a[style*="background:linear-gradient(145deg"] > div[style*="border-radius:8px"]:first-child {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

/* 11. Inline "From $X" / "$X" price text on the small index card grids
       uses raw hex #15803D. Normalize to brand variable so any future
       color tweak flows through. */
[style*="color:#15803D"] {
  color: var(--g700) !important;
}

/* 12. The hero-stats group on home: hstat-val numbers cap at 22px which
       under-sells the live counters. Bump on desktop without breaking
       mobile (mobile-polish caps it). */
@media (min-width: 1025px) {
  .hstat-val { font-size: 26px; letter-spacing: -1px; }
  .hero-stats { gap: 36px; }
}

/* 13. Footer tap targets - links sit at 13px font with no padding which
       gives a ~16px tap height on mobile. Bump to 40px minimum without
       changing visual density on desktop. */
@media (max-width: 768px) {
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 2px 4px;
  }
}

/* 14. .filter-count text on category pages - currently var(--n400) which
       fails contrast. Mobile-polish only fixes <768. Fix at all widths. */
.simple-filter .filter-count,
#cat-product-count {
  color: var(--n500);
  font-weight: 600;
}

/* 15. Smooth iOS-tap default - kills the grey flash on every tappable
       element. Improves perceived polish on mobile dramatically. */
a, button, .pcard, .ctile, .r-chip, .fchip {
  -webkit-tap-highlight-color: transparent;
}

/* 16. Long brand/product names in tile rows occasionally overflow at
       375px. Constrain with min-width:0 propagation. */
a > div[style*="flex:1"][style*="min-width:0"] > div:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === END DESIGN POLISH PASS === */


/* ── HERO BAND REDESIGN: white-based with colored accent ─────
   Overrides the page-specific colored gradient bands (trophy-band,
   deals-band, cmp-band, etc.) so every hero across the site has the
   same clean, premium look. Color comes from a thin top accent + a
   small dot, not a full-page color flood.
*/
.trophy-band,
.cmp-band,
.deals-band,
.disclosure-hero,
.gloss-hero,
.trend-hero,
.calc-hero,
.quiz-band,
.sales-hero,
.tools-band {
  background: var(--white) !important;
  color: var(--n900) !important;
  border-bottom: 1px solid var(--n100);
  padding: 56px 24px 40px !important;
  position: relative;
  overflow: visible !important;
}
.trophy-band::before,
.cmp-band::before,
.deals-band::before,
.disclosure-hero::before,
.gloss-hero::before,
.trend-hero::before,
.calc-hero::before,
.quiz-band::before,
.sales-hero::before,
.tools-band::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
/* Per-page accent color */
.trophy-band::before, .cmp-band::before, .calc-hero::before, .quiz-band::before, .tools-band::before {
  background: linear-gradient(90deg, var(--g600) 0%, var(--g500) 100%);
}
.deals-band::before, .sales-hero::before {
  background: linear-gradient(90deg, #DC2626 0%, #F59E0B 100%);
}
.disclosure-hero::before {
  background: linear-gradient(90deg, #B45309 0%, #F59E0B 100%);
}
.gloss-hero::before, .trend-hero::before {
  background: linear-gradient(90deg, #0F766E 0%, #14B8A6 100%);
}
/* Heading colors back to neutral dark */
.trophy-band h1, .cmp-band h1, .deals-band h1, .disclosure-hero h1,
.gloss-hero h1, .trend-hero h1, .calc-hero h1, .quiz-band h1, .sales-hero h1,
.tools-band h1 {
  color: var(--n900) !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
  margin: 0 0 12px !important;
}
.trophy-band p, .cmp-band p, .deals-band p, .disclosure-hero p,
.gloss-hero p, .trend-hero p, .calc-hero p, .quiz-band p, .sales-hero p,
.tools-band p {
  color: var(--n600) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  max-width: 640px !important;
  margin: 0 auto 20px !important;
}
/* Nested stat groups inside these bands: lighter background */
.trophy-band .stats, .trophy-band .trophy-stats, .deals-band .deals-stats,
.cmp-band .cmp-stats {
  background: var(--n50) !important;
  border: 1px solid var(--n100) !important;
  color: var(--n900) !important;
  border-radius: var(--radius-lg) !important;
}
.trophy-stat .val, .deals-stat .val, .cmp-stat .val {
  color: var(--n900) !important;
}
.trophy-stat .lbl, .deals-stat .lbl, .cmp-stat .lbl {
  color: var(--n500) !important;
}

/* ── BRAND HERO V2: premium look with depth + photo + accents ─── */
.brand-hero.v2 {
  position: relative;
  padding: 64px 24px 56px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFC 100%) !important;
  border-bottom: 1px solid var(--n100);
  overflow: hidden;
}
.brand-hero.v2::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-accent, var(--g600)) 0%, var(--brand-dark, var(--g700)) 100%);
  z-index: 4;
}
/* Decorative background: subtle color blob + dot pattern */
.brand-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.brand-hero-blob {
  position: absolute;
  top: -120px; right: -160px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--brand-accent, var(--g600)) 0%, transparent 60%);
  opacity: 0.06;
  border-radius: 50%;
  filter: blur(8px);
}
.brand-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: 0 0;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}
.brand-hero-inner.v2 {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center;
}
.brand-hero-left.v2 { min-width: 0; }
.brand-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--brand-accent, var(--g700));
  background: transparent;
  padding: 0;
  margin: 0 0 20px 0;
  border-radius: 0;
}
.brand-hero-eyebrow .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-accent, var(--g600));
  position: relative;
  display: inline-block;
}
.brand-hero-eyebrow .pulse-dot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%; background: inherit;
  animation: ppPulse 2.4s ease-out infinite;
  opacity: 0.6;
}
@keyframes ppPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.4); opacity: 0; }
}
.brand-hero-eyebrow .bhe-sep { color: var(--n300); }
.brand-hero-eyebrow .bhe-meta { color: var(--n500); font-weight: 700; letter-spacing: 0.6px; }

.brand-hero-wordmark.v2 {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 0.98;
  color: var(--n900);
  margin: 0 0 18px;
  text-shadow: none;
}
.brand-hero-tagline.v2 {
  font-size: 18px; line-height: 1.55;
  color: var(--n600);
  max-width: 540px;
  margin: 0 0 32px;
  font-weight: 500;
}
.brand-hero-stats.v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 540px;
}
.bhs.v2 {
  background: var(--white);
  border: 1.5px solid var(--n100);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.025);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.bhs.v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--brand-accent, var(--n200));
}
.bhs.v2::before {
  content: "";
  position: absolute; top: 0; left: 0; height: 2px; width: 24px;
  background: var(--brand-accent, var(--g500));
  opacity: 0.7;
}
.bhs-val.v2 {
  display: block; font-size: 26px; font-weight: 900;
  color: var(--n900);
  letter-spacing: -0.5px; line-height: 1; margin-bottom: 6px;
}
.bhs-val.v2.bhs-score { color: var(--brand-accent, var(--g600)); }
.bhs-lbl.v2 {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--n500);
  text-transform: uppercase; letter-spacing: 0.7px;
}

/* Right side: hero photo */
.brand-hero-right.v2 {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 0;
}
.brand-hero-photo {
  position: relative;
  width: 320px; height: 360px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.16))
          drop-shadow(0 6px 12px rgba(0,0,0,0.08));
  animation: ppFloat 6s ease-in-out infinite;
}
.brand-hero-photo::before {
  /* Soft circular spotlight behind the photo, brand-tinted */
  content: "";
  position: absolute; inset: -20px;
  background: radial-gradient(circle at 50% 40%,
              var(--brand-accent, rgba(0,0,0,0.04)) 0%,
              transparent 65%);
  opacity: 0.14;
  border-radius: 50%;
  z-index: 0;
}
.brand-hero-photo-img,
.brand-hero-photo svg {
  position: relative; z-index: 1;
  max-width: 90%; max-height: 90%;
  object-fit: contain;
}
.brand-hero-photo-caption {
  margin-top: 16px;
  font-size: 12px; font-weight: 600;
  color: var(--n500);
  text-transform: uppercase; letter-spacing: 0.8px;
  text-align: center;
}
.brand-hero-photo-caption strong { color: var(--n800); }

@keyframes ppFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .brand-hero-inner.v2 {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .brand-hero-right.v2 { order: 2; }
  .brand-hero-photo { width: 240px; height: 280px; }
  .brand-hero.v2 { padding: 44px 20px 40px; }
}
@media (max-width: 560px) {
  .brand-hero-stats.v2 { grid-template-columns: repeat(2, 1fr); }
  .brand-hero-wordmark.v2 { font-size: 44px; letter-spacing: -1.8px; }
  .brand-hero-tagline.v2 { font-size: 16px; }
  .brand-hero-photo { width: 200px; height: 220px; }
}

/* ── CATEGORY HERO V2: matches brand-hero v2 with cat-accent ─── */
.category-hero.v2 {
  position: relative;
  padding: 64px 24px 56px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFC 100%) !important;
  border-bottom: 1px solid var(--n100);
  overflow: hidden;
}
.category-hero.v2::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--cat-accent, var(--g600)) 0%, var(--cat-dark, var(--g700)) 100%);
  z-index: 4;
}
.cat-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cat-hero-blob {
  position: absolute; top: -120px; right: -160px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--cat-accent, var(--g600)) 0%, transparent 60%);
  opacity: 0.06; border-radius: 50%; filter: blur(8px);
}
.cat-hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}
.category-hero-inner.v2 {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center;
}
.category-hero-left.v2 { min-width: 0; }
.category-hero-eyebrow.v2 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--cat-accent, var(--g700));
  background: transparent;
  padding: 0; margin: 0 0 20px 0; border-radius: 0;
}
.category-hero-eyebrow.v2 .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cat-accent, var(--g600));
  position: relative; display: inline-block;
}
.category-hero-eyebrow.v2 .pulse-dot::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: inherit;
  animation: ppPulse 2.4s ease-out infinite; opacity: 0.6;
}
.category-hero-eyebrow.v2 .cat-icon { font-size: 16px; line-height: 1; }
.category-hero-title.v2 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 900; letter-spacing: -2px; line-height: 1.02;
  color: var(--n900); margin: 0 0 16px;
}
.category-hero-tagline.v2 {
  font-size: 18px; line-height: 1.55;
  color: var(--n600); max-width: 540px; margin: 0 0 32px;
  font-weight: 500;
}
.category-hero-stats.v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 540px;
}
.chs.v2 {
  background: var(--white);
  border: 1.5px solid var(--n100);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.025);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.chs.v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--cat-accent, var(--n200));
}
.chs.v2::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 24px;
  background: var(--cat-accent, var(--g500));
  opacity: 0.7;
}
.chs-val.v2 {
  display: block; font-size: 24px; font-weight: 900;
  color: var(--n900);
  letter-spacing: -0.5px; line-height: 1; margin-bottom: 6px;
}
.chs-val.v2.chs-score { color: var(--cat-accent, var(--g600)); }
.chs-lbl.v2 {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--n500);
  text-transform: uppercase; letter-spacing: 0.7px;
}

.category-hero-right.v2 {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 0;
}
.cat-hero-photo {
  position: relative;
  width: 320px; height: 360px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.16))
          drop-shadow(0 6px 12px rgba(0,0,0,0.08));
  animation: ppFloat 6s ease-in-out infinite;
}
.cat-hero-photo::before {
  content: ""; position: absolute; inset: -20px;
  background: radial-gradient(circle at 50% 40%,
              var(--cat-accent, rgba(0,0,0,0.04)) 0%,
              transparent 65%);
  opacity: 0.14; border-radius: 50%; z-index: 0;
}
.cat-hero-photo-img {
  position: relative; z-index: 1;
  max-width: 90%; max-height: 90%; object-fit: contain;
}
.cat-hero-photo-caption {
  margin-top: 16px;
  font-size: 12px; font-weight: 600;
  color: var(--n500);
  text-transform: uppercase; letter-spacing: 0.8px;
  text-align: center;
}
.cat-hero-photo-caption strong { color: var(--n800); }

@media (max-width: 900px) {
  .category-hero-inner.v2 {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .category-hero-right.v2 { order: 2; }
  .cat-hero-photo { width: 240px; height: 280px; }
  .category-hero.v2 { padding: 44px 20px 40px; }
}
@media (max-width: 560px) {
  .category-hero-stats.v2 { grid-template-columns: repeat(2, 1fr); }
  .category-hero-title.v2 { font-size: 36px; letter-spacing: -1.5px; }
  .category-hero-tagline.v2 { font-size: 16px; }
  .cat-hero-photo { width: 200px; height: 220px; }
}

/* ── HERO V2 EXTENSIONS: depth on simpler page heroes ─────── */
.trophy-band, .cmp-band, .deals-band, .disclosure-hero, .gloss-hero,
.trend-hero, .calc-hero, .quiz-band, .sales-hero, .tools-band,
.page-hero {
  position: relative;
  overflow: hidden;
}
.trophy-band::after, .cmp-band::after, .deals-band::after,
.disclosure-hero::after, .gloss-hero::after, .trend-hero::after,
.calc-hero::after, .quiz-band::after, .sales-hero::after,
.tools-band::after, .page-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.4;
  mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 65%, transparent 100%);
  z-index: 0;
}
.trophy-band > *, .cmp-band > *, .deals-band > *, .disclosure-hero > *,
.gloss-hero > *, .trend-hero > *, .calc-hero > *, .quiz-band > *,
.sales-hero > *, .tools-band > *, .page-hero > * {
  position: relative; z-index: 1;
}

/* Subtle accent blob top-right corner */
.trophy-band, .cmp-band, .calc-hero, .quiz-band, .tools-band {
  background:
    radial-gradient(ellipse 480px 320px at 90% 0%,
      rgba(22, 163, 74, 0.07) 0%, transparent 70%),
    var(--white) !important;
}
.deals-band, .sales-hero {
  background:
    radial-gradient(ellipse 480px 320px at 90% 0%,
      rgba(220, 38, 38, 0.07) 0%, transparent 70%),
    var(--white) !important;
}
.disclosure-hero {
  background:
    radial-gradient(ellipse 480px 320px at 90% 0%,
      rgba(180, 83, 9, 0.07) 0%, transparent 70%),
    var(--white) !important;
}
.gloss-hero, .trend-hero {
  background:
    radial-gradient(ellipse 480px 320px at 90% 0%,
      rgba(15, 118, 110, 0.07) 0%, transparent 70%),
    var(--white) !important;
}

/* Eyebrow with pulse dot for these heroes (matches brand-hero v2) */
.trophy-band-eyebrow, .cmp-band-eyebrow, .deals-band-eyebrow,
.disclosure-hero-eyebrow, .calc-hero-eyebrow, .quiz-band-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--g700);
  padding: 0; margin: 0 0 16px 0;
}
.trophy-band-eyebrow::before, .cmp-band-eyebrow::before,
.deals-band-eyebrow::before, .calc-hero-eyebrow::before,
.quiz-band-eyebrow::before, .disclosure-hero-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  animation: ppPulse 2.4s ease-out infinite;
}

/* Stats panels inside these heroes: v2 look */
.trophy-band .stats, .trophy-band .trophy-stats,
.deals-band .deals-stats, .cmp-band .cmp-stats {
  display: inline-flex; gap: 12px;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  padding: 0 !important;
  margin-top: 8px;
}
.trophy-stat, .deals-stat, .cmp-stat {
  background: var(--white);
  border: 1.5px solid var(--n100);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.025);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
  min-width: 100px; text-align: left;
}
.trophy-stat::before, .deals-stat::before, .cmp-stat::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 2px; width: 24px;
  background: var(--g500);
  opacity: 0.7;
}
.deals-stat::before { background: #DC2626; }
.trophy-stat:hover, .deals-stat:hover, .cmp-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--g500);
}
.trophy-stat .val, .deals-stat .val, .cmp-stat .val {
  display: block; font-size: 26px; font-weight: 900 !important;
  color: var(--n900) !important;
  letter-spacing: -0.5px; line-height: 1; margin-bottom: 6px;
}
.trophy-stat .lbl, .deals-stat .lbl, .cmp-stat .lbl {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--n500) !important;
  text-transform: uppercase; letter-spacing: 0.7px;
}

/* ── PRODUCT HERO V2: matches brand-hero v2, big floating photo + stats ── */
.product-hero.v2 {
  position: relative;
  padding: 56px 24px 48px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFC 100%);
  border-bottom: 1px solid var(--n100);
  overflow: hidden;
  margin-bottom: 0;
}
.product-hero.v2::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-accent, var(--g600)) 0%, var(--brand-dark, var(--g700)) 100%);
  z-index: 4;
}
.product-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.product-hero-blob {
  position: absolute;
  top: -120px; right: -160px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--brand-accent, var(--g600)) 0%, transparent 60%);
  opacity: 0.06;
  border-radius: 50%;
  filter: blur(8px);
}
.product-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: 0 0;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}
.product-hero-inner.v2 {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center;
}
.product-hero-left.v2 { min-width: 0; }
.product-hero-left.v2 .breadcrumb { color: var(--n500); margin-bottom: 14px; }
.product-hero-left.v2 .breadcrumb a { color: var(--brand-dark, var(--n700)); font-weight: 600; text-decoration: none; }
.product-hero-left.v2 .breadcrumb a:hover { text-decoration: underline; }
.product-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--brand-accent, var(--g700));
  margin: 0 0 18px 0;
}
.product-hero-eyebrow .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-accent, var(--g600));
  position: relative; display: inline-block;
}
.product-hero-eyebrow .pulse-dot::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: inherit;
  animation: ppPulse 2.4s ease-out infinite;
  opacity: 0.6;
}
.product-hero-h1.v2 {
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.02;
  color: var(--n900);
  margin: 0 0 12px;
  padding: 0;
  max-width: none;
}
.product-hero-variant-tag {
  display: inline-block;
  font-size: 14px; font-weight: 700;
  color: var(--brand-dark, var(--n700));
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--n100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.product-hero-tagline {
  font-size: 16px; line-height: 1.6;
  color: var(--n600);
  max-width: 540px;
  margin: 0 0 28px;
  font-weight: 500;
}
.product-hero-stats.v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 540px;
}
.phs {
  background: var(--white);
  border: 1.5px solid var(--n100);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.025);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.phs:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--brand-accent, var(--n200));
}
.phs::before {
  content: "";
  position: absolute; top: 0; left: 0; height: 2px; width: 24px;
  background: var(--brand-accent, var(--g500));
  opacity: 0.7;
}
.phs-val {
  display: block; font-size: 24px; font-weight: 900;
  color: var(--n900);
  letter-spacing: -0.5px; line-height: 1; margin-bottom: 6px;
}
.phs-val.phs-score { color: var(--brand-accent, var(--g600)); }
.phs-lbl {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--n500);
  text-transform: uppercase; letter-spacing: 0.7px;
}
.product-hero-right.v2 {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 0;
}
.product-hero-photo {
  position: relative;
  width: 320px; height: 360px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.16))
          drop-shadow(0 6px 12px rgba(0,0,0,0.08));
  animation: ppFloat 6s ease-in-out infinite;
}
.product-hero-photo::before {
  content: "";
  position: absolute; inset: -20px;
  background: radial-gradient(circle at 50% 40%,
              var(--brand-accent, rgba(0,0,0,0.04)) 0%,
              transparent 65%);
  opacity: 0.14;
  border-radius: 50%;
  z-index: 0;
}
.product-hero-photo-img,
.product-hero-photo svg {
  position: relative; z-index: 1;
  max-width: 90%; max-height: 90%;
  object-fit: contain;
}
.product-hero-best {
  margin-top: 16px;
  font-size: 13px; font-weight: 600;
  color: var(--n600);
  text-align: center;
}
.product-hero-best strong { color: var(--n900); font-weight: 800; }

@media (max-width: 900px) {
  .product-hero-inner.v2 {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }
  .product-hero-right.v2 { order: 2; }
  .product-hero-photo { width: 240px; height: 280px; }
  .product-hero.v2 { padding: 40px 20px 36px; }
}
@media (max-width: 560px) {
  .product-hero-stats.v2 { grid-template-columns: repeat(2, 1fr); }
  .product-hero-h1.v2 { font-size: 30px; letter-spacing: -1.2px; }
  .product-hero-tagline { font-size: 15px; }
  .product-hero-photo { width: 200px; height: 220px; }
}

/* ── HOMEPAGE HERO V2: depth + animated accents ───────────── */
.hero.v2 { overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.hero-blob {
  position: absolute;
  top: -180px; right: -200px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, var(--g500) 0%, transparent 60%);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(8px);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.045) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
}
.hero-label.v2 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--g700);
  background: var(--g50);
  border: 1px solid var(--g100);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero-label.v2 .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--g600);
  position: relative; display: inline-block;
}
.hero-label.v2 .pulse-dot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%; background: inherit;
  animation: ppPulse 2.4s ease-out infinite;
  opacity: 0.6;
}
.hero-label.v2 .bhe-sep { color: #BBF7D0; }
.hero-label.v2 .bhe-meta { color: var(--n500); font-weight: 700; letter-spacing: 0.8px; }
.hero-stats.v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 540px;
}
.hstat.v2 {
  background: var(--white);
  border: 1.5px solid var(--n100);
  border-radius: 14px;
  padding: 14px 14px 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.025);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.hstat.v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--g500);
}
.hstat.v2::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 2px; width: 24px;
  background: var(--g500); opacity: 0.75;
}
.hstat.v2 .hstat-val {
  display: block; font-size: 22px; font-weight: 900;
  color: var(--n900); letter-spacing: -0.5px; line-height: 1;
  margin-bottom: 5px;
}
.hstat.v2 .hstat-lbl {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--n500);
  text-transform: uppercase; letter-spacing: 0.7px;
  white-space: nowrap;
}
.hero.v2 .hero-search button {
  position: relative;
  background: linear-gradient(135deg, var(--g600) 0%, var(--g700) 100%);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.0);
  animation: ppHeroGlow 4.5s ease-in-out infinite;
}
.hero.v2 .hero-search button:hover {
  background: linear-gradient(135deg, var(--g700) 0%, var(--g600) 100%);
  animation-play-state: paused;
}
@keyframes ppHeroGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.0); }
  50%      { box-shadow: 0 0 0 6px rgba(22,163,74,0.10); }
}
@media (max-width: 900px) {
  .hero-stats.v2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .hero-blob { width: 480px; height: 480px; top: -140px; right: -180px; }
}
@media (max-width: 560px) {
  .hero-stats.v2 { gap: 10px; }
  .hstat.v2 { padding: 12px 12px 11px; }
  .hstat.v2 .hstat-val { font-size: 19px; }
}

/* ── BEST-VALUE HERO V2: right-side product photo + Top Pick badge ── */
.trophy-band.v2 {
  padding: 56px 24px 48px;
}
.trophy-band-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 340px;
  gap: 48px; align-items: center;
}
.trophy-band-left { min-width: 0; }
.trophy-band-right {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 0;
}
.trophy-hero-photo {
  position: relative;
  width: 300px; height: 320px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.16))
          drop-shadow(0 6px 12px rgba(0,0,0,0.08));
  animation: ppFloat 6s ease-in-out infinite;
}
.trophy-hero-photo::before {
  content: "";
  position: absolute; inset: -20px;
  background: radial-gradient(circle at 50% 40%,
              var(--g500) 0%, transparent 65%);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 0;
}
.trophy-hero-photo img {
  position: relative; z-index: 1;
  max-width: 90%; max-height: 90%;
  object-fit: contain;
}
.trophy-hero-badge {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: white;
  font-size: 11px; font-weight: 900;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(22,163,74,0.35),
              0 2px 4px rgba(0,0,0,0.10);
  animation: ppBadgeBob 3.4s ease-in-out infinite;
}
.trophy-hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #FDE68A;
  box-shadow: 0 0 0 0 rgba(253,230,138,0.7);
  animation: ppBadgeDot 2s ease-out infinite;
}
@keyframes ppBadgeBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-4px) rotate(-1deg); }
}
@keyframes ppBadgeDot {
  0%   { box-shadow: 0 0 0 0 rgba(253,230,138,0.7); }
  100% { box-shadow: 0 0 0 8px rgba(253,230,138,0); }
}
.trophy-hero-caption {
  margin-top: 16px;
  font-size: 12px; font-weight: 700;
  color: var(--n500);
  text-transform: uppercase; letter-spacing: 0.8px;
  text-align: center;
  line-height: 1.5;
}
.trophy-hero-caption .thc-price {
  display: block;
  font-size: 18px; font-weight: 900;
  color: var(--n900);
  letter-spacing: -0.3px;
  text-transform: none;
  margin-bottom: 4px;
}
.trophy-hero-caption .thc-price em {
  font-style: normal; color: var(--g700);
}
.trophy-hero-caption .thc-save {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  color: var(--g700);
  background: var(--g50);
  border: 1px solid var(--g100);
  padding: 3px 9px; border-radius: 999px;
  margin-top: 6px;
  text-transform: none; letter-spacing: 0.2px;
}
@media (max-width: 900px) {
  .trophy-band-inner { grid-template-columns: 1fr; gap: 32px; }
  .trophy-band-right { order: 2; }
  .trophy-hero-photo { width: 240px; height: 260px; }
}
@media (max-width: 560px) {
  .trophy-hero-photo { width: 200px; height: 220px; }
  .trophy-band.v2 { padding: 40px 20px 36px; }
}

/* ── BRANDS INDEX HERO V2: brand cluster + stats ─────────── */
.brands-hero {
  position: relative;
  padding: 56px 24px 48px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFC 100%);
  border-bottom: 1px solid var(--n100);
  overflow: hidden;
}
.brands-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--g600) 0%, var(--g700) 100%);
  z-index: 4;
}
.brands-hero::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  z-index: 0;
}
.brands-hero-blob {
  position: absolute;
  top: -120px; right: -160px;
  width: 660px; height: 660px;
  background: radial-gradient(circle, var(--g500) 0%, transparent 60%);
  opacity: 0.07;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}
.brands-hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center;
}
.brands-hero-left { min-width: 0; }
.brands-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--g700);
  margin-bottom: 18px;
}
.brands-hero-eyebrow .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--g600);
  position: relative; display: inline-block;
}
.brands-hero-eyebrow .pulse-dot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%; background: inherit;
  animation: ppPulse 2.4s ease-out infinite;
  opacity: 0.6;
}
.brands-hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--n900);
  margin: 0 0 16px;
}
.brands-hero h1 em { font-style: normal; color: var(--g600); }
.brands-hero-tagline {
  font-size: 17px; line-height: 1.55;
  color: var(--n600);
  max-width: 540px;
  margin: 0 0 28px;
  font-weight: 500;
}
.brands-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 540px;
}
.bhi-stat {
  background: var(--white);
  border: 1.5px solid var(--n100);
  border-radius: 14px;
  padding: 14px 14px 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.025);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.bhi-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--g500);
}
.bhi-stat::before {
  content: ""; position: absolute; top: 0; left: 0;
  height: 2px; width: 24px;
  background: var(--g500); opacity: 0.75;
}
.bhi-stat .bhi-val {
  display: block; font-size: 22px; font-weight: 900;
  color: var(--n900); letter-spacing: -0.5px; line-height: 1;
  margin-bottom: 5px;
}
.bhi-stat .bhi-val.green { color: var(--g600); }
.bhi-stat .bhi-lbl {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--n500);
  text-transform: uppercase; letter-spacing: 0.7px;
}
.brands-hero-right {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.brand-cluster {
  position: relative;
  width: 320px; height: 320px;
}
.brand-chip {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--n100);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08),
              0 4px 8px rgba(0,0,0,0.04);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--n900);
  padding: 10px 14px;
  text-align: center;
  line-height: 1.1;
  animation: ppFloat 6s ease-in-out infinite;
}
.brand-chip.bc-1 {
  top: 0; left: 30px;
  width: 130px; height: 130px;
  font-size: 15px;
  border-color: rgba(220,38,38,0.20);
  color: #B91C1C;
  animation-delay: 0s;
}
.brand-chip.bc-2 {
  top: 40px; right: 0;
  width: 110px; height: 110px;
  font-size: 13px;
  border-color: rgba(22,163,74,0.22);
  color: #15803D;
  animation-delay: -1.5s;
}
.brand-chip.bc-3 {
  bottom: 0; left: 0;
  width: 120px; height: 120px;
  font-size: 14px;
  border-color: rgba(37,99,235,0.22);
  color: #1D4ED8;
  animation-delay: -3s;
}
.brand-chip.bc-4 {
  bottom: 20px; right: 30px;
  width: 110px; height: 110px;
  font-size: 13px;
  border-color: rgba(234,88,12,0.22);
  color: #C2410C;
  animation-delay: -4.5s;
}
.brand-chip-small {
  font-size: 9px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--n400);
  display: block; margin-bottom: 3px;
}
@media (max-width: 900px) {
  .brands-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .brands-hero-right { order: 2; min-height: 260px; }
  .brand-cluster { width: 280px; height: 280px; transform: scale(0.92); }
  .brands-hero { padding: 40px 20px 36px; }
}
@media (max-width: 560px) {
  .brands-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .brand-cluster { transform: scale(0.85); }
}

/* ─────────────────────────────────────────────────────────────────────────
   .pp-filter-bar - interactive category filter bar (Stripe/Linear feel).
   Sticky-on-scroll, custom popovers, range slider, mobile slide-up sheet.
   Mounted by mountCategoryFilters(...) above the product grid.
   ───────────────────────────────────────────────────────────────────────── */
.pp-filter-bar {
  position: sticky; top: 12px; z-index: 30;
  max-width: 1200px; margin: 0 auto 18px; padding: 0 24px;
}
.pp-fb-inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid var(--n200);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 1px 0 rgba(17,24,39,0.02), 0 8px 24px rgba(17,24,39,0.06);
}
.pp-fb-group { position: relative; }
.pp-fb-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; height: 36px;
  background: white; border: 1px solid var(--n200); border-radius: 10px;
  font: 600 13px/1 'Inter', system-ui, sans-serif;
  color: var(--n800); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.pp-fb-trigger:hover { border-color: var(--n300); box-shadow: 0 1px 2px rgba(17,24,39,0.04); }
.pp-fb-trigger:focus-visible { outline: 2px solid var(--g600); outline-offset: 2px; }
.pp-fb-trigger.on {
  background: var(--g50); border-color: var(--g300); color: var(--g800);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08);
}
.pp-fb-trigger-lbl { color: var(--n500); font-weight: 600; font-size: 12px; letter-spacing: .02em; }
.pp-fb-trigger.on .pp-fb-trigger-lbl { color: var(--g700); }
.pp-fb-trigger-val { color: var(--n900); font-weight: 700; }
.pp-fb-trigger.on .pp-fb-trigger-val { color: var(--g800); }
.pp-fb-chev { color: var(--n400); margin-left: 2px; transition: transform .18s ease; }
.pp-fb-trigger[aria-expanded="true"] .pp-fb-chev { transform: rotate(180deg); color: var(--n600); }

/* Popover panels */
.pp-fb-pop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: white; border: 1px solid var(--n200); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17,24,39,0.10), 0 2px 6px rgba(17,24,39,0.06);
  padding: 6px;
  opacity: 0; transform: translateY(-4px) scale(0.98); pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.pp-fb-pop.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.pp-fb-pop-wide { min-width: 280px; max-width: 320px; }
.pp-fb-pop-hdr {
  padding: 6px 10px 8px; font-size: 11px; font-weight: 700;
  color: var(--n500); text-transform: uppercase; letter-spacing: .06em;
}
.pp-fb-pop-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 9px 10px; border: 0; background: transparent;
  border-radius: 8px; cursor: pointer; text-align: left;
  font: 600 13px/1.1 'Inter', system-ui, sans-serif; color: var(--n800);
  transition: background .12s ease, color .12s ease;
}
.pp-fb-pop-item:hover { background: var(--n50); }
.pp-fb-pop-item .pp-fb-check { display: none; }
.pp-fb-pop-item .pp-fb-check { width: 14px; height: 14px; color: var(--g600); opacity: 0; display: inline-block; }
.pp-fb-pop-item[aria-checked="true"] { color: var(--g700); background: var(--g50); }
.pp-fb-pop-item[aria-checked="true"] .pp-fb-check { opacity: 1; }
.pp-fb-pop-foot {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 6px 4px; margin-top: 4px; border-top: 1px solid var(--n100);
}
.pp-fb-ghost {
  padding: 7px 12px; background: transparent; border: 0; cursor: pointer;
  font: 600 12px 'Inter', system-ui, sans-serif; color: var(--n600); border-radius: 8px;
  transition: color .12s ease, background .12s ease;
}
.pp-fb-ghost:hover { color: var(--n900); background: var(--n50); }
.pp-fb-solid {
  padding: 7px 14px; background: var(--g600); color: white; border: 0; cursor: pointer;
  font: 700 12px 'Inter', system-ui, sans-serif; border-radius: 8px;
  transition: background .12s ease, box-shadow .12s ease;
}
.pp-fb-solid:hover { background: var(--g700); box-shadow: 0 2px 6px rgba(22,163,74,0.30); }
.pp-fb-link {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  color: var(--g700); font: 600 13px 'Inter', system-ui, sans-serif;
  text-decoration: underline; text-underline-offset: 3px;
}
.pp-fb-link:hover { color: var(--g800); }

/* Brand list (checkbox rows) */
.pp-fb-brand-list { max-height: 320px; overflow-y: auto; padding: 2px; }
.pp-fb-brand-list::-webkit-scrollbar { width: 10px; }
.pp-fb-brand-list::-webkit-scrollbar-thumb { background: var(--n200); border-radius: 8px; border: 2px solid white; }
.pp-fb-check {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; cursor: pointer; transition: background .12s ease;
  font: 600 13px/1.1 'Inter', system-ui, sans-serif; color: var(--n800);
}
.pp-fb-check:hover { background: var(--n50); }
.pp-fb-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--n300);
  background: white; cursor: pointer; flex: 0 0 auto;
  transition: background .12s ease, border-color .12s ease;
  position: relative;
}
.pp-fb-check input[type="checkbox"]:hover { border-color: var(--n400); }
.pp-fb-check input[type="checkbox"]:checked {
  background: var(--g600); border-color: var(--g600);
}
.pp-fb-check input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pp-fb-check-name { flex: 1; }
.pp-fb-check-n {
  font-size: 11px; font-weight: 700; color: var(--n400);
  background: var(--n100); padding: 2px 7px; border-radius: 10px;
}
.pp-fb-more {
  width: 100%; padding: 9px 10px; margin-top: 4px;
  background: transparent; border: 1px dashed var(--n200); border-radius: 8px;
  color: var(--n600); font: 600 12px 'Inter', system-ui, sans-serif;
  cursor: pointer; transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.pp-fb-more:hover { border-color: var(--g400); color: var(--g700); background: var(--g50); }

/* Range slider (dual-thumb) */
.pp-fb-range { padding: 10px 8px 4px; }
.pp-fb-range-label {
  font: 700 13px 'Inter', system-ui, sans-serif; color: var(--n900);
  margin-bottom: 12px; text-align: center;
}
.pp-fb-range-track {
  position: relative; height: 28px;
}
.pp-fb-range-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 4px;
  background: var(--n100); border-radius: 2px;
}
.pp-fb-range-fill {
  position: absolute; top: 12px; height: 4px;
  background: linear-gradient(90deg, var(--g500), var(--g600));
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.10);
}
.pp-fb-range-input {
  -webkit-appearance: none; appearance: none;
  position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 28px;
  background: transparent; pointer-events: none; margin: 0;
}
.pp-fb-range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; border: 2px solid var(--g600);
  box-shadow: 0 2px 6px rgba(17,24,39,0.18), 0 0 0 1px rgba(22,163,74,0.12);
  cursor: grab; pointer-events: auto; margin-top: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pp-fb-range-input::-webkit-slider-thumb:hover { transform: scale(1.08); }
.pp-fb-range-input::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); box-shadow: 0 3px 10px rgba(22,163,74,0.30); }
.pp-fb-range-input::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: white; border: 2px solid var(--g600);
  box-shadow: 0 2px 6px rgba(17,24,39,0.18);
  cursor: grab; pointer-events: auto;
}
.pp-fb-range-min { z-index: 2; }
.pp-fb-range-max { z-index: 3; }
.pp-fb-range-ends {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 600; color: var(--n400); margin-top: 4px;
}

/* Sub-category chip row */
.pp-fb-subs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pp-fb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; height: 32px;
  background: white; border: 1px solid var(--n200); border-radius: 999px;
  font: 600 12px/1 'Inter', system-ui, sans-serif; color: var(--n700);
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.pp-fb-chip:hover { border-color: var(--n300); color: var(--n900); }
.pp-fb-chip.on {
  background: var(--g600); border-color: var(--g600); color: white;
  box-shadow: 0 2px 6px rgba(22,163,74,0.28);
}
.pp-fb-chip.on .pp-fb-chip-n { background: rgba(255,255,255,0.20); color: white; }
.pp-fb-chip-n {
  font-size: 10px; font-weight: 700; color: var(--n400);
  background: var(--n100); padding: 2px 6px; border-radius: 10px;
  transition: background .14s ease, color .14s ease;
}

.pp-fb-spacer { flex: 1 1 auto; }

.pp-fb-reset {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; height: 36px;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  color: var(--n500); font: 600 12px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.pp-fb-reset:hover { color: var(--n900); background: var(--n50); border-color: var(--n200); }
.pp-fb-reset svg { color: currentColor; }

.pp-fb-count {
  font-size: 12px; font-weight: 600; color: var(--n500);
  padding: 0 4px;
}

.pp-fb-empty {
  grid-column: 1 / -1;
  padding: 48px 24px; text-align: center;
  background: var(--n50); border: 1px dashed var(--n200); border-radius: 16px;
  color: var(--n600); font: 600 14px 'Inter', system-ui, sans-serif;
}
.pp-fb-empty .pp-fb-link { margin-left: 4px; }

/* Mobile trigger - shown < 720px */
.pp-fb-mobile-trigger {
  display: none;
  align-items: center; gap: 8px;
  width: 100%; padding: 11px 14px;
  background: white; border: 1px solid var(--n200); border-radius: 12px;
  font: 700 14px 'Inter', system-ui, sans-serif; color: var(--n900);
  cursor: pointer; box-shadow: 0 1px 2px rgba(17,24,39,0.04), 0 6px 14px rgba(17,24,39,0.06);
}
.pp-fb-mobile-trigger:active { transform: scale(0.99); }
.pp-fb-mobile-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  background: var(--g600); color: white;
  border-radius: 999px;
  font-size: 11px; font-weight: 800;
}

/* Mobile sheet */
.pp-fb-sheet {
  position: fixed; inset: 0; z-index: 999;
  display: none;
}
.pp-fb-sheet.open { display: block; }
.pp-fb-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(17,24,39,0.50);
  backdrop-filter: blur(2px);
  animation: pp-fb-fade .18s ease;
}
.pp-fb-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: white; border-radius: 18px 18px 0 0;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 -16px 48px rgba(17,24,39,0.18);
  animation: pp-fb-slide .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes pp-fb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pp-fb-slide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.pp-fb-sheet-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--n100);
  font: 800 16px 'Inter', system-ui, sans-serif; color: var(--n900);
}
.pp-fb-sheet-x {
  background: var(--n100); border: 0; border-radius: 999px;
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--n700);
}
.pp-fb-sheet-x:hover { background: var(--n200); color: var(--n900); }
.pp-fb-sheet-body { padding: 16px 20px; overflow-y: auto; flex: 1 1 auto; }
.pp-fb-sheet-section { padding: 12px 0; border-bottom: 1px solid var(--n100); }
.pp-fb-sheet-section:last-child { border-bottom: 0; }
.pp-fb-sheet-label {
  font: 700 11px 'Inter', system-ui, sans-serif;
  color: var(--n500); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px;
}
.pp-fb-sheet-radios { display: grid; gap: 4px; }
.pp-fb-radio {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font: 600 14px 'Inter', system-ui, sans-serif; color: var(--n800);
  cursor: pointer; transition: background .12s ease;
}
.pp-fb-radio:hover { background: var(--n50); }
.pp-fb-radio input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--n300);
  background: white; cursor: pointer; position: relative;
}
.pp-fb-radio input[type="radio"]:checked { border-color: var(--g600); }
.pp-fb-radio input[type="radio"]:checked::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--g600);
}
.pp-fb-sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-fb-sheet-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-height: 50vh; overflow-y: auto; }
.pp-fb-sheet-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--n100);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 30%);
}
.pp-fb-sheet-foot .pp-fb-solid {
  flex: 1; padding: 13px 18px; font-size: 14px;
}
.pp-fb-sheet-foot .pp-fb-ghost { padding: 13px 18px; font-size: 14px; }

/* Hide the legacy .simple-filter when the new bar mounts */
.pp-filter-bar ~ .simple-filter,
.simple-filter[hidden] { display: none !important; }

/* Mobile breakpoint: collapse the bar into the single mobile button */
@media (max-width: 720px) {
  .pp-filter-bar { position: static; padding: 0 16px; }
  .pp-fb-inner { display: none; }
  .pp-fb-mobile-trigger { display: inline-flex; }
}
@media (min-width: 721px) {
  .pp-fb-mobile-trigger { display: none; }
  .pp-fb-sheet { display: none !important; }
}

/* When the new bar is present, hide the legacy simple-filter sibling */
.pp-filter-bar + .simple-filter,
.simple-filter:has(+ .pp-filter-bar),
body:has(.pp-filter-bar) .simple-filter { display: none; }
