/* ============================================================
   TFC — TIANJIN FINDER CHEMICAL
   DESIGN SYSTEM: "SWISS INDUSTRIAL BOLD"  (overhaul 2026-06)
   Concrete off-white · near-black ink · one vivid cobalt.
   Display: Bricolage Grotesque  ·  Body/UI: Schibsted Grotesk
   Data/SKU/labels: Space Mono
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ---- CORE PALETTE ---- */
    --concrete:      #e8e8e2;   /* page background */
    --paper:         #f4f4ee;   /* raised panels */
    --surface:       #fbfbf7;   /* cards */
    --ink:           #131312;   /* near-black */
    --ink-soft:      #3d3d3a;
    --ink-mute:      #5d5d57;
    --cobalt:        #1f3ae0;   /* THE accent */
    --cobalt-deep:   #1426a8;
    --cobalt-dim:    #0d1a73;
    --cobalt-up:     #4d63f0;
    --cobalt-200:    #b9c3f6;
    --cobalt-100:    #d9def9;
    --cobalt-50:     #e9ecfb;
    --line:          #cfcfc6;   /* hairline rules */
    --line-strong:   #131312;   /* structural rules */
    --grid-line:     rgba(19, 19, 18, 0.05);

    /* ---- LEGACY TOKEN MAP (page CSS depends on these names) ---- */
    --primary:        var(--cobalt);
    --primary-dark:   var(--cobalt-deep);
    --primary-darker: var(--cobalt-dim);
    --primary-light:  var(--cobalt-up);
    --primary-lighter:var(--cobalt-200);
    --primary-50:     var(--cobalt-50);
    --primary-100:    var(--cobalt-100);
    --secondary-green:#131312;
    --success-green:  #0c7a40;
    --warning-yellow: #8a6400;
    --error-red:      #c5271d;
    --accent-navy:    #131312;

    --white:    #fbfbf7;
    --gray-50:  #f1f1ea;
    --gray-100: #e6e6df;
    --gray-200: #d6d6cd;
    --gray-300: #bfbfb6;
    --gray-400: #8c8c85;
    --gray-500: #6a6a64;
    --gray-600: #52524d;
    --gray-700: #3d3d3a;
    --gray-800: #262625;
    --gray-900: #131312;

    --border-subtle:  rgba(19, 19, 18, 0.12);
    --border-default: rgba(19, 19, 18, 0.22);
    --surface-elevated: #fbfbf7;
    --surface-sunken:   #efefe8;

    /* ---- TYPE SYSTEM ---- */
    --font-display: 'Bricolage Grotesque', 'Schibsted Grotesk', -apple-system, sans-serif;
    --font-family:  'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --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;

    --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;

    /* hard, architectural shadows */
    --shadow-sm: 2px 2px 0 rgba(19, 19, 18, 0.08);
    --shadow-md: 4px 4px 0 rgba(19, 19, 18, 0.10);
    --shadow-lg: 6px 6px 0 rgba(19, 19, 18, 0.12);
    --shadow-xl: 10px 10px 0 rgba(19, 19, 18, 0.14);

    /* everything square */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;

    --transition-fast: 150ms cubic-bezier(.3,.7,.2,1);
    --transition-normal: 250ms cubic-bezier(.3,.7,.2,1);

    /* Z-index system */
    --z-ticker: 900;
    --z-header: 1000;
    --z-modal: 2000;
    --z-notification: 3000;
}

html { font-size: 16px; }

::selection { background: var(--cobalt); color: #fbfbf7; }

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--concrete);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    -webkit-touch-callout: none;
}

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

:focus-visible {
    outline: 2px solid var(--cobalt);
    outline-offset: 2px;
}

/* Skip-to-content link — visually hidden until keyboard-focused */
.skip-link {
    position: absolute;
    top: -60px;
    left: 8px;
    z-index: 4000;
    padding: 10px 18px;
    background: var(--cobalt);
    color: #fbfbf7;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: top var(--transition-fast);
}
.skip-link:focus {
    top: 8px;
}

