/* ==========================================================================
   Compound Research — Shared Design System
   Dark, science/research aesthetic. Used across all templates.
   ========================================================================== */

:root {
  /* Palette — white / black / red */
  --bg: #ffffff;
  --bg-elevated: #f6f6f6;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --border: #e6e6e6;
  --border-light: #d6d6d6;

  --text-primary: #111111;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;

  --accent: #e01128;       /* research-red */
  --accent-dim: #a80d1f;
  --accent-glow: rgba(224, 17, 40, 0.08);
  --accent-ink: #ffffff;   /* text color used on top of solid --accent fills */

  --accent-2: #111111;     /* secondary tag color (black), used for peptide/nootropic tags */
  --warn: #111111;
  --danger: #e01128;

  /* Black section backgrounds (for contrast blocks against the white page) */
  --bg-dark: #0d0d0d;
  --bg-dark-card: #171717;
  --border-dark: #2a2a2a;
  --text-on-dark: #f5f5f5;
  --text-on-dark-secondary: #b0b0b0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------------------- */
/* Top disclaimer strip                                                 */
/* -------------------------------------------------------------------- */
.disclaimer-strip {
  background: #111111;
  border-bottom: 1px solid var(--border);
  color: #cfcfcf;
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------- */
/* Header / Nav                                                         */
/* -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.footer-logo img {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}

/* Mobile menu button. Created by nav.js; hidden until the drawer breakpoint. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-primary);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--bg-elevated); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Three bars from one element: the box is the middle bar, pseudo-elements
   are the outer two, so the open state can fold them into an X. */
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.nav-toggle.is-open .nav-toggle-bars { background: transparent; }
.nav-toggle.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------- */
/* Buttons                                                              */
/* -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-dim); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* -------------------------------------------------------------------- */
/* Badges / Tags                                                        */
/* -------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: var(--bg-elevated);
}
.badge-accent { color: var(--accent); border-color: rgba(224,17,40,0.35); background: var(--accent-glow); }
.badge-cyan { color: var(--accent-2); border-color: rgba(17,17,17,0.3); background: rgba(17,17,17,0.05); }
.badge-warn { color: var(--warn); border-color: rgba(17,17,17,0.3); background: rgba(17,17,17,0.05); }

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.tag.active { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

/* -------------------------------------------------------------------- */
/* Section headers                                                      */
/* -------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 640px;
  margin: 0 0 40px;
}

.section {
  padding: 72px 0;
}
.section-alt { background: var(--bg-elevated); }

/* Black contrast sections — used sparingly to break up the white page */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark .section-sub,
.section-dark p,
.section-dark .trust-item p,
.section-dark .comparison-disclosure { color: var(--text-on-dark-secondary); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .trust-item {
  background: var(--bg-dark-card);
  border-color: var(--border-dark);
}
.section-dark .trust-item h4 { color: var(--text-on-dark); }
.section-dark .btn-secondary {
  color: var(--text-on-dark);
  border-color: var(--border-dark);
}
.section-dark .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.section-dark .comparison-disclosure .dot { background: var(--accent); }
.section-dark .badge-cyan,
.section-dark .badge-warn {
  color: var(--text-on-dark);
  border-color: var(--border-dark);
  background: rgba(255,255,255,.04);
}

/* -------------------------------------------------------------------- */
/* Cards                                                                 */
/* -------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--border-light);
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------------- */
/* Product card                                                         */
/* -------------------------------------------------------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card__link-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.product-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.product-card__media img { transition: transform 0.25s ease; }
.product-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card__buy {
  margin: 0 20px 18px;
  text-decoration: none;
}
.product-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.product-card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  flex: 1;
}
.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.product-card__vendors {
  position: relative;
  color: var(--accent);
  font-weight: 600;
  padding-right: 14px;
  transition: padding-right 0.18s ease;
}
.product-card__vendors::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Interactive/selectable hover state for product tiles */
.product-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(224, 17, 40, 0.16), 0 4px 10px rgba(0, 0, 0, 0.08);
}
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-card:hover .product-card__vendors::after,
.product-card:focus-visible .product-card__vendors::after {
  opacity: 1;
  transform: translateX(0);
}
.product-card:hover .product-card__title,
.product-card:focus-visible .product-card__title {
  color: var(--accent);
}
.product-card__title { transition: color 0.15s ease; }
.product-card:hover .product-card__media img,
.product-card:focus-visible .product-card__media img {
  transform: scale(1.06);
}

/* -------------------------------------------------------------------- */
/* Filter bar (product listing)                                         */
/* -------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.search-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  min-width: 240px;
}
.search-input::placeholder { color: var(--text-muted); }

/* -------------------------------------------------------------------- */
/* Vendor comparison table (product detail page)                        */
/* -------------------------------------------------------------------- */
.vendor-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.vendor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.vendor-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.vendor-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.vendor-table tr:last-child td { border-bottom: none; }
.vendor-table tbody tr { transition: background 0.15s ease; }
.vendor-table tbody tr:hover { background: var(--bg-elevated); }
.vendor-table tr.best-value { background: var(--accent-glow); }
.vendor-table tr.best-value:hover { background: var(--accent-glow); }

.vendor-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.vendor-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-dark);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.vendor-avatar--accent { background: var(--accent); }
.vendor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 88px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 6px;
  flex-shrink: 0;
}
.vendor-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.vendor-price { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.vendor-rating { color: var(--accent); font-size: 13px; white-space: nowrap; }
.vendor-stars { letter-spacing: 1px; }

.buy-btn__arrow { display: inline-block; transition: transform 0.15s ease; }
.buy-btn:hover .buy-btn__arrow { transform: translateX(3px); }

.best-value-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

.coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px dashed var(--border-light);
  border-radius: 100px;
  padding: 7px 14px;
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  background: var(--bg-elevated);
  font-family: inherit;
  margin: 0;
}
button.coupon-chip { -webkit-appearance: none; appearance: none; }
.coupon-chip:hover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(224, 17, 40, 0.14);
}
.coupon-chip:active { transform: translateY(0); }
.coupon-chip--none,
.coupon-chip--auto {
  border-style: solid;
  background: none;
  color: var(--text-muted);
  cursor: default;
  font-size: 12px;
}
.coupon-chip--auto .coupon-chip__code { color: var(--text-muted); font-weight: 600; }
.coupon-chip--auto:hover,
.coupon-chip--none:hover { border-color: var(--border-light); background: none; transform: none; box-shadow: none; }
.coupon-chip__code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.coupon-chip__icon {
  display: inline-flex;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.coupon-chip:hover .coupon-chip__icon { color: var(--accent); }
.coupon-chip__icon .icon-check { display: none; }
.coupon-chip.is-copied {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent);
}
.coupon-chip.is-copied .coupon-chip__code,
.coupon-chip.is-copied .coupon-chip__icon { color: var(--accent-ink); }
.coupon-chip.is-copied .icon-copy { display: none; }
.coupon-chip.is-copied .icon-check { display: inline; }
.coupon-chip__copied {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.coupon-chip.is-copied .coupon-chip__copied { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .vendor-table thead { display: none; }
  .vendor-table, .vendor-table tbody, .vendor-table tr, .vendor-table td {
    display: block; width: 100%;
  }
  .vendor-table tr {
    border-bottom: 1px solid var(--border);
    padding: 14px 4px;
  }
  .vendor-table td {
    border: none;
    padding: 4px 14px;
  }
  .vendor-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
}

/* -------------------------------------------------------------------- */
/* Article / blog card                                                  */
/* -------------------------------------------------------------------- */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  gap: 12px;
  background: linear-gradient(165deg, var(--bg-dark-card), var(--bg-dark));
  border-color: var(--border-dark);
  border-top: 3px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover {
  border-color: var(--border-dark);
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.article-card__media {
  margin: -22px -22px 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
}
.article-card__media img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.25s ease;
}
.article-card:hover .article-card__media img { transform: scale(1.06); }
.article-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-on-dark-secondary);
}
.article-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-on-dark);
}
.article-card__desc {
  font-size: 14px;
  color: var(--text-on-dark-secondary);
}
.article-card__link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0;
}
.hero p.lead {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------- */
/* Breadcrumb                                                            */
/* -------------------------------------------------------------------- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

/* -------------------------------------------------------------------- */
/* Footer                                                               */
/* -------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-dark);
  padding: 56px 0 24px;
  background: var(--bg-dark);
  color: var(--text-on-dark-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col h4 {
  font-size: 13px;
  color: #7d7d7d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13.5px;
  color: var(--text-on-dark-secondary);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  font-size: 12px;
  color: #767676;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-disclaimer {
  font-size: 12px;
  color: #9a9a9a;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 32px;
}
.footer-disclaimer strong { color: #d8d8d8; }
.footer-disclaimer a { color: var(--accent); }

/* -------------------------------------------------------------------- */
/* Shopfront hero (search-led, PureRawz-style)                          */
/* -------------------------------------------------------------------- */
.shop-hero {
  position: relative;
  padding: 84px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
  background:
    linear-gradient(180deg, rgba(8,8,8,0.55), rgba(8,8,8,0.75)),
    url('hero-bg-dna.jpg') center 35% / cover no-repeat;
  color: var(--text-on-dark);
}
.shop-hero h1 {
  max-width: 780px;
  margin: 16px auto;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
}
.shop-hero p.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-on-dark-secondary);
  font-size: 17px;
}
.shop-hero .btn-secondary {
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.35);
}
.shop-hero .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.shop-hero .comparison-disclosure { color: var(--text-on-dark-secondary); }
.shop-hero .badge-accent {
  background: #ffffff;
  color: #111111;
  border: 1.5px solid #ffffff;
}
.shop-search {
  max-width: 560px;
  margin: 28px auto 0;
  display: flex;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px;
}
.shop-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  padding: 10px 12px;
  font-family: var(--font-body);
}
.shop-search input::placeholder { color: var(--text-muted); }
.shop-search button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* -------------------------------------------------------------------- */
/* Category showcase (large tiles, PureRawz "Peptides / Nootropics")    */
/* -------------------------------------------------------------------- */
.category-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--accent);
  background: linear-gradient(165deg, var(--bg-dark-card), var(--bg-dark));
  padding: 32px 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.category-tile:hover {
  border-color: var(--border-dark);
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.category-tile__icon {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.category-tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.category-tile:hover .category-tile__icon img {
  transform: scale(1.05);
}
.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.92) 100%);
}
.category-tile h3, .category-tile p, .category-tile .btn {
  position: relative;
  z-index: 2;
}
.category-tile h3 {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 0 24px rgba(224,17,40,0.35);
}
.category-tile p { font-size: 13.5px; color: #f0f0f0; margin: 0 0 16px; }
.category-tile .btn { align-self: flex-start; }
.category-tile .btn-secondary { color: #ffffff; border-color: rgba(255,255,255,0.5); }
.category-tile .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* -------------------------------------------------------------------- */
/* Mini category card with photo background (Browse Articles by Category) */
/* -------------------------------------------------------------------- */
.mini-cat-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px !important;
  border-color: var(--border-dark);
}
.mini-cat-tile__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.mini-cat-tile__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  transition: transform 0.3s ease;
}
.mini-cat-tile:hover .mini-cat-tile__bg img { transform: scale(1.05); }
.mini-cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.6) 55%, rgba(10,10,10,0.94) 100%);
}
.mini-cat-tile h3, .mini-cat-tile p, .mini-cat-tile span {
  position: relative;
  z-index: 2;
}
.mini-cat-tile h3 {
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 0 24px rgba(224,17,40,0.35);
  line-height: 1.2;
  min-height: 2.4em; /* reserves space for 2 lines so short titles like "SARMs" and wrapping ones like "PCT & Recovery" start at the same height */
  display: flex;
  align-items: flex-end;
}
.mini-cat-tile p {
  color: #f0f0f0 !important;
  line-height: 1.4;
  min-height: 2.8em; /* reserves space for 2 lines regardless of actual description length */
}

