/* ============================================================
   GL BIOCHEM 吉尔生化 — HERITAGE INSTITUTIONAL DESIGN SYSTEM
   Ivory paper · Oxford navy · Antique gold hairlines
   Spectral (display serif) · Figtree (body) · IBM Plex Mono
   ============================================================ */

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

:root {
    /* — Oxford Navy (primary) — */
    --primary: #1C2D52;
    --primary-dark: #15223F;
    --primary-darker: #0E172C;
    --primary-light: #31497A;
    --primary-lighter: #4D6699;
    --primary-50: #EBEAE0;
    --primary-100: #DDDCD0;
    --primary-200: #AEB4BE;

    /* — Oxblood (CTA red, re-tinted) — */
    --red: #7E2A2A;
    --red-dark: #611F1F;
    --red-light: #9A3D39;
    --red-50: #F3EAE2;

    /* — Antique Gold — */
    --gold: #A9842E;
    --gold-dark: #82641D;
    --gold-light: #CBAD6A;
    --gold-pale: #E9DDBC;
    --gold-hairline: rgba(169,132,46,0.45);

    /* — Ink Blue (links) — */
    --blue: #2F4F7E;
    --blue-dark: #1C2D52;
    --blue-light: #54719F;
    --blue-50: #E9E9E2;

    /* — Amber → gold family — */
    --orange: #A9842E;
    --orange-light: #C9A85C;

    /* — Status — */
    --success: #2F6B4F;
    --warning: #96762F;
    --error: #A03030;

    /* — Warm Stone Neutrals (aged paper ramp) — */
    --white: #FCFAF3;
    --paper: #F7F1E4;
    --gray-50: #F3EDDD;
    --gray-100: #ECE4D0;
    --gray-200: #DFD5BC;
    --gray-300: #C9BC9E;
    --gray-400: #93876A;
    --gray-500: #6F654C;
    --gray-600: #564E39;
    --gray-700: #423C2C;
    --gray-800: #2E2A1F;
    --gray-900: #1E1B13;
    --black: #131109;

    /* — Surface — */
    --border-light: #DFD5BC;
    --border-default: #C9BC9E;
    --surface-alt: #F3EDDD;

    /* — Typography — */
    --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Spectral', 'Times New Roman', Georgia, serif;
    --font-cn: 'Noto Serif SC', 'Microsoft YaHei', serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', Consolas, monospace;

    /* — Engraved Shadows (warm umber) — */
    --shadow-sm: 0 1px 2px rgba(40,32,12,0.06);
    --shadow-md: 0 3px 8px -2px rgba(40,32,12,0.09), 0 1px 3px rgba(40,32,12,0.05);
    --shadow-lg: 0 12px 28px -8px rgba(40,32,12,0.13), 0 3px 8px -3px rgba(40,32,12,0.06);
    --shadow-xl: 0 22px 48px -12px rgba(28,22,8,0.18), 0 8px 16px -8px rgba(40,32,12,0.07);
    --shadow-glow: 0 0 0 1px var(--gold-hairline);

    /* — Radii (institutional: near-square) — */
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 6px;
    --radius-2xl: 8px;
    --radius-full: 9999px;

    --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing (used by cart & checkout) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Font sizes (used by cart & checkout) */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    --z-header: 1000;
    --z-mobile-menu: 1500;
    --z-modal: 2000;
    --z-notification: 3000;
    --error-red: #A03030;
    --success-green: #2F6B4F;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-700);
    background-color: var(--paper);
    /* layered warm atmosphere: vignette + faint paper grain */
    background-image:
        radial-gradient(ellipse 120% 60% at 50% -10%, rgba(252,250,243,0.9) 0%, rgba(252,250,243,0) 60%),
        repeating-linear-gradient(0deg, rgba(169,132,46,0.018) 0px, rgba(169,132,46,0.018) 1px, transparent 1px, transparent 7px),
        linear-gradient(180deg, #F7F1E4 0%, #F4EEDF 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background: var(--primary); color: var(--gold-light); }

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

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }

a { color: var(--blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; }

.cn-accent { font-family: var(--font-cn); }

h1, h2, h3, .page-title, .section-heading { font-family: var(--font-display); }

/* === LOAD REVEALS (institutional, restrained) === */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes ruleGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
main { animation: fadeIn 0.5s ease both; }
.page-hero .page-title { animation: riseIn 0.55s 0.05s cubic-bezier(0.25,0.6,0.3,1) both; }
.page-hero .page-subtitle { animation: riseIn 0.55s 0.16s cubic-bezier(0.25,0.6,0.3,1) both; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === TOP UTILITY BAR === */
.utility-bar {
    background: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: rgba(245,238,220,0.75);
    padding: 7px 0;
    font-size: 12.5px;
    border-top: 2px solid var(--gold);
    border-bottom: 1px solid rgba(203,173,106,0.25);
    letter-spacing: 0.02em;
}
.utility-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
}
.utility-bar-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.utility-bar-right { display: flex; align-items: center; gap: 16px; }
.utility-bar a {
    color: rgba(245,238,220,0.75); text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px;
    transition: color var(--transition-fast);
}
.utility-bar a:hover { color: var(--gold-light); }
.utility-bar .crypto-badge {
    color: var(--gold-light); font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid rgba(203,173,106,0.35);
    background: rgba(203,173,106,0.08);
    padding: 2px 12px; border-radius: var(--radius-sm);
    font-size: 11.5px; letter-spacing: 0.05em;
}
@media (max-width: 767px) {
    .utility-bar { text-align: center; }
    .utility-bar-inner { justify-content: center; }
    .utility-bar-right { display: none; }
}

/* === HEADER === */
.header {
    padding: 0;
    position: sticky; top: 0; z-index: var(--z-header);
    background: rgba(252,250,243,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--gold-hairline), 0 2px 14px rgba(40,32,12,0.05);
}
.header-main {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 14px 0;
}
.logo {
    display: flex; align-items: center; text-decoration: none; gap: 12px;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: 0.85; }
.logo-img {
    height: 40px; width: auto; display: block;
    mix-blend-mode: multiply;
}
.logo-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 2px solid var(--gold);
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold-hairline);
}
.logo-gl {
    font-size: 15px; font-weight: 700; color: var(--gold-light);
    letter-spacing: 1px; font-family: var(--font-display);
}
.logo-text {
    font-size: 20px; font-weight: 600; color: var(--primary);
    line-height: 1.2; letter-spacing: 0.01em; font-family: var(--font-display);
}
.logo-text small {
    display: block; font-size: 11px; font-weight: 500;
    color: var(--gray-500); letter-spacing: 0.12em; margin-top: 1px;
    font-family: var(--font-family); text-transform: uppercase;
}