/* Respect user motion preferences */
@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;
    }
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 640px) { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-family);
    font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    border-radius: 0; border: 1px solid transparent; cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    text-decoration: none; white-space: nowrap; user-select: none;
    min-height: 44px;
}
.btn-primary { background: var(--cobalt); color: #fbfbf7; border-color: var(--cobalt); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fbfbf7; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fbfbf7; border-color: var(--ink); }
.btn-success { background: var(--success-green); color: #fbfbf7; }
.btn-success:hover { background: var(--ink); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--font-size-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: 0.9rem; }

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.hidden { display: none; }
.text-sm { font-size: var(--font-size-sm); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }

/* === UTILITY CLASSES: SECTION === */
.section-heading { color: var(--ink); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.section-icon { color: var(--cobalt); margin-right: 8px; }
.section-alt { background-color: var(--paper); }

/* === ANNOUNCEMENT BAR (above trust bar) === */
.announcement-bar {
    background: var(--cobalt);
    color: #fbfbf7;
    padding: 10px 0;
    position: relative;
    z-index: var(--z-ticker);
    font-size: 0.8rem;
    text-align: center;
    border-bottom: 1px solid var(--cobalt-deep);
}
.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.announcement-icon { font-size: 1.05rem; line-height: 1; }
.announcement-text {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.announcement-text strong { font-weight: 700; }
@media (max-width: 767px) {
    .announcement-bar { font-size: 0.78rem; padding: 8px 0; }
    .announcement-icon { font-size: 0.95rem; }
}
@media (max-width: 479px) {
    .announcement-bar { font-size: 0.72rem; padding: 7px 0; }
    .announcement-inner { gap: 0.375rem; }
}

/* === TRUST BAR — ink strip, mono micro-labels === */
.trust-bar {
    background: var(--ink);
    color: #d9d9d2;
    padding: 9px 0;
    position: relative;
    z-index: var(--z-ticker);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.trust-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0 1.1rem;
    position: relative;
}
.trust-bar-item + .trust-bar-item::before {
    content: '';
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 12px;
    background: rgba(251, 251, 247, 0.25);
}
a.trust-bar-item { transition: color var(--transition-fast); }
a.trust-bar-item:hover { color: #fbfbf7 !important; }
.trust-bar-item i {
    font-size: 0.66rem;
    color: var(--cobalt-up);
}
.cart-btn-text { display: none; }
@media (min-width: 480px) { .cart-btn-text { display: inline; } }

/* === HEADER === */
.header {
    background: var(--paper);
    padding: 0;
    position: sticky; top: 0; z-index: var(--z-header);
    border-bottom: 2px solid var(--ink);
}
.header-content {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-4); min-height: 64px;
}
.logo { display: flex; align-items: center; text-decoration: none; gap: var(--space-3); min-height: 44px; }
.logo-img { width: 38px; height: 38px; border-radius: 0; object-fit: cover; border: 1px solid var(--ink); }
.footer-logo-img { width: 30px; height: 30px; border-radius: 0; object-fit: cover; margin-right: 8px; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 800; color: var(--ink);
    line-height: 1.1; letter-spacing: -0.01em;
}
.logo-text small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem; font-weight: 400; color: var(--ink-mute);
    letter-spacing: 0.16em; text-transform: uppercase; margin-top: 2px;
}
.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.shipping-info {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2) var(--space-3); background: var(--cobalt-50);
    border: 1px solid var(--cobalt-100); border-radius: 0;
    font-size: 0.75rem; color: var(--cobalt-deep);
}
.shipping-info i { color: var(--cobalt); font-size: 0.7rem; }

.cart-btn {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2) var(--space-4); background: var(--cobalt);
    color: #fbfbf7; border: 1px solid var(--cobalt); border-radius: 0;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    position: relative;
    min-height: 44px;
}
.cart-btn:hover { background: var(--ink); border-color: var(--ink); }
.cart-count {
    background: var(--ink); color: #fbfbf7; border-radius: 0;
    min-width: 20px; height: 20px; padding: 0 4px;
    display: flex; align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.68rem; font-weight: 700;
}
.cart-btn:hover .cart-count { background: var(--cobalt); }

/* === DESKTOP NAVIGATION === */
.nav-desktop { display: none; }
@media (min-width: 768px) { .nav-desktop { display: block; } }
.nav-links {
    list-style: none; display: flex; gap: 2px; align-items: center;
}
.nav-link {
    display: inline-block;
    padding: var(--space-2) 9px; color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.09em;
    border-radius: 0;
    white-space: nowrap;
    background-image: linear-gradient(var(--cobalt), var(--cobalt));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 9px calc(100% - 4px);
    transition: color var(--transition-fast), background-size 0.25s cubic-bezier(.3,.7,.2,1);
}
.nav-link:hover { color: var(--cobalt); background-size: calc(100% - 18px) 2px; }
.nav-link.active { color: var(--cobalt); background-size: calc(100% - 18px) 2px; }
.nav-link-secondary { color: var(--ink-mute); }
.nav-link-secondary:hover { color: var(--cobalt); }
.nav-link-secondary.active { color: var(--cobalt); }

/* Verified On dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--surface); border: 1px solid var(--ink);
    border-radius: 0; box-shadow: var(--shadow-lg);
    list-style: none; padding: 4px 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: 10px; padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-soft); text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-dropdown-menu li a:hover { background: var(--cobalt); color: #fbfbf7; }
.nav-dropdown-menu li a i { width: 16px; text-align: center; color: var(--cobalt); font-size: 0.78rem; }
.nav-dropdown-menu li a:hover i { color: #fbfbf7; }

.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: flex; } }
.mobile-only { display: flex; }
@media (min-width: 768px) { .mobile-only { display: none; } }

/* === HAMBURGER MENU === */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--ink);
    border-radius: 0;
    cursor: pointer;
}
.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 0;
    transition: all 0.3s ease;
}
@media (max-width: 767px) {
    .hamburger-btn { display: flex; }
}

