/* ==========================================================================
   PEPTIDE DOSAGES — core design system
   White page, gold headings, charcoal actions.
   ========================================================================== */

:root {
    --primary: #C9A227;
    --primary-deep: #A67C12;
    --primary-soft: #E3C968;
    --accent: #C9A227;
    --accent-strong: #A67C12;
    --accent-soft: #F6F1DC;
    --accent-glow: rgba(201, 162, 39, 0.22);
    --ink: #1A1A1A;
    --ink-soft: #2C2C2C;
    --safety: #8C3A32;
    --safety-soft: #F8EBE8;

    /* Surfaces & text */
    --background: #FFFFFF;
    --surface: #FFFFFF;
    --surface-alt: #FAFAFA;
    --text: #3A3A3A;
    --muted: #5C5C5C;
    --faint: #8A8A8A;
    --border: #E6E6E6;
    --border-strong: #D0D0D0;

    /* Semantic */
    --success: #2F7A55;
    --success-soft: #E7F3EC;
    --warning: #A67B1F;
    --warning-soft: #FBF3DE;
    --danger: #A63D40;
    --danger-soft: #F9E9E9;

    /* Typography */
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Roboto Mono', 'Courier New', monospace;
    --fs-xs: 0.9rem;
    --fs-sm: 1.05rem;
    --fs-base: 1.125rem;
    --fs-md: 1.28rem;
    --fs-lg: 1.5rem;
    --fs-xl: clamp(1.55rem, 1.2rem + 1.6vw, 2.15rem);
    --fs-hero: clamp(2.1rem, 1.3rem + 4.2vw, 4rem);

    /* Spacing / shape */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4.5rem;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1180px;
    --header-h: 96px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 10px 34px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.16);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
    --t-fast: 160ms var(--ease);
    --t-med: 280ms var(--ease);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body::before {
    content: "FOR RESEARCH PURPOSES ONLY";
    display: block;
    background: #111111;
    color: #fff;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 0.62rem 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-deep); text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
    line-height: 1.22;
    color: var(--primary);
    margin: 0 0 var(--sp-4);
    font-weight: 700;
    letter-spacing: -0.01em;
}

p { margin: 0 0 var(--sp-4); }

ul, ol { padding-left: 1.25rem; }

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px;
}

::selection { background: var(--accent-soft); color: var(--primary-deep); }

.container {
    width: min(var(--container), calc(100% - 2.5rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 0.65rem 1.1rem;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    font-size: var(--fs-sm);
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Eyebrows, labels, buttons
   -------------------------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-deep);
    margin-bottom: var(--sp-3);
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--ink-soft);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--ink);
    color: #fff;
}
.btn-accent:hover {
    background: var(--ink-soft);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--surface-alt);
}

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #ececec;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.brand:hover { color: var(--primary); }

.brand-mark {
    width: 56px; height: 56px;
    border-radius: 0;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.02;
    font-size: 1.32rem;
    text-transform: uppercase;
}
.brand-text .brand-sub {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--primary-deep);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    padding: 0.6rem 0.48rem;
    font-size: 1.08rem;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--primary);
    border-radius: var(--radius-sm);
    transition: color var(--t-fast), background var(--t-fast);
}
.main-nav a:hover { color: var(--ink); background: transparent; }

.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0.8rem; right: 0.8rem; bottom: 0.15rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.35rem;
    padding: 0.5rem 0.95rem;
    background: var(--ink);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700 !important;
}
.nav-search-btn:hover { background: var(--ink-soft); color: #fff !important; }
.nav-search-btn svg { width: 15px; height: 15px; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--t-med), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--text);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--border);
}

.hero::before { content: none; }

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--primary-deep);
    border: 1px solid var(--border);
    background: var(--accent-soft);
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    margin-bottom: var(--sp-5);
}

.hero h1 {
    color: var(--ink);
    font-size: var(--fs-hero);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    max-width: 15ch;
    margin-bottom: var(--sp-4);
}
.hero h1 .gold { color: var(--primary); }