/* Search */
.header-search { flex: 1; max-width: 520px; display: none; }
@media (min-width: 768px) { .header-search { display: flex; } }
.header-search-form {
    display: flex; width: 100%;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius-sm); overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(40,32,12,0.04);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.header-search-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(169,132,46,0.14);
}
.header-search-input {
    flex: 1; padding: 10px 16px; border: none; outline: none;
    font-size: 14px; font-family: var(--font-family);
    color: var(--gray-800); background: transparent;
}
.header-search-input::placeholder { color: var(--gray-400); }
.header-search-btn {
    padding: 0 20px; background: var(--primary); color: var(--gold-light);
    border: none; cursor: pointer; font-size: 14px;
    transition: background var(--transition-fast);
}
.header-search-btn:hover { background: var(--primary-light); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* === NAV BAR === */
.nav-bar {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-top: 1px solid var(--gold-hairline);
    box-shadow: inset 0 1px 0 rgba(203,173,106,0.12);
}
.nav-bar-inner { display: none; align-items: center; }
@media (min-width: 768px) { .nav-bar-inner { display: flex; } }
.nav-desktop { display: contents; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-link {
    display: block; padding: 13px 18px;
    color: rgba(245,238,220,0.82); text-decoration: none;
    font-size: 12.5px; font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.07em; text-transform: uppercase;
}
.nav-link:hover {
    background: rgba(203,173,106,0.1); color: #FCFAF3;
    text-decoration: none;
}
.nav-link.active {
    background: rgba(203,173,106,0.12); color: var(--gold-light);
    font-weight: 700;
    border-bottom-color: var(--gold);
}

/* Verified On dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--white); border: 1px solid var(--gray-300);
    border-top: 2px solid var(--gold);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none; padding: 6px 0; min-width: 210px; z-index: calc(var(--z-header) + 200);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
    display: flex; align-items: center; gap: 8px; padding: 9px 16px;
    font-size: 0.8rem; color: var(--gray-600); text-decoration: none;
    transition: all 0.15s; letter-spacing: 0.02em;
}
.nav-dropdown-menu li a:hover { background: var(--gray-50); color: var(--primary); }
.nav-dropdown-menu li a i { width: 16px; text-align: center; color: var(--gold-dark); font-size: 0.75rem; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; font-weight: 600; font-size: 13.5px;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    cursor: pointer; transition: all var(--transition-fast);
    text-decoration: none; white-space: nowrap; line-height: 1.4;
    letter-spacing: 0.05em; font-family: var(--font-family);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--primary); color: var(--gold-light); border-color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(203,173,106,0.35), 0 2px 6px rgba(21,34,63,0.25);
}
.btn-primary:hover {
    background: var(--primary-light); border-color: var(--primary); color: #F5EEDC;
    box-shadow: inset 0 0 0 1px rgba(203,173,106,0.5), 0 4px 10px rgba(21,34,63,0.3);
}
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 0 2px 4px rgba(28,45,82,0.18); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-secondary {
    background: transparent; color: var(--primary); border-color: var(--gray-300);
    box-shadow: inset 0 0 0 0 transparent;
}
.btn-secondary:hover { background: var(--white); border-color: var(--gold); color: var(--primary-dark); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold-dark); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-order { background: var(--red); color: #F5EEDC; font-weight: 700; border-color: var(--red-dark); }
.btn-order:hover { background: var(--red-dark); color: #F5EEDC; }

/* === UTILITIES === */
.text-center { text-align: center; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 44px; }
.section-heading {
    font-size: 33px; font-weight: 600; color: var(--primary-dark);
    margin-bottom: 12px; letter-spacing: 0.005em;
    line-height: 1.22;
}
/* Engraved double-rule ornament */
.section-heading::after {
    content: ''; display: block; width: 72px; height: 7px;
    background:
        linear-gradient(var(--gold), var(--gold)) top center / 72px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) bottom center / 36px 1px no-repeat;
    margin: 16px auto 0;
    transform-origin: center;
    animation: ruleGrow 0.7s 0.2s cubic-bezier(0.25,0.6,0.3,1) both;
}
.section-header p {
    font-size: 15.5px; color: var(--gray-500); max-width: 640px; margin: 0 auto;
    line-height: 1.75;
}
.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: flex; } }