/* === MOBILE MENU === */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: calc(var(--z-header) + 10);
    background: rgba(19, 19, 18, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    height: 100dvh;
    background: var(--paper);
    border-left: 2px solid var(--ink);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-6) var(--space-4);
    z-index: calc(var(--z-header) + 11);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--ink);
}
.mobile-menu-title {
    font-family: var(--font-mono);
    font-weight: 700; font-size: 0.75rem; color: var(--ink);
    text-transform: uppercase; letter-spacing: 0.18em;
}
.mobile-menu-close {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--ink); border-radius: 0;
    cursor: pointer; font-size: 1rem; color: var(--ink);
}
.mobile-menu-close:hover { background: var(--ink); color: #fbfbf7; }
.mobile-menu-footer {
    margin-top: var(--space-6); padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: var(--space-3);
}
.mobile-menu-footer a {
    display: flex; align-items: center; gap: var(--space-2);
    color: var(--cobalt); text-decoration: none; font-size: var(--font-size-sm); font-weight: 700;
}
.mobile-menu-footer a:hover { text-decoration: underline; }
.mobile-nav-links {
    list-style: none;
}
.mobile-nav-links li { border-bottom: 1px solid var(--line); }
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-2);
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}
.mobile-nav-links a:hover { color: var(--cobalt); }
.mobile-nav-links a.active { color: var(--cobalt); font-weight: 700; }
.mobile-nav-links a i { width: 20px; text-align: center; color: var(--cobalt); }

/* === CHINESE CULTURAL ACCENTS === */
.cn-accent { font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif; }
.cn-divider {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    margin: 1.5rem 0; color: var(--gray-300);
}
.cn-divider::before, .cn-divider::after {
    content: ''; flex: 1; max-width: 80px; height: 1px;
    background: var(--line);
}
.cn-divider span { font-size: 0.75rem; color: var(--gray-400); letter-spacing: 0.1em; }
.cn-seal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: 2px solid var(--cobalt); border-radius: 0;
    color: var(--cobalt); font-size: 0.6rem; font-weight: 800;
    font-family: 'Noto Serif SC', serif; transform: rotate(-3deg);
    line-height: 1;
}