.hero-sub {
    font-size: var(--fs-md);
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: var(--sp-6);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}
.hero-panel h2 {
    font-size: var(--fs-sm);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: var(--sp-4);
    color: var(--primary);
}
.hero-panel dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem 1.1rem;
    margin: 0;
    font-size: var(--fs-sm);
}
.hero-panel dt { color: var(--muted); font-weight: 600; }
.hero-panel dd { margin: 0; color: var(--primary); font-weight: 600; }
.hero-panel .panel-note {
    margin: var(--sp-4) 0 0;
    padding-top: var(--sp-3);
    border-top: 1px dashed var(--border);
    font-size: var(--fs-xs);
    color: var(--muted);
}

/* Hero search */
.hero-search { position: relative; max-width: 620px; }

.search-field {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-lg);
}
.search-field svg {
    width: 19px; height: 19px;
    margin-left: 1.1rem;
    color: var(--faint);
    flex-shrink: 0;
}
.search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 1.02rem 1rem;
    font-family: var(--font);
    font-size: var(--fs-base);
    color: var(--text);
    background: transparent;
}
.search-field input::placeholder { color: var(--faint); }
.search-field .btn { border-radius: 0; padding-inline: 1.4rem; height: 100%; }

.search-clear {
    border: 0;
    background: transparent;
    color: var(--faint);
    font-size: 1.15rem;
    line-height: 1;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    display: none;
}
.search-clear.is-visible { display: inline-block; }
.search-clear:hover { color: var(--danger); }

/* Instant results dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: min(430px, 70vh);
    overflow-y: auto;
    z-index: 60;
    display: none;
}
.search-results.is-open { display: block; }

.search-result-meta {
    padding: 0.6rem 1rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background var(--t-fast);
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus-visible, .search-result.is-active {
    background: var(--accent-soft);
    color: var(--text);
}
.r-thumb-fallback {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-weight: 800;
    color: var(--faint);
    font-size: 11px;
}

.search-result img {
    width: 42px; height: 42px;
    border-radius: 7px;
    object-fit: cover;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.search-result .r-body { min-width: 0; flex: 1; }
.search-result .r-name {
    font-weight: 700;
    color: var(--primary);
    font-size: var(--fs-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result .r-meta {
    font-size: var(--fs-xs);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result .r-tag {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-deep);
    background: var(--accent-soft);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}
.search-empty {
    padding: 1.1rem 1.1rem;
    color: var(--muted);
    font-size: var(--fs-sm);
}
.search-empty strong { color: var(--primary); }

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--sp-4);
    align-items: center;
}
.quick-chips .chip-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    font-weight: 700;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 600;
    transition: all var(--t-fast);
}
.chip:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.stats-band {
    background: #fff;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.stats-band .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.35rem 0;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-left: 1.1rem;
    border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
.stat .stat-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: var(--sp-8) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section-dark {
    background: #fff;
    color: var(--text);
    border-top: 1px solid var(--border);
}
.section-dark h2, .section-dark h3 { color: var(--primary); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-5);
    margin-bottom: var(--sp-6);
    flex-wrap: wrap;
}
.section-head h2 {
    font-size: var(--fs-xl);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
}
.section-head .section-desc {
    color: var(--muted);
    max-width: 62ch;
    margin: 0;
    font-size: var(--fs-base);
}
.section-dark .section-desc { color: var(--muted); }
.section-head .link-more {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
}
.section-head .link-more:hover { color: var(--ink); }
.section-head .link-more::after { content: " →"; }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.35rem;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid #8A8A8A;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.product-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent 70%);
    opacity: 0;
    transition: opacity var(--t-med);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--ink);
}
.product-card:hover::before { opacity: 1; }

.pc-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.pc-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.9rem;
    transition: transform var(--t-med);
}
.product-card:hover .pc-media img { transform: scale(1.04); }

.pc-media .pc-placeholder {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    user-select: none;
}

.pc-strength {
    position: absolute;
    top: 0.7rem; right: 0.7rem;
    background: var(--ink);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: 5px;
    font-variant-numeric: tabular-nums;
}

.pc-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.05rem 1.1rem 1.15rem;
    flex: 1;
}

.pc-category {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-deep);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-deep);
    margin: 0;
    line-height: 1.25;
}

.pc-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.flag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.flag-yes {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(47, 122, 85, 0.22);
}
.flag-no {
    background: var(--surface-alt);
    color: var(--faint);
    border-color: var(--border);
}
.flag svg { width: 11px; height: 11px; }

.pc-cta {
    margin-top: auto;
    padding-top: 0.9rem;
    display: block;
    text-align: center;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    border-top: 1px dashed var(--border-strong);
    transition: color var(--t-fast), letter-spacing var(--t-fast);
}
.product-card:hover .pc-cta { color: var(--ink); letter-spacing: 0.16em; }

/* --------------------------------------------------------------------------
   Category cards
   -------------------------------------------------------------------------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.35rem;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 210px;
    padding: 1.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--primary); }

.category-card .cat-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%; height: 100%;
    opacity: 0.9;
}
.category-card .cat-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 15%, #fff 70%);
}
.category-card.no-image {
    background:
        linear-gradient(180deg, rgba(201, 162, 39, 0.08) 0%, #fff 55%);
    border-color: var(--border);
}
.category-card .cat-body { position: relative; z-index: 1; }
.category-card .cat-count {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--ink);
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}
.category-card h3 {
    color: var(--primary);
    font-size: 1.12rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.category-card p {
    color: var(--muted);
    font-size: var(--fs-sm);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category-card .cat-arrow {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 1;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background var(--t-fast), transform var(--t-fast);
}
.category-card:hover .cat-arrow { background: var(--ink); color: #fff; transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Info panels (dosage / reconstitution explainers) & steps
   -------------------------------------------------------------------------- */