/* === HAMBURGER === */
.hamburger-btn {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 10px;
    background: none; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); cursor: pointer;
    transition: background var(--transition-fast);
}
.hamburger-btn:hover { background: var(--gray-50); }
.hamburger-btn span { display: block; width: 100%; height: 2px; background: var(--primary); border-radius: 1px; }
@media (max-width: 767px) { .hamburger-btn { display: flex; } }

/* === MOBILE MENU === */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20,17,9,0.5); backdrop-filter: blur(4px);
    z-index: var(--z-mobile-menu);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: 320px;
    background: var(--white); z-index: calc(var(--z-mobile-menu) + 1);
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; overflow-y: auto;
    box-shadow: -8px 0 30px rgba(20,17,9,0.18);
    border-left: 1px solid var(--gold-hairline);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid var(--gold);
    background: var(--primary);
}
.mobile-menu-title { font-weight: 600; font-size: 18px; color: var(--gold-light); font-family: var(--font-display); letter-spacing: 0.03em; }
.mobile-menu-close { background: none; border: none; font-size: 28px; cursor: pointer; color: rgba(245,238,220,0.7); line-height: 1; }
.mobile-menu-nav { padding: 8px 0; }
.mobile-menu-link {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; color: var(--gray-700); text-decoration: none;
    font-size: 15px; font-weight: 500; border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}