/* === MODAL SYSTEM === */
.modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(19, 19, 18, 0.6); 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;
}
.modal.show { display: flex; opacity: 1; }
.modal-content {
    background: var(--surface); border-radius: 0;
    border: 1px solid var(--ink);
    width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xl); margin: auto;
    transform: translateY(16px);
    transition: transform 0.3s cubic-bezier(.3,.7,.2,1), opacity 0.3s ease;
    opacity: 0;
}
.modal.show .modal-content {
    transform: translateY(0);
    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(--ink);
    position: sticky; top: 0; z-index: 1;
    border-radius: 0;
    background: var(--paper);
}
.modal-title {
    font-family: var(--font-display);
    font-size: var(--font-size-lg); font-weight: 800; color: var(--ink);
    letter-spacing: -0.01em;
}
.modal-close {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--ink); border-radius: 0;
    cursor: pointer; color: var(--ink); transition: all var(--transition-fast);
    flex-shrink: 0;
}
.modal-close:hover { background: var(--ink); color: #fbfbf7; border-color: var(--ink); }
.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 cubic-bezier(.3,.7,.2,1);
}
.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(--ink);
    color: #fbfbf7;
    border-radius: 0; box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--success-green); min-width: 280px;
    max-width: 90vw;
}
.toast-content.error { border-left-color: var(--error-red); }
.toast-content.warning { border-left-color: #d8a200; }
.toast-content.info { border-left-color: var(--cobalt-up); }
.toast-icon { font-size: 1.1rem; color: var(--cobalt-200); }
.toast-message { font-weight: 700; font-size: var(--font-size-sm); color: #fbfbf7; }
.toast-subtitle { font-size: var(--font-size-xs); color: #b8b8b0; }
.toast-close { background: none; border: none; color: #8c8c85; cursor: pointer; padding: 4px; }
.toast-close:hover { color: #fbfbf7; }

/* === SEARCH DROPDOWN === */
.search-container { position: relative; flex-shrink: 0; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: var(--font-size-sm); }
.search-input {
    width: 220px; padding: var(--space-2) var(--space-3) var(--space-2) 36px;
    border: 1px solid var(--ink); border-radius: 0;
    background: var(--surface);
    font-family: var(--font-family);
    font-size: var(--font-size-sm); outline: none; transition: all var(--transition-fast);
    min-height: 44px;
}
.search-input:focus { border-color: var(--cobalt); box-shadow: inset 0 -2px 0 var(--cobalt); width: 280px; }
.search-dropdown {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--ink);
    border-radius: 0; box-shadow: var(--shadow-lg);
    z-index: 100; max-height: 400px; overflow-y: auto; margin-top: 4px;
}
.search-result-item {
    display: flex; align-items: center; padding: var(--space-3);
    border-bottom: 1px solid var(--line); cursor: pointer;
    transition: background var(--transition-fast);
}
.search-result-item:hover { background: var(--cobalt-50); }
.search-result-info { flex: 1; }
.search-result-name { font-weight: 700; font-size: var(--font-size-sm); color: var(--ink); }
.search-result-details { font-size: var(--font-size-xs); color: var(--gray-500); }
.search-result-price { font-family: var(--font-mono); font-weight: 700; color: var(--cobalt); font-size: var(--font-size-sm); }

/* === PAGE HERO (About, Contact, 404) === */
.page-hero {
    background: var(--paper);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 2px solid var(--ink);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
    line-height: 1.02;
}
.page-hero p {
    font-size: 1.05rem;
    color: var(--ink-mute);
    max-width: 640px;
}

/* === ABOUT & CONTACT MODALS === */
.about-content, .contact-content { line-height: 1.7; }
.about-section, .contact-section { margin-bottom: var(--space-6); }
.about-section h3, .contact-section h3 { font-size: var(--font-size-lg); font-weight: 700; margin-bottom: var(--space-3); color: var(--ink); }
.about-section p, .contact-section p { margin-bottom: var(--space-3); color: var(--gray-700); }
.about-section ul, .contact-section ul { padding-left: var(--space-6); margin-bottom: var(--space-3); }
.about-section li, .contact-section li { margin-bottom: var(--space-2); color: var(--gray-700); }
.contact-item { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-3); }
.contact-item i { color: var(--cobalt); margin-top: 4px; }
.contact-item a { color: var(--cobalt); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* === POLICY MODAL === */
.policy-section { margin-bottom: 1.5rem; }
.policy-section h3 {
    font-size: 1rem; font-weight: 700; color: var(--ink);
    margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.policy-section h3 i { color: var(--cobalt); }
.policy-section ul { list-style: none; padding: 0; }
.policy-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem; position: relative;
    font-size: 0.875rem; color: var(--gray-700); line-height: 1.5;
}
.policy-section ul li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; color: var(--cobalt); font-size: 0.75rem; top: 0.625rem;
}
.policy-highlight {
    background: var(--cobalt-50);
    border: 1px solid var(--cobalt-100); border-left: 4px solid var(--cobalt);
    border-radius: 0;
    padding: 1rem 1.25rem; margin: 1rem 0;
}
.policy-highlight p { font-size: 0.875rem; color: var(--cobalt-dim); font-weight: 500; }
.policy-guarantee {
    background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
    padding: 1.25rem; text-align: center; margin-top: 1.5rem;
}
.policy-guarantee i { font-size: 2rem; color: var(--cobalt); margin-bottom: 0.5rem; }
.policy-guarantee h4 { font-size: 1rem; color: var(--ink); margin-bottom: 0.25rem; }
.policy-guarantee p { font-size: 0.8125rem; color: var(--ink-mute); }

/* === FOOTER === */
.footer {
    background: var(--ink);
    color: #b8b8b0; padding: 3.5rem 0 2rem;
    margin-top: 0; font-size: var(--font-size-sm);
    border-top: 6px solid var(--cobalt);
    position: relative;
}
.footer::before {
    content: 'TFC';
    position: absolute;
    right: -0.04em; bottom: -0.18em;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(8rem, 20vw, 18rem);
    line-height: 1;
    color: rgba(251, 251, 247, 0.03);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}
.footer .container { position: relative; }
.footer a { color: var(--cobalt-200); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.footer a:hover { text-decoration: none; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}
.footer-col h4 {
    color: #fbfbf7;
    font-family: var(--font-mono);
    font-size: 0.68rem; font-weight: 700; margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: 0.2em; position: relative; padding-bottom: 0.625rem;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 28px; height: 2px; background: var(--cobalt-up); border-radius: 0;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
    color: #b8b8b0; font-size: 0.8125rem;
    transition: color 0.2s ease;
    position: relative; display: inline-block;
}
.footer-col ul li a::after {
    content: ''; position: absolute; bottom: -1px; left: 0;
    width: 0; height: 1px; background: var(--cobalt-200); transition: width 0.25s cubic-bezier(.3,.7,.2,1);
}
.footer-col ul li a:hover { color: #fbfbf7; text-decoration: none; }
.footer-col ul li a:hover::after { width: 100%; }
.footer-col p { font-size: 0.8125rem; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid rgba(251, 251, 247, 0.15); padding-top: 2rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.62rem; color: #8c8c85;
    text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-logo {
    display: flex; align-items: center; gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 800; color: #fbfbf7;
    margin-bottom: 0.75rem; text-decoration: none;
}
.footer-logo small {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.56rem; font-weight: 400;
    color: #8c8c85; letter-spacing: 0.14em; text-transform: uppercase;
}
.footer-copyright {
    text-align: center; padding-top: 0.5rem; margin-top: 0.5rem;
}
.footer-social { display: flex; gap: 0.625rem; }
.footer-social a {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(251, 251, 247, 0.3);
    border-radius: 0; color: #b8b8b0;
    transition: all 0.2s cubic-bezier(.3,.7,.2,1);
}
.footer-social a:hover { background: var(--cobalt); color: #fbfbf7; border-color: var(--cobalt); transform: translateY(-2px); }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(.3,.7,.2,1), transform 0.6s cubic-bezier(.3,.7,.2,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.loading { text-align: center; padding: var(--space-8); color: var(--gray-500); }
.loading-spinner {
    width: 40px; height: 40px; border: 3px solid var(--gray-200);
    border-top-color: var(--cobalt); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto var(--space-4);
}

/* === RESPONSIVE BASE === */
@media (max-width: 640px) {
    .header-content { flex-wrap: nowrap; }
    .modal-content { max-width: 100%; margin: var(--space-2); }
    .modal-body { padding: var(--space-3); }
    .modal-header { padding: var(--space-3) var(--space-4); }
    .page-hero h1 { word-wrap: break-word; overflow-wrap: break-word; }
}

@media (max-width: 767px) {
    .header .shipping-info { display: none; }
    .header .cart-btn.desktop-only { display: none !important; }

    body { font-size: 1rem; line-height: 1.65; -webkit-text-size-adjust: 100%; }

    .header-content { gap: var(--space-2); min-height: 56px; }
    .logo-img { width: 32px; height: 32px; }
    .logo-text { font-size: 1.1rem; }
    .logo-text small { font-size: 0.5rem; }

    .search-container { width: 100%; }
    .search-input { width: 100%; min-height: 44px; }
    .search-input:focus { width: 100%; }
    .search-dropdown { left: var(--space-2); right: var(--space-2); }

    /* Touch targets */
    .cart-btn { padding: 0.625rem 1rem; min-height: 44px; font-size: 0.78rem; }
    .btn { min-height: 44px; padding: 0.625rem 1.25rem; }
    .btn-sm { min-height: 40px; padding: 0.5rem 1rem; }
    .btn-lg { min-height: 52px; padding: 0.875rem 1.5rem; }
    .modal-close { width: 44px; height: 44px; font-size: 1.125rem; }

    /* Modal bottom sheet */
    .modal { padding: 0; align-items: flex-end; }
    .modal-content {
        max-width: 100%; width: 100%;
        max-height: calc(95vh - env(safe-area-inset-bottom));
        margin: 0;
        border-left: none; border-right: none; border-bottom: none;
        border-top: 2px solid var(--ink);
        border-radius: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .modal-header {
        padding: var(--space-4); border-radius: 0;
        position: sticky; top: 0; z-index: 2;
        gap: var(--space-3);
    }
    .modal-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .modal-body { padding: var(--space-4); overflow-y: auto; -webkit-overflow-scrolling: touch; }

    /* Notification toast full width — sits above bottom nav */
    .notification-toast { right: var(--space-3); left: var(--space-3); top: auto; bottom: calc(64px + var(--space-3)); }
    .toast-content { width: 100%; min-width: unset; max-width: unset; }

    /* Larger icons */
    i.fa, i.fas, i.far, i.fab { font-size: 1.125em; }

    /* Improve text contrast */
    .text-gray-500 { color: var(--gray-600); }

    /* Page hero */
    .page-hero { padding: 2.25rem 0 1.75rem; }
    .page-hero h1 { font-size: 1.75rem; }
    .page-hero p { font-size: 0.95rem; }

    /* Footer */
    .footer { padding: 2rem 0 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-col h4 { font-size: 0.66rem; margin-bottom: 0.875rem; }
    .footer-col ul li a { padding: 0.5rem 0; font-size: 0.875rem; display: block; min-height: 44px; line-height: 2.4; }
    .footer-col p { font-size: 0.875rem; line-height: 1.65; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
    .footer-bottom p { font-size: 0.62rem; }
    .footer-social { justify-content: center; }
    .footer-social a { width: 44px; height: 44px; font-size: 1.125rem; }
}

/* === EMAIL CAPTURE POPUP === */
.email-capture-code-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--cobalt-50);
    border: 2px dashed var(--cobalt);
    border-radius: 0;
    margin-top: var(--space-3);
}
.email-capture-code-card span { font-family: var(--font-mono); }
.email-capture-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--cobalt);
    color: #fbfbf7;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background var(--transition-fast);
    min-height: 36px;
}
.email-capture-copy-btn:hover { background: var(--ink); }

/* === TELEGRAM REPS MODAL === */
.tg-reps-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.tg-rep-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    min-height: 44px;
}
.tg-rep-card:hover {
    background: var(--surface);
    border-color: var(--ink);
    box-shadow: var(--shadow-md);
}
.tg-rep-avatar {
    width: 44px;
    height: 44px;
    background: #229ED9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.tg-rep-info {
    flex: 1;
}
.tg-rep-name {
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--ink);
}
.tg-rep-handle {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    color: #1a8bc7;
    font-weight: 700;
}
.tg-rep-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: #229ED9;
    color: white;
    border-radius: 0;
    font-size: var(--font-size-xs);
    font-weight: 700;
    white-space: nowrap;
    min-height: 36px;
}
.tg-rep-card:hover .tg-rep-btn {
    background: #1a8bc7;
}

/* === WAREHOUSE BUTTON === */
.warehouse-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    transition: all 0.15s;
    min-height: 36px;
}
.warehouse-btn:hover {
    background: var(--ink);
    color: #fbfbf7;
}
@media (max-width: 768px) {
    .warehouse-btn .warehouse-btn-name { display: none; }
}

/* Performance */
@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;
    }
}