.duo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.info-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
}
.info-panel .panel-icon {
    width: 46px; height: 46px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--primary-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
}
.info-panel .panel-icon svg { width: 23px; height: 23px; }
.info-panel h3 {
    font-size: 1.12rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.info-panel p { color: var(--muted); font-size: var(--fs-sm); }
.info-panel ul {
    list-style: none;
    padding: 0;
    margin: var(--sp-4) 0 0;
    display: grid;
    gap: 0.55rem;
}
.info-panel ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: var(--fs-sm);
    color: var(--text);
}
.info-panel ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.35rem;
    counter-reset: step;
}
.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.3rem;
    counter-increment: step;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.7rem;
    font-variant-numeric: tabular-nums;
}
.step h3 {
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.45rem;
}
.step p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* --------------------------------------------------------------------------
   Disclaimer band
   -------------------------------------------------------------------------- */

.disclaimer-band {
    background: var(--warning-soft);
    border: 1px solid rgba(166, 123, 31, 0.35);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: var(--fs-sm);
    color: #5B4712;
}
.disclaimer-band svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--warning); margin-top: 2px; }
.disclaimer-band p { margin: 0; }
.disclaimer-band a { font-weight: 700; color: #7A5A10; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: #fff;
    color: var(--muted);
    border-top: 0;
}
.site-footer::before {
    content: "FOR RESEARCH PURPOSES ONLY";
    display: block;
    background: var(--ink);
    color: #fff;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 0.7rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.2rem;
    padding: var(--sp-7) 0 var(--sp-6);
}

.footer-brand .brand { color: var(--primary); margin-bottom: var(--sp-4); }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); }

.footer-col h4 {
    color: var(--primary-deep);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--primary); font-weight: 500; }
.footer-col a:hover { color: var(--ink); }

.footer-source {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-source .source-logo {
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0;
    width: fit-content;
    max-width: 220px;
}
.footer-source .source-logo img { width: 100%; height: auto; }
.footer-source .source-link {
    font-weight: 700;
    color: var(--primary-deep);
    word-break: break-all;
}
.footer-source .source-link:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.15rem 0 1.4rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: var(--fs-xs);
    color: var(--faint);
}
.footer-bottom nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

.footer-disclaimer {
    font-size: var(--fs-xs);
    color: var(--faint);
    line-height: 1.7;
    padding-bottom: 1.6rem;
    max-width: 100ch;
}

/* --------------------------------------------------------------------------
   Page headers (interior pages)
   -------------------------------------------------------------------------- */

.page-head {
    background: #fff;
    color: var(--text);
    padding: clamp(2.2rem, 5vw, 3.6rem) 0 1.5rem;
    border-bottom: 1px solid var(--border);
}
.page-head h1 {
    color: var(--primary);
    font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.7rem);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.page-head .breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-4);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 600;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 0.5rem; color: var(--faint); }
