/* Gentleman Peptides — hi-fi shared styles */
:root {
  --paper: #ffffff;
  --paper-2: #fafaf8;
  --paper-3: #f4f3ef;
  --line: #e8e6e0;
  --line-2: #d6d3cc;
  --ink: #0b0b0c;
  --ink-2: #2a2a2e;
  --ink-3: #6b6b72;
  --ink-4: #9b9aa0;
  --accent: #5b3a8a;
  --accent-2: #432a66;
  --accent-tint: #f3eef9;
  --ok: #1f7a3a;
  --warn: #b25a00;

  --display: 'Newsreader', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --r: 4px;
  --r-lg: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--display); }

/* ─── Top utility bar ─── */
.utility {
  background: var(--ink);
  color: #d8d6d0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.utility-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility a:hover { color: #fff; }
.utility-links { display: flex; gap: 20px; }

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.01em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img { height: var(--gp-logo-h, 36px); width: auto !important; max-width: 200px; object-fit: contain; display: block; }
@media (max-width: 880px) {
  .logo img { height: 32px; max-width: 140px; }
}
.logo-mark {
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color .15s;
}
.nav a:hover { color: var(--accent); }
.nav a.has-caret::after {
  content: '▾';
  font-size: 9px;
  margin-left: 4px;
  color: var(--ink-4);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  position: relative;
}
.icon-btn:hover { background: var(--paper-3); }
.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
}
.search-pill {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  width: 220px;
  cursor: pointer;
}
.search-pill:hover { border-color: var(--line-2); }
.gp-account-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	white-space: nowrap;
	transition: border-color .15s, color .15s;
	text-decoration: none;
}
.gp-account-link:hover { border-color: var(--ink); color: var(--ink); }
.gp-account-link.gp-signup { background: var(--ink); color: #fff; border-color: var(--ink); }
.gp-account-link.gp-signup:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.gp-account-link.active { border-color: var(--ink); }
.gp-account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.gp-account-link svg { flex-shrink: 0; color: var(--ink-2); }
@media (max-width: 880px) { .gp-account-name { display: none; } }
.search-pill kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--ink-3);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ─── Pills / chips ─── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.eyebrow.accent { color: var(--accent); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.tag.accent { color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }
.tag.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag.dot::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.tag.ok { color: var(--ok); border-color: #c4dfcc; background: #f1faf3; }
.tag.warn { color: var(--warn); border-color: #ebd0b1; background: #fbf3e9; }

/* ─── Section header ─── */
.section { padding: 96px 32px; max-width: 1400px; margin: 0 auto; }
.section-tight { padding: 64px 32px; max-width: 1400px; margin: 0 auto; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 460px;
  margin-top: 12px;
}
.link-arrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ─── Vial illustration backdrop helpers ─── */
.product-bg {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 100%);
  position: relative;
  overflow: hidden;
}
.product-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 6px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.08), transparent 70%);
  filter: blur(8px);
}