@media (max-width: 767px) {
    .modal-content { will-change: transform; }
    .notification-toast { will-change: transform; }
    .footer-social a:hover { transform: none; }
}

@media (max-width: 767px) {
    .trust-bar-inner { gap: 0; }
    .trust-bar-item { padding: 0 0.7rem; font-size: 0.6rem; }
    .trust-bar-item i { font-size: 0.66rem; }
    .trust-bar-item:nth-child(n+4) { display: none; }
    .footer-copyright { font-size: 0.62rem; }
}
@media (max-width: 479px) {
    .modal-header { padding: var(--space-3) var(--space-4); }
    .modal-title { font-size: var(--font-size-base); }
    .btn { width: 100%; }
    .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.85rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 359px) {
    .modal-header { padding: var(--space-3); }
    .modal-body { padding: var(--space-3); }
    .container { padding: 0 var(--space-3); }
    .logo-text { font-size: 0.95rem; }
    .logo-text small { font-size: 0.45rem; }
}

/* ========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ======================================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--paper);
        border-top: 2px solid var(--ink);
        z-index: 1500;
        padding: 4px 0;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 0;
        text-decoration: none;
        color: var(--ink-mute);
        font-family: var(--font-mono);
        font-size: 0.56rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        transition: color 0.15s;
        position: relative;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item i {
        font-size: 1.05rem;
    }

    .bottom-nav-item.active {
        color: var(--cobalt);
    }
    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: -6px; left: 20%; right: 20%;
        height: 3px;
        background: var(--cobalt);
    }

    .bottom-nav-item:active {
        color: var(--cobalt);
    }

    .bottom-nav-badge {
        position: absolute;
        top: 2px;
        right: 50%;
        transform: translateX(14px);
        background: var(--cobalt);
        color: #fbfbf7;
        font-family: var(--font-mono);
        font-size: 0.58rem;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    .bottom-nav-badge:empty,
    .bottom-nav-badge[data-count="0"] {
        display: none;
    }

    /* Add bottom padding to body so content isn't hidden behind nav */
    body {
        padding-bottom: 64px;
    }

    /* Footer above bottom nav */
    .footer { padding-bottom: 20px; }
}

