/* Chrysalis v2, step 3: the product page (Claude, 10 Nov 2026; Alik: "Build D, dark"). Loaded on single product pages
   while chv2_is_pdp() (inc/v2/v2-site.php); every rule sits under body.chv2s3.
   The top of the page (breadcrumb, picture, buy area) is dark like the homepage. The page's own stylesheet is built on a few
   colour variables, so the dark top is mostly those variables turned over in one place (section 1), plus the handful of
   fixed colours that product.css spells out (section 2). The picture is the product's own cut-out, in plain light.
   3. the research area above the name   4. delivery and payment boxes   5. "What you get"   6. zoom view */

/* ---------- 1. the dark top: one black band, edge to edge ---------- */
.chv2s3 .p3-page>.p3-wrap{
  --ink:#fff;--paper:#000;--tile:rgba(255,255,255,.055);--tile-2:rgba(255,255,255,.1);--mute:#a6a7ad;--mute-2:#8d8e94;
  --line:rgba(255,255,255,.14);--line-2:rgba(255,255,255,.32);
  position:relative;color:#fff;background:#000;box-shadow:0 0 0 100vmax #000;clip-path:inset(0 -100vmax)}
.chv2s3 .p3-page>.p3-wrap .p3-pdp{align-items:center;padding-bottom:56px}

/* the picture: no box, the product on the black floor with one soft pool of white light under it */
.chv2s3 .p3-page>.p3-wrap .p3-gal__main{background:radial-gradient(52% 26% at 50% 86%,rgba(255,255,255,.13),rgba(255,255,255,0) 100%),radial-gradient(70% 60% at 50% 46%,rgba(255,255,255,.045),rgba(255,255,255,0) 100%)}
.chv2s3 .p3-page>.p3-wrap .p3-gal__floor{background:radial-gradient(closest-side,rgba(255,255,255,.2),rgba(255,255,255,.06) 58%,rgba(255,255,255,0) 100%)}
.chv2s3 .p3-page>.p3-wrap .p3-gal__img--vial{scale:1.24;transform-origin:50% 60%}
.chv2s3 .p3-page>.p3-wrap .p3-gal__nav .p3-icon-btn{background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}

/* the buy area: a glass card */
.chv2s3 .p3-page>.p3-wrap .p3-buy{padding:34px 34px 30px;border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.03));box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),inset 0 1px 0 rgba(255,255,255,.2)}
.chv2s3 .p3-page>.p3-wrap .p3-buy__h{background:linear-gradient(180deg,#fff 0%,#e9eaee 38%,#a8abb3 70%,#d9dbe0 100%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.06em}

/* ---------- 2. the fixed colours of product.css, turned over ---------- */
.chv2s3 .p3-page>.p3-wrap .p3-btn--black{color:#0e0e10}
.chv2s3 .p3-page>.p3-wrap .p3-btn--black:hover:not(:disabled){background:#e4e5e9}
.chv2s3 .p3-page>.p3-wrap .p3-fmtc{background:#000}
.chv2s3 .p3-page>.p3-wrap a.p3-fmtc__c:not(.is-on):hover{background:rgba(255,255,255,.08)}
.chv2s3 .p3-page>.p3-wrap .p3-amt.is-off{background:repeating-linear-gradient(135deg,transparent 0 5px,rgba(255,255,255,.07) 5px 6px)}
.chv2s3 .p3-page>.p3-wrap .p3-status--soon{background:repeating-linear-gradient(135deg,transparent 0 5px,rgba(255,255,255,.09) 5px 6px)}
.chv2s3 .p3-page>.p3-wrap .p3-water__add .p3-ico--check{color:#0e0e10}
.chv2s3 .p3-page>.p3-wrap .sx-pdp{color:#fff}
.chv2s3 .p3-page>.p3-wrap .p3-water__img{background:#f1f1f2;border-radius:10px;overflow:hidden}
.chv2s3 .p3-page>.p3-wrap .p3-step__in{color:#fff;background:none}

/* ---------- 3. the research area above the name ---------- */
.chv2s3 .c3-root .chv2-chip{display:inline-flex;align-items:center;gap:9px;margin:0 0 12px;font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;line-height:1;color:#fff;text-decoration:none}
.chv2s3 .chv2-chip i{width:8px;height:8px;border-radius:50%;background:rgb(var(--a-core,205 210 220));box-shadow:0 0 12px rgb(var(--a-core,205 210 220) / .9)}
.chv2s3 .c3-root a.chv2-chip:hover{text-decoration:underline;text-underline-offset:4px}

/* ---------- 4. delivery and payment: three boxes ---------- */
.chv2s3 .chv2-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 0;padding:0;list-style:none}
.chv2s3 .chv2-tile{border-radius:14px;background:rgba(255,255,255,.06);padding:14px 14px 13px}
.chv2s3 .chv2-tile svg{display:block;width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.chv2s3 .chv2-tile b{display:block;margin-top:9px;font-size:14px;font-weight:500;line-height:1.25;letter-spacing:-.01em;color:#fff}
.chv2s3 .chv2-tile span{display:block;margin-top:3px;font-size:12px;line-height:1.35;color:#a6a7ad}

/* ---------- 5. "What you get" ---------- */
.chv2s3 .chv2-get{padding:64px 0 72px;background:#f5f5f6;color:#0e0e10}
.chv2s3 .c3-root .chv2-get__h{margin:0}
.chv2s3 .chv2-get__lead{margin:12px 0 0;max-width:44em;font-size:17px;line-height:1.45;color:#55575d}
.chv2s3 .chv2-facts{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:10px;margin:28px 0 0}
.chv2s3 .chv2-fact{display:flex;flex-direction:column;justify-content:space-between;min-height:112px;margin:0;padding:18px 20px 20px;border-radius:16px;background:#fff}
.chv2s3 .chv2-fact dt{font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#76787e}
.chv2s3 .chv2-fact dd{display:flex;align-items:center;gap:9px;margin:18px 0 0;font-size:21px;font-weight:500;line-height:1.15;letter-spacing:-.02em}
.chv2s3 .chv2-fact dd i{flex:none;width:9px;height:9px;border-radius:50%;background:rgb(var(--a-core,150 152 160))}
.chv2s3 .chv2-fact dd a{color:inherit;text-underline-offset:4px}
.chv2s3 .c3-root .chv2-prof{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:10px;padding:20px 26px;border-radius:16px;background:#0b0b0d;color:#fff;text-decoration:none;position:relative;overflow:hidden}
.chv2s3 .chv2-prof::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:rgb(var(--a-core,205 210 220))}
.chv2s3 .chv2-prof small{display:block;font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#a6a7ad}
.chv2s3 .chv2-prof b{display:block;margin-top:5px;font-size:23px;font-weight:500;letter-spacing:-.02em;line-height:1.15}
.chv2s3 .chv2-prof svg{flex:none;width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s cubic-bezier(.16,1,.3,1)}
.chv2s3 .chv2-prof:hover svg{transform:translateX(4px)}
.chv2s3 .c3-root .chv2-prof:focus-visible{outline:2px solid #0e0e10;outline-offset:3px}
.chv2s3 .p3-prof{display:none} /* the plain link: the card above carries it now */

/* ---------- 6. the zoom view: the same dark floor ---------- */
.chv2s3 .c3-root .p3-zoom{--ink:#fff;--mute:#a6a7ad;--line:rgba(255,255,255,.14);--line-2:rgba(255,255,255,.32);background:#000;color:#fff}
.chv2s3 .c3-root .p3-zoom::backdrop{background:rgba(0,0,0,.96)}

@media (max-width:899px){
  .chv2s3 .p3-page>.p3-wrap .p3-pdp{padding-bottom:28px}
  .chv2s3 .p3-page>.p3-wrap .p3-buy{padding:22px 16px 20px;border-radius:20px}
  .chv2s3 .c3-root .chv2-chip{display:flex;justify-content:center}
  .chv2s3 .p3-page>.p3-wrap .p3-amts{gap:6px}
  .chv2s3 .p3-page>.p3-wrap .p3-amt{min-width:0;padding:0 6px}
  .chv2s3 .chv2-tiles{grid-template-columns:minmax(0,1fr);gap:6px}
  .chv2s3 .chv2-tile{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:12px;align-items:start;padding:12px 14px}
  .chv2s3 .chv2-tile svg{grid-row:1/4;margin-top:1px}
  .chv2s3 .chv2-tile b{margin-top:0}
  .chv2s3 .chv2-get{padding:40px 0 48px}
  .chv2s3 .chv2-get__lead{font-size:16px}
  .chv2s3 .chv2-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:20px}
  .chv2s3 .chv2-fact{min-height:96px;padding:14px 14px 16px}
  .chv2s3 .chv2-fact dd{font-size:17px;margin-top:14px}
  .chv2s3 .c3-root .chv2-prof{padding:16px 18px}
  .chv2s3 .chv2-prof b{font-size:19px}
}

/* ---------- 7. a vial's picture: the silver vial of the first screen (render), filling the picture box and fading into the black ---------- */
.chv2s3 .p3-page>.p3-wrap .p3-gal__main:has(.chv2-r){background:#000}
.chv2s3 .p3-page>.p3-wrap .p3-gal__main:has(.chv2-r) .p3-gal__floor{display:none}
.chv2s3 .p3-page>.p3-wrap .p3-gal__img.chv2-r{left:0;top:0;right:auto;bottom:auto;width:100%;height:100%;object-fit:cover;object-position:50% 37%;scale:none;translate:none;transform-origin:50% 80%;
  -webkit-mask-image:linear-gradient(90deg,transparent 3%,#000 27%,#000 73%,transparent 97%),linear-gradient(180deg,transparent 1%,#000 24%);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 3%,#000 27%,#000 73%,transparent 97%),linear-gradient(180deg,transparent 1%,#000 24%);mask-composite:intersect}
/* a box wider than tall (tablets): the whole vial, not a crop of it */
@media (min-width:560px) and (max-width:899px){.chv2s3 .p3-page>.p3-wrap .p3-gal__img.chv2-r{object-fit:contain;object-position:50% 50%}}
@media (max-width:559px){.chv2s3 .p3-page>.p3-wrap .p3-gal__img.chv2-r{object-position:50% 44%}}

/* ---------- 8. the name always fits its card: no word broken in the middle ("Tesamorel-in") ----------
   The card is narrower than the old buy column (it has its own padding), so the name's size follows the card's width. */
.chv2s3 .p3-page>.p3-wrap .p3-buy{container-type:inline-size}
.chv2s3 .p3-page>.p3-wrap .p3-buy__h{font-size:min(var(--t-display,96px),16.5cqi)}
.chv2s3 .p3-page>.p3-wrap .p3-buy__h.p3-buy__h--m{font-size:min(var(--t-h1,72px),12.5cqi)}
.chv2s3 .p3-page>.p3-wrap .p3-buy__h.p3-buy__h--l{font-size:min(var(--t-h2,56px),12cqi)}

/* ---------- 9. the page behind the page (Claude, 10 Nov 2026, 13:00): black, so the phone's top strip (iPhone Safari tints it
   from the page's own background; the theme-color meta alone no longer does it) and the overscroll match the dark page ---------- */
html:has(body.chv2s3),html:has(body.chv2s3) body{background-color:#000} /* beats catalogue.css html:not([data-theme]) body */

/* ---------- 10. step 5 (Claude, 10 Nov 2026): the lower half of the page in the dark look ("More peptides", Questions) ----------
   body.chv2s5 (inc/v2/v2-site.php, chv2_s5_on()). The two sections take their colours from the page's variables, turned over
   here; the vial tiles get the true cut-out of the silver vial (inc/v2/v2-shop.php, chv2_rel_rewrite(), class chv2-c). */
.chv2s5.chv2s3 .c3-root.p3-page{background:#000}
.chv2s5.chv2s3 .c3-root.p3-page :is(.p3-rel,.p3-faq){
  --ink:#fff;--paper:#000;--tile:#0c0c0e;--tile-2:#1b1b1f;--mute:#a6a7ad;--mute-2:#8d8e94;
  --line:rgba(255,255,255,.12);--line-2:rgba(255,255,255,.28);background:#000;color:#fff;color-scheme:dark}
.chv2s5.chv2s3 .c3-root .p3-rel .p3-p__tile{box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.chv2s5.chv2s3 .c3-root .p3-rel .p3-p__add{background:#000;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.chv2s5.chv2s3 .c3-root .p3-rel .p3-p__add.is-added{background:#fff;color:#0e0e10}
@media (hover:hover){.chv2s5.chv2s3 .c3-root .p3-rel .p3-p__add:hover{background:#fff;color:#0e0e10}}
.chv2s5.chv2s3 .c3-root .p3-faq .p3-acc details[open] summary i{color:#0e0e10}
/* the cut-out fills the 4:5 tile as the old photo did; a soft pool of light on the floor under it */
.chv2s5.chv2s3 .c3-root .p3-rel .p3-p__tile:has(> img.chv2-c)::before{content:"";position:absolute;z-index:-1;left:50%;top:82%;width:86%;height:13%;transform:translate(-50%,-46%);
  background:radial-gradient(closest-side,rgba(255,255,255,.17),rgba(255,255,255,.06) 55%,rgba(255,255,255,0));pointer-events:none}
/* "What you get" and the bar that follows the scroll: the same dark floor, tiles one step lighter with a quiet edge */
.chv2s5.chv2s3 .chv2-get{background:#000;color:#fff}
.chv2s5.chv2s3 .chv2-get__lead{color:#a6a7ad}
.chv2s5.chv2s3 .chv2-fact{background:#0c0c0e;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.chv2s5.chv2s3 .chv2-fact dt{color:#8d8e94}
.chv2s5.chv2s3 .c3-root .chv2-prof{background:#0c0c0e;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.chv2s5.chv2s3 .c3-root .chv2-prof:focus-visible{outline-color:#fff}
.chv2s5.chv2s3 .c3-root .p3-subnav__bar{background:#000;border-bottom-color:rgba(255,255,255,.12);color:#fff}
.chv2s5.chv2s3 .c3-root .p3-subnav__a{color:#a6a7ad}
.chv2s5.chv2s3 .c3-root .p3-subnav__add{background:#fff;color:#0e0e10}
@media (hover:hover){.chv2s5.chv2s3 .c3-root .p3-subnav__add:hover{background:#e4e5e9}}


/* ---------- "From us to your door" (11 Nov 2026): four steps, icons only. Follows "What you get" on the same floor. ---------- */
.chv2s3 .chv2-door{--d-fg:#0e0e10;--d-mute:#55575d;--d-label:#76787e;--d-tile:#fff;--d-edge:rgba(0,0,0,.07);--d-well:#ececee;--d-line:rgba(0,0,0,.14);--d-dot:#0e0e10;--d-dot-fg:#fff;
  padding:8px 0 76px;background:#f5f5f6;color:var(--d-fg)}
.chv2s5.chv2s3 .chv2-door{--d-fg:#fff;--d-mute:#a6a7ad;--d-label:#8d8e94;--d-tile:#0c0c0e;--d-edge:rgba(255,255,255,.08);--d-well:radial-gradient(110% 100% at 50% 100%,#232429 0%,#111114 58%,#0a0a0c 100%);--d-line:rgba(255,255,255,.18);--d-dot:#fff;--d-dot-fg:#0c0c0e;background:#000}
.chv2s3 .c3-root .chv2-door__h{margin:0}
.chv2s3 .chv2-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:30px 0 0;padding:0;list-style:none}
.chv2s3 .chv2-step{margin:0;min-width:0}
.chv2s3 .chv2-step__n{display:flex;align-items:center;gap:11px;margin:0 0 14px;font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--d-label)}
.chv2s3 .chv2-step__n b{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--d-dot);color:var(--d-dot-fg);font-size:13px;font-weight:600;letter-spacing:0}
.chv2s3 .chv2-step__n i{flex:1;height:1px;background:var(--d-line)}
.chv2s3 .chv2-step:last-child .chv2-step__n i{background:linear-gradient(90deg,var(--d-line),transparent)}
.chv2s3 .chv2-step__c{height:calc(100% - 42px);border-radius:18px;background:var(--d-tile);box-shadow:inset 0 0 0 1px var(--d-edge);overflow:hidden}
.chv2s3 .chv2-step__ic{display:grid;place-items:center;height:148px;background:var(--d-well)}
.chv2s3 .chv2-step__ic svg{width:56px;height:56px;fill:none;stroke:var(--d-fg);stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
.chv2s3 .chv2-step__c p{margin:0;padding:18px 20px 22px;font-size:16px;line-height:1.45;color:var(--d-mute)}
.chv2s3 .chv2-step__c p a{color:var(--d-fg);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;white-space:nowrap}
.chv2s3 .chv2-step__c p a:focus-visible{outline:2px solid var(--d-fg);outline-offset:3px;border-radius:3px}
@media (max-width:900px){
  .chv2s3 .chv2-door{padding:0 0 52px}
  .chv2s3 .chv2-steps{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:22px}
  .chv2s3 .chv2-step__n{margin-bottom:10px}
  .chv2s3 .chv2-step__c{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;height:auto;border-radius:16px}
  .chv2s3 .chv2-step__ic{height:100%;min-height:84px}
  .chv2s3 .chv2-step__ic svg{width:38px;height:38px;stroke-width:1.3}
  .chv2s3 .chv2-step__c p{padding:14px 16px;font-size:15px}
}

/* ---------- Lab report line under Add to cart (13 Nov 2026, inc/v2/v2-lab.php) ----------
   "Lab tested · 99.99% purity" with the site's green dot, "View report" (the lab's own copy) on the right. */
.chv2s3 .p3-buy__line.chv2-lab,.chv2s3 .p3-buy__line+.p3-buy__line.chv2-lab{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 12px 12px 12px;min-height:64px;border-radius:18px;background:linear-gradient(180deg,rgba(52,194,138,.15),rgba(52,194,138,.06));box-shadow:inset 0 0 0 1px rgba(52,194,138,.4);color:#fff;text-decoration:none;font-size:16px;line-height:1.25;-webkit-tap-highlight-color:transparent;transition:box-shadow .15s ease,background-color .15s ease,transform .15s ease}
/* hidden while another size is picked (14 Nov fix): must beat the display:flex rule above, which is stronger after the offer line */
.chv2s3 .p3-buy__line.chv2-lab[hidden],.chv2s3 .p3-buy__line+.p3-buy__line.chv2-lab[hidden]{display:none}
.chv2s3 .chv2-lab__ok{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#34C28A;color:#03140c;box-shadow:0 0 0 4px rgba(52,194,138,.16)}
.chv2s3 .chv2-lab__m{display:flex;flex-direction:column;gap:2px;min-width:0}
.chv2s3 .chv2-lab__t{font-weight:600;letter-spacing:-.01em}
.chv2s3 .chv2-lab__s{font-size:14px;font-weight:500;color:#34C28A}
.chv2s3 .chv2-lab__go{flex:none;margin-left:auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(52,194,138,.14);color:#34C28A}
@media (hover:hover) and (pointer:fine){.chv2s3 .chv2-lab:hover{background-color:rgba(52,194,138,.07);box-shadow:inset 0 0 0 1px rgba(52,194,138,.7)}}
.chv2s3 .chv2-lab:active{transform:scale(.98)}
.chv2s3 .chv2-lab:focus-visible{outline:2px solid #34C28A;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.chv2s3 .chv2-lab{transition:none}.chv2s3 .chv2-lab:active{transform:none}}