.mobile-menu-link:hover, .mobile-menu-link.active {
    color: var(--primary); background: var(--gray-50);
    border-left-color: var(--gold); text-decoration: none;
}
.mobile-menu-link i { width: 20px; text-align: center; color: var(--gray-400); font-size: 14px; }
.mobile-menu-link.active i { color: var(--gold-dark); }
.mobile-menu-contact {
    margin-top: auto; padding: 20px; border-top: 1px solid var(--gold-hairline);
    background: var(--gray-50);
}
.mobile-contact-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 600; font-size: 14px;
    margin-bottom: 8px; transition: all var(--transition-fast);
}
.mobile-contact-btn:hover { text-decoration: none; transform: translateY(-1px); }
.mobile-contact-btn.tg { background: #E3E8F0; color: #27416F; }
.mobile-contact-btn.wa { background: #DFEBDD; color: #2A5F46; }
.mobile-contact-btn.email { background: var(--primary); color: var(--gold-light); border: 1px solid var(--gold-hairline); }

/* === PAGE HERO === */
.page-hero {
    background:
        radial-gradient(ellipse 90% 130% at 50% -40%, rgba(28,45,82,0.05) 0%, transparent 60%),
        linear-gradient(180deg, var(--gray-50) 0%, var(--paper) 100%);
    padding: 38px 0 30px;
    border-bottom: 1px solid var(--gold-hairline);
    position: relative;
}
.page-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 3px;
    border-bottom: 1px solid rgba(169,132,46,0.18);
}
.page-title {
    font-size: 32px; font-weight: 600; color: var(--primary-dark);
    margin-bottom: 6px; letter-spacing: 0.005em;
}
.page-title i { color: var(--gold); margin-right: 12px; font-size: 0.75em; vertical-align: 2px; }
.page-subtitle { font-size: 15px; color: var(--gray-500); }

/* === BREADCRUMB === */
.breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13px; color: var(--gray-400); margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--gold-dark); text-decoration: underline; }
.breadcrumb i { font-size: 9px; color: var(--gold); }

/* === FOOTER === */
.footer {
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(77,102,153,0.12) 0%, transparent 55%),
        linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: rgba(236,228,208,0.62);
    padding: 56px 0 26px; font-size: 14px;
    margin-bottom: 56px;
    border-top: 3px double var(--gold);
    position: relative;
}
@media (min-width: 768px) { .footer { margin-bottom: 0; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col h4 {
    color: var(--gold-light); font-size: 13px; font-weight: 600;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(203,173,106,0.3);
    letter-spacing: 0.14em; text-transform: uppercase;
    font-family: var(--font-family);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(236,228,208,0.62); text-decoration: none; font-size: 13.5px; transition: color var(--transition-fast); letter-spacing: 0.01em; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 18px; font-weight: 600; color: #FCFAF3;
    margin-bottom: 14px;
}
.footer-logo img { background: #fff; padding: 4px 8px; border-radius: var(--radius-sm); }
.footer-description { font-size: 13.5px; line-height: 1.75; color: rgba(236,228,208,0.6); margin-bottom: 14px; }
.footer-crypto-note {
    margin-top: 14px; padding: 12px 16px;
    background: rgba(203,173,106,0.07); border: 1px solid rgba(203,173,106,0.25);
    border-radius: var(--radius-sm); font-size: 12.5px; color: var(--gold-light);
}
.footer-bottom {
    border-top: 1px solid rgba(203,173,106,0.22); padding-top: 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(236,228,208,0.45);
}
.footer-bottom .cn-accent { color: rgba(236,228,208,0.45) !important; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(203,173,106,0.08); color: rgba(236,228,208,0.6);
    border: 1px solid rgba(203,173,106,0.25);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all var(--transition-fast);
}
.footer-social a:hover { background: var(--gold); color: var(--primary-darker); border-color: var(--gold); }

/* === MOBILE BOTTOM NAV === */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(252,250,243,0.95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--gold-hairline);
    display: flex; justify-content: space-around; padding: 8px 0 env(safe-area-inset-bottom, 4px);
    z-index: var(--z-header);
    box-shadow: 0 -2px 12px rgba(40,32,12,0.07);
}
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: var(--gray-400);
    font-size: 11px; font-weight: 600; padding: 4px 12px;
    transition: color var(--transition-fast);
    letter-spacing: 0.04em;
}
.bottom-nav-item:hover { text-decoration: none; color: var(--primary); }
.bottom-nav-item i { font-size: 17px; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active i { color: var(--gold-dark); }

/* === FAQ === */
.faq-section { padding: 64px 0; background: var(--gray-50); border-top: 1px solid var(--gold-hairline); }
.faq-list { max-width: 768px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--gray-200); border-radius: var(--radius-md);
    margin-bottom: 10px; overflow: hidden; background: var(--white);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.faq-item:hover { border-color: var(--gold-hairline); box-shadow: var(--shadow-md); }
.faq-item.open { border-color: var(--gold-hairline); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 18px 24px; background: none; border: none;
    cursor: pointer; font-weight: 600; font-size: 16px;
    color: var(--gray-800); text-align: left; font-family: var(--font-display);
    transition: color var(--transition-fast);
}
.faq-question i { color: var(--gold); font-size: 12px; transition: transform 0.3s, color 0.3s; }
.faq-item.open .faq-question { color: var(--primary); }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--gold-dark); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 24px 18px; font-size: 14px; color: var(--gray-600); line-height: 1.8; }

