/* ===================================================================
   XS Peptides — design system  (palette + type from the XS build)
   =================================================================== */
:root {
  --background: #ffffff;
  --foreground: #0e1c33;
  --blue: #0163d9;
  --blue-bright: #0383f3;
  --blue-deep: #0147b8;
  --muted: #485872;
  --surface: #f4f7fd;
  --surface-2: #e9f1fc;
  --line: #dde8f8;
  --line-strong: #c9d9f0;
  --green: #00bb7f;
  --green-deep: #007956;
  --red: #fb2c36;
  --ink-900: #0a1526;

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-logo: "Saira", var(--font-display);

  --maxw: 1220px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-1: 0 1px 2px rgba(14,28,51,.05);
  --shadow-2: 0 12px 34px -14px rgba(14,28,51,.20);
  --shadow-3: 0 30px 70px -24px rgba(14,28,51,.34);
  --shadow-blue: 0 24px 60px -22px rgba(1,99,217,.55);
}

* { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--background); color: var(--foreground); font-family: var(--font-body); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; color: var(--foreground); }
button { font-family: inherit; cursor: pointer; background: none; color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--blue); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; font-family: var(--font-body); letter-spacing: -.005em; transition: background .2s, color .2s, border-color .2s, transform .2s; border: 1px solid transparent; line-height: 1; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-outline { border-color: var(--line-strong); color: var(--foreground); background: #fff; }
.btn-outline:hover { border-color: var(--foreground); background: var(--foreground); color: #fff; }
.btn-ghost { color: var(--foreground); }
.btn-ghost:hover { color: var(--blue); }
.btn-light { background: #fff; color: var(--foreground); }
.btn-light:hover { background: var(--surface-2); }
.btn-dark { background: var(--foreground); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.btn-dark:hover { background: var(--ink-900); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* circular arrow badge + "send" hover, used on the hero CTAs */
.btn-arrow { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; }
.btn-arrow svg { width: 15px; height: 15px; }
.btn-dark .btn-arrow { background: #fff; color: var(--foreground); }
.btn-outline .btn-arrow { background: var(--foreground); color: #fff; transition: background .2s, color .2s; }
.btn-outline:hover .btn-arrow { background: #fff; color: var(--foreground); }
.btn:hover .btn-arrow svg { animation: arrowSend .5s cubic-bezier(.4,0,.2,1); }
@keyframes arrowSend {
  0% { transform: translate(0,0); opacity: 1; }
  42% { transform: translate(15px,-15px); opacity: 0; }
  43% { transform: translate(-15px,15px); opacity: 0; }
  100% { transform: translate(0,0); opacity: 1; }
}

/* ---------- 3D tilt ---------- */
.tilt { transform: perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .25s; transform-style: preserve-3d; will-change: transform; }

/* ---------- top bar ---------- */
.topbar { background: var(--foreground); color: #cdd9ec; font-size: 13px; text-align: center; padding: 9px 16px; letter-spacing: .01em; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar .sep { opacity: .4; margin: 0 10px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--foreground); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn { position: relative; color: var(--foreground); display: grid; place-items: center; padding: 6px; }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count { position: absolute; top: -3px; right: -4px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; font-family: var(--font-body); }
.menu-toggle { display: none; color: var(--foreground); padding: 6px; }
.nav-actions .btn-primary { padding-right: 18px; }
.nav-actions .btn-primary::after { content: "→"; font-size: 15px; line-height: 1; transition: transform .2s ease; }
.nav-actions .btn-primary:hover::after { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
    radial-gradient(1100px 600px at 88% -6%, rgba(1,99,217,.12), transparent 62%),
    radial-gradient(760px 520px at 2% 108%, rgba(0,187,127,.07), transparent 60%),
    var(--background); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; padding: 90px 0 96px; }
.hero-copy { max-width: 560px; }
.hero .rating { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.hero .stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.0; color: var(--foreground); }
.hero h1 .hl { position: relative; display: inline-block; }
.hero h1 .hl::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -.02em; height: .085em; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 28px 0 36px; max-width: 470px; }
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-textlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--foreground); position: relative; padding: 4px 0; }
.hero-textlink svg { width: 16px; height: 16px; transition: transform .2s; }
.hero-textlink::after { content: ""; position: absolute; left: 0; right: 23px; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.hero-textlink:hover { color: var(--blue); }
.hero-textlink:hover svg { transform: translateX(4px); }
.hero-textlink:hover::after { transform: scaleX(1); }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line); }
.hero-proof li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-proof li svg { width: 15px; height: 15px; color: var(--green-deep); flex: none; }

/* hero product showcase — floating 3D card */
.hero-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.hero-glow { position: absolute; z-index: 0; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(1,99,217,.26), rgba(1,99,217,.06) 46%, transparent 68%); filter: blur(4px); animation: pulse 7s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
.hero-rings { position: absolute; z-index: 0; width: 460px; height: 460px; }
.hero-rings::before, .hero-rings::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--line-strong); opacity: .6; animation: spin 48s linear infinite; }
.hero-rings::after { inset: 60px; border-color: rgba(1,99,217,.32); animation-duration: 34s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.showcase-3d { position: relative; z-index: 2; width: min(430px, 88%); }
.showcase { position: relative; border-radius: 26px; padding: 15px; transform-style: preserve-3d; animation: floaty 6.5s ease-in-out infinite;
  background: linear-gradient(155deg, #ffffff 0%, #f1f6ff 52%, #e4edfc 100%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 54px 96px -34px rgba(14,28,51,.5), 0 20px 44px -22px rgba(1,99,217,.42), inset 0 1px 0 rgba(255,255,255,.95); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.showcase-inner { position: relative; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(14,28,51,.05); transform: translateZ(30px); }
.showcase-inner img { width: 100%; display: block; }
.showcase-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.4), transparent 42%); pointer-events: none; }
.showcase-floor { position: absolute; z-index: 1; bottom: 3%; width: 58%; height: 42px; border-radius: 50%; background: radial-gradient(ellipse, rgba(14,28,51,.3), transparent 70%); filter: blur(13px); }

.hero-chip { position: absolute; z-index: 5; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.85); border-radius: 14px; padding: 12px 16px; font-size: 13px; display: flex; align-items: center; gap: 11px; box-shadow: 0 24px 48px -18px rgba(14,28,51,.45); }
.hero-chip .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); flex: none; }
.hero-chip .ic svg { width: 18px; height: 18px; }
.hero-chip b { font-family: var(--font-display); font-size: 14px; display: block; white-space: nowrap; }
.hero-chip span { color: var(--muted); font-size: 12px; }
.hero-chip.c1 { top: 13%; left: 1%; animation: floaty 5s ease-in-out infinite; }
.hero-chip.c2 { bottom: 11%; right: 1%; animation: floaty 5.6s ease-in-out .4s infinite; }