/* -------------------------------------------------------------------- */
/* Price range + sale ribbon (shop-style product cards)                 */
/* -------------------------------------------------------------------- */
.price-range {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
}
.price-range span { color: var(--text-muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 2px; }

.sale-ribbon {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}
.product-card { position: relative; }

/* -------------------------------------------------------------------- */
/* Vendor review cards (reviews.html)                                   */
/* -------------------------------------------------------------------- */
.vendor-review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vendor-review-card {
  position: relative;
  padding: 28px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.vendor-review-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(224, 17, 40, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
}
.vendor-review-card--top { border-color: var(--accent); background: var(--accent-glow); }
.vendor-review-card__rank {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.vendor-review-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-right: 50px;
}
.vendor-review-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--bg-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.vendor-review-card__icon--logo {
  width: auto; height: 44px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border);
  padding: 6px 10px;
}
.vendor-review-card__icon--logo img {
  height: 100%; width: auto; max-width: 160px; object-fit: contain; display: block;
}
.vendor-review-card__title-wrap { flex: 1; min-width: 200px; }
.vendor-review-card__title-wrap h3 { margin: 0 0 4px; font-size: 20px; }
.vendor-review-card__tagline { margin: 0 0 10px; font-size: 13px; color: var(--text-secondary); }
.vendor-review-card__checks { display: flex; flex-wrap: wrap; gap: 8px; }
.vendor-review-card__score {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  margin-left: auto;
}
.star-rating { color: var(--accent); font-size: 18px; letter-spacing: 2px; }
.vendor-review-card__score-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.vendor-review-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 12px; }
.vendor-review-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 0;
  margin: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vendor-review-card__stats > div { display: flex; flex-direction: column; gap: 4px; }