/* === ORDER CTA BAR === */
.order-cta-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px 28px; border-radius: var(--radius-md);
    margin-top: 32px;
    border: 1px solid var(--gold-hairline);
    box-shadow: inset 0 0 0 4px rgba(14,23,44,0.45), inset 0 0 0 5px rgba(203,173,106,0.3);
}
.order-cta-text { color: rgba(245,238,220,0.78); font-size: 14px; }
.order-cta-text strong { color: var(--gold-light); }
.order-cta-links, .order-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.order-cta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 600; text-decoration: none;
    background: rgba(203,173,106,0.1); color: var(--gold-light);
    border: 1px solid rgba(203,173,106,0.4);
    transition: all var(--transition-fast);
    letter-spacing: 0.05em;
}
.order-cta-btn:hover { background: var(--gold); color: var(--primary-darker); text-decoration: none; }

/* === CERTIFICATIONS === */
.cert-showcase { padding: 64px 0; background: var(--paper); }
.cert-full-image {
    max-width: 100%; border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
}
.cert-individual-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 640px) { .cert-individual-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cert-individual-grid { grid-template-columns: repeat(5, 1fr); } }
.cert-individual-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.cert-individual-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cert-individual-card img { width: 100%; height: auto; display: block; }
.cert-individual-card .cert-img-label {
    padding: 10px 12px; text-align: center;
    font-size: 11px; font-weight: 700; color: var(--gray-600);
    text-transform: uppercase; letter-spacing: 0.08em;
    background: var(--gray-50); border-top: 1px solid var(--gold-hairline);
}

/* === DATA TABLES (formal schedules) === */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.data-table thead { background: var(--primary); }
.data-table th {
    padding: 12px 16px; text-align: left; font-weight: 600;
    color: var(--gold-light); font-size: 11.5px;
    text-transform: uppercase; letter-spacing: 0.1em;
    border-bottom: 2px solid var(--gold);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
.data-table tbody tr { transition: background var(--transition-fast); }
.data-table tbody tr:hover { background: var(--gray-50); }

/* === CARDS === */
.pro-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-md); overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.pro-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold-hairline); }
.pro-card-header {
    padding: 16px 20px; border-bottom: 1px solid var(--gold-hairline);
    display: flex; align-items: center; justify-content: space-between;
}
.pro-card-header h3 { font-size: 17px; font-weight: 600; color: var(--primary-dark); font-family: var(--font-display); }
.pro-card-body { padding: 20px; }

