/* Per-product (shop) page renderer. * Reads window.PRODUCT_SLUG → merges window.PEPTIDE_DB[slug] (educational data) * with window.SHOP_DB[slug] (sales-focused, unique copy per product). */ const slug = window.PRODUCT_SLUG; const peptideData = window.PEPTIDE_DB[slug]; const shopData = (window.SHOP_DB || {})[slug] || {}; const data = { ...peptideData, ...shopData }; if (!peptideData) { document.getElementById("root").innerHTML = '
'; } const PRICING_OPTIONS = [ { qty: 1, label: "1-month", multiplier: 1.0, per_month_savings: 0, badge: null }, { qty: 3, label: "3-month", multiplier: 2.7, per_month_savings: 10, badge: "SAVE 10%" }, { qty: 6, label: "6-month", multiplier: 5.1, per_month_savings: 15, badge: "BEST VALUE" }, ]; function ProductPage() { const d = data; const [selected, setSelected] = React.useState(0); const opt = PRICING_OPTIONS[selected]; const total = Math.round(d.price * opt.multiplier); const perMonth = Math.round(total / opt.qty); return ({d.hero_subtitle || d.tagline}
{d.one_liner}
{/* Pricing tiles */}{d.the_problem}
{d.the_promise && ({d.the_promise}
{d.why_buy_now}
{d.mechanism}
{d.indications && ({f.a}
"{d.review.quote}"