.breadcrumb [aria-current] { color: var(--ink); }
.page-head .page-sub {
    color: var(--muted);
    max-width: 70ch;
    margin: 0;
    font-size: var(--fs-base);
}

/* --------------------------------------------------------------------------
   Toolbar (filters / search on listing pages)
   -------------------------------------------------------------------------- */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: var(--sp-5);
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.toolbar .search-field {
    flex: 1 1 300px;
    box-shadow: none;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
}
.toolbar .search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-glow); }
.toolbar .search-field input { padding: 0.72rem 1rem; }
.toolbar .search-field svg { margin-left: 0.95rem; }

.filter-select {
    font-family: var(--font);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.66rem 1rem;
    cursor: pointer;
    min-width: 200px;
    transition: border-color var(--t-fast);
}
.filter-select:hover { border-color: var(--primary); }

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    padding: 0.55rem 0.9rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    user-select: none;
    transition: all var(--t-fast);
}
.filter-toggle input { accent-color: var(--primary-deep); width: 15px; height: 15px; }
.filter-toggle:hover { border-color: var(--primary); color: var(--primary); }
.filter-toggle.is-on {
    background: var(--accent-soft);
    border-color: var(--primary);
    color: var(--primary-deep);
}

.result-count {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 var(--sp-4);
    letter-spacing: 0.02em;
}
.result-count strong { color: var(--primary); font-variant-numeric: tabular-nums; }

.empty-state {
    text-align: center;
    padding: var(--sp-8) var(--sp-4);
    background: var(--surface);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}
.empty-state .empty-icon { font-size: 2.6rem; margin-bottom: 0.6rem; }
.empty-state h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.empty-state p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.empty-state .btn { margin-top: 0.5rem; }

/* Load more */
.load-more-wrap { text-align: center; margin-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   Loading / error states
   -------------------------------------------------------------------------- */

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: var(--sp-8) 1rem;
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.loader .spinner {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(90deg, var(--surface-alt) 25%, #EFEDE7 50%, var(--surface-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
    border-radius: var(--radius);
    min-height: 320px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.error-box {
    background: var(--danger-soft);
    border: 1px solid rgba(166, 61, 64, 0.35);
    color: #7A2E30;
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    text-align: center;
}
.error-box h3 { color: var(--danger); font-size: 1.05rem; }
.error-box p { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Prose (about / disclaimer pages)
   -------------------------------------------------------------------------- */

.prose {
    max-width: 78ch;
    margin-inline: auto;
}
.prose h2 {
    font-size: 1.35rem;
    margin-top: var(--sp-6);
    padding-top: var(--sp-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.prose h3 { font-size: 1.08rem; margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { margin-bottom: var(--sp-4); }
.prose strong { color: var(--primary); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .note-box {
    background: var(--surface-alt);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    font-size: var(--fs-sm);
    margin: var(--sp-5) 0;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

.badge-source {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary-deep);
    background: var(--accent-soft);
    border: 1px solid var(--border);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
}
.badge-source svg { width: 12px; height: 12px; }

/* Reveal on scroll (subtle) */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

.strength-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.strength-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 4.5rem;
    padding: 0.4rem 0.95rem;
    border: 2px solid var(--primary);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-deep);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}
.strength-choice:hover,
.strength-choice[aria-current="true"] {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.strength-choice.is-large {
    min-height: 56px;
    min-width: 7rem;
    font-size: 1.25rem;
    padding: 0.6rem 1.2rem;
}
.pc-strength-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
}
.gap-note {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    color: var(--text);
}
.safety-note {
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--safety-soft);
    border: 1px solid #E4C8C3;
    border-radius: 12px;
    color: #5C2A24;
}
.strength-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    background: var(--primary-soft);
    border-radius: 12px;
}
.strength-banner strong {
    font-size: 1.35rem;
    color: var(--primary-deep);
}
.product-hero h1 {
    font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
}
.section-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
#product-top .section-kicker {
    margin-bottom: 0.75rem;
    font-size: 1.55rem;
    letter-spacing: 0.06em;
}