/* === TAGS === */
.tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; font-size: 11.5px; font-weight: 600;
    border-radius: var(--radius-sm); white-space: nowrap;
    letter-spacing: 0.04em;
}
.tag-primary { background: var(--primary-50); color: var(--primary); border: 1px solid var(--primary-200); }
.tag-success { background: #EAF2EA; color: var(--success); border: 1px solid #C4DCC4; }
.tag-warning { background: #F3EAD2; color: var(--gold-dark); border: 1px solid #E5D5A4; }
.tag-info { background: var(--blue-50); color: var(--blue); border: 1px solid var(--primary-200); }

/* === METRIC CARDS === */
.metric-row { display: flex; gap: 16px; flex-wrap: wrap; }
.metric-card {
    flex: 1; min-width: 140px; padding: 20px;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm); border-top: 2px solid var(--gold);
    text-align: center; transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.metric-card:hover { box-shadow: var(--shadow-md); }
.metric-value { display: block; font-size: 30px; font-weight: 600; color: var(--primary); letter-spacing: 0.01em; font-family: var(--font-display); }
.metric-label { display: block; font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; margin-top: 4px; letter-spacing: 0.1em; }

/* === INFO PANELS === */
.info-panel {
    padding: 16px 20px; border-radius: var(--radius-sm);
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 14px; line-height: 1.7;
}
.info-panel.info { background: #ECEDE8; border: 1px solid var(--primary-200); color: var(--primary-dark); }
.info-panel.warning { background: #F6EFDB; border: 1px solid #E5D5A4; color: #6E5520; }
.info-panel.success { background: #EAF2EA; border: 1px solid #C4DCC4; color: #234D39; }

/* === TYPOGRAPHY === */
.text-mono { font-family: var(--font-mono); font-size: 13px; }
.text-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); }
.text-value { font-size: 15px; font-weight: 700; color: var(--gray-800); }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-red { color: var(--red); }
.text-success { color: var(--success); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-hairline) 18%, var(--gold-hairline) 82%, transparent); margin: 24px 0; }

/* === RESPONSIVE — MOBILE FIRST === */

/* Tablet */
@media (max-width: 1023px) {
    .container { padding: 0 16px; }
}

/* === MOBILE SEARCH BAR === */
.mobile-search-toggle {
    display: none; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: var(--gray-50);
    border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    color: var(--gray-600); font-size: 16px; cursor: pointer;
    transition: all var(--transition-fast);
}
.mobile-search-toggle:hover { background: var(--primary-50); color: var(--primary); border-color: var(--gold); }
@media (max-width: 767px) { .mobile-search-toggle { display: flex; } }

.mobile-search-bar {
    display: none; padding: 0 16px 12px;
    background: rgba(252,250,243,0.95);
}
.mobile-search-bar.open { display: block; }
.mobile-search-bar form {
    display: flex; border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm); overflow: hidden;
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-search-bar form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(169,132,46,0.14);
}
.mobile-search-bar input {
    flex: 1; padding: 12px 14px; border: none; outline: none;
    font-size: 15px; font-family: var(--font-family);
    color: var(--gray-800); background: transparent;
    min-width: 0;
}
.mobile-search-bar input::placeholder { color: var(--gray-400); }
.mobile-search-bar button {
    padding: 0 18px; background: var(--primary); color: var(--gold-light);
    border: none; cursor: pointer; font-size: 16px;
    transition: background var(--transition-fast);
}
.mobile-search-bar button:hover { background: var(--primary-light); }

/* Mobile */
@media (max-width: 767px) {
    html { font-size: 15px; }
    .container { padding: 0 16px; }

    /* Compact header */
    .header-main { padding: 10px 0; gap: 10px; }
    .logo { gap: 8px; }
    .logo-img { height: 32px; }
    .logo-icon { width: 38px; height: 38px; }
    .logo-gl { font-size: 12px; }
    .logo-text { font-size: 17px; }
    .logo-text small { font-size: 10px; }

    /* Header actions — touch targets */
    .header-actions { gap: 6px; }
    .basket-toggle { padding: 0.5rem 0.625rem; font-size: 0.9375rem; min-width: 42px; min-height: 42px; justify-content: center; }

    /* Utility bar — simplified */
    .utility-bar { padding: 5px 0; font-size: 11px; }
    .utility-bar .crypto-badge { font-size: 10px; padding: 2px 10px; }
    .utility-bar-left a { display: none; }
    .utility-bar-left > span { display: none; }

    /* Nav bar hidden — hamburger only */
    .nav-bar { display: none; }

    /* Sections tighter */
    .page-hero { padding: 22px 0 18px; }
    .page-title { font-size: 22px; }
    .page-subtitle { font-size: 13px; }
    .section-header { margin-bottom: 26px; }
    .section-heading { font-size: 23px; }
    .section-heading::after { width: 56px; margin-top: 12px; background-size: 56px 1px, 28px 1px; }
    .section-header p { font-size: 14px; }

    /* Buttons — 44px min touch target */
    .btn { padding: 10px 18px; font-size: 13px; min-height: 44px; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
    .btn-sm { padding: 8px 14px; font-size: 12px; min-height: 38px; }

    /* Order CTA */
    .order-cta-bar { flex-direction: column; text-align: center; padding: 18px 16px; border-radius: var(--radius-md); }
    .metric-row { flex-direction: column; }

    /* FAQ tighter */
    .faq-section { padding: 40px 0; }
    .faq-question { padding: 14px 16px; font-size: 15px; min-height: 44px; }
    .faq-answer p { padding: 0 16px 14px; font-size: 13px; }

    /* Footer compact */
    .footer { padding: 36px 0 16px; font-size: 13px; margin-bottom: 56px; }
    .footer-grid { gap: 24px; margin-bottom: 24px; }
    .footer-col h4 { font-size: 12px; margin-bottom: 12px; padding-bottom: 8px; }
    .footer-col ul li { margin-bottom: 12px; }
    .footer-col ul a { font-size: 14px; padding: 2px 0; display: inline-block; }
    .footer-bottom { padding-top: 16px; font-size: 11px; flex-direction: column; text-align: center; }
    .footer-logo img { height: 28px !important; }

    /* Mobile bottom nav */
    .mobile-bottom-nav { padding: 8px 0 env(safe-area-inset-bottom, 6px); }
    .bottom-nav-item { font-size: 10px; padding: 4px 12px; min-height: 44px; justify-content: center; }
    .bottom-nav-item i { font-size: 18px; }

    /* Breadcrumb */
    .breadcrumb { font-size: 12px; margin-bottom: 12px; }

    /* Data tables scroll */
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 8px 10px; }

    /* Cards tighter */
    .pro-card-header { padding: 12px 14px; }
    .pro-card-body { padding: 14px; }

    /* Cert showcase */
    .cert-showcase { padding: 40px 0; }
    .cert-individual-grid { gap: 10px; }
    .cert-individual-card .cert-img-label { padding: 6px 8px; font-size: 9px; }

    /* Mobile menu */
    .mobile-menu { width: 300px; }
    .mobile-menu-link { padding: 15px 20px; font-size: 15px; min-height: 48px; }
    .mobile-menu-link i { font-size: 16px; }
    .mobile-contact-btn { padding: 14px 16px; font-size: 14px; min-height: 48px; }
}

