/* Surprise vial line, stack tags, product page line and countdown (Claude, 7 Nov 2026). PHP: inc/v2/z9-stack-offer.php.
   Every page (the cart drawer is on every page). Black, white and silver; the one green (--cl-acc-ink) only on "FREE" and savings.
   Motion: one sheen across the gift tile when it appears, the countdown digits roll; both off under prefers-reduced-motion. */

/* ---------------------------------------------------------------- gift glyph (outlined vial with a question mark) */
.sx-gift__svg{display:block;width:58%;height:58%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;color:#0e0e10}
.sx-gift__q{stroke-width:1.7}
.sx-gift__img{position:relative;display:grid;place-items:center;overflow:hidden;
  background:linear-gradient(160deg,#fbfbfc 0%,#eceef1 46%,#dfe2e6 100%) !important;box-shadow:inset 0 0 0 1px rgba(14,14,16,.06)}
.k-sum__line .sx-gift__img{width:52px;height:52px;border-radius:10px}

/* ---------------------------------------------------------------- the line in cart, drawer and checkout */
.sx-free{color:var(--cl-acc-ink,#077D55);font-weight:500;letter-spacing:.02em}
.sx-free--mute{color:var(--fg-3,#76787E);font-weight:500}
.sx-gift .k-line__name,.sx-gift .k-sum__name{font-weight:500}
.sx-gift__meta{display:flex !important;flex-wrap:wrap;align-items:center;gap:6px 10px;text-transform:none !important;letter-spacing:normal !important}
.sx-gift__hint{color:var(--fg-2,#55575D)}
.sx-gift.is-near .sx-gift__img{background:#fff !important;box-shadow:inset 0 0 0 1px rgba(14,14,16,.22);outline:1px dashed rgba(14,14,16,.3);outline-offset:-5px}
.sx-gift.is-near .sx-gift__svg{opacity:.42}
.sx-gift.is-near .k-line__name{color:var(--fg-2,#55575D)}
.sx-gift .k-line__total .woocommerce-Price-amount,.sx-gift .k-sum__amt .woocommerce-Price-amount{color:var(--fg-2,#55575D)}

@media (prefers-reduced-motion:no-preference){
  .sx-gift.is-on .sx-gift__img::after{content:"";position:absolute;inset:-20% -60%;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.95) 50%,transparent 60%);
    transform:translateX(-70%);animation:sx-sheen 1.6s cubic-bezier(.2,.7,.2,1) .25s 1 both;pointer-events:none}
  .sx-gift.is-on{animation:sx-in .5s cubic-bezier(.2,.7,.2,1) both}
}
@keyframes sx-sheen{to{transform:translateX(70%)}}
@keyframes sx-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------------------------------------------------------------- stack tag on cart / drawer / checkout lines */
.sx-tag{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:6px;vertical-align:middle}
.sx-tag__t{display:inline-flex;align-items:center;height:22px;padding:0 9px;border:1px solid rgba(14,14,16,.28);border-radius:999px;
  font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;line-height:1;color:#0e0e10;white-space:nowrap;font-feature-settings:"tnum" 1}
.sx-tag__a{font-size:13px;color:inherit;text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1px}
.sx-tag__a:hover{color:#55575D}
.k-sum__name .sx-tag{margin-top:0;margin-left:2px}
.k-line__name + .sx-tag{display:flex}

/* ---------------------------------------------------------------- product page line */
.c3-root .sx-pdp{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-top:16px;padding:12px 14px;border:1px solid var(--line,rgba(14,14,16,.13));border-radius:14px;
  font-size:15px;line-height:1.3}
.c3-root .sx-pdp__ico{position:relative;display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;overflow:hidden;
  background:linear-gradient(160deg,#fbfbfc 0%,#eceef1 46%,#dfe2e6 100%);box-shadow:inset 0 0 0 1px rgba(14,14,16,.06)}
.c3-root .sx-pdp__ico .sx-gift__svg{width:70%;height:70%}
.c3-root .sx-pdp__t{flex:1 1 auto;min-width:0;font-weight:500}
.c3-root .sx-pdp .sx-timer{margin-left:auto}
@media (max-width:599px){.c3-root .sx-pdp .sx-timer{margin-left:46px}}

/* ---------------------------------------------------------------- countdown: Ends in [2]d [14]h [05]m */
.sx-timer{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:1;white-space:nowrap;font-feature-settings:"tnum" 1,"lnum" 1}
.sx-timer__l{margin-right:2px;color:var(--mute,#55575D);font-weight:500;letter-spacing:.08em;text-transform:uppercase;font-size:11px}
.sx-timer__u{display:inline-flex;align-items:baseline;gap:2px}
.sx-timer__u b{position:relative;display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:7px;overflow:hidden;
  background:linear-gradient(180deg,#26272c 0%,#0e0e10 100%);color:#fff;font-weight:500;font-size:13px;letter-spacing:.01em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 1px 2px rgba(14,14,16,.18)}
.sx-timer__u b::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(0,0,0,.45)}
.sx-timer__u i{font-style:normal;color:var(--mute-2,#76787E);font-size:11px;font-weight:500}
.sx-timer--line{margin-top:2px}
@media (prefers-reduced-motion:no-preference){
  .sx-timer__u b.is-tick{animation:sx-tick .45s cubic-bezier(.2,.7,.2,1)}
}
@keyframes sx-tick{0%{transform:translateY(-35%);opacity:.2}100%{transform:none;opacity:1}}

/* ---------------------------------------------------------------- "−20%" beside Build a Stack (7 Nov 2026), header + footer */
/* PHP: cl_sx_nav_badge() (the top stack tier) in inc/v2/z9-stack-offer.php; header.php / footer.php print it.
   The savings green (Alik, 7 Nov: version B): #077D55 with white text (5.2:1) on the light header, the bright accent #34C28A
   with ink text (8.5:1) on the dark header (homepage hero) and the black footer.
   It never moves: no animation, so nothing to switch off for reduced motion. */
.c3-root .hd3-bdg{--bdg-bg:#077D55;--bdg-fg:#fff;display:inline-flex;align-items:center;justify-content:center;height:18px;padding:0 6px;
  border-radius:999px;background:var(--bdg-bg);color:var(--bdg-fg);font-size:11px;font-weight:600;line-height:1;letter-spacing:.01em;
  font-feature-settings:"tnum" 1,"lnum" 1;white-space:nowrap;text-decoration:none;text-transform:none;pointer-events:none}
.c3-root.hd3[data-hd3-tone="dark"] .hd3-bdg,.c3-root.b3-ftr .hd3-bdg{--bdg-bg:#34C28A;--bdg-fg:#0E0E10}
@media (forced-colors:active){.c3-root .hd3-bdg{border:1px solid CanvasText}}

/* Header: the badge sits just after the word but outside the link's own box, so the sliding line and the current-page
   underline stay under the word. The link keeps the badge's room on its right (--bdg-room). The link itself stays fully
   opaque (the badge keeps its colour); its word dims like the other links. */
.c3-root.hd3 .hd3-nav a.hd3-has-bdg{--bdg-room:49px;margin-right:var(--bdg-room);opacity:1}
.c3-root.hd3 .hd3-nav a.hd3-has-bdg .hd3-roll{opacity:.86;transition:opacity .2s}
.c3-root.hd3 .hd3-nav a.hd3-has-bdg:is(:hover,:focus-visible,[aria-current]) .hd3-roll{opacity:1}
.c3-root.hd3 .hd3-nav .hd3-bdg{position:absolute;left:100%;top:50%;margin-left:7px;transform:translateY(-50%)}

/* Footer: after the words, like "Soon". */
.c3-root.b3-ftr .b3-ftr__col a:hover .hd3-bdg{text-decoration:none}
@media print{.c3-root .hd3-bdg{background:none;color:inherit;border:1px solid currentColor}}

/* ---------------------------------------------------------------- header fit: Build a Stack + its "−20%" (+ Help, when it ships) */
/* nav.css sizes the row for 5 links: centred on the page from 1240 px, midway between the logo and the right group below.
   "Build a Stack −20%" (and Help: .hd3-dd, inc/v2/z9-calculator.php) make the row wider, so (7 Nov 2026, checked 900–1440 px):
     1440 px and up   centred on the page, as before. With Help the links sit 24 px apart instead of 32.
     1240–1439        midway between the logo and the right group. On the homepage, until the Shop peptides button arrives,
                      the links hold the page centre (nav.css's own offset: half the width difference of the two sides).
     1024–1239        midway; the right group one size smaller (nav.css's own small size); the gaps grow with the window.
     900–1023         the Shop peptides button leaves the row (Shop is the first link; the phone menu keeps the button).
                      With Help it also leaves below 1140 px. */
@media (min-width:900px) and (max-width:1439.98px){
  .c3-root.hd3 .hd3-bar{grid-template-columns:auto minmax(0,1fr) auto}
  .c3-root.hd3 .hd3-bar .hd3-nav{justify-self:center}
  .c3-root.hd3[data-hd3-cta] .hd3-bar .hd3-nav{transition:transform .45s var(--ease)}
}
@media (min-width:1240px) and (max-width:1439.98px){
  html:not(.no-js) .c3-root.hd3[data-hd3-cta="wait"] .hd3-bar .hd3-nav{transform:translateX(102px)}
}
@media (min-width:1240px){
  .c3-root.hd3:has(.hd3-dd) .hd3-bar .hd3-nav{gap:24px}
}
@media (min-width:900px) and (max-width:1239.98px){
  .c3-root.hd3 .hd3-bar{column-gap:16px}
  .c3-root.hd3 .hd3-bar .hd3-nav{font-size:15px;gap:clamp(13px,calc(13px + (100vw - 1024px) * .05),24px)}
  .c3-root.hd3 .hd3-icons{gap:6px}
  .c3-root.hd3 .hd3-icons .hd3-ib{width:40px;height:40px}
  .c3-root.hd3 .hd3-icons .hd3-cta{gap:6px;height:40px;padding:0 13px 0 16px;font-size:13px}
  .c3-root.hd3 .hd3-icons .hd3-cta svg{width:14px;height:14px}
  .c3-root.hd3 .hd3-nav a.hd3-has-bdg{--bdg-room:43px}
  .c3-root.hd3 .hd3-nav .hd3-bdg{height:16px;padding:0 5px;font-size:10px;margin-left:6px}
  html:not(.no-js) .c3-root.hd3[data-hd3-cta="wait"] .hd3-bar .hd3-nav{transform:translateX(88px)}
}
@media (min-width:900px) and (max-width:1023.98px){
  .c3-root.hd3 .hd3-icons .hd3-cta{display:none}
  .c3-root.hd3 .hd3-bar .hd3-nav{gap:clamp(14px,calc(14px + (100vw - 900px) * .08),24px)}
  html:not(.no-js) .c3-root.hd3[data-hd3-cta] .hd3-bar .hd3-nav{transform:none}
  .c3-root.hd3:has(.hd3-dd) .hd3-bar .hd3-nav{font-size:14px}
}
@media (min-width:1024px) and (max-width:1139.98px){
  .c3-root.hd3:has(.hd3-dd) .hd3-icons .hd3-cta{display:none}
  html:not(.no-js) .c3-root.hd3:has(.hd3-dd)[data-hd3-cta] .hd3-bar .hd3-nav{transform:none}
}

/* ---------------------------------------------------------------- Shop offer strip under the shop title (7 Nov 2026, option B) */
/* PHP: cl_sx_shop_strip() in inc/v2/z9-stack-offer.php (hook cl3_shop_head_end in woocommerce/archive-product.php). Each half
   shows only while its feature is on; with one half the strip holds just that one. Silver, black buttons, the "−20%" in the
   savings green #077D55 (white text 5.2:1). Motion: one soft light passes along the strip every 7 s; none under
   prefers-reduced-motion, none in forced colours. 960 px and up: one slim pill row. Below 960 px: two rows in one card. */
.c3-root.s3 .sx-strip{position:relative;isolation:isolate;overflow:hidden;align-self:stretch;display:grid;
  grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);align-items:center;height:56px;border-radius:999px;color:#0e0e10;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.55) 18%,rgba(255,255,255,0) 40%,rgba(255,255,255,.4) 64%,rgba(255,255,255,0) 86%),
    linear-gradient(180deg,#fafafb 0%,#eceef1 46%,#d9dce1 100%);
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(14,14,16,.10),inset 0 0 0 1px rgba(14,14,16,.10),0 12px 24px -20px rgba(14,14,16,.45)}
.c3-root.s3 .sx-strip--one{grid-template-columns:minmax(0,1fr)}
/* top gloss + the passing light, both under the content */
.c3-root.s3 .sx-strip::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.7) 0%,rgba(255,255,255,0) 45%)}
.c3-root.s3 .sx-strip::after{content:"";position:absolute;top:0;bottom:0;left:0;width:22%;z-index:-1;pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,0) 18%,rgba(255,255,255,.92) 50%,rgba(255,255,255,0) 82%);transform:translateX(-110%)}
@media (prefers-reduced-motion:no-preference){
  .c3-root.s3 .sx-strip::after{animation:sx-strip-light 7s cubic-bezier(.45,.05,.25,1) 1.2s infinite}
}
@keyframes sx-strip-light{0%{transform:translateX(-110%)}34%,100%{transform:translateX(470%)}}

.c3-root.s3 .sx-strip__o{display:flex;align-items:center;gap:14px;height:100%;min-width:0;padding:0 8px;border-radius:999px;color:inherit;text-decoration:none}
.c3-root.s3 .sx-strip__o:focus-visible{outline:2px solid #0e0e10;outline-offset:-3px}
.c3-root.s3 .sx-strip__sep{width:1px;height:28px;background:linear-gradient(180deg,transparent,rgba(14,14,16,.22),transparent)}
.c3-root.s3 .sx-strip__ico{position:relative;display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;overflow:hidden;color:#0e0e10;
  background:linear-gradient(160deg,#fdfdfe 0%,#eceef1 46%,#cfd2d8 100%);
  box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(14,14,16,.08),0 1px 2px rgba(14,14,16,.12)}
.c3-root.s3 .sx-strip__ico svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-linejoin:round;stroke-linecap:round}
.c3-root.s3 .sx-strip__ico .sx-gift__svg{stroke-width:1.5;color:inherit}
.c3-root.s3 .sx-strip__txt{display:flex;align-items:baseline;gap:12px;min-width:0}
.c3-root.s3 .sx-strip__l{font-size:18px;font-weight:500;line-height:1.08;letter-spacing:-.005em;white-space:nowrap}
.c3-root.s3 .sx-strip__sub{font-size:11px;font-weight:500;line-height:1;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;color:#55575D}
.c3-root.s3 .sx-strip__pct{display:inline-flex;align-items:center;height:24px;padding:0 9px;margin-left:8px;border-radius:999px;vertical-align:2px;
  background:#077D55;color:#fff;font-size:14px;font-weight:500;line-height:1;letter-spacing:.01em;font-feature-settings:"tnum" 1,"lnum" 1;white-space:nowrap}
.c3-root.s3 .sx-strip__btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:none;height:40px;padding:0 18px;margin-left:auto;border-radius:999px;
  background:#0e0e10;color:#fff;font-size:14px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;
  transition:background-color .3s cubic-bezier(.165,.84,.44,1),transform .15s cubic-bezier(.165,.84,.44,1)}
.c3-root.s3 .sx-strip__btn svg{width:16px;height:16px;transition:transform .3s cubic-bezier(.165,.84,.44,1)}
@media (hover:hover){
  .c3-root.s3 .sx-strip__o:hover .sx-strip__btn{background:#2a2a2e}
  .c3-root.s3 .sx-strip__o:hover .sx-strip__btn svg{transform:translateX(3px)}
}
.c3-root.s3 .sx-strip__o:active .sx-strip__btn{transform:scale(.98)}
/* "Shop now" lands on the first grid of the page (Vials; Pens on the Pens page) with room above it */
.c3-root.s3 [id^="s3-g-"]{scroll-margin-top:96px}

/* 960–1099 px: the same slim row, one size smaller */
@media (min-width:960px) and (max-width:1099.98px){
  .c3-root.s3 .sx-strip{height:52px}
  .c3-root.s3 .sx-strip__o{gap:12px;padding:0 6px}
  .c3-root.s3 .sx-strip__ico{width:36px;height:36px}
  .c3-root.s3 .sx-strip__ico svg{width:24px;height:24px}
  .c3-root.s3 .sx-strip__txt{gap:10px}
  .c3-root.s3 .sx-strip__l{font-size:16px}
  .c3-root.s3 .sx-strip__pct{height:22px;padding:0 8px;margin-left:6px;font-size:13px;vertical-align:1px}
  .c3-root.s3 .sx-strip__sub{font-size:10px}
  .c3-root.s3 .sx-strip__btn{gap:8px;height:38px;padding:0 15px;font-size:13px}
  .c3-root.s3 .sx-strip__btn svg{width:14px;height:14px}
}
/* below 960 px the two halves no longer fit side by side: one card, one offer per row */
@media (max-width:959.98px){
  .c3-root.s3 .sx-strip{grid-template-columns:minmax(0,1fr);height:auto;border-radius:22px}
  .c3-root.s3 .sx-strip__o{min-height:60px;padding:8px 8px 8px 10px;border-radius:18px}
  .c3-root.s3 .sx-strip__sep{width:auto;height:1px;margin:0 14px;background:linear-gradient(90deg,transparent,rgba(14,14,16,.18) 12%,rgba(14,14,16,.18) 88%,transparent)}
  .c3-root.s3 .sx-strip::after{width:40%;animation-name:sx-strip-light-n}
}
@keyframes sx-strip-light-n{0%{transform:translateX(-110%)}34%,100%{transform:translateX(260%)}}
/* phones: name on top, "−20%" / "Surprise vial" under it; smaller buttons */
@media (max-width:599.98px){
  .c3-root.s3 .sx-strip__o{gap:12px;padding:8px}
  .c3-root.s3 .sx-strip__ico{width:36px;height:36px}
  .c3-root.s3 .sx-strip__ico svg{width:24px;height:24px}
  .c3-root.s3 .sx-strip__txt{flex-direction:column;align-items:flex-start;gap:5px}
  .c3-root.s3 .sx-strip__l{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:16px}
  .c3-root.s3 .sx-strip__pct{height:22px;padding:0 8px;margin-left:0;font-size:13px}
  .c3-root.s3 .sx-strip__sub{font-size:10px}
  .c3-root.s3 .sx-strip__btn{gap:6px;height:36px;padding:0 14px;font-size:12px}
  .c3-root.s3 .sx-strip__btn svg{width:14px;height:14px}
}
@media (max-width:359.98px){.c3-root.s3 .sx-strip__btn svg{display:none}}
@media (forced-colors:active){
  .c3-root.s3 .sx-strip{border:1px solid CanvasText}
  .c3-root.s3 .sx-strip::before,.c3-root.s3 .sx-strip::after{display:none}
  .c3-root.s3 .sx-strip__pct,.c3-root.s3 .sx-strip__btn{border:1px solid CanvasText}
}
@media print{.c3-root.s3 .sx-strip{display:none}}