/* === REPORT LIGHTBOX === */
.report-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(19, 19, 18, 0.92);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}
.report-lightbox.active { display: flex; }
.report-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fbfbf7;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    border: 1px solid rgba(251, 251, 247, 0.4);
    transition: background 0.2s, border-color 0.2s;
    z-index: 1;
}
.report-lightbox-close:hover { background: var(--cobalt); border-color: var(--cobalt); }
.report-lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 0;
    border: 1px solid rgba(251, 251, 247, 0.2);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    cursor: default;
}
.report-lightbox-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}
.report-lightbox-name {
    color: #fbfbf7;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}
.report-lightbox-verify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--cobalt);
    color: #fbfbf7;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.2s;
}
.report-lightbox-verify:hover { background: var(--cobalt-deep); }

/* ===== Mobile Optimisation (Jul 2026) ===== */
/* Additive, media-query-scoped only — desktop rendering unchanged. */

@media (max-width: 767px) {
    /* Prevent iOS Safari auto-zoom on focus: every text-entry control gets
       >=16px. !important needed to beat inline styles (track/pay lookup,
       email-capture, affiliate, crypto-guide inputs) and 14px component rules
       (promo code, header search, pricelist search). */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
    /* Exception: wholesale OTP digit boxes are intentionally larger than
       16px — don't shrink them. Match wholesale.css's own sizes: 1.5rem
       base, 1.2rem at its <=600px breakpoint. */
    .ws-otp-inputs input {
        font-size: 1.5rem !important;
    }
    @media (max-width: 600px) {
        .ws-otp-inputs input {
            font-size: 1.2rem !important;
        }
    }

    /* Horizontal overflow guard — clip (not hidden) so the sticky header
       keeps working; stops long CAS numbers / addresses causing sideways
       wobble. */
    body {
        overflow-x: clip;
    }

    /* Media can never force sideways scroll */
    #main-content img,
    #main-content video,
    #main-content iframe {
        max-width: 100%;
    }

    /* Any raw data table (referral stats, traffic stats, report tables)
       becomes horizontally scrollable instead of blowing out the page. */
    #main-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Discount code card: code + copy button wrap instead of overflowing
       on narrow phones */
    .email-capture-code-card {
        flex-wrap: wrap;
    }

    /* Comfortable tap targets for trust-bar links */
    .trust-bar-item {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }

    /* Warehouse picker button: full 44px touch height */
    .warehouse-btn {
        min-height: 44px;
        padding: 7px 12px;
    }
}

/* Dynamic-viewport modal height: avoids the iOS URL-bar cutting off the
   bottom of bottom-sheet modals */
@media (max-width: 767px) {
    @supports (height: 1dvh) {
        .modal-content {
            max-height: calc(96dvh - env(safe-area-inset-bottom));
        }
    }
}

@media (max-width: 479px) {
    /* Toast never wider than the screen */
    .notification-toast {
        max-width: calc(100vw - (var(--space-3) * 2));
    }
    .toast-content {
        min-width: 0;
    }
}