/* Small phones */
@media (max-width: 374px) {
    html { font-size: 14px; }
    .container { padding: 0 12px; }
    .header-main { padding: 8px 0; }
    .logo-img { height: 28px; }
    .logo-icon { width: 34px; height: 34px; }
    .logo-text { font-size: 15px; }
    .section-heading { font-size: 20px; }
    .mobile-menu { width: 280px; }
}

/* Hide old elements */
.crypto-banner { display: none; }
.trust-bar { display: none; }

/* === MODAL SYSTEM === */
.modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20,17,9,0.55); z-index: var(--z-modal); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-4); align-items: flex-start; justify-content: center;
    opacity: 0; transition: opacity 0.25s ease; backdrop-filter: blur(4px);
}
.modal.show { display: flex; opacity: 1; }
.modal-content {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gold-hairline);
    width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xl); margin: auto;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.modal.show .modal-content {
    transform: translateY(0) scale(1); opacity: 1;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-4) var(--space-6);
    border-bottom: 2px solid var(--gold);
    position: sticky; top: 0; z-index: 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.modal-title { font-size: var(--font-size-lg); font-weight: 600; color: var(--gold-light); font-family: var(--font-display); letter-spacing: 0.02em; }
.modal-close {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: rgba(203,173,106,0.12); border: 1px solid rgba(203,173,106,0.35); border-radius: 50%;
    cursor: pointer; color: var(--gold-light); transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--gold); color: var(--primary-darker); border-color: var(--gold); transform: rotate(90deg); }
.modal-body { padding: var(--space-4) var(--space-6); }

/* === NOTIFICATION TOAST === */
.notification-toast {
    position: fixed; top: 20px; right: 20px; z-index: var(--z-notification);
    transform: translateX(120%); transition: transform 0.3s ease;
}
.notification-toast.show { transform: translateX(0); }
.toast-content {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-4); background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md); box-shadow: var(--shadow-xl);
    border-left: 3px solid var(--success-green); min-width: 280px; max-width: 90vw;
}
.notification-toast.success .toast-content { border-left-color: var(--success-green); }
.notification-toast.success .toast-icon { color: var(--success-green); }
.notification-toast.warning .toast-content { border-left-color: var(--gold); }
.notification-toast.warning .toast-icon { color: var(--gold-dark); }
.notification-toast.error .toast-content { border-left-color: var(--error-red); }
.notification-toast.error .toast-icon { color: var(--error-red); }
.notification-toast.info .toast-content { border-left-color: var(--primary); }
.notification-toast.info .toast-icon { color: var(--primary); }
.toast-icon { font-size: 1.25rem; flex-shrink: 0; }
.toast-message { font-weight: 600; font-size: 0.9rem; color: var(--gray-800); }
.toast-subtitle { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 4px; }
.toast-close:hover { color: var(--gray-700); }