/* ─── Footer ─── */
.footer {
  background: #0a0a0b;
  color: #b8b6b0;
  padding: 80px 32px 32px;
  margin-top: 80px;
}
.footer a:hover { color: #fff; }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #232325;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { border-color: #fff; color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #9c9a94; max-width: 320px; margin: 20px 0; }
.footer-disclaimer {
  background: #18181a;
  border: 1px solid #2a2a2c;
  border-radius: var(--r);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #d6d4ce;
  text-transform: uppercase;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: #6e6c66;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-bottom-links { display: flex; gap: 24px; }

/* ─── Trust strip (logos / certifications) ─── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-cell {
  padding: 28px 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-left: 1px solid var(--line);
}
.trust-cell:first-child { border-left: 0; }
.trust-icon {
  width: 38px; height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 16px;
}
.trust-h { font-size: 14px; font-weight: 600; }
.trust-s { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ─── Product card ─── */
.pcard {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.pcard:hover { border-color: var(--ink-3); }
.pcard-img {
  aspect-ratio: 1;
  background: var(--paper-2);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.pcard-tags {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 6px;
}
.pcard-fav {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.pcard-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcard-cas { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.05em; }
.pcard-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.pcard-meta { font-size: 12px; color: var(--ink-3); }
.pcard-row {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pcard-price { font-family: var(--display); font-size: 22px; }
.pcard-price-old { font-size: 12px; color: var(--ink-4); text-decoration: line-through; margin-left: 6px; }
/* ─────────────────────────────────────────────
   Sale price display — works with any output that contains <del> and <ins>
   (WC default, wc_format_sale_price, Flycart, GP Discounts engine).
   ───────────────────────────────────────────── */

/* Shop card — compact two-line price stack. */
.pcard-price-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1; }
.pcard-price-wrap .amount,
.pcard-price-wrap .woocommerce-Price-amount { font: inherit; color: inherit; }
/* Sole price (no discount) */
.pcard-price-wrap > .woocommerce-Price-amount { font-family: var(--display); font-size: 22px; color: var(--ink); }
/* Discounted price (ins) becomes the primary line */
.pcard-price-wrap ins,
.pcard-price-wrap > .price ins { display: inline-block; background: transparent; text-decoration: none; font-family: var(--display); font-size: 22px; color: var(--ink); font-weight: 400; padding: 0; line-height: 1; order: 1; }
/* Original price (del) becomes the secondary line below — smaller and muted */
.pcard-price-wrap del,
.pcard-price-wrap > .price del { display: inline-block; font-family: var(--sans); font-size: 11px; color: var(--ink-4); text-decoration: line-through; opacity: 1; font-weight: 400; line-height: 1; padding: 0; margin-left: 0; order: 2; }
.pcard-price-wrap > .price { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }

/* PDP buybox — primary price big, "was $X" small below it, save pill on the right. */
.buybox .price-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.buybox .price-main .gp-price-stack,
.buybox .price-main > .price { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1; }
.buybox .price-main .amount,
.buybox .price-main .woocommerce-Price-amount { font: inherit; color: inherit; }
.buybox .price-main > .woocommerce-Price-amount { font-family: var(--display); font-size: 44px; color: var(--ink); line-height: 0.95; letter-spacing: -0.02em; }
.buybox .price-main ins,
.buybox .price-main > .price ins { display: inline-block; background: transparent; text-decoration: none; font-family: var(--display); font-size: 44px; line-height: 0.95; letter-spacing: -0.02em; color: var(--ink); font-weight: 400; padding: 0; order: 1; }
.buybox .price-main del,
.buybox .price-main > .price del { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 13px; color: var(--ink-4); text-decoration: line-through; text-decoration-color: var(--ink-4); text-decoration-thickness: 1px; opacity: 1; font-weight: 400; line-height: 1; padding: 0; margin: 0; order: 2; }
.buybox .price-main del::before { content: "was"; text-decoration: none; display: inline-block; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-4); margin-right: 2px; }
.buybox .price-save { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--accent); background: var(--accent-tint); padding: 6px 10px; border-radius: 999px; align-self: center; line-height: 1; flex-shrink: 0; }
.buybox .price-block { display: block; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pcard-cta {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pcard:hover .pcard-cta { background: var(--accent); }

/* ─── Shared page banner (FAQs, COA Library, Contact Us) ─── */
.page-banner { background: linear-gradient(180deg, #f8f7f3, #fafaf8); border-bottom: 1px solid var(--line); padding: 72px 32px 56px; text-align: center; }
.page-banner h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 5vw, 76px); letter-spacing: -0.02em; line-height: 0.98; margin: 14px 0 12px; }
.page-banner h1 em { font-style: italic; color: var(--accent); }
.page-banner p { font-size: 15px; color: var(--ink-3); margin: 0; max-width: 560px; margin-left: auto; margin-right: auto; }
.search-wrap { max-width: 640px; margin: 32px auto 0; position: relative; }
.search-wrap input { width: 100%; padding: 18px 56px 18px 56px; font-family: var(--sans); font-size: 15px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.search-wrap .search-icn { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search-wrap kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; background: var(--paper-3); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; color: var(--ink-3); }
.cat-jump { max-width: 1100px; margin: 28px auto 0; padding: 0 32px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cat-pill { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--ink-2); background: #fff; cursor: pointer; transition: all .15s; }
.cat-pill:hover { border-color: var(--ink); }
.cat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-pill .count { font-family: var(--mono); font-size: 11px; opacity: 0.6; margin-left: 6px; }

/* ─── Vial SVG container ─── */
.vial-wrap { width: 65%; height: 80%; display: flex; align-items: end; justify-content: center; }
.vial-wrap svg { width: 100%; height: 100%; }

/* ─── Product card image (real WooCommerce product photo) ─── */
.pcard-img .pcard-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
