/* ==========================================================================
   Saiyan Peptides — design tokens, reset, type, buttons, forms, utilities
   Signature: black + Saiyan Gold, Oxanium headings, Poppins body.
   ========================================================================== */
:root {
	/* Saiyan Peptides brand tokens (from the Figma file / brand guide) */
	--ink: #000000;          /* page background */
	--abyss: #0A0A0A;
	--panel: #161616;        /* cards, rows */
	--panel-2: #242424;
	--deep-panel: #060706;   /* COA / deep panels */
	--line: rgba(250, 199, 26, .14);
	--line-2: rgba(250, 199, 26, .30);
	--line-n: #505050;       /* neutral control border */
	--text: #FFFFFF;
	--muted: #B3B3B3;
	--dim: #8A8A8A;
	--gold: #FAC71A;         /* Saiyan Gold */
	--gold-light: #FBC81B;
	--gold-deep: #CE8201;
	--gold-bright: #FFD12B;
	--bronze: #AD6900;
	--bronze-dark: #80510B;
	--track: #3F3F3F;
	--cobalt: #CE8201;       /* legacy alias: accent fill */
	--flare: #FAC71A;        /* legacy alias: accent line/text */
	--deep: #80510B;
	--navy: #0A0A0A;
	--chrome: #E9E9E9;
	--on-gold: #000000;      /* text on any gold surface */
	--ok: #18DA37;
	--warn: #FFB408;
	--bad: #FF6B7A;
	--grad: linear-gradient(90deg, #FBC81B 0%, #CE8201 100%);
	--grad-rev: linear-gradient(90deg, #CE8201 0%, #FBC81B 100%);
	--grad-panel: linear-gradient(90deg, #F9C61A 0%, #D08502 100%);
	--grad-btn: linear-gradient(90deg, #FBC81B 0%, #CE8201 100%);
	--grad-line: linear-gradient(90deg, transparent, rgba(250, 199, 26, .7), transparent);
	--r-xs: 6px;
	--r-sm: 14px;
	--r: 14px;
	--r-lg: 20px;
	--r-xl: 24px;
	--font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Oxanium", "Poppins", ui-sans-serif, system-ui, sans-serif;
	--wrap: 1350px;
	--gut: clamp(16px, 4vw, 40px);
	--sec: clamp(64px, 9vw, 120px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
	--glow: 0 0 10px rgba(255, 184, 0, .53);
	--glow-lg: 0 0 29px #FAC71A;
	--header-h: 72px;
	color-scheme: dark;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
	margin: 0;
	overflow-x: clip; /* safety net: nothing can ever make phones scroll sideways (clip keeps sticky header working) */
	background: var(--ink);
	color: var(--text);
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
:where(dl, dd, figure) { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: 0; }
h1 { font-size: 56px; line-height: 1.1; text-transform: uppercase; }
h2 { font-size: 48px; line-height: 1.1; text-transform: uppercase; }
h3 { font-size: 32px; line-height: 1.2; }
h4 { font-size: 28px; line-height: 1.25; }
h5 { font-size: 24px; line-height: 1.3; }
h6 { font-size: 20px; line-height: 1.3; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 1023px) { body { font-size: 17px; } h1 { font-size: 44px; } h2 { font-size: 38px; } h3 { font-size: 28px; } h4 { font-size: 24px; } h5 { font-size: 22px; } h6 { font-size: 18px; } }
@media (max-width: 767px) { body { font-size: 16px; } h1 { font-size: 34px; } h2 { font-size: 30px; } h3 { font-size: 24px; } h4 { font-size: 22px; } h5 { font-size: 20px; } }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: #FAC71A; color: #000; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sp-skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--gold); color: #000; padding: 10px 16px; border-radius: var(--r-sm); }
.sp-skip:focus { top: 12px; }
.sp-hp { position: absolute !important; left: -9999px !important; }

/* Layout primitives */
.sp-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.sp-section { padding-block: var(--sec); position: relative; }
.sp-section--tight { padding-block: calc(var(--sec) * .55); }
.sp-section--page { padding-top: clamp(32px, 5vw, 56px); }
.sp-grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.sp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-center { text-align: center; margin-top: 36px; }
.sp-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (max-width: 1100px) { .sp-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sp-grid--4, .sp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-two { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sp-grid--3 { grid-template-columns: 1fr; } .sp-row2 { grid-template-columns: 1fr; } }

/* Type */
.sp-h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; text-transform: uppercase; }
.sp-h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.sp-lead { color: #E5E5E5; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.5; max-width: 60ch; margin-top: 14px; }
.sp-muted { color: var(--muted); }
.sp-link { display: inline-flex; align-items: center; gap: 8px; color: var(--flare); font-weight: 560; }
.sp-link .sp-i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sp-link:hover .sp-i { transform: translateX(4px); }
.sp-sechead { margin-bottom: clamp(28px, 4vw, 44px); }
.sp-sechead--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sp-price { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.sp-price del { color: var(--dim); font-weight: 400; margin-right: 6px; font-size: .86em; }
.sp-price ins { text-decoration: none; color: var(--gold); }

/* Icons */
.sp-i { flex: none; width: 20px; height: 20px; }

/* Buttons — Saiyan: 60px, 14px radius, Poppins 500 18px, gold gradient + black text */
.sp-btn {
	--bh: 60px;
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: var(--bh); padding: 0 40px; border-radius: var(--r-sm);
	font-family: var(--font); font-weight: 500; font-size: 18px; line-height: 1; white-space: nowrap;
	border: 2px solid transparent; position: relative; isolation: isolate; text-transform: none;
	transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s ease, border-color .2s, color .2s;
}
.sp-btn .sp-i { width: 20px; height: 20px; }
.sp-btn:active { transform: translateY(1px); }
.sp-btn[disabled], .sp-btn.is-loading { opacity: .6; pointer-events: none; }
.sp-btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spspin .7s linear infinite; }
.sp-btn--primary { background: var(--grad); color: #000; border: 0; }
.sp-btn--primary:hover { background: var(--grad-rev); box-shadow: var(--glow); color: #000; }
.sp-btn--ghost { background: transparent; border-color: var(--gold); color: #fff; }
.sp-btn--ghost:hover { background: rgba(250, 199, 26, .12); border-color: var(--gold); color: #fff; }
.sp-btn--glass { background: #000; border-color: #000; color: #fff; }
.sp-btn--glass:hover { background: #161616; }
.sp-btn--dark { background: #000; color: #fff; border-color: #000; }
.sp-btn--outline-dark { background: transparent; color: #000; border-color: #000; }
.sp-btn--pill { background: var(--deep-panel); color: #fff; border-color: var(--gold-bright); border-radius: 999px; font-weight: 700; font-size: 16px; text-transform: uppercase; box-shadow: var(--glow); }
.sp-btn--sm { --bh: 45px; padding: 0 24px; font-size: 16px; border-radius: var(--r-xs); }
.sp-btn--danger { background: rgba(255, 107, 122, .14); color: #ffd2d7; border-color: rgba(255, 107, 122, .55); }
.sp-btn--danger:hover { background: rgba(255, 107, 122, .26); }
.sp-btn--lg { --bh: 60px; padding: 0 44px; font-size: 20px; }
.sp-btn--block { width: 100%; }
.sp-btn--icon { padding: 0; width: var(--bh); }
.sp-btn:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
@media (max-width: 767px) { .sp-btn { --bh: 52px; font-size: 16px; padding: 0 28px; } .sp-btn--sm { --bh: 42px; padding: 0 18px; font-size: 15px; } }
.sp-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text); position: relative; transition: background-color .2s, color .2s; }
.sp-iconbtn:hover { background: rgba(250, 199, 26, .12); color: var(--gold); }

/* Fields — floating label */
.sp-field { position: relative; margin-bottom: 14px; }
.sp-field input, .sp-field select, .sp-field textarea {
	width: 100%; height: 56px; padding: 22px 16px 8px; border-radius: var(--r-sm);
	background: rgba(10, 10, 10, .7); border: 1px solid var(--line-2); color: var(--text); font-size: 15px;
	transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none;
}
.sp-field textarea { height: auto; min-height: 140px; padding-top: 28px; resize: vertical; }
.sp-field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395A5C6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.sp-field label { position: absolute; left: 16px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus { outline: 0; border-color: var(--flare); box-shadow: 0 0 0 4px rgba(250, 199, 26, .16); background: rgba(14, 14, 14, .95); }
.sp-field input:focus + label, .sp-field input:not(:placeholder-shown) + label,
.sp-field textarea:focus + label, .sp-field textarea:not(:placeholder-shown) + label,
.sp-field--select label { transform: translateY(-10px) scale(.78); color: var(--flare); }
.sp-field.is-invalid input { border-color: var(--bad); }
.sp-field--pass input { padding-right: 52px; }
.sp-field__eye { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: var(--r-xs); }
.sp-field__eye:hover { color: var(--text); }
.sp-form-msg { font-size: 14px; min-height: 0; margin: 4px 0 12px; }
.sp-form-msg:empty { margin: 0; }
.sp-form-msg.is-bad { color: var(--bad); }
.sp-form-msg.is-ok { color: var(--ok); }

/* Custom checkbox */
.sp-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; color: var(--text); line-height: 1.45; margin-bottom: 12px; }
.sp-check input { position: absolute; opacity: 0; pointer-events: none; }
.sp-check__box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: rgba(10, 10, 10, .8); transition: all .2s var(--ease); margin-top: 1px; }
.sp-check__box .sp-i { width: 14px; height: 14px; stroke-width: 3; color: #000; opacity: 0; transform: scale(.4); transition: all .2s var(--ease); }
.sp-check input:checked + .sp-check__box { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(250, 199, 26, .15); }
.sp-check input:checked + .sp-check__box .sp-i { opacity: 1; transform: none; }
.sp-check input:focus-visible + .sp-check__box { outline: 2px solid var(--flare); outline-offset: 2px; }
.sp-check--sm { font-size: 14px; color: var(--muted); }

/* Toggle */
.sp-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); font-size: 14px; white-space: nowrap; }
.sp-toggle input { position: absolute; opacity: 0; }
.sp-toggle__track { width: 40px; height: 22px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; transition: background-color .2s; }
.sp-toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--chrome); transition: transform .25s var(--ease); }
.sp-toggle input:checked + .sp-toggle__track { background: var(--gold); border-color: var(--gold); }
.sp-toggle input:checked + .sp-toggle__track::after { transform: translateX(18px); background: #000; }
.sp-toggle input:focus-visible + .sp-toggle__track { outline: 2px solid var(--flare); outline-offset: 2px; }

/* Chips, pills, badges */
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.sp-chips--scroll::-webkit-scrollbar { display: none; }
.sp-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid var(--line-n); color: #fff; font-size: 15px; font-weight: 500; background: var(--panel); white-space: nowrap; transition: all .2s; }
.sp-chip span { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.sp-chip:hover { color: var(--text); border-color: rgba(250, 199, 26, .5); }
.sp-chip.is-active { background: var(--grad-rev); border-color: transparent; color: #000; }
.sp-chip.is-active span { color: rgba(0, 0, 0, .7); }
.sp-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sp-pill--ok { color: var(--ok); background: rgba(24, 218, 55, .1); }
.sp-pill--info { color: var(--flare); background: rgba(250, 199, 26, .12); }
.sp-pill--warn { color: var(--warn); background: rgba(255, 180, 8, .12); }
.sp-pill--bad { color: var(--bad); background: rgba(255, 107, 122, .12); }
.sp-pill--mute { color: var(--muted); background: rgba(179, 179, 179, .1); }
.sp-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-xs); background: var(--grad); color: #000; font-size: 12px; font-weight: 600; }
.sp-badge--sale { background: linear-gradient(90deg, #E2475A, #C7305B); }
.sp-stock { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 560; color: var(--ok); }
.sp-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(24, 218, 55, .16); }
.sp-stock.is-out { color: var(--dim); }
.sp-stock.is-out::before { box-shadow: none; }
.sp-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.sp-ok .sp-i { width: 15px; height: 15px; }

/* Panels, notes, empty states */
.sp-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.sp-panel h3 { font-size: 22px; margin-bottom: 12px; }
.sp-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.sp-panel__head h3 { margin: 0; }
.sp-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: rgba(206, 130, 1, .12); border: 1px solid rgba(250, 199, 26, .28); color: var(--chrome); margin-bottom: 20px; }
.sp-note .sp-i { color: var(--flare); margin-top: 2px; }
.sp-empty { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.sp-empty > .sp-i { width: 40px; height: 40px; color: var(--flare); opacity: .85; }
.sp-empty p { max-width: 46ch; margin: 0; }
.sp-empty--inline { padding: 28px 20px; }
.sp-placeholder { display: grid; place-items: center; width: 100%; border-radius: var(--r); border: 1px dashed var(--line-2); background: repeating-linear-gradient(45deg, rgba(250, 199, 26, .04) 0 10px, transparent 10px 20px); color: var(--dim); font-size: 13px; }

/* Key-value list */
.sp-kv { display: grid; gap: 0; }
.sp-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sp-kv dt { color: var(--muted); }
.sp-kv dd { text-align: right; font-weight: 560; font-variant-numeric: tabular-nums; word-break: break-word; }
.sp-kv--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 700px) { .sp-kv--grid { grid-template-columns: 1fr; } }

/* Tables */
.sp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 18px 0; }
.sp-table { font-size: 14px; min-width: 520px; }
.sp-table th { text-align: left; font-weight: 560; color: var(--muted); background: rgba(255, 255, 255, .025); padding: 11px 14px; font-size: 13px; }
.sp-table td { padding: 12px 14px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* Quantity stepper */
.sp-qty { display: inline-flex; align-items: center; height: 54px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(10, 10, 10, .7); overflow: hidden; }
.sp-qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--muted); transition: color .2s, background-color .2s; }
.sp-qty button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.sp-qty .sp-i { width: 16px; height: 16px; }
.sp-qty input { width: 44px; height: 100%; text-align: center; border: 0; background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.sp-qty input::-webkit-outer-spin-button, .sp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-qty--sm { height: 34px; }
.sp-qty--sm button { width: 30px; }
.sp-qty--sm input { width: 30px; font-size: 14px; }

/* Checks list */
.sp-checks { display: grid; gap: 10px; }
.sp-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--chrome); font-size: 15px; }
.sp-checks .sp-i { width: 18px; height: 18px; color: var(--flare); stroke-width: 2.4; margin-top: 2px; }

/* Chromatogram trace (signature) */
.sp-chroma { width: 100%; height: 100%; overflow: visible; }
.sp-chroma path { fill: none; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(250, 199, 26, .7)); }

/* Toast */
.sp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: rgba(22, 22, 22, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14.5px; font-weight: 560; transition: all .35s var(--ease); max-width: calc(100vw - 32px); }
.sp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.sp-toast .sp-i { color: var(--ok); }
.sp-toast.is-bad .sp-i { color: var(--bad); }

@keyframes spspin { to { transform: rotate(360deg); } }
@keyframes spdraw { from { stroke-dashoffset: var(--len, 1200); } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