@media (max-width: 640px) {
    .modal-content { max-width: 100%; margin: var(--space-2); }
    .modal-body { padding: var(--space-3); }
    .modal-header { padding: var(--space-3) var(--space-4); }
}
@media (max-width: 479px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-content { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; margin: 0; }
    .modal-header { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .modal-body { padding: var(--space-4); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .notification-toast { right: var(--space-3); left: var(--space-3); top: auto; bottom: var(--space-3); }
    .toast-content { min-width: 0; width: 100%; }
}

/* ===== Mobile Optimisation (Jul 2026) ===== */
/* Additive, mobile-scoped only — desktop rendering unchanged. */
@media (max-width: 767px) {
    /* Prevent iOS Safari auto-zoom on focus: all text-entry controls >= 16px.
       (Root font drops to 15px on mobile, so rem-sized inputs fall below 16px.) */
    input[type="text"], input[type="search"], input[type="email"],
    input[type="tel"], input[type="number"], input[type="password"],
    input[type="url"], select, textarea {
        font-size: 16px !important;
    }

    /* 44px minimum touch targets for header + modal controls */
    .hamburger-btn, .mobile-search-toggle { width: 44px; height: 44px; }
    .basket-toggle { min-width: 44px; min-height: 44px; }
    .modal-close { width: 44px; height: 44px; }
    .mobile-menu-close {
        width: 44px; height: 44px;
        display: flex; align-items: center; justify-content: center;
    }

    /* Long unbroken strings (wallet addresses, CAS/mono values) must wrap,
       never push the page wider than the viewport */
    .text-mono, .crypto-address, .pay-crypto-addr, .coa-value,
    .meta-value, .chem-value { overflow-wrap: anywhere; }

    /* FAQ answers: don't clip long answers on narrow screens */
    .faq-item.open .faq-answer { max-height: 1200px; }

    /* Subtle branded tap feedback */
    a, button { -webkit-tap-highlight-color: rgba(169,132,46,0.18); }
}

@media (max-width: 479px) {
    /* Drawer menu never wider than the screen */
    .mobile-menu { width: min(300px, 86vw); }

    /* Order CTA buttons: full-width stacked, comfortable to tap */
    .order-cta-links, .order-cta-actions { width: 100%; flex-direction: column; }
    .order-cta-btn { justify-content: center; min-height: 44px; }
}

@media (max-width: 379px) {
    /* Inline auto-fit grids with large minmax() track minimums (partner cards,
       peptide cards) overflow very narrow phones — collapse to one column */
    div[style*="minmax(320px"], div[style*="minmax(280px"] {
        grid-template-columns: 1fr !important;
    }
}

/* === ACCESSIBILITY UTILITIES === */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary); color: var(--gold-light);
    padding: 10px 18px; font-weight: 700; font-size: 0.875rem;
    border-radius: 0 0 var(--radius-md) 0; z-index: calc(var(--z-notification) + 1);
    text-decoration: none;
}
.skip-link:focus {
    left: 0; color: var(--gold-light);
    outline: 2px solid var(--gold); outline-offset: -2px;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === LIVE SEARCH SUGGESTIONS (header + mobile search) === */
form.has-suggest { overflow: visible !important; }
form.has-suggest button[type="submit"] {
    border-radius: 0 calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0;
}
.search-suggest-wrap { position: relative; flex: 1; display: flex; min-width: 0; }
.search-suggest-wrap > input { width: 100%; }
.search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--gold-hairline);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 32px rgba(28,45,82,0.16), 0 2px 8px rgba(28,45,82,0.08);
    z-index: calc(var(--z-header) + 300);
    max-height: 380px; overflow-y: auto;
    display: none;
}
.search-suggest.open { display: block; }
.search-suggest-item {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 10px 14px; cursor: pointer; text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
}
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover, .search-suggest-item.active { background: var(--primary-50, #F2F4F9); }
.search-suggest-name {
    font-size: 0.85rem; font-weight: 600; color: var(--gray-900);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-suggest-meta {
    font-size: 0.72rem; color: var(--gray-500); flex-shrink: 0;
    font-family: var(--font-mono, monospace);
}
.search-suggest-price { font-size: 0.8rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.search-suggest-footer {
    display: block; padding: 9px 14px; font-size: 0.78rem; font-weight: 700;
    color: var(--primary); text-align: center; background: var(--paper, #FCFAF3);
    border-top: 1px solid var(--gold-hairline);
}


/* Summer Sale 2026-08 — struck list price beside the sale price */
.gl-was{opacity:.5;font-weight:400;font-size:.85em;margin-left:4px;}