/* ---------- category rail ---------- */
.cat-rail { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(8px); position: relative; z-index: 20; }
.cat-rail-in { display: flex; gap: 28px; overflow-x: auto; padding: 13px 0; scrollbar-width: none; }
.cat-rail-in::-webkit-scrollbar { display: none; }
.cat-rail-in a { font-size: 12.5px; font-weight: 500; letter-spacing: .01em; color: var(--muted); white-space: nowrap; transition: color .15s; }
.cat-rail-in a:hover { color: var(--blue); }

/* ---------- interactive spin hero (copy left, big vial right) ---------- */
.hero4 { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  min-height: calc(100vh - 124px); display: flex; align-items: center;
  background: linear-gradient(115deg, #f4f8fd 0%, #eaf1fb 55%, #e2ecf7 100%); }
.hero4-vial { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); height: 116%; width: auto; z-index: 1; cursor: ew-resize; user-select: none; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 17%, #000 74%, transparent 99%);
  mask-image: linear-gradient(to right, transparent 0%, #000 17%, #000 74%, transparent 99%); }
.hero4-in { position: relative; z-index: 2; width: 100%; }
.hero4-left { max-width: 500px; }
.hero4-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .005em; margin-bottom: 22px; }
.hero4-kicker::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.hero4 h1 { font-family: var(--font-body); font-size: clamp(33px, 3.3vw, 49px); font-weight: 600; letter-spacing: -.032em; line-height: 1.07; }
.hero4 h1 .d { color: #5b6980; font-weight: 500; }
.hero4 h1 .b { color: var(--foreground); font-weight: 600; }
.hero4-sub { font-size: 15.5px; line-height: 1.62; color: var(--muted); max-width: 376px; margin: 22px 0 32px; }
.hero4-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero4-cta .btn { padding: 7px 7px 7px 24px; gap: 16px; font-size: 15px; }
.hero4-cta .btn .label { line-height: 1; }
.hero4-meta { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 424px; }
.hero4-trust { font-size: 12px; color: var(--muted); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.hero4-trust .stars { color: #f5a623; letter-spacing: 1px; font-size: 11.5px; }
.hero4-stats { display: flex; gap: 34px; }
.hero4-stats b { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; display: block; color: var(--foreground); }
.hero4-stats span { font-size: 11.5px; color: var(--muted); }
.hero4-hint { position: absolute; z-index: 3; right: 26px; bottom: 22px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: .6; }
.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .32em; color: var(--muted); }
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--line-strong), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; top: -12px; left: 0; width: 1px; height: 12px; background: var(--blue); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { top: -12px; } 60%,100% { top: 40px; } }

/* ---------- stats strip ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 32px 26px; border-left: 1px solid var(--line); text-align: center; }
.stat:first-child { border-left: 0; }
.stat .n { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(120deg, var(--foreground), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- marquee ---------- */
.marquee { background: var(--foreground); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .02em; padding: 0 34px; display: inline-flex; align-items: center; gap: 34px; color: #dbe6f5; }
.marquee-track span::after { content: "◆"; color: var(--blue-bright); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.sec-head .lead { color: var(--muted); margin-top: 14px; max-width: 560px; font-size: 17px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- featured compound spotlight ---------- */
.spotlight { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; inset: 0; background: radial-gradient(720px 480px at 78% 20%, rgba(1,99,217,.34), transparent 60%); }
.spotlight-grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.spotlight-media { position: relative; display: flex; justify-content: center; }
.spotlight-media .halo { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(1,99,217,.4), transparent 66%); filter: blur(10px); }
.spotlight-media img { position: relative; z-index: 2; width: 88%; max-width: 440px; filter: drop-shadow(0 44px 70px rgba(0,0,0,.5)); transform: translate(var(--mx,0), var(--my,0)); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.spotlight h2 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; }
.spotlight .tagline { color: var(--blue-bright); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.spotlight .sub { color: #a7bcd8; font-size: 14px; margin-top: 4px; }
.spotlight p.desc { color: #c2d2e8; font-size: 16.5px; margin: 20px 0 26px; max-width: 520px; }
.spec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.spec-cardx { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 16px 18px; }
.spec-cardx .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.spec-cardx .t svg { width: 17px; height: 17px; color: var(--blue-bright); }
.spec-cardx .d { color: #93a9c6; font-size: 13px; margin-top: 6px; }
.spotlight .price-row { display: flex; align-items: center; gap: 18px; }
.spotlight .price-row .price { font-family: var(--font-display); font-size: 28px; font-weight: 800; }

/* ---------- product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1); }
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card-media { position: relative; height: 220px; background: linear-gradient(170deg, #fbfcff, #eef4fc); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.card-media .pimg { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform: translateZ(38px) translate(var(--mx,0), var(--my,0)); transition: transform .3s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 18px 22px rgba(14,28,51,.14)); }
.flag { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.flag--best { color: #fff; background: var(--foreground); }
.flag--new { color: #fff; background: var(--blue); }
.purity-badge { position: absolute; top: 12px; right: 12px; z-index: 3; font-size: 11px; font-weight: 600; color: var(--green-deep); background: rgba(255,255,255,.85); backdrop-filter: blur(4px); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.view-hint { position: absolute; bottom: 12px; right: 12px; z-index: 3; font-size: 12.5px; font-weight: 600; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.card:hover .view-hint { opacity: 1; transform: translateX(0); }
.card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card .cat { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.card h3 { font-size: 18px; font-weight: 700; margin: 7px 0 0; }
.card .foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; gap: 12px; }
.card .price { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.card .dose { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card .add { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--blue); display: grid; place-items: center; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.card .add svg { width: 19px; height: 19px; }
.card .add:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; scrollbar-width: none; cursor: grab; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-track > .card { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--foreground); display: grid; place-items: center; font-size: 18px; transition: background .15s, color .15s, border-color .15s; }
.carousel-nav button:hover { background: var(--foreground); color: #fff; border-color: var(--foreground); }

/* ---------- category tiles ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-1); }
.cat-tile:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.cat-tile-img { height: 150px; background: linear-gradient(170deg, #fbfcff, #e9f1fc); display: flex; align-items: center; justify-content: center; padding: 14px; }
.cat-tile-img img { max-height: 100%; width: auto; object-fit: contain; transform: translateZ(26px) translate(var(--mx,0), var(--my,0)); transition: transform .3s; filter: drop-shadow(0 14px 18px rgba(14,28,51,.16)); }
.cat-tile-body { padding: 18px; position: relative; }
.cat-tile-count { font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: .04em; }
.cat-tile-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-top: 6px; max-width: 85%; line-height: 1.2; }
.cat-tile-arrow { position: absolute; right: 18px; bottom: 18px; color: var(--muted); font-size: 18px; transition: transform .18s, color .18s; }
.cat-tile:hover .cat-tile-arrow { transform: translateX(4px); color: var(--blue); }

/* ---------- why-xs feature cards ---------- */
.why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-1); }
.feature .fic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); margin-bottom: 18px; }
.feature .fic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--muted); margin-top: 9px; }

/* ---------- testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: #fff; box-shadow: var(--shadow-1); }
.tst .stars { color: #f5a623; letter-spacing: 2px; font-size: 14px; }
.tst p { font-size: 15.5px; margin: 14px 0 20px; color: var(--foreground); }
.tst .who { display: flex; align-items: center; gap: 12px; }
.tst .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.tst .who .nm { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.tst .who .rl { font-size: 12.5px; color: var(--muted); }

/* ---------- page head (shop) ---------- */
.page-head { border-bottom: 1px solid var(--line); background:
    radial-gradient(700px 340px at 90% -30%, rgba(1,99,217,.10), transparent 60%), var(--surface); }
.page-head-inner { padding: 60px 0; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.035em; margin-top: 14px; }
.page-head p { color: var(--muted); margin-top: 14px; max-width: 580px; font-size: 17px; }

/* ---------- category chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: border-color .15s, color .15s, background .15s; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: var(--line-strong); color: var(--foreground); }
.chip.active { background: var(--foreground); border-color: var(--foreground); color: #fff; }
.chip .fc { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.shop-bar .count { color: var(--muted); font-size: 14px; }
.shop-bar .count b { color: var(--foreground); font-weight: 700; }
.assure { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.assure svg { width: 15px; height: 15px; color: var(--green-deep); }

/* ---------- CTA ---------- */
.cta { background: var(--foreground); border-radius: var(--r-xl); padding: 64px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(1,99,217,.4), transparent 60%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: #fff; }
.cta p { color: #aec2dd; margin: 14px auto 28px; max-width: 500px; }

/* ---------- cinematic animated brand band ---------- */
.btn-lg { padding: 15px 30px; font-size: 16px; }
.brandband {
  position: relative; overflow: hidden; min-height: 560px; display: flex;
  align-items: center; justify-content: center; text-align: center; color: #fff;
  background: #0a0c22;
}
.brandband-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* legibility scrim + edge vignette blending into the page */
.brandband-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1100px 420px at 50% 50%, rgba(10,12,34,.62), rgba(10,12,34,.28) 55%, transparent 78%),
    linear-gradient(180deg, rgba(10,12,34,.55) 0%, rgba(10,12,34,.15) 26%, rgba(10,12,34,.2) 74%, rgba(10,12,34,.72) 100%);
}
.brandband canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.brandband-inner { position: relative; z-index: 3; padding: 90px 24px; max-width: 720px; }
.brandband-logo { height: 66px; width: auto; margin: 0 auto 26px; filter: drop-shadow(0 6px 26px rgba(0,0,0,.5)); }
.brandband p { color: #d5def1; font-size: 18.5px; max-width: 520px; margin: 0 auto 30px; }

/* ---------- newsletter + footer ---------- */
.footer { background: var(--ink-900); color: #93a6c0; padding: 0 0 32px; }
.newsletter { border-bottom: 1px solid #17273e; padding: 56px 0; }
.newsletter-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h3 { color: #fff; font-size: 26px; font-weight: 800; }
.newsletter p { color: #8ba0bd; margin-top: 8px; font-size: 15px; }
.nl-form { display: flex; gap: 10px; }
.nl-form input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid #22344f; border-radius: var(--r-sm); padding: 13px 16px; color: #fff; font-family: inherit; font-size: 15px; }
.nl-form input::placeholder { color: #6d84a3; }
.nl-form input:focus { outline: none; border-color: var(--blue); }
.footer-main { padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer .about { font-size: 14px; color: #7a90ac; max-width: 300px; }
.footer h5 { font-family: var(--font-display); color: #fff; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer a { font-size: 14px; color: #93a6c0; transition: color .15s; }
.footer a:hover { color: #fff; }
.disclaimer { border: 1px solid #17273e; background: #0a1424; border-radius: var(--r); padding: 18px 20px; font-size: 12.5px; line-height: 1.65; color: #7a90ac; margin-top: 44px; }
.disclaimer strong { color: #b9c8dd; }
.footer-bottom { border-top: 1px solid #17273e; margin-top: 28px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #63799a; }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(14,28,51,.44); z-index: 60; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 412px; max-width: 92vw; background: #fff; z-index: 70; transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-size: 18px; font-weight: 700; }
.drawer-close { color: var(--muted); display: grid; place-items: center; padding: 4px; }
.drawer-close svg { width: 22px; height: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-mini { width: 58px; height: 66px; flex: none; background: linear-gradient(170deg,#fbfcff,#eef4fc); border: 1px solid var(--line); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 5px; }
.cart-mini img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info .n { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.cart-item .info .d { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty button { width: 26px; height: 26px; color: var(--muted); font-size: 15px; font-weight: 600; transition: background .15s; }
.qty button:hover { background: var(--surface); color: var(--foreground); }
.qty span { min-width: 30px; text-align: center; font-size: 13.5px; font-weight: 600; }
.cart-item .rt { text-align: right; }
.cart-item .rt .p { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.cart-item .rm { color: var(--muted); font-size: 12px; margin-top: 10px; transition: color .15s; }
.cart-item .rm:hover { color: var(--red); }
.cart-empty { text-align: center; color: var(--muted); padding: 70px 20px; }
.cart-empty svg { width: 40px; height: 40px; color: var(--line-strong); margin: 0 auto 16px; }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.drawer-foot .row.total { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--foreground); margin: 12px 0 16px; }
.ship-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ship-note svg { width: 14px; height: 14px; color: var(--green-deep); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(140px); background: var(--foreground); color: #fff; padding: 13px 22px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; z-index: 90; transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-3); display: flex; align-items: center; gap: 9px; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 17px; height: 17px; color: var(--green); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-stage { min-height: 360px; }
  .spotlight-grid { grid-template-columns: 1fr; gap: 40px; }
  .spotlight-media { order: -1; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .tst-grid { grid-template-columns: 1fr; }
  .newsletter-in { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; box-shadow: var(--shadow-2); }
  .menu-toggle { display: grid; }
  .spec-cards { grid-template-columns: 1fr; }
  .cta { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .product-grid, .product-grid.cols-3, .category-grid, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-media { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .tilt, .spotlight-media img, .card-media .pimg, .cat-tile-img img, .hero2-vial { transition: none !important; transform: none !important; }
  .marquee-track, .hero-rings::before, .hero-rings::after, .hero-glow, .showcase, .hero-chip, .scroll-cue i::after, .btn-arrow svg { animation: none !important; }
}

/* ===== Checkout form (in-drawer) ===== */
.co-form { padding: 20px 24px; display: grid; gap: 12px; }
.co-form h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.co-back { font: 600 13px var(--font-display); color: var(--muted); text-align: left; padding: 0; }
.co-back:hover { color: var(--blue); }
.co-form label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.co-form label span { font-weight: 400; color: #7c8aa0; }
.co-form input {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font: 400 14px var(--font-body); color: var(--foreground);
}
.co-form input:focus { outline: 2px solid var(--blue); background: #fff; }
.co-row { display: grid; grid-template-columns: 1.6fr 0.7fr 1fr; gap: 8px; }
.co-total {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 0 2px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.co-total b { font: 700 18px var(--font-display); color: var(--foreground); }
.co-err { color: var(--red); font-size: 13px; min-height: 4px; }
.co-note { font-size: 12px; color: #7c8aa0; text-align: center; }
.co-done { padding: 48px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.co-done svg { width: 44px; height: 44px; color: var(--green-deep); background: #e3f5ea; border-radius: 50%; padding: 10px; }
.co-done h4 { font-family: var(--font-display); font-size: 19px; }
.co-done p { font-size: 14px; color: var(--muted); }

/* ---------- product detail page ---------- */
.pdp-wrap { padding-top: 26px; padding-bottom: 44px; }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: var(--foreground); }
.crumbs span { opacity: .45; }
.crumbs b { color: var(--foreground); font-weight: 600; }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.pdp-media { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(170deg, #fbfcff, #eef4fc); display: flex; align-items: center; justify-content: center; padding: 36px; min-height: 460px; }
.pdp-media img { max-width: 100%; max-height: 470px; width: auto; object-fit: contain; filter: drop-shadow(0 26px 34px rgba(14,28,51,.16)); }

.pdp-cat { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.pdp-info h1 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 10px 0 16px; }
.pdp-price { font-family: var(--font-display); font-size: 27px; font-weight: 800; color: var(--foreground); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pdp-sub { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pdp-blurb { font-size: 16px; line-height: 1.62; color: #35455e; margin: 20px 0 28px; max-width: 46ch; }

.pdp-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.qtybox { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; height: 48px; }
.qtybox button { width: 42px; height: 100%; font-size: 18px; color: var(--muted); transition: background .15s, color .15s; }
.qtybox button:hover { background: var(--surface); color: var(--foreground); }
.qtybox input { width: 44px; height: 100%; text-align: center; border: 0; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--foreground); -moz-appearance: textfield; }
.qtybox input::-webkit-outer-spin-button, .qtybox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-add { padding: 7px 7px 7px 24px; gap: 16px; }

.pdp-assure { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0 0 30px; }
.pdp-assure li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #35455e; }
.pdp-assure svg { width: 16px; height: 16px; color: var(--green-deep); flex: none; }

.pdp-spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); margin-bottom: 24px; }
.pdp-spec th, .pdp-spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.pdp-spec th { color: var(--muted); font-weight: 500; width: 44%; }
.pdp-spec td { color: var(--foreground); font-weight: 500; }

.pdp-notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.pdp-notice strong { color: var(--foreground); }

.pdp-missing { text-align: center; padding: 90px 20px; }
.pdp-missing h1 { font-size: 30px; margin-bottom: 10px; }
.pdp-missing p { color: var(--muted); margin-bottom: 22px; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-media { position: static; min-height: 340px; padding: 26px; }
  .pdp-media img { max-height: 360px; }
}

/* ---------- Stripe embedded checkout modal ---------- */
.stripe-modal { position: fixed; inset: 0; z-index: 100; background: rgba(14,28,51,.5); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; }
.stripe-modal.open { display: flex; }
.stripe-modal-card { position: relative; background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 640px; box-shadow: var(--shadow-3); padding: 22px; }
.stripe-modal-close { position: absolute; top: 10px; right: 14px; font-size: 26px; line-height: 1; color: var(--muted); z-index: 2; }
.stripe-modal-close:hover { color: var(--foreground); }
.stripe-modal-mount { min-height: 420px; }
.stripe-status { padding: 90px 20px; text-align: center; color: var(--muted); font-size: 15px; }
.stripe-error { color: var(--red); }

/* checkout return page */
.return-box { text-align: center; max-width: 460px; }
.return-box h1 { font-size: 28px; margin: 18px 0 10px; }
.return-box .btn { margin-top: 22px; }
.return-check { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: #e3f5ea; color: var(--green-deep); display: grid; place-items: center; }
.return-check svg { width: 30px; height: 30px; }
.return-spin { width: 40px; height: 40px; margin: 0 auto; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: retspin .8s linear infinite; }
@keyframes retspin { to { transform: rotate(360deg); } }

/* ---------- custom (Elements) checkout in the drawer ---------- */
.co-pay { margin: 4px 0 6px; min-height: 44px; }
.co-pay-loading { padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--line-strong); border-radius: 9px; }
.co-summary { margin: 6px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.co-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.co-line-total { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--foreground); margin-top: 4px; }
.co-note svg { color: var(--green-deep); }

/* ---------- dedicated checkout page ---------- */
.ck-body { background: var(--surface); }
.ck-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.ck-header-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.ck-header .brand img { height: 28px; }
.ck-secure-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--green-deep); }
.ck-secure-tag svg { width: 16px; height: 16px; }
.ck { padding: 26px 24px 70px; }
.ck-back { display: inline-block; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.ck-back:hover { color: var(--foreground); }
.ck-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; max-width: 1040px; margin: 0 auto; }

.ck-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-1); }
.ck-block { margin-bottom: 26px; }
.ck-block:last-of-type { margin-bottom: 14px; }
.ck-block h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.ck-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 13px; }
.ck-opt { font-weight: 400; color: var(--muted); }
.ck-label input { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 9px; font-family: var(--font-body); font-size: 15px; color: var(--foreground); background: #fff; transition: border-color .15s, box-shadow .15s; }
.ck-label input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,99,217,.12); }
.ck-row3 { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 12px; }
.ck-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ck-stripe-field { margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ck-stripe-field.StripeElement--focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,99,217,.12); }
.ck-stripe-field.StripeElement--invalid { border-color: var(--red); }
.ck-pay-loading { padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--line-strong); border-radius: 9px; }
.ck-manual-note { padding: 14px 16px; background: var(--surface-2); border-radius: 9px; font-size: 13px; color: var(--muted); }

.ck-err { color: var(--red); font-size: 13.5px; margin-bottom: 12px; min-height: 1px; }
.ck-secure-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ck-secure-note svg { color: var(--green-deep); }

.ck-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); position: sticky; top: 90px; }
.ck-summary h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.ck-items { display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ck-item { display: flex; align-items: center; gap: 13px; }
.ck-thumb { position: relative; width: 52px; height: 58px; flex: none; background: linear-gradient(170deg,#fbfcff,#eef4fc); border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 5px; }
.ck-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ck-qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--foreground); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.ck-it-info { flex: 1; min-width: 0; }
.ck-it-info .n { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.ck-it-info .d { font-size: 12px; color: var(--muted); margin-top: 1px; }
.ck-it-price { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
/* Per-line quantity stepper + remove, inside the order summary */
.ck-it-ctl { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.ck-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.ck-stepper button { width: 26px; height: 26px; border: 0; background: transparent; color: var(--foreground); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ck-stepper button:hover:not(:disabled) { background: var(--surface-2, #f1f5fb); }
.ck-stepper button:disabled { opacity: .45; cursor: default; }
.ck-stepper span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-rm { border: 0; background: transparent; padding: 0; font: inherit; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ck-rm:hover:not(:disabled) { color: var(--danger, #d33); }
.ck-rm:disabled { opacity: .45; cursor: default; }

/* Discount code box, between the items and the totals */
.ck-promo { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ck-promo label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.ck-promo-row { display: flex; gap: 8px; }
.ck-promo-row input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--foreground); }
.ck-promo-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1,99,217,.13); }
.ck-promo-row .btn { flex: none; padding: 10px 16px; font-size: 13.5px; }
.ck-promo-msg { font-size: 12.5px; margin-top: 7px; min-height: 1em; color: var(--muted); }
.ck-promo-msg.is-ok { color: var(--green-deep); font-weight: 600; }
.ck-promo-msg.is-err { color: var(--danger, #d33); }

.ck-totals { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ck-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 9px; }
.ck-line-disc, .ck-line-disc span { color: var(--green-deep); font-weight: 600; }
.ck-line-total { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--foreground); margin: 6px 0 0; }
.ck-assure { padding: 16px 0 4px; display: flex; flex-direction: column; gap: 9px; }
.ck-assure div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ck-assure svg { width: 14px; height: 14px; color: var(--green-deep); flex: none; }
.ck-disc { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin-top: 12px; }

.ck-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; }
.ck-empty h2 { font-size: 26px; margin-bottom: 8px; }
.ck-empty p { color: var(--muted); margin-bottom: 22px; }
.ck-done { grid-column: 1 / -1; text-align: center; padding: 70px 20px; max-width: 460px; margin: 0 auto; }
.ck-done-check { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: #e3f5ea; color: var(--green-deep); display: grid; place-items: center; }
.ck-done-check svg { width: 30px; height: 30px; }
.ck-done h1 { font-size: 28px; margin-bottom: 10px; }
.ck-done p { color: var(--muted); }
.ck-done .btn { margin-top: 22px; }

@media (max-width: 820px) {
  .ck-grid { grid-template-columns: 1fr; gap: 24px; }
  .ck-summary { position: static; order: -1; }
}

/* ===================================================================
   Legal pages (terms.html) + FDA disclaimer block
   =================================================================== */
.legal-wrap { display: grid; grid-template-columns: 232px 1fr; gap: 48px; align-items: start; }

/* sticky in-page nav */
.legal-toc { position: sticky; top: 96px; }
.legal-toc h4 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc ul { list-style: none; display: grid; gap: 2px; }
.legal-toc a { display: block; font-size: 13.5px; color: var(--muted); padding: 6px 12px; border-left: 2px solid var(--line); transition: color .15s, border-color .15s, background .15s; }
.legal-toc a:hover { color: var(--blue); border-left-color: var(--blue); background: var(--surface); }

.legal { max-width: 760px; }
.legal-updated { font-size: 13px; color: var(--muted); padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 22px; letter-spacing: -.025em; margin: 40px 0 14px; scroll-margin-top: 100px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 14px; }
.legal p strong { color: var(--foreground); font-weight: 600; }
.legal a { color: var(--blue); font-weight: 500; }
.legal a:hover { text-decoration: underline; }

/* FDA block — dark card so it reads as the legal capstone of the page */
.fda-block { background: var(--foreground); border-radius: var(--r-lg); padding: 34px 36px; margin-top: 54px; scroll-margin-top: 100px; }
.fda-block h2 { color: #fff; margin: 0 0 18px; font-size: 20px; }
.fda-block p { color: #93a8c4; font-size: 14px; line-height: 1.7; }
.fda-block p:last-child { margin-bottom: 0; }
.fda-block .caps { font-size: 12.5px; letter-spacing: .01em; line-height: 1.75; color: #7f95b3; }

/* compact version that sits at the end of every page's footer */
.fda-foot { border: 1px solid #17273e; background: #0a1424; border-radius: var(--r); padding: 18px 20px; margin-top: 14px; }
.fda-foot h6 { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b9c8dd; margin-bottom: 10px; }
.fda-foot p { font-size: 11.5px; line-height: 1.65; color: #6b81a0; margin-bottom: 9px; }
.fda-foot p:last-child { margin-bottom: 0; }
.fda-foot .caps { font-size: 10.5px; line-height: 1.7; color: #5d7291; }
.footer-bottom a { color: #8fa6c4; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
  .legal-toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-toc a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; }
  .fda-block { padding: 26px 22px; }
}

/* ---------- checkout consent gate (Attention panel) ---------- */
.ck-attention { border: 1px solid #f8ccd2; border-radius: var(--r); overflow: hidden; margin: 4px 0 20px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ck-att-head { display: flex; align-items: center; gap: 10px; background: #fdecee; color: var(--red); font-family: var(--font-display); font-weight: 700; font-size: 15.5px; padding: 13px 18px; }
.ck-att-head svg { width: 19px; height: 19px; flex: none; }
.ck-att-body { padding: 18px; }
.ck-att-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ck-att-check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.ck-att-check input:hover { border-color: var(--blue); }
.ck-att-check input:checked { background: var(--blue); border-color: var(--blue); }
.ck-att-check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.ck-att-check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ck-att-check span { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.ck-att-check b { color: var(--foreground); font-weight: 600; }
.ck-att-check a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.ck-req { color: var(--red); font-style: normal; font-weight: 700; }
.ck-att-fda { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--foreground); }
.ck-att-fda b { font-weight: 700; }

/* unmet-consent state, set by checkout-consent.js on submit */
.ck-attention.is-missing { border-color: var(--red); box-shadow: 0 0 0 3px rgba(251,44,54,.12); }
.ck-attention.is-missing .ck-att-check input { border-color: var(--red); }

/* disabled buttons — used by the checkout consent gate before the box is ticked */
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover, .btn[disabled]:hover { transform: none; background: var(--blue); }

/* express wallets row (Apple Pay / Google Pay / Link) on checkout */
.ck-express-wrap { margin-bottom: 18px; }
#ckExpress { margin-bottom: 4px; }
.ck-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 14px 0 2px; }
.ck-or::before, .ck-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- product page: vial size variants ---------- */
.pdp-sizes { margin: 22px 0 24px; }
.pdp-sizes-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pdp-sizes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp-size { border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; padding: 12px 8px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pdp-size:hover { border-color: var(--blue); }
.pdp-size.active { border-color: var(--blue); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(1,99,217,.1); }
.pdp-size .ps-dose { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--foreground); }
.pdp-size .ps-price { font-size: 13px; color: var(--muted); }
.pdp-size .ps-save { font-size: 10px; font-weight: 700; color: var(--green-deep); background: #e3f5ea; border-radius: 999px; padding: 2px 7px; }
.pdp-size .ps-save.ps-base { color: var(--muted); background: var(--surface); font-weight: 600; }
@media (max-width: 480px) { .pdp-sizes-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================================================================
   Mobile input sizing
   iOS Safari zooms the viewport whenever a focused input renders below
   16px, which on checkout means the page jumps on every field tap and
   never zooms back out. Bump inputs to 16px on small screens; the
   desktop sizing above is unaffected.
   =================================================================== */
@media (max-width: 720px) {
  input, select, textarea,
  .ck-label input, .ck-promo-row input, .nl-form input, .qtybox input {
    font-size: 16px;
  }
}

/* ===================================================================
   Catalog search
   =================================================================== */
.search-bar { margin: 0 0 18px; }
.search-field { position: relative; display: flex; align-items: center; max-width: 520px; }
.search-field > svg { position: absolute; left: 15px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; padding: 13px 42px 13px 44px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--foreground);
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none; appearance: none;
}
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field input:focus { outline: none; border-color: var(--brand, #0163d9); box-shadow: 0 0 0 3px rgba(1,99,217,.13); }
.search-clear {
  position: absolute; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: var(--line); color: var(--foreground); font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.search-clear:hover { background: var(--line-strong, #cfd9e8); }

.shop-empty { grid-column: 1 / -1; text-align: center; padding: 56px 22px; }
.shop-empty h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.shop-empty p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* ===================================================================
   Mobile typography
   Every heading used clamp() with a small vw term (3.3-4.6vw), so on a
   phone the preferred size fell far below the floor and the heading
   locked at its desktop minimum - 33-34px on a 390px screen. Raising the
   vw coefficient lets them actually scale down; the max is unchanged so
   desktop looks identical.
   =================================================================== */
@media (max-width: 720px) {
  .hero4 h1     { font-size: clamp(27px, 7.4vw, 49px); line-height: 1.14; letter-spacing: -.02em; }
  .hero h1      { font-size: clamp(32px, 9vw, 64px); line-height: 1.06; }
  .sec-head h2  { font-size: clamp(24px, 6.6vw, 46px); line-height: 1.18; }
  .spotlight h2 { font-size: clamp(26px, 7vw, 54px); line-height: 1.16; }
  .page-head h1 { font-size: clamp(27px, 7.4vw, 52px); line-height: 1.14; }
  .cta h2       { font-size: clamp(23px, 6.2vw, 40px); line-height: 1.2; }
  .pdp-info h1  { font-size: clamp(25px, 6.8vw, 42px); line-height: 1.16; }

  .hero4-sub, .hero-sub { font-size: 15px; line-height: 1.6; max-width: none; }
  .page-head p { font-size: 14.5px; line-height: 1.6; }
}

/* ===================================================================
   Mobile hero layout
   .hero4 had no responsive rules at all: the vial video is absolutely
   positioned at 116% height, so on a phone it sat on top of the
   headline. Drop it behind the text at low opacity and let the copy
   take the full width.
   =================================================================== */
@media (max-width: 720px) {
  .hero4 { padding: 46px 0 40px; }
  .hero4-vial { right: -18%; height: 78%; opacity: .16; filter: saturate(.8); }
  .hero4-left { max-width: none; }
  .hero4-kicker { font-size: 11.5px; }
  .hero4-cta { gap: 10px; }
  .hero4-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero4-meta { margin-top: 26px; padding-top: 18px; max-width: none; }
  .hero4-stats { gap: 0; justify-content: space-between; }
  .hero4-hint { display: none; }
}

@media (max-width: 480px) {
  .search-field input { padding: 12px 40px 12px 42px; }
  .hero4-stats b { font-size: 17px; }
  .hero4-stats span { font-size: 11px; }
}

/* ===================================================================
   Header search
   Compact field living in .nav-actions. On desktop it sits left of the
   Browse button; on mobile it drops to a full-width row under the logo
   so it never crowds the cart and menu icons.
   =================================================================== */
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search > svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.nav-search input {
  width: 190px; padding: 8px 30px 8px 34px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--foreground);
  transition: width .2s, border-color .18s, box-shadow .18s; -webkit-appearance: none; appearance: none;
}
.nav-search input::-webkit-search-cancel-button { display: none; }
.nav-search input:focus { outline: none; width: 230px; border-color: var(--brand, #0163d9); box-shadow: 0 0 0 3px rgba(1,99,217,.12); }
.nav-search .search-clear {
  position: absolute; right: 7px; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: var(--line); color: var(--foreground); font-size: 14px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.nav-search .search-clear:hover { background: var(--line-strong, #cfd9e8); }

@media (max-width: 900px) {
  .nav-search input { width: 150px; }
  .nav-search input:focus { width: 168px; }
}
@media (max-width: 720px) {
  /* Full-width search row beneath the logo; keep it visible even though the
     link list collapses into the hamburger menu. */
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav-search { order: 3; flex: 1 1 100%; }
  .nav-search input, .nav-search input:focus { width: 100%; font-size: 16px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-primary { display: none; } /* the search + hamburger cover it */
}