.vendor-review-card__stats span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.vendor-review-card__stats strong { font-size: 14px; }
.vendor-review-card__cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .vendor-review-card__stats { grid-template-columns: repeat(2, 1fr); }
  .vendor-review-card__score { align-items: flex-start; margin-left: 0; }
  .vendor-review-card__rank { position: static; display: block; margin-bottom: 8px; }
  .vendor-review-card__head { padding-right: 0; }
}

/* -------------------------------------------------------------------- */
/* Trust strip (third-party testing style)                              */
/* -------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.trust-item__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.comparison-disclosure {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 18px;
}
.comparison-disclosure .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 900px) {
  .category-showcase { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .category-showcase { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* Positioning context for the drawer. */
  .nav { position: relative; gap: 10px; }
  .nav-toggle { display: flex; order: 3; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }

  /* Links drop out of the sticky header as a panel instead of vanishing. */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { display: block; }
  .nav-links a {
    display: block;
    padding: 12px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }
  .nav-links a:hover { background: var(--bg-elevated); }
  /* The desktop underline is pinned 18px below the row — meaningless here. */
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--accent-glow); color: var(--accent); }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
}

/* -------------------------------------------------------------------- */
/* About Our Comparisons — hero-grid image (homepage)                   */
/* -------------------------------------------------------------------- */
.comparisons-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  perspective: 1400px;
}
.comparisons-hero-grid__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .12s ease-out, box-shadow .35s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03);
  cursor: pointer;
}
.comparisons-hero-grid__img:hover { box-shadow: 0 34px 90px rgba(224,17,40,.28), 0 0 0 1px rgba(255,255,255,.05); }
.comparisons-hero-grid__img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
@media (max-width: 720px) {
  .comparisons-hero-grid { grid-template-columns: 1fr; }
  .comparisons-hero-grid__img { order: -1; max-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .comparisons-hero-grid__img { transition: none !important; transform: none !important; }
}

/* -------------------------------------------------------------------- */
/* Product listing — 2-up grid on mobile                                */
/* The global rule collapses .grid-4 to a single column under 640px,     */
/* which makes the product list a very long scroll. The listing grid     */
/* keeps two columns instead, with the card interior tightened so the    */
/* narrower tiles stay readable.                                        */
/* -------------------------------------------------------------------- */
@media (max-width: 640px) {
  #productGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  /* The media box carries an inline padding of 14px — too much at this width. */
  #productGrid .product-card__media { padding: 8px !important; }
  #productGrid .product-card__body {
    padding: 12px 12px 14px;
    gap: 8px;
  }
  #productGrid .product-card__title { font-size: 15px; }
  #productGrid .product-card__desc {
    font-size: 12.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #productGrid .product-card__meta {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }
  #productGrid .product-card__buy {
    margin: 0 12px 12px;
    padding: 9px 10px;
    font-size: 12.5px;
  }
}

/* One column only where two would be genuinely cramped. */
@media (max-width: 340px) {
  #productGrid { grid-template-columns: 1fr; }
}
