/* Steadfast Research Group — product detail pages.
   Shared styling for all /products/*.html pages. Layers on assets/styles.css,
   and mirrors the proven table/FAQ/sources/related patterns from blog/assets/blog.css,
   re-tuned for the site's dark theme via the shared CSS variables. */

/* ---------- Hero: responsive two-column ---------- */
.pdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 6px;
}
.pdp-media {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-media img {
  height: auto;
  max-height: 440px;
  width: auto;
  max-width: 100%;
  display: block;
}
.pdp-info { min-width: 0; }
.pdp-info h1 { margin: 0; }
.pdp-info .sub { margin-top: 18px; }

/* Spec line (mg · lyophilized · purity) */
.pdp-specs {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--gray-2);
  margin: 18px 0 0;
}

/* Price */
.pdp-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  color: var(--white);
  font-size: 30px;
  margin: 14px 0 20px;
}

/* Add-to-cart button spacing */
.pdp-info .pill.add { display: inline-flex; align-items: center; }

/* Trust badges (In stock / COA) */
.pdp-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pdp-badges .b {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.pdp-badges .b.stock { color: var(--olive); border-color: rgba(138,154,107,.5); }

/* ---------- Specifications + any prose table (mirrors blog.css .post-body table) ---------- */
.prose table,
table.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
  color: var(--gray-1);
}
.prose th {
  color: var(--white);
  font-weight: 600;
  background: rgba(255,255,255,0.03);
}
/* First-column row headers (Form / Mass / Purity …) sit narrower */
.prose tbody th { width: 34%; }

/* ---------- Research sources ---------- */
.sources { margin-top: 40px; font-size: 14px; }
.prose ol { margin: 0 0 16px 20px; color: var(--gray-1); }
.prose ol li { margin: 8px 0; }
.sources a { color: var(--white); }

/* ---------- FAQ (spacing only; the +/- accordion styling lives in styles.css) ---------- */
.faq { margin-top: 44px; }
.faq h2 { margin-bottom: 8px; }

/* ---------- Related links ---------- */
.related { margin-top: 40px; }
.related a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--white);
  text-decoration: none;
}
.related a:hover { color: var(--gray-1); }

/* ---------- Responsive: stack the hero on mobile ---------- */
@media (max-width: 820px) {
  .pdp-hero { grid-template-columns: 1fr; gap: 30px; }
  .pdp-media { padding: 20px; }
}

/* ---------- Size picker (multi-size compounds) ---------- */
.pdp-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.pdp-size { background: var(--bg-soft); border: 1px solid var(--line); color: var(--gray-1); border-radius: 10px; padding: 9px 16px; font-family: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pdp-size:hover { border-color: var(--gray-2); }
.pdp-size.active { background: var(--white); color: #0d0d0d; border-color: var(--white); font-weight: 600; }

/* ============================================================
   White product pages (2026-07-24)
   Flip the theme variables for page content only — the shared header/footer
   injected by site.js live outside <main> and stay dark.
   ============================================================ */
main {
  --bg: #ffffff;
  --bg-soft: #f7f7f4;
  --white: #0d0d0d;      /* the dark theme uses --white for headings/primary text */
  --gray-1: #44443f;
  --gray-2: #6b6b66;
  --gray-3: #8a8a84;
  --line: #e2e2dc;
  --line-soft: #ededea;
  background: #ffffff;
  display: block;
}
/* Buttons invert with the theme, so restore a dark fill on the light page */
main .pill { background: #0d0d0d; color: #ffffff; }
main .pill-ghost { background: transparent; color: #0d0d0d; border-color: #d8d8d2; }
main .pill-ghost:hover { border-color: #0d0d0d; }
main .pdp-size.active { background: #0d0d0d; color: #ffffff; border-color: #0d0d0d; }
main .prose th { background: #f4f4f1; }
main .note { background: #faf9f6; }
main .pdp-media { background: #fff; border-color: #ececea; }

/* ---------- Buy row: quantity stepper + add to cart ---------- */
.pdp-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.pdp-buy .qtyctl { border: 1px solid #d8d8d2; }
.pdp-qty-label { display: block; font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8a8a84; margin: 14px 0 6px; }

/* ---------- Benefits row (mirrors the homepage .assurance icons, PDP-scaled) ---------- */
.pdp-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.pdp-benefits .a { display: flex; align-items: center; gap: 9px; }
.pdp-benefits .a .ico { width: 19px; height: 19px; flex-shrink: 0; }
.pdp-benefits .a span { font-size: 13px; color: var(--gray-1); }

/* ---------- Verified vs unverified comparison ---------- */
.pdp-verify { margin-top: 46px; }
.verify-table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-size: 14px; }
.verify-table th, .verify-table td { padding: 12px 14px; text-align: left; border: 1px solid var(--line); vertical-align: middle; }
.verify-table thead th { font-weight: 600; font-size: 13px; }
.verify-table thead th:first-child { background: transparent; border: none; }
.verify-table tbody td:first-child { color: var(--gray-1); }
.verify-table td.yes { font-weight: 600; }
.verify-table td.no { color: var(--gray-3); }
.verify-fine { font-size: 12px; color: var(--gray-3); margin-top: 4px; }

/* ---------- Cross-sell ("Customers also frequently order with") ---------- */
.pdp-cross { margin-top: 46px; }
.pdp-cross h2 { margin-top: 0; }
/* Four across on one line inside the 760px content column, so the cards are compact. */
.pdp-cross .shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.pdp-cross .pcard .shot { height: 172px; padding-top: 30px; box-sizing: border-box; }
.pdp-cross .pcard .shot img { height: 116px; margin-top: 0; }
.pdp-cross .pcard .badges { top: 8px; left: 8px; right: 8px; }
.pdp-cross .pcard .body { padding: 13px 13px 14px; }
.pdp-cross .pcard .cat { font-size: 9px; letter-spacing: .1em; }
.pdp-cross .pcard h3 { font-size: 13.5px; line-height: 1.25; margin: 6px 0 2px; }
.pdp-cross .pcard .mg { font-size: 11px; line-height: 1.4; }
.pdp-cross .pcard .prow { padding-top: 11px; gap: 6px; }
.pdp-cross .pcard .price { font-size: 14px; }
.pdp-cross .pcard .add { padding: 6px 11px; font-size: 11.5px; }
.pdp-cross .pcard .badges { gap: 4px; }
.pdp-cross .pcard .b { font-size: 8px; padding: 3px 5px; }
.pdp-cross .pcard .b:not(.stock) { display: none; }   /* keep one badge at this size */
.pdp-cross .pcard .qtyctl[data-card] button { width: 26px; height: 28px; font-size: 14px; }
.pdp-cross .pcard .qtyctl[data-card] .qv { min-width: 20px; font-size: 12.5px; }
@media (max-width: 700px) { .pdp-cross .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .pdp-cross .shop-grid { grid-template-columns: 1fr; } }


/* Loaded after styles.css on product pages, so the View cart button is restated
   here to sit correctly against the light PDP theme. */
.pdp-buy .sf-viewcart { border-color: #d8d8d2; padding: 12px 24px; }
.pdp-buy .sf-viewcart:hover { border-color: #0d0d0d; }
