/*
Theme Name: CertaPeptides
Description: Clean research peptide ecommerce theme
Version: 4.0.0
Text Domain: certapeptides
*/

/* ============================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ============================================================ */
:root {
    /* -- Teal scale (Geist 10-step) -- */
    --teal-1: #F0FDFA;
    --teal-2: #CCFBF1;
    --teal-3: #99F6E4;
    --teal-4: #5EEAD4;
    --teal-5: #2DD4BF;
    --teal-6: #14B8A6;
    --teal-7: #0D9488;
    --teal-8: #0F766E;
    --teal-9: #115E59;
    --teal-10: #134E4A;

    /* -- Gray / Navy scale (Geist 10-step) -- */
    --gray-1: #F9FAFB;
    --gray-2: #F3F4F6;
    --gray-3: #E5E7EB;
    --gray-4: #D1D5DB;
    --gray-5: #9CA3AF;
    --gray-6: #6B7280;
    --gray-7: #4B5563;
    --gray-8: #374151;
    --gray-9: #1E293B;
    --gray-10: #0F172A;

    /* -- Semantic aliases — Phase 3 Dark Site-Wide -- */
    /* Primary teal: brighter for dark bg contrast (WCAG AA ≥4.5:1 on #0A0F1E) */
    --color-primary: #0FA6A0;
    --color-primary-hover: #14CCB4;
    --color-primary-light: rgba(15, 166, 160, 0.1);
    --color-dark: var(--gray-10);           /* stays #0F172A — used for announcement bar bg */
    --color-dark-hover: var(--gray-9);
    --color-text: #E2E8F0;
    --color-text-light: #94A3B8;
    --color-text-lighter: #64748B;
    --color-border: #1E293B;
    --color-border-light: #151B2E;

    /* -- Background surfaces — dark -- */
    --bg-1: #0A0F1E;
    --bg-2: #070B14;
    --color-bg: var(--bg-1);
    --color-bg-light: var(--bg-2);

    /* -- Status -- */
    --color-sale: #DC2626;
    --color-success: #059669;
    --color-warning: #D97706;
    --color-info: #2563EB;

    /* -- Typography -- */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* -- Layout -- */
    --container-width: 1200px;
    --header-height: 64px;

    /* -- Radii -- */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    /* -- Shadows (dark context — higher opacity) -- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.15);

    /* -- Spacing scale (Geist 4px grid) -- */
    --space-0: 0;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    --space-11: 80px;
    --space-12: 96px;
    --space-13: 128px;

    /* -- Alpha borders (inverted for dark bg) -- */
    --border-alpha: rgba(255, 255, 255, 0.06);
    --border-alpha-dark: rgba(255, 255, 255, 0.1);

    /* -- Z-Index scale -- */
    --z-hide: -1;
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* -- Transitions (Geist easing) -- */
    --ease-default: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;
    --transition: all var(--duration-normal) ease;
    --transition-fast: all var(--duration-fast) ease;

    /* -- Focus ring (bg-1 is now dark, ring still works) -- */
    --focus-ring: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--color-primary);

    /* -- Monospace font -- */
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

/* Global focus-visible outline for keyboard users */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #E2E8F0; /* was var(--color-dark) — explicit override since --color-dark stays navy for bg use */
}

h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.15; }
h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: clamp(20px, 2.5vw, 28px); letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
h5 { font-size: 16px; line-height: 1.4; }
h6 { font-size: 14px; line-height: 1.4; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* ============================================================
   2b. LABEL vs COPY TYPOGRAPHY (Geist pattern)
   Labels: tight line-height (1.2) — prices, badges, nav items
   Copy:   generous line-height (1.6) — paragraphs, descriptions
   ============================================================ */
.cp-label-12 { font-size: 12px; line-height: 1.2; }
.cp-label-13 { font-size: 13px; line-height: 1.2; }
.cp-label-14 { font-size: 14px; line-height: 1.2; }
.cp-label-16 { font-size: 16px; line-height: 1.2; }
.cp-label--strong { font-weight: 600; }
.cp-label--caps { text-transform: uppercase; letter-spacing: 0.05em; }

.cp-copy-12 { font-size: 12px; line-height: 1.6; }
.cp-copy-13 { font-size: 13px; line-height: 1.6; }
.cp-copy-14 { font-size: 14px; line-height: 1.6; }
.cp-copy-16 { font-size: 16px; line-height: 1.6; }

/* -- Code / Monospace (Geist Mono) -- */
.cp-code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 2px 6px;
    background: var(--bg-2);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    color: #E2E8F0;
}

pre.cp-pre {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    background: var(--gray-10);
    color: var(--gray-2);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    tab-size: 2;
}

pre.cp-pre code {
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ============================================================
   3. CONTAINER & LAYOUT
   ============================================================ */
.container,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 60px 0; }
.section-light { background: var(--color-bg-light); }
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

/* ============================================================
   4. ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    background: var(--color-dark);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 1001;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.announcement-bar p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.announcement-phone,
.announcement-whatsapp {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.announcement-phone:hover,
.announcement-whatsapp:hover {
    color: var(--cp-primary, #0FA6A0);
}

.announcement-whatsapp {
    color: #25D366;
}

.announcement-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition-fast);
}

.announcement-dismiss:hover {
    color: #fff;
}

/* ============================================================
   5. HEADER / NAVIGATION
   ============================================================ */
.site-header {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #1E293B;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.2s;
}

.site-header.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo img,
.site-logo svg {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #E2E8F0;
    letter-spacing: -0.5px;
}

/* Logo SVG color for dark header */
.site-logo svg { color: #E2E8F0; }

.site-logo:hover .logo-text {
    color: var(--color-primary);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
    display: block;
    transition: var(--transition-fast);
}

.main-nav a:hover { color: #fff; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #fff;
}

.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

/* Sub-menus */
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
    margin-top: 20px;
}

/* Invisible hover bridge — prevents dead zone between trigger and dropdown */
.main-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
}

.main-nav li:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu a {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 16px;
    font-weight: 500;
}

.main-nav .sub-menu a:hover {
    background: rgba(15, 166, 160, 0.08);
    color: #0FA6A0;
}

/* Header Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #94A3B8;                        /* was var(--color-dark) — invisible on dark bg */
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.header-icon:hover {
    color: #0FA6A0;
    background: rgba(15, 166, 160, 0.1);
}

.header-icon svg {
    width: 20px;
    height: 20px;
}

/* Cart count badge */
.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
}

/* ============================================================
   6. SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 11, 20, 0.95);     /* deep dark overlay for dark-on-dark */
    z-index: 2000;
    align-items: flex-start;
    padding-top: 120px;
}

.search-overlay.active {
    display: flex;
    justify-content: center;
}

.search-overlay .container {
    max-width: 640px;
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar form {
    flex: 1;
    min-width: 0;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #0A0F1E;
    color: #E2E8F0;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Hide native search cancel button (Safari/Chrome) */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.search-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 24px;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.search-close:hover {
    color: #E2E8F0;
    border-color: var(--color-text-light);
    background: var(--bg-2);
}

/* ============================================================
   7. MOBILE MENU
   ============================================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #070B14;
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: #E2E8F0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #94A3B8;
}

.mobile-nav a:hover {
    background: rgba(15, 166, 160, 0.08);
    color: #0FA6A0;
}

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
}

.mobile-menu-footer a {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ============================================================
   8. HERO SECTION (v4.1 — Clinical Precision)
   ============================================================ */

/* -- Cascade entrance animation (v4.2 — Cinematic) -- */

/* Base reveal — spring-physics cubic-bezier */
@keyframes cpReveal {
    0%   { opacity: 0; transform: translateY(28px) scale(0.98); filter: blur(4px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Eyebrow marker line draws in from left */
@keyframes cpMarkerDraw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Headline lines clip-reveal from left */
@keyframes cpLineReveal {
    0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
    30%  { opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* Accent line shimmer (≥98% Pure) */
@keyframes cpShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Trust strip items slide up from below */
@keyframes cpTrustSlide {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Floating particles */
@keyframes cpFloat1 { 0%,100% { transform: translate(0,0) scale(1); opacity: 0.3; } 50% { transform: translate(12px,-18px) scale(1.2); opacity: 0.6; } }
@keyframes cpFloat2 { 0%,100% { transform: translate(0,0) scale(1); opacity: 0.2; } 50% { transform: translate(-16px,14px) scale(0.8); opacity: 0.5; } }
@keyframes cpFloat3 { 0%,100% { transform: translate(0,0) scale(0.9); opacity: 0.25; } 50% { transform: translate(8px,20px) scale(1.15); opacity: 0.55; } }

/* Soft background pulse */
@keyframes cpBgPulse {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

/* Button glow pulse on entrance */
@keyframes cpBtnGlow {
    0%   { box-shadow: 0 0 0 0 rgba(13,148,136, 0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(13,148,136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13,148,136, 0); }
}

/* Apply cascade with richer timings */
[data-cascade]      { opacity: 0; animation: cpReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
[data-cascade="0"]  { animation-delay: 0.15s; }
[data-cascade="1"]  { animation-delay: 0.35s; }
[data-cascade="2"]  { animation-delay: 0.6s; }
[data-cascade="3"]  { animation-delay: 0.85s; }
[data-cascade="4"]  { animation-delay: 1.0s; }
[data-cascade="5"]  { animation-delay: 1.15s; }

/* Eyebrow marker draws in */
.cp-hero__marker {
    transform-origin: left;
    animation: cpMarkerDraw 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Headline lines get clip-reveal treatment */
.cp-hero__line {
    animation: cpLineReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cp-hero__line:nth-child(1) { animation-delay: 0.4s; }
.cp-hero__line:nth-child(2) { animation-delay: 0.6s; }
.cp-hero__line:nth-child(3) { animation-delay: 0.8s; }

/* Accent line gets a shimmer after revealing */
.cp-hero__line--accent {
    background: linear-gradient(
        90deg,
        var(--teal-4) 0%,
        #5EEAD4 40%,
        #fff 50%,
        #5EEAD4 60%,
        var(--teal-4) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        cpLineReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both,
        cpShimmer 3s ease-in-out 1.8s 1;
}

/* Primary CTA gets a glow ring on entrance */
.cp-hero__actions .cp-btn--primary {
    animation: cpReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both,
               cpBtnGlow 1.2s ease 1.8s 1;
}

/* Trust strip item stagger */
.cp-hero__trust-item {
    opacity: 0;
    animation: cpTrustSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cp-hero__trust-item:nth-child(1) { animation-delay: 1.2s; }
.cp-hero__trust-item:nth-child(2) { animation-delay: 1.35s; }
.cp-hero__trust-item:nth-child(3) { animation-delay: 1.5s; }
.cp-hero__trust-item:nth-child(4) { animation-delay: 1.65s; }

/* Floating molecular particles (positioned via JS) */
.cp-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.cp-hero__particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.35);
    will-change: transform, opacity;
}
.cp-hero__particle--sm { width: 4px; height: 4px; }
.cp-hero__particle--md { width: 7px; height: 7px; }
.cp-hero__particle--lg { width: 10px; height: 10px; }
.cp-hero__particle:nth-child(3n+1) { animation: cpFloat1 6s ease-in-out infinite; }
.cp-hero__particle:nth-child(3n+2) { animation: cpFloat2 8s ease-in-out infinite; }
.cp-hero__particle:nth-child(3n+3) { animation: cpFloat3 7s ease-in-out infinite; }

/* Subtle glow pulse behind hero overlay */
.cp-hero__glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    z-index: 0;
    animation: cpBgPulse 6s ease-in-out infinite;
    pointer-events: none;
}

/* Subtle background image parallax via scroll class */
.cp-hero--banner.cp-hero--parallax {
    background-attachment: fixed;
}
@supports (-webkit-overflow-scrolling: touch) {
    /* Disable parallax on iOS — fixed bg triggers paint issues */
    .cp-hero--banner.cp-hero--parallax { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
    [data-cascade] { opacity: 1; animation: none; transform: none; filter: none; }
    .cp-hero__line { clip-path: none; opacity: 1; animation: none; }
    .cp-hero__line--accent { animation: none; -webkit-text-fill-color: var(--teal-4); background: none; }
    .cp-hero__marker { animation: none; transform: none; }
    .cp-hero__trust-item { opacity: 1; animation: none; }
    .cp-hero__particle { display: none; }
    .cp-hero__glow { display: none; }
    .cp-hero__actions .cp-btn--primary { animation: none; }
}

/* -- Section reveal (IntersectionObserver-driven) -- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

[data-reveal-children] > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-children].revealed > * { opacity: 1; transform: translateY(0); }
[data-reveal-children].revealed > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-children].revealed > *:nth-child(2) { transition-delay: 0.07s; }
[data-reveal-children].revealed > *:nth-child(3) { transition-delay: 0.14s; }
[data-reveal-children].revealed > *:nth-child(4) { transition-delay: 0.21s; }
[data-reveal-children].revealed > *:nth-child(5) { transition-delay: 0.28s; }
[data-reveal-children].revealed > *:nth-child(6) { transition-delay: 0.35s; }
[data-reveal-children].revealed > *:nth-child(7) { transition-delay: 0.42s; }
[data-reveal-children].revealed > *:nth-child(8) { transition-delay: 0.49s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-children] > * {
        opacity: 1; transform: none; transition: none;
    }
}

/* -- Hero -- */
.cp-hero {
    background: #FAFAF9;
    padding: clamp(48px, 7vw, 96px) 0 0;
    overflow: hidden;
}

/* Hero with background banner image */
.cp-hero--banner {
    background-color: var(--color-dark);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
    padding: clamp(64px, 10vw, 120px) 0 0;
}

.cp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.7) 45%,
        rgba(15, 23, 42, 0.3) 100%
    );
    z-index: 1;
}

/* Banner text overrides for dark bg */
.cp-hero--banner .cp-hero__inner { position: relative; z-index: 2; }
.cp-hero--banner .cp-hero__eyebrow { color: var(--teal-4); }
.cp-hero--banner .cp-hero__marker { background: var(--teal-4); }
.cp-hero--banner .cp-hero__headline { color: #fff; }
.cp-hero--banner .cp-hero__line--light { color: rgba(255,255,255,0.55); }
.cp-hero--banner .cp-hero__line--accent { color: var(--teal-4); }
.cp-hero--banner .cp-hero__body { color: rgba(255,255,255,0.7); }
.cp-hero--banner .cp-btn--tertiary { color: rgba(255,255,255,0.85); }
.cp-hero--banner .cp-btn--tertiary:hover { color: var(--teal-4); }
.cp-hero--banner .cp-hero__trust { border-top-color: rgba(255,255,255,0.1); position: relative; z-index: 2; }
.cp-hero--banner .cp-hero__trust-item { color: rgba(255,255,255,0.6); }
.cp-hero--banner .cp-hero__trust-check { color: var(--teal-4); }

.cp-hero__inner--centered {
    grid-template-columns: 1fr;
    max-width: 640px;
}

.cp-hero__inner {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.cp-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.cp-hero__marker {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.cp-hero__headline {
    font-size: clamp(36px, 5.2vw, 60px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--color-text);
    margin: 0 0 20px;
}

.cp-hero__line { display: block; }
.cp-hero__line--light { font-weight: 400; color: #94A3B8; }
.cp-hero__line--accent { color: var(--color-primary); }

.cp-hero__body {
    font-size: clamp(15px, 1.15vw, 16.5px);
    line-height: 1.65;
    color: var(--color-text-light);
    max-width: 420px;
    margin-bottom: 32px;
}

.cp-hero__actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cp-hero__text-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.cp-hero__text-link:hover { color: var(--color-primary); }

/* -- Visual column -- */
.cp-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.cp-hero__molecule {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    color: var(--color-primary);
    pointer-events: none;
}

.cp-hero__frame { position: relative; z-index: 1; }

.cp-hero__img {
    display: block;
    max-height: 360px;
    width: auto;
    filter: drop-shadow(0 12px 40px rgba(13, 148, 136, 0.12));
}

.cp-hero__placeholder {
    width: 280px;
    height: 360px;
    background: #E5E7EB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 14px;
}

.cp-hero__purity-seal {
    position: absolute;
    top: 12px;
    right: -8px;
    background: var(--color-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 4px;
}

/* -- Trust strip -- */
.cp-hero__trust {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: clamp(40px, 5vw, 64px);
    padding: 16px 0;
}

.cp-hero__trust-inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    flex-wrap: wrap;
}

.cp-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.01em;
}

.cp-hero__trust-check {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* -- Hero responsive -- */
@media (max-width: 968px) {
    .cp-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cp-hero__eyebrow  { justify-content: center; }
    .cp-hero__body     { margin-left: auto; margin-right: auto; }
    .cp-hero__actions  { justify-content: center; }
    .cp-hero__visual   { min-height: 300px; margin-top: 8px; }
    .cp-hero--banner { background-position: center; }
    .cp-hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(15, 23, 42, 0.88) 0%,
            rgba(15, 23, 42, 0.75) 60%,
            rgba(15, 23, 42, 0.6) 100%
        );
    }
    .cp-hero__inner--centered { text-align: center; }
}

@media (max-width: 640px) {
    .cp-hero__headline { font-size: clamp(28px, 7vw, 36px); }
    .cp-hero__actions  { flex-direction: column; gap: 16px; }
    .cp-hero__trust-inner { gap: 16px; }
    .cp-hero__trust-item  { font-size: 11.5px; }
    .cp-hero__visual      { min-height: 240px; }
    .cp-hero__img         { max-height: 260px; }
    .cp-hero--banner { padding: clamp(48px, 8vw, 80px) 0 0; }
}

/* ============================================================
   8b. cp-btn COMPONENT  (Geist 5-variant + 3-size system)
   ============================================================ */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    line-height: 1.5;
}

/* Variant: Default (navy bg, white text — primary CTAs) */
.cp-btn--default,
.cp-btn--primary {
    background: var(--gray-10);
    color: #fff;
}
.cp-btn--default:hover,
.cp-btn--primary:hover {
    background: var(--gray-9);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Variant: Secondary (teal bg, white text — shop/add-to-cart) */
.cp-btn--secondary {
    background: var(--teal-7);
    color: #fff;
}
.cp-btn--secondary:hover {
    background: var(--teal-8);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* Variant: Outline (border, transparent bg — secondary actions) */
.cp-btn--outline {
    background: transparent;
    color: var(--gray-10);
    box-shadow: inset 0 0 0 1.5px var(--gray-10);
}
.cp-btn--outline:hover {
    background: var(--gray-10);
    color: #fff;
}

/* Variant: Tertiary (no bg/border — text links) */
.cp-btn--tertiary {
    background: transparent;
    color: var(--gray-10);
    padding-left: 4px;
    padding-right: 4px;
}
.cp-btn--tertiary:hover {
    color: var(--teal-7);
}

/* Variant: Error (red bg — destructive actions) */
.cp-btn--error {
    background: #DC2626;
    color: #fff;
}
.cp-btn--error:hover {
    background: #B91C1C;
    color: #fff;
    transform: translateY(-1px);
}

/* Variant: Warning (amber bg — caution actions) */
.cp-btn--warning {
    background: #D97706;
    color: #fff;
}
.cp-btn--warning:hover {
    background: #B45309;
    color: #fff;
    transform: translateY(-1px);
}

/* Sizes */
.cp-btn--sm { padding: 8px 16px;  font-size: 13px; }
.cp-btn--md { padding: 12px 28px; font-size: 14px; } /* default */
.cp-btn--lg { padding: 16px 36px; font-size: 15px; }

/* Shape: Rounded (marketing/hero CTAs) */
.cp-btn--rounded {
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.cp-btn--rounded:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
}

/* ============================================================
   8b-ii. cp-badge COMPONENT  (Geist subtle-variant pattern)
   ============================================================ */
.cp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    width: fit-content;
}

/* Teal solid */
.cp-badge--teal {
    background: var(--teal-7);
    color: #fff;
}

/* Teal subtle (purity badges) */
.cp-badge--teal-subtle {
    background: var(--teal-1);
    color: var(--teal-10);
    border: 1px solid var(--teal-4);
}

/* Green subtle (success / in-stock) */
.cp-badge--green-subtle {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

/* Red subtle (sale / alerts) */
.cp-badge--red-subtle {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* Gray subtle (categories / neutral) */
.cp-badge--gray-subtle {
    background: var(--gray-1);
    color: var(--gray-8);
    border: 1px solid var(--gray-3);
}

/* Amber subtle (warning) */
.cp-badge--amber-subtle {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FCD34D;
}

/* Badge sizes */
.cp-badge--sm { padding: 2px 8px; font-size: 10px; }
.cp-badge--lg { padding: 6px 14px; font-size: 12px; }

/* ============================================================
   8c. cp-section SCAFFOLD
   ============================================================ */
.cp-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.cp-section { padding: clamp(48px, 6vw, 80px) 0; }
.cp-section--alt  { background: var(--color-bg-light); }
.cp-section--dark { background: var(--color-dark); color: #fff; }

.cp-section__header { text-align: center; margin-bottom: 40px; }

.cp-section__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.cp-section__subtitle {
    font-size: 15px;
    color: var(--color-text-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}
.cp-section--dark .cp-section__subtitle { color: rgba(255, 255, 255, 0.6); }

.cp-section__footer { text-align: center; margin-top: 40px; }

/* -- Product grid (augments WooCommerce .products) -- */
ul.cp-product-grid { list-style: none; padding: 0; margin: 0; }
.cp-product-grid { gap: 24px; }

/* -- Category grid -- */
.cp-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.cp-category-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #0A0F1E;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    color: #E2E8F0;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cp-category-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: #E2E8F0;
}

.cp-category-card__name { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.cp-category-card__count { font-size: 13px; color: var(--color-text-light); }
.cp-category-card__arrow {
    margin-top: auto;
    padding-top: 12px;
    font-size: 18px;
    color: var(--color-primary);
}

/* -- Trust badge grid -- */
.cp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.cp-trust-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cp-trust-svg { width: 40px; height: 40px; color: var(--color-primary); }

.cp-trust-badge__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.cp-trust-badge__text  { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin: 0; }

/* -- Blog grid -- */
.cp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cp-blog-card {
    background: #0A0F1E;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cp-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cp-blog-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.cp-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cp-blog-card:hover .cp-blog-card__image img { transform: scale(1.03); }

.cp-blog-card__content { padding: 20px; }
.cp-blog-card__date    { font-size: 12px; color: var(--color-text-light); display: block; margin-bottom: 8px; }

.cp-blog-card__title { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.cp-blog-card__title a { color: #E2E8F0; text-decoration: none; }
.cp-blog-card__title a:hover { color: var(--color-primary); }

.cp-blog-card__excerpt { font-size: 14px; color: var(--color-text-light); line-height: 1.6; margin: 0; }

/* -- cp-section responsive -- */
@media (max-width: 768px) {
    .cp-trust-grid  { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .cp-blog-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cp-category-grid { grid-template-columns: 1fr 1fr; }
    .cp-trust-grid    { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   9. PRODUCT GRID (SHOP)
   ============================================================ */
.woocommerce ul.products,
.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

/* ============================================================
   10. PRODUCT CARDS
   ============================================================ */
.product-card,
.woocommerce ul.products li.product {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
    transform: translateY(-4px);
}

/* Card link wrapper */
.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.product-card-link:hover {
    color: inherit;
}

/* Card image */
.product-card-image,
.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-2);
    position: relative;
}

.product-card-image img,
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
    transform: translateY(-4px);
}

/* Sale badge */
.sale-badge,
.woocommerce span.onsale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-bg);
    color: var(--color-sale);
    border: 1.5px solid var(--color-sale);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    line-height: 1.4;
    min-height: auto;
    min-width: auto;
}

/* Card content */
.product-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal-7);
    display: block;
    margin-bottom: 4px;
}

.product-card-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0;
}

.product-card-price,
.woocommerce ul.products li.product .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: auto;
}

.product-card-price del,
.woocommerce ul.products li.product .price del {
    color: var(--color-text-lighter);
    font-weight: 400;
    font-size: 14px;
}

.product-card-price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--color-sale);
}

/* Card action / add to cart */
.product-card-action {
    padding: 0 16px 16px;
}

.product-card-action .button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--teal-7);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.product-card-action .button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
    background: var(--teal-8);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* ============================================================
   11. SINGLE PRODUCT PAGE — Redesigned v5.1 (Phase 1→3 cleanup)
   Dark wrapper bg/color removed (now cascades from :root).
   ============================================================ */

/* sp = single product wrapper — structural only (dark colors cascade from :root) */
.sp-product {
    min-height: 100vh;
    padding: var(--space-2) 0 0;
}

/* --- Product Container (wider for product pages) --- */
.sp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

/* --- Breadcrumbs (dark theme v5.1) --- */
.sp-breadcrumbs {
    background: #070B14;
    padding: var(--space-3) 0;
    border-bottom: 1px solid #1E293B;
}

.sp-breadcrumbs .woocommerce-breadcrumb {
    font-family: var(--font-body);
    font-size: 13px;
    color: #64748B;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sp-breadcrumbs .woocommerce-breadcrumb a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sp-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #0FA6A0;
}

.sp-breadcrumb-sep {
    display: inline-flex;
    color: #475569;
    opacity: 0.5;
}

/* --- Product Grid (58% gallery / 42% details — dark v5.1) --- */
.sp-grid {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    padding: var(--space-8) 0;
}

.sp-gallery {
    flex: 0 0 58%;
    max-width: 58%;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.sp-gallery .woocommerce-product-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #070B14;
    border: 1px solid #1E293B;
}

.sp-gallery .woocommerce-product-gallery__image img,
.sp-gallery .woocommerce-product-gallery .flex-viewport img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

/* Gallery badges */
.sp-gallery-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.sp-badge-bestseller {
    background: #0FA6A0;
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sp-badge-purity {
    background: rgba(15, 166, 160, 0.15);
    backdrop-filter: blur(8px);
    color: #0FA6A0;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(15, 166, 160, 0.25);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-badge-batch {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(8px);
    color: #64748B;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(30, 41, 59, 0.5);
    z-index: 5;
    pointer-events: none;
}

/* Gallery thumbnails */
.sp-gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.sp-gallery .flex-control-thumbs li {
    flex: 0 0 64px;
}

.sp-gallery .flex-control-thumbs li img {
    border-radius: var(--radius-md);
    border: 2px solid #1E293B;
    background: #070B14;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.sp-gallery .flex-control-thumbs li img.flex-active,
.sp-gallery .flex-control-thumbs li img:hover {
    border-color: #0FA6A0;
}

/* --- Right Column: Product Details (dark v5.1) --- */
.sp-details {
    flex: 0 0 42%;
    max-width: 42%;
    padding-top: var(--space-2);
}

/* Category badge */
.sp-category {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0FA6A0;
    margin-bottom: var(--space-3);
}

/* Product title */
.sp-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #E2E8F0;
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -0.02em;
}

/* Product subtitle / tagline */
.sp-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: #94A3B8;
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

/* Rating */
.sp-rating {
    margin-bottom: var(--space-4);
}

.sp-rating .star-rating {
    font-size: 14px;
    color: #F59E0B;
}

.sp-rating .woocommerce-review-link {
    font-family: var(--font-body);
    font-size: 13px;
    color: #64748B;
    text-decoration: none;
    margin-left: 8px;
}

/* Description blockquote */
.sp-description {
    margin-bottom: var(--space-6);
    padding-left: var(--space-4);
    border-left: 3px solid rgba(15, 166, 160, 0.4);
}

.sp-description .woocommerce-product-details__short-description,
.sp-description .woocommerce-product-details__short-description p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    color: #94A3B8;
    margin: 0;
}

/* --- Features Grid (2x2 — dark v5.1) --- */
.sp-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: var(--space-6);
}

.sp-feature-card {
    background: #070B14;
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.sp-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(15, 166, 160, 0.1);
    color: #0FA6A0;
}

.sp-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-feature-text strong {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: #E2E8F0;
    line-height: 1.3;
}

.sp-feature-text span {
    font-family: var(--font-body);
    font-size: 11px;
    color: #64748B;
    line-height: 1.4;
}

/* --- Pricing Panel (dark v5.1) --- */
.sp-pricing-panel {
    background: #070B14;
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

/* Price row */
.sp-price-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.sp-price-row .price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #0FA6A0;
    line-height: 1;
}

.sp-price-row .price del {
    font-size: 16px;
    font-weight: 400;
    color: #64748B;
    text-decoration: line-through;
}

.sp-price-row .price ins {
    text-decoration: none;
    color: #0FA6A0;
}

.sp-save-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: #F87171;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Price meta (tax + shipping) */
.sp-price-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: #64748B;
    margin-top: var(--space-2);
}

.sp-price-meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #475569;
    flex-shrink: 0;
}

/* Stock status */
.sp-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: var(--space-5);
}

.sp-stock__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-stock--instock .sp-stock__dot { background: var(--color-success); }
.sp-stock--instock { color: var(--color-success); }
.sp-stock--onbackorder .sp-stock__dot { background: var(--color-warning); }
.sp-stock--onbackorder { color: var(--color-warning); }
.sp-stock--outofstock .sp-stock__dot { background: var(--color-sale); }
.sp-stock--outofstock { color: var(--color-sale); }

/* Add to cart form inside pricing panel */
.sp-add-to-cart {
    margin-bottom: var(--space-5);
}

.sp-add-to-cart form.cart {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
}

.sp-add-to-cart .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0A0F1E;
    height: 48px;
}

.sp-add-to-cart .quantity .qty {
    width: 48px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: #E2E8F0;
    border: none;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
    height: 100%;
}

.sp-add-to-cart .quantity .qty::-webkit-inner-spin-button,
.sp-add-to-cart .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sp-qty-btn {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #94A3B8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    line-height: 1;
    user-select: none;
}

.sp-qty-btn:hover {
    background: rgba(15, 166, 160, 0.1);
    color: #0FA6A0;
}

/* Main CTA button (dark v5.1 — teal glow) */
.sp-add-to-cart .single_add_to_cart_button,
.sp-add-to-cart button.button {
    flex: 1;
    height: 48px;
    background: #0FA6A0;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 32px;
    box-shadow: 0 2px 8px rgba(15, 166, 160, 0.3);
}

.sp-add-to-cart .single_add_to_cart_button:hover {
    background: #0C8C87;
    box-shadow: 0 4px 12px rgba(15, 166, 160, 0.4);
}

.sp-add-to-cart .single_add_to_cart_button:active {
    transform: scale(0.98);
}

/* --- Research Warning (dark amber v5.1) --- */
.sp-research-warning {
    background: rgba(120, 53, 15, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.sp-research-warning svg {
    flex-shrink: 0;
    color: #F59E0B;
    margin-top: 1px;
}

.sp-research-warning p {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;
    color: #FBBF24;
    margin: 0;
}

/* --- WooCommerce Variation Selectors --- */
.woocommerce div.product form.cart .variations {
    margin-bottom: var(--space-4);
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    border: none;
    padding: 6px 0;
    vertical-align: middle;
}

.woocommerce div.product form.cart .variations td.label label,
.woocommerce div.product form.cart .variations label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
    width: auto;
    white-space: nowrap;
}

.woocommerce div.product form.cart .variations select {
    width: 100%;
    max-width: 180px;
    padding: 8px 12px;
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    background: #0A0F1E;
    color: #E2E8F0;
    transition: var(--transition-fast);
    cursor: pointer;
}

.woocommerce div.product form.cart .variations select:focus {
    border-color: #0FA6A0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 166, 160, 0.15);
}

/* Hide select when swatches are active */
.woocommerce div.product form.cart .variations select.cp-swatch-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

/* Size Swatch Buttons */
.cp-size-swatches {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cp-size-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #E2E8F0;
    background: #070B14;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 54px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.cp-size-swatch:hover {
    border-color: #0FA6A0;
    color: #0FA6A0;
}

.cp-size-swatch.active {
    border-color: #0FA6A0;
    background: #0FA6A0;
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 166, 160, 0.3);
}

.cp-size-swatch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Compact add-to-cart row for variable products */
.woocommerce div.product form.cart .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.woocommerce div.product form.cart .reset_variations {
    font-size: 12px;
    color: #64748B;
    margin-left: var(--space-2);
}

/* --- Trust Strip (dark v5.1) --- */
.sp-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: #070B14;
    border-radius: var(--radius-md);
    border: 1px solid #1E293B;
}

.sp-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: var(--space-3) var(--space-2);
    text-align: center;
    position: relative;
}

/* Vertical dividers between trust items */
.sp-trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--space-3) * -0.5 - 0.5px);
    top: 15%;
    height: 70%;
    width: 1px;
    background: #1E293B;
}

.sp-trust-item svg {
    color: #0FA6A0;
    flex-shrink: 0;
    opacity: 0.85;
}

.sp-trust-item span {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* --- Product Meta (dark v5.1) --- */
.sp-meta,
.woocommerce div.product .product_meta {
    font-family: var(--font-body);
    font-size: 13px;
    color: #475569;
    padding-top: var(--space-5);
    border-top: 1px solid #1E293B;
}

.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: 6px;
}

.woocommerce div.product .product_meta > span > span,
.woocommerce div.product .product_meta > span > a {
    color: #64748B;
}

.woocommerce div.product .product_meta a {
    color: #0FA6A0;
    text-decoration: none;
}

.woocommerce div.product .product_meta a:hover {
    text-decoration: underline;
}

/* ============================================================
   12. PRODUCT TABS — Redesigned v5.0
   NOTE: Tabs are rendered OUTSIDE div.product (inside .sp-tabs-section),
   so selectors use .sp-tabs-section as ancestor, NOT div.product.
   ============================================================ */
.sp-tabs-section {
    background: #0A0F1E;
    padding: var(--space-8) 0 var(--space-10);
    border-top: 1px solid #1E293B;
}

.sp-tabs-section .woocommerce-tabs {
    clear: both;
    margin-top: 0;
    padding-top: 0;
}

.sp-tabs-section .woocommerce-tabs ul.tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 2px solid #1E293B;
    margin: 0 0 var(--space-7) 0;
    padding: 0 !important;
    list-style: none !important;
    overflow: visible;
    background: none;
}

.sp-tabs-section .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
    content: none;
}

.sp-tabs-section .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    display: block;
    float: none !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

.sp-tabs-section .woocommerce-tabs ul.tabs li::before,
.sp-tabs-section .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: none;
}

.sp-tabs-section .woocommerce-tabs ul.tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #94A3B8;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sp-tabs-section .woocommerce-tabs ul.tabs li a:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #E2E8F0;
}

.sp-tabs-section .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #0FA6A0;
    border-bottom-color: #0FA6A0;
    font-weight: 700;
}

.sp-tabs-section .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel {
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: none;
    color: #94A3B8;
    font-size: 15px;
    line-height: 1.7;
}

.sp-tabs-section .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: var(--space-5);
    letter-spacing: -0.01em;
}

/* Tab content tables (specs, additional info) */
.sp-tabs-section .woocommerce-tabs .panel table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-4) 0;
}

.sp-tabs-section .woocommerce-tabs .panel table td,
.sp-tabs-section .woocommerce-tabs .panel table th {
    padding: 10px 14px;
    border-bottom: 1px solid #1E293B;
    text-align: left;
}

/* Tab content layout: description + spec sidebar (60/40) */
.sp-tab-layout {
    display: flex;
    gap: var(--space-7);
}

.sp-tab-main {
    flex: 0 0 60%;
    max-width: 60%;
}

.sp-tab-sidebar {
    flex: 0 0 40%;
    max-width: 40%;
}

/* Specification summary sidebar (dark v5.1) */
.sp-spec-sidebar {
    background: #070B14;
    border: 1px solid rgba(15, 166, 160, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sp-spec-sidebar-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #E2E8F0;
    padding: var(--space-4) var(--space-5);
    background: rgba(15, 166, 160, 0.05);
    border-bottom: 1px solid #1E293B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.sp-spec-sidebar table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.sp-spec-sidebar table tr:not(:last-child) {
    border-bottom: 1px solid #1E293B;
}

.sp-spec-sidebar table td {
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: 13px;
}

.sp-spec-sidebar table td:first-child {
    color: #94A3B8;
    font-weight: 500;
    width: 45%;
}

.sp-spec-sidebar table td:last-child {
    font-family: var(--font-mono);
    font-weight: 500;
    color: #E2E8F0;
}

/* Spec table in Technical Specs tab */
.sp-spec-table table {
    width: 100%;
    border-collapse: collapse;
}

.sp-spec-table table tr:nth-child(even) {
    background: rgba(15, 166, 160, 0.03);
}

.sp-spec-table table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1E293B;
    font-size: 14px;
}

.sp-spec-label {
    font-weight: 500;
    color: #94A3B8;
    width: 40%;
}

.sp-spec-value {
    font-family: var(--font-mono);
    font-weight: 500;
    color: #E2E8F0;
}

/* COA Analysis tab */
.sp-coa-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin: var(--space-5) 0;
}

.sp-coa-method {
    padding: var(--space-4);
    background: #070B14;
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    color: #94A3B8;
}

.sp-coa-method strong {
    display: block;
    margin-bottom: 4px;
    color: #E2E8F0;
}

.sp-coa-note {
    margin-top: var(--space-4);
    font-size: 13px;
    color: #64748B;
}

.sp-coa-note a {
    color: #0FA6A0;
}

/* Handling tab */
.sp-handling-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin-top: var(--space-4);
}

.sp-handling-card {
    padding: var(--space-5);
    background: #070B14;
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
}

.sp-handling-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #E2E8F0;
    margin: 0 0 var(--space-3) 0;
}

.sp-handling-card ul {
    padding-left: var(--space-4);
    margin: 0;
}

.sp-handling-card li {
    font-size: 14px;
    line-height: 1.6;
    color: #94A3B8;
    margin-bottom: var(--space-2);
}

/* Reviews tab (dark v5.1) */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    padding: var(--space-5);
    background: #070B14;
    color: #94A3B8;
}

.woocommerce #review_form #respond .comment-form-rating label {
    font-weight: 600;
    color: #E2E8F0;
}

/* Review form polish (dark v5.1) */
.sp-tabs-section #review_form .comment-form input[type="text"],
.sp-tabs-section #review_form .comment-form input[type="email"],
.sp-tabs-section #review_form .comment-form textarea {
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #0A0F1E;
    color: #E2E8F0;
}

.sp-tabs-section #review_form .comment-form input:focus,
.sp-tabs-section #review_form .comment-form textarea:focus {
    border-color: #0FA6A0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 166, 160, 0.15);
}

/* ============================================================
   12b. SOCIAL PROOF / WHY CERTAPEPTIDES SECTION
   ============================================================ */
.sp-proof-section {
    background: #070B14;
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background texture */
.sp-proof-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(15, 166, 160, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(15, 166, 160, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.sp-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

.sp-proof-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.sp-proof-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(15, 166, 160, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.sp-proof-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0FA6A0, #0C8C87);
    color: #fff;
    margin-bottom: var(--space-5);
    box-shadow: 0 4px 16px rgba(15, 166, 160, 0.3);
}

.sp-proof-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

.sp-proof-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   13. RELATED PRODUCTS — Redesigned v5.0
   ============================================================ */
.sp-related-section {
    background: #070B14;
    padding: var(--space-10) 0 var(--space-12);
    border-top: 1px solid #1E293B;
}

.sp-related-section .related {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* "YOU MAY ALSO LIKE" label + heading */
.sp-related-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-2);
}

.sp-related-section h2,
.sp-related-section .related > h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: var(--space-7);
    letter-spacing: -0.02em;
    text-align: center;
}

/* Force 4-column grid for related products */
.sp-related-section ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--space-5);
}

@media (max-width: 992px) {
    .sp-related-section ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .sp-related-section ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* --- Product Page Animations (v5.1) --- */
.sp-tab-content { animation: spFadeUp 200ms ease-out; }
@keyframes spFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.sp-stock-dot--green::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: spPulse 2s infinite;
}
@keyframes spPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }

.sp-gallery img:hover { transform: scale(1.03); }
.sp-gallery img { transition: transform 300ms ease; }

.sp-related-section .product-card:hover,
.sp-related-section li.product:hover { transform: translateY(-4px); transition: transform 200ms ease; }

/* ============================================================
   14. BUTTONS
   ============================================================ */
.btn,
.button,
button[type="submit"],
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    line-height: 1.5;
}

.btn:hover,
.button:hover,
button[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

.btn-outline,
.button-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover,
.button-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn:disabled,
.button:disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   15. FORMS (Geist Input System)
   ============================================================ */

/* -- Base Input -- */
.cp-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select,
.woocommerce .input-text {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--bg-1);
    color: var(--color-text);
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
    appearance: none;
}

/* -- Input Hover -- */
.cp-input:hover:not(:focus):not(:disabled),
input:hover:not(:focus):not(:disabled),
textarea:hover:not(:focus):not(:disabled),
select:hover:not(:focus):not(:disabled) {
    border-color: var(--border-alpha-dark);
}

/* -- Input Focus -- */
.cp-input:focus,
input:focus,
textarea:focus,
select:focus,
.woocommerce .input-text:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

/* -- Input Error -- */
.cp-input--error,
.woocommerce-invalid .cp-input,
.woocommerce-invalid input {
    border-color: var(--color-sale);
}

.cp-input--error:focus,
.woocommerce-invalid .cp-input:focus,
.woocommerce-invalid input:focus {
    box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--color-sale);
}

/* -- Input Success -- */
.cp-input--success {
    border-color: var(--color-success);
}

.cp-input--success:focus {
    box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--color-success);
}

/* -- Input Disabled -- */
.cp-input:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    background: var(--bg-2);
    color: var(--color-text-lighter);
    cursor: not-allowed;
    opacity: 0.7;
}

/* -- Input Placeholder -- */
.cp-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--color-text-lighter);
}

/* -- Label -- */
label,
.cp-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-1);
}

/* -- Helper Text -- */
.cp-input-helper {
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-light);
    margin-top: var(--space-1);
}

.cp-input-helper--error { color: var(--color-sale); }
.cp-input-helper--success { color: var(--color-success); }

/* -- Input Group (prefix/suffix) -- */
.cp-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.cp-input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.cp-input-group .cp-input,
.cp-input-group input {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.cp-input-group .cp-input:focus,
.cp-input-group input:focus {
    box-shadow: none;
}

.cp-input-group__prefix,
.cp-input-group__suffix {
    display: flex;
    align-items: center;
    padding: 0 var(--space-3);
    background: var(--bg-2);
    color: var(--color-text-light);
    font-size: 14px;
    white-space: nowrap;
}

.cp-input-group__prefix { border-right: 1px solid var(--color-border); }
.cp-input-group__suffix { border-left: 1px solid var(--color-border); }

/* -- Textarea -- */
textarea.cp-input,
textarea {
    min-height: 100px;
    resize: vertical;
}

/* -- Select (custom chevron) -- */
select,
.cp-select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* -- Checkbox & Radio (Geist custom) -- */
.cp-checkbox,
.cp-radio {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border);
    background: var(--bg-1);
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    flex-shrink: 0;
    transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.cp-checkbox { border-radius: var(--radius-sm); }
.cp-radio { border-radius: 50%; }

.cp-checkbox:hover,
.cp-radio:hover {
    border-color: var(--border-alpha-dark);
}

.cp-checkbox:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.cp-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cp-radio:checked {
    border-color: var(--color-primary);
    background: var(--bg-1);
}

.cp-radio:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

.cp-checkbox:focus-visible,
.cp-radio:focus-visible {
    box-shadow: var(--focus-ring);
}

/* -- Toggle Switch -- */
.cp-toggle {
    appearance: none;
    width: 40px;
    height: 22px;
    border-radius: var(--radius-pill);
    background: var(--gray-4);
    cursor: pointer;
    position: relative;
    transition: background var(--duration-fast) ease;
    flex-shrink: 0;
    border: none;
}

.cp-toggle::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--ease-default);
}

.cp-toggle:checked {
    background: var(--color-primary);
}

.cp-toggle:checked::after {
    transform: translateX(18px);
}

.cp-toggle:focus-visible {
    box-shadow: var(--focus-ring);
}

/* ============================================================
   16. WOOCOMMERCE MESSAGES
   ============================================================ */
.woocommerce-message {
    border-left: 4px solid var(--color-primary);
    background: var(--color-primary-light);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.woocommerce-error {
    border-left: 4px solid var(--color-sale);
    background: rgba(220, 38, 38, 0.06);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    list-style: none;
}

.woocommerce-info {
    border-left: 4px solid var(--color-info);
    background: rgba(37, 99, 235, 0.06);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
    float: right;
    padding: 6px 16px;
    font-size: 13px;
}

/* ============================================================
   17. PAGINATION
   ============================================================ */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin: 40px 0;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 4px;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 4px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    transition: var(--transition-fast);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ============================================================
   18. CART
   ============================================================ */
.woocommerce table.shop_table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.woocommerce table.shop_table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    background: var(--color-bg-light);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
}

.woocommerce table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.woocommerce table.shop_table td.product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.woocommerce table.shop_table td.product-name a {
    color: var(--color-text);
    font-weight: 500;
}

.woocommerce table.shop_table td.product-remove a {
    color: var(--color-text-lighter);
    font-size: 20px;
}

.woocommerce table.shop_table td.product-remove a:hover {
    color: var(--color-sale);
}

.woocommerce .cart-collaterals .cart_totals {
    width: 380px;
    float: right;
}

.woocommerce .cart_totals table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
}

/* ============================================================
   19. CHECKOUT
   ============================================================ */
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
}

.woocommerce-checkout h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.woocommerce form .form-row {
    margin-bottom: 16px;
}

.woocommerce form .form-row label {
    margin-bottom: 6px;
}

#order_review_heading {
    margin-top: 40px;
}

.woocommerce #order_review {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: var(--color-bg-light);
}

.woocommerce #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce #payment ul.payment_methods {
    padding: 0;
    border: none;
}

.woocommerce #payment ul.payment_methods li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce #payment #place_order {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 16px;
}

/* ============================================================
   20. MY ACCOUNT
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 220px;
    float: left;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--color-border-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: calc(100% - 252px);
    float: right;
}

/* ============================================================
   21. FOOTER — 4-Column Grid (v5.5)
   ============================================================ */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--color-border);
    padding: 64px 40px 32px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- 4-Column Grid --- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

/* Brand column */
.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #E2E8F0;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.footer-logo:hover { color: var(--color-primary); }

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748B;
    margin: 0;
    max-width: 320px;
}

/* Link columns */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94A3B8;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 2px;
}

.footer-column ul li a {
    font-size: 13px;
    color: #64748B;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
}

/* --- Bottom Bar --- */
.footer-bottom {
    border-top: 1px solid rgba(30, 41, 59, 0.5);
    margin-top: 48px;
    padding-top: 24px;
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #64748B;
    white-space: nowrap;
}

.footer-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

.footer-disclaimer-text,
.footer-copyright-text,
.footer-legal-text {
    font-size: 11px;
    color: #475569;
    margin: 0;
}

.footer-legal-text {
    text-align: center;
    width: 100%;
    margin-top: 6px;
}

.footer-legal-text a {
    color: #64748b;
    text-decoration: none;
}

.footer-legal-text a:hover {
    color: var(--cp-primary, #0FA6A0);
}

.footer-disclaimer-text {
    flex: 1;
    text-align: center;
}

.footer-copyright-text {
    white-space: nowrap;
    margin-left: auto;
}

/* --- Footer Responsive --- */
@media (max-width: 768px) {
    .site-footer { padding: 48px 24px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-disclaimer-text { text-align: left; }
    .footer-legal-text { text-align: left; }
    .footer-copyright-text { margin-left: 0; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   22. BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

/* ============================================================
   23. CATEGORIES GRID
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    color: var(--color-text);
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.category-count {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ============================================================
   24. TRUST SECTION
   ============================================================ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-item {
    padding: 24px 16px;
}

.trust-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.trust-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.trust-subtitle {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ============================================================
   25. BLOG GRID
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-date {
    font-size: 12px;
    color: var(--color-text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content h3 {
    font-size: 16px;
    margin: 6px 0 8px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--color-text);
}

.blog-card-content h3 a:hover {
    color: var(--color-primary);
}

.blog-card-content p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Blog single post */
.single-post .entry-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.single-post .entry-header {
    text-align: center;
    margin-bottom: 32px;
}

.single-post .entry-title {
    font-size: 36px;
}

.post-thumbnail img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.entry-meta {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ============================================================
   26. WOOCOMMERCE ORDERING / RESULT COUNT
   ============================================================ */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin-bottom: 24px;
}

.woocommerce .woocommerce-result-count {
    font-size: 13px;
    color: var(--color-text-light);
}

.woocommerce .woocommerce-ordering select {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 200px;
}

/* ============================================================
   27. GEIST — NOTE / CALLOUT COMPONENT
   ============================================================ */
.cp-note {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-left: 3px solid transparent;
}
.cp-note__icon { flex-shrink: 0; margin-top: 2px; }
.cp-note__icon svg { width: 16px; height: 16px; }
.cp-note__content { flex: 1; min-width: 0; }
.cp-note__title { font-weight: 600; margin-bottom: 2px; }

.cp-note--info    { background: rgba(37,99,235,0.06); border-left-color: var(--color-info); color: #1e40af; }
.cp-note--success { background: rgba(5,150,105,0.06); border-left-color: var(--color-success); color: #065f46; }
.cp-note--warning { background: rgba(217,119,6,0.06); border-left-color: var(--color-warning); color: #92400e; }
.cp-note--error   { background: rgba(220,38,38,0.06); border-left-color: var(--color-sale); color: #991b1b; }
.cp-note--neutral { background: var(--bg-2); border-left-color: var(--gray-5); color: var(--color-text); }

/* WooCommerce message → cp-note pattern compat */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    display: flex;
    gap: 12px;
    align-items: center;
    line-height: 1.6;
}

/* ============================================================
   28. GEIST — TOAST COMPONENT
   ============================================================ */
.cp-toast-region {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-2);
    pointer-events: none;
}
.cp-toast {
    padding: 12px 16px;
    background: var(--gray-10);
    color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn var(--duration-slow) var(--ease-default);
    max-width: 380px;
}
.cp-toast--success { background: var(--color-success); }
.cp-toast--error   { background: var(--color-sale); }
.cp-toast--warning { background: #b45309; }
.cp-toast__dismiss {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0 0 0 8px;
    font-size: 18px;
    line-height: 1;
}
.cp-toast__dismiss:hover { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================
   29. GEIST — SKELETON / LOADING STATE
   ============================================================ */
.cp-skeleton {
    background: linear-gradient(90deg, var(--gray-2) 25%, var(--gray-1) 50%, var(--gray-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: var(--radius-md);
}
.cp-skeleton--text    { height: 14px; width: 80%; margin-bottom: 8px; }
.cp-skeleton--heading { height: 24px; width: 60%; margin-bottom: 16px; }
.cp-skeleton--image   { height: 200px; width: 100%; }
.cp-skeleton--circle  { border-radius: 50%; }
.cp-skeleton--button  { height: 40px; width: 120px; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   30. GEIST — SPINNER
   ============================================================ */
.cp-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
.cp-spinner--sm { width: 14px; height: 14px; }
.cp-spinner--lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   31. GEIST — CARD COMPONENT
   ============================================================ */
.cp-card {
    background: var(--bg-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-default);
}
.cp-card:hover { box-shadow: var(--shadow-md); }
.cp-card--no-hover:hover { box-shadow: none; }
.cp-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 600;
    font-size: 15px;
}
.cp-card__body { padding: 20px; }
.cp-card__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border-light);
    background: var(--bg-2);
}
.cp-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   32. GEIST — TABLE COMPONENT
   ============================================================ */
.cp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.cp-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    background: var(--bg-2);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.cp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}
.cp-table--striped tbody tr:nth-child(even) { background: var(--bg-2); }
.cp-table--hoverable tbody tr { transition: background var(--duration-fast); }
.cp-table--hoverable tbody tr:hover { background: var(--teal-1); }
.cp-table--compact th,
.cp-table--compact td { padding: 8px 12px; }

/* ============================================================
   33. GEIST — TABS COMPONENT
   ============================================================ */
.cp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cp-tabs__tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color var(--duration-fast), border-color var(--duration-fast);
    white-space: nowrap;
}
.cp-tabs__tab:hover { color: var(--color-text); }
.cp-tabs__tab--active,
.cp-tabs__tab[aria-selected="true"] {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.cp-tabs__panel { padding: 24px 0; }
.cp-tabs__panel[hidden] { display: none; }

/* ============================================================
   34. GEIST — ACCORDION / COLLAPSE
   ============================================================ */
.cp-accordion {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cp-accordion__item { border-bottom: 1px solid var(--color-border-light); }
.cp-accordion__item:last-child { border-bottom: none; }
.cp-accordion__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--duration-fast);
}
.cp-accordion__trigger:hover { background: var(--bg-2); }
.cp-accordion__trigger svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform var(--duration-normal) var(--ease-default);
}
.cp-accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.cp-accordion__content {
    padding: 0 20px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
}

/* ============================================================
   35. GEIST — TOOLTIP
   ============================================================ */
.cp-tooltip { position: relative; display: inline-flex; }
.cp-tooltip__content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--gray-10);
    color: #fff;
    font-size: 12px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-fast);
    z-index: var(--z-dropdown);
}
.cp-tooltip:hover .cp-tooltip__content,
.cp-tooltip:focus-within .cp-tooltip__content { opacity: 1; }
.cp-tooltip__content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gray-10);
}
/* Position variants */
.cp-tooltip--top .cp-tooltip__content { bottom: calc(100% + 8px); top: auto; }
.cp-tooltip--bottom .cp-tooltip__content { top: calc(100% + 8px); bottom: auto; }
.cp-tooltip--bottom .cp-tooltip__content::after { bottom: 100%; top: auto; border-top-color: transparent; border-bottom-color: var(--gray-10); }

/* ============================================================
   36. GEIST — AVATAR
   ============================================================ */
.cp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--teal-2);
    color: var(--teal-9);
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}
.cp-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.cp-avatar--md { width: 36px; height: 36px; font-size: 14px; }
.cp-avatar--lg { width: 48px; height: 48px; font-size: 18px; }
.cp-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   37. GEIST — DIVIDER
   ============================================================ */
.cp-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-6) 0;
}
.cp-divider--subtle { border-color: var(--border-alpha); }
.cp-divider--spaced { margin: var(--space-9) 0; }
.cp-divider--tight  { margin: var(--space-3) 0; }

/* ============================================================
   38. GEIST — KBD (KEYBOARD)
   ============================================================ */
.cp-kbd {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 -1px 0 var(--color-border);
    color: var(--color-text);
    line-height: 1.4;
}

/* ============================================================
   39. GEIST — MODAL
   ============================================================ */
.cp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal), visibility var(--duration-normal);
}
.cp-modal-backdrop.active { opacity: 1; visibility: visible; }
.cp-modal {
    background: var(--bg-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: scaleIn var(--duration-normal) var(--ease-default);
}
.cp-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-light);
}
.cp-modal__title { font-size: 16px; font-weight: 700; }
.cp-modal__close {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast);
}
.cp-modal__close:hover { background: var(--bg-2); color: var(--color-text); }
.cp-modal__body { padding: 24px; }
.cp-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================================
   40. GEIST — DRAWER
   ============================================================ */
.cp-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: var(--bg-1);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-default);
    display: flex;
    flex-direction: column;
}
.cp-drawer.active { transform: translateX(0); }
.cp-drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.cp-drawer--left.active { transform: translateX(0); }
.cp-drawer--wide { width: 420px; }
.cp-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
    flex-shrink: 0;
}
.cp-drawer__title { font-size: 16px; font-weight: 700; }
.cp-drawer__close {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
}
.cp-drawer__close:hover { color: var(--color-text); }
.cp-drawer__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ============================================================
   41. UTILITY CLASSES
   ============================================================ */
/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margin — spacing scale */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mt-9 { margin-top: var(--space-9); }
.mt-10 { margin-top: var(--space-10); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

/* Padding — spacing scale */
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }

.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }

.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Gap utilities (flex/grid) */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-7 { gap: var(--space-7); }
.gap-8 { gap: var(--space-8); }

/* Flexbox layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Grid layout */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Display & visibility */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Width */
.w-full { width: 100%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Border radius */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

/* Colors */
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-light); }
.text-lighter { color: var(--color-text-lighter); }
.bg-surface { background: var(--bg-1); }
.bg-muted { background: var(--bg-2); }

/* Position */
.relative { position: relative; }

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

/* ============================================================
   28. ANIMATIONS
   ============================================================ */
/* Entrance animations (Geist set) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Animation utility classes */
.fade-in { animation: fadeIn 0.4s ease both; }
.fade-in-up { animation: fadeInUp var(--duration-slow) var(--ease-default) both; }
.fade-in-down { animation: fadeInDown var(--duration-slow) var(--ease-default) both; }
.scale-in { animation: scaleIn var(--duration-normal) var(--ease-default) both; }

/* Stagger delays for children */
.stagger-1 { animation-delay: 50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }
.stagger-5 { animation-delay: 250ms; }

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

/* ============================================================
   29. RESPONSIVE — TABLET (992px)
   ============================================================ */
@media (max-width: 992px) {
    .woocommerce ul.products,
    .products.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }

    .sp-grid {
        flex-direction: column;
        gap: var(--space-7);
    }

    .sp-gallery {
        position: relative;
        top: auto;
        flex: 0 0 100%;
    }

    .sp-details {
        flex: 0 0 100%;
        padding-left: 0;
    }

    .sp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-tab-layout {
        flex-direction: column;
    }

    .sp-tab-main,
    .sp-tab-sidebar {
        flex: 0 0 100%;
    }

    .sp-proof-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    .cp-drawer { width: 280px; }
    .cp-drawer--wide { width: 360px; }
}

/* ============================================================
   30. RESPONSIVE — TABLET PORTRAIT (768px)
   ============================================================ */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }

    .woocommerce ul.products,
    .products.columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
    }

    .woocommerce .cart-collaterals .cart_totals {
        width: 100%;
        float: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        float: none;
        margin-bottom: 24px;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }

    .section { padding: 40px 0; }
}

/* ============================================================
   31. RESPONSIVE — MOBILE (480px)
   ============================================================ */
@media (max-width: 480px) {
    body { font-size: 14px; }

    .woocommerce ul.products,
    .products.columns-4 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-card-content { padding: 12px; }
    .product-card-title { font-size: 13px; }
    .product-card-price { font-size: 16px; }
    .product-card-action { padding: 0 12px 12px; }

    .category-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .blog-grid { grid-template-columns: 1fr; }
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 { grid-template-columns: 1fr; }

    .footer-nav { flex-direction: column; gap: 12px; }
    .announcement-bar { font-size: 11px; }
    .announcement-bar .container { padding: 0 40px 0 12px; }
    .section { padding: 32px 0; }

    .back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }

    .sp-container { padding: 0 20px; }

    .sp-title { font-size: 28px; }
    .sp-price .price { font-size: 28px; }

    .sp-features-grid { grid-template-columns: 1fr; }

    .sp-pricing-panel { padding: 20px; }

    .sp-size-options { flex-wrap: wrap; }

    .woocommerce div.product form.cart { flex-direction: column; }
    .woocommerce div.product form.cart .button { width: 100%; }
    .woocommerce div.product form.cart .quantity { justify-content: center; width: 100%; }
    .woocommerce #payment #place_order { font-size: 15px; }

    .sp-trust-strip { flex-direction: column; gap: var(--space-2); }
    .sp-trust-item:not(:last-child)::after { display: none; }

    .sp-proof-grid { grid-template-columns: 1fr; gap: var(--space-4); }
    .sp-proof-card { padding: var(--space-5) var(--space-4); }

    .sp-tabs-section .woocommerce-tabs ul.tabs li a,
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .sp-tabs-section .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }

    .sp-related-label { font-size: 11px; }
    .sp-related-section h2 { font-size: 28px; }

    /* Geist component mobile adjustments */
    .cp-toast-region { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
    .cp-toast { max-width: 100%; }
    .cp-modal { width: 95%; }
    .cp-drawer { width: 100%; }
    .cp-drawer--wide { width: 100%; }
    .cp-tabs__tab { padding: 10px 14px; font-size: 13px; }
    .cp-accordion__trigger { padding: 14px 16px; font-size: 14px; }
    .cp-accordion__content { padding: 0 16px 14px; }
}

/* ============================================================
   32. RESPONSIVE — SMALL PHONES (375px)
   ============================================================ */
@media (max-width: 375px) {
    .product-card-title { font-size: 12px; }
    .product-card-price { font-size: 15px; }

    .sp-title,
    .woocommerce div.product .product_title {
        font-size: 22px;
    }

    .sp-price,
    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 22px;
    }
}

/* ============================================================
   33. PRINT
   ============================================================ */
@media print {
    .announcement-bar,
    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-menu,
    .mobile-menu-overlay,
    .search-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a { color: #000; }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   42. SHOP CONTROLS — Sidebar, Toolbar, Layout Switcher
   ============================================================ */

/* --- Shop Layout Container (sidebar + main) --- */
.sc-catalog .cp-shop-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.sc-catalog .cp-shop-main {
    flex: 1;
    min-width: 0;
}

/* Wider container for shop page */
.sc-catalog .container {
    max-width: 1400px;
}

/* --- Sidebar --- */
.cp-shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.cp-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cp-sidebar-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.cp-sidebar-close {
    display: none; /* Only visible on mobile */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
    padding: 0;
}

/* Filter Groups */
.cp-filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.cp-filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cp-filter-heading {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin: 0 0 12px 0;
}

.cp-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cp-filter-list li {
    margin-bottom: 2px;
}

.cp-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.cp-filter-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.cp-filter-link.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.cp-filter-link.active .cp-filter-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.cp-filter-count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--color-bg-alt, #f1f5f9);
    border-radius: 10px;
    color: var(--color-text-light);
}

/* Stock dot */
.cp-stock-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.cp-stock-dot--green  { background: #22c55e; }
.cp-stock-dot--amber  { background: #f59e0b; }
.cp-stock-dot--red    { background: #ef4444; }

/* --- Toolbar --- */
.cp-shop-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cp-toolbar-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--color-text-light);
    white-space: nowrap;
}

.cp-toolbar-count .woocommerce-result-count {
    margin: 0;
    padding: 0;
}

/* Layout Switcher */
.cp-layout-switcher {
    display: flex;
    gap: 4px;
    padding-right: 12px;
    border-right: 1px solid var(--color-border);
}

.cp-layout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cp-layout-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cp-layout-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Toolbar Selects */
.cp-toolbar-select select {
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 160px;
}

.cp-toolbar-select select:hover {
    border-color: var(--color-primary);
}

.cp-toolbar-select select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -1px;
}

/* --- Layout Variations via data-layout attribute --- */
.woocommerce ul.products[data-layout="2"] {
    grid-template-columns: repeat(2, 1fr) !important;
}

.woocommerce ul.products[data-layout="3"] {
    grid-template-columns: repeat(3, 1fr) !important;
}

.woocommerce ul.products[data-layout="4"] {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Grid view (set by JS layout switcher) — default 3-col, 4-col on xl */
.woocommerce ul.products[data-layout="grid"] {
    grid-template-columns: repeat(3, 1fr) !important;
}
@media (min-width: 1280px) {
    .woocommerce ul.products[data-layout="grid"] {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* List View */
.woocommerce ul.products[data-layout="list"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

.woocommerce ul.products[data-layout="list"] .product-card {
    flex-direction: row;
    align-items: stretch;
}

.woocommerce ul.products[data-layout="list"] .product-card-link {
    flex-direction: row;
    flex: 1;
}

.woocommerce ul.products[data-layout="list"] .product-card-image {
    width: 200px;
    min-width: 200px;
    aspect-ratio: auto;
    height: auto;
}

.woocommerce ul.products[data-layout="list"] .product-card-image img {
    height: 100%;
    object-fit: contain;
}

.woocommerce ul.products[data-layout="list"] .product-card-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.woocommerce ul.products[data-layout="list"] .product-card-title {
    font-size: 17px;
}

.woocommerce ul.products[data-layout="list"] .product-card-action {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    min-width: 160px;
    border-top: none;
    border-left: 1px solid var(--color-border);
}

.woocommerce ul.products[data-layout="list"] .product-card-action .button {
    width: auto;
    white-space: nowrap;
}

/* Product excerpt — hidden by default, visible only in list view */
.product-card-excerpt {
    display: none;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-light);
    margin-top: 8px;
}

.woocommerce ul.products[data-layout="list"] .product-card-excerpt {
    display: block;
}

/* --- Mobile Filter Toggle --- */
.cp-filter-toggle {
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.cp-filter-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Sidebar overlay for mobile */
.cp-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cp-sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* ============================================================
   43. SHOP CONTROLS — Responsive
   ============================================================ */

/* Tablet — sidebar becomes drawer */
@media (max-width: 992px) {
    .sc-catalog .cp-shop-layout {
        flex-direction: column;
    }

    .cp-filter-toggle {
        display: flex;
    }

    .cp-shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--color-border);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        padding-top: 24px;
    }

    .cp-shop-sidebar.open {
        transform: translateX(0);
    }

    .cp-sidebar-close {
        display: block;
    }

    /* Force 3-col when sidebar is a drawer */
    .woocommerce ul.products[data-layout="4"],
    .woocommerce ul.products[data-layout="grid"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .cp-shop-toolbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .cp-layout-switcher {
        display: none;
    }

    /* Force 2-col on mobile regardless of data-layout */
    .woocommerce ul.products[data-layout="2"],
    .woocommerce ul.products[data-layout="3"],
    .woocommerce ul.products[data-layout="4"],
    .woocommerce ul.products[data-layout="grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* List view still works on mobile but simpler */
    .woocommerce ul.products[data-layout="list"] .product-card-image {
        width: 120px;
        min-width: 120px;
    }

    .woocommerce ul.products[data-layout="list"] .product-card-action {
        border-left: none;
        border-top: 1px solid var(--color-border);
        min-width: auto;
        padding: 12px 16px;
    }

    .cp-toolbar-select select {
        min-width: 120px;
        font-size: 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .woocommerce ul.products[data-layout="list"] .product-card-link {
        flex-direction: column;
    }

    .woocommerce ul.products[data-layout="list"] .product-card-image {
        width: 100%;
        min-width: auto;
        aspect-ratio: 1;
    }

    .cp-toolbar-perpage {
        display: none;
    }

    .cp-toolbar-count {
        display: none;
    }
}

/* =============================================
   44. Blog Archive — Filters & Enhanced Cards
   ============================================= */

/* Blog header */
.blog-header {
    margin-bottom: 40px;
}

.blog-header__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.blog-header__desc {
    font-size: 15px;
    color: var(--color-text-light);
    margin: 0 0 28px;
    max-width: 540px;
}

/* Category filter pills */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.blog-filter-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(13, 148, 136, 0.04);
}

.blog-filter-pill.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.blog-filter-pill__count {
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 7px;
    border-radius: 100px;
    line-height: 1.5;
}

.blog-filter-pill.active .blog-filter-pill__count {
    background: rgba(255, 255, 255, 0.2);
}

/* Post cards grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

/* Individual card */
.blog-post-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-post-card.hidden {
    display: none;
}

/* Card image */
.blog-post-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--color-dark) 0%, #164e63 100%);
}

.blog-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .blog-post-card__image img {
    transform: scale(1.04);
}

/* Placeholder for posts without images */
.blog-post-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f4c5c 50%, var(--color-primary) 100%);
    color: rgba(255, 255, 255, 0.15);
}

.blog-post-card__placeholder svg {
    width: 48px;
    height: 48px;
}

/* Category badge */
.blog-post-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(13, 148, 136, 0.9);
    color: #fff;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Card body */
.blog-post-card__body {
    padding: 20px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--color-text-lighter, #9ca3af);
    margin-bottom: 10px;
}

.blog-post-card__meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.blog-post-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    flex: 1;
}

.blog-post-card__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-post-card__title a:hover {
    color: var(--color-primary);
}

.blog-post-card__excerpt {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.blog-post-card__link:hover {
    gap: 8px;
}

/* Empty state */
.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: var(--color-text-light);
}

.blog-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.blog-empty-state p {
    font-size: 15px;
    margin: 0;
}

/* Blog pagination */
.blog-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.15s ease;
}

.blog-pagination .page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.blog-pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-posts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
    .blog-posts-grid { grid-template-columns: 1fr; }
    .blog-header__title { font-size: 26px; }
    .blog-filters { gap: 6px; }
    .blog-filter-pill { padding: 6px 12px; font-size: 12px; }
}

/* =============================================
   45. FAQ Page — Full Styling
   ============================================= */

/* FAQ Hero */
.faq-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f4c5c 100%);
    padding: 64px 0 56px;
    text-align: center;
}

.faq-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.faq-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.faq-section {
    padding: 48px 0 64px;
}

/* Audience Tabs */
.faq-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-bg-light, #f1f5f9);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.faq-tab {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    text-align: center;
}

.faq-tab:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.5);
}

.faq-tab.active {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* FAQ Segments */
.faq-segment {
    display: none;
}

.faq-segment.active {
    display: block;
    animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-segment-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.faq-segment-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}

.faq-segment-header p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

/* FAQ Items */
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(13, 148, 136, 0.3);
}

.faq-item.open {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08);
}

/* FAQ Question button */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    gap: 16px;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-item.open .faq-question {
    color: var(--color-primary);
}

/* Chevron */
.faq-chevron {
    flex-shrink: 0;
    color: var(--color-text-lighter, #9ca3af);
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0;
}

.faq-answer p + p {
    margin-top: 12px;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(13, 148, 136, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease;
}

.faq-answer a:hover {
    text-decoration-color: var(--color-primary);
}

.faq-answer strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Research Disclaimer */
.faq-disclaimer {
    margin-top: 48px;
    padding: 16px 20px;
    background: var(--color-bg-light, #f1f5f9);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.faq-disclaimer p {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

.faq-disclaimer strong {
    color: var(--color-text);
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-hero { padding: 48px 0 40px; }
    .faq-hero h1 { font-size: 28px; }

    .faq-tabs {
        flex-direction: column;
        gap: 2px;
    }

    .faq-tab {
        text-align: left;
        padding: 12px 16px;
    }

    .faq-question {
        font-size: 14px;
        padding: 16px;
    }

    .faq-item.open .faq-answer {
        padding: 0 16px 16px;
    }
}

/* ============================================================
   46. SCIENCE & QUALITY PAGE
   ============================================================ */

.sq-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f4c5c 100%);
    padding: 64px 0 56px;
    text-align: center;
}

.sq-hero__badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.sq-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.sq-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    max-width: 580px;
}

.sq-section {
    padding: 48px 0 64px;
}

/* Tab bar — reuses FAQ pattern */
.sq-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-bg-light, #f1f5f9);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sq-tab {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    text-align: center;
}

.sq-tab:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.5);
}

.sq-tab.active {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Segments */
.sq-segment {
    display: none;
}

.sq-segment.active {
    display: block;
    animation: sqFadeIn 0.3s ease;
}

@keyframes sqFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sq-segment-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.sq-segment-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.sq-segment-header p {
    font-size: 15px;
    color: var(--color-text-light);
    margin: 0;
    max-width: 680px;
}

/* Protocol grid — 5 cards */
.sq-protocol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.sq-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sq-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.sq-card__icon {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.sq-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}

.sq-card__method {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.sq-card p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0 0 12px;
}

.sq-card__criteria {
    font-size: 13px;
    color: var(--color-text);
    background: var(--teal-1, #f0fdfa);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
}

/* Accent variant for storage cards */
.sq-card--accent {
    border-left: 3px solid var(--color-primary);
}

/* COA section */
.sq-coa-section {
    margin-top: 8px;
}

.sq-coa-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.sq-coa-section > p {
    font-size: 15px;
    color: var(--color-text-light);
    margin: 0 0 24px;
}

.sq-coa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sq-coa-item {
    background: var(--bg-2, #f9fafb);
    border-radius: 10px;
    padding: 20px;
}

.sq-coa-item strong {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 6px;
}

.sq-coa-item p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* Storage grid */
.sq-storage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

/* Temperature section */
.sq-temp-section {
    margin-bottom: 48px;
}

.sq-temp-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 24px;
}

.sq-temp-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sq-temp-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    padding: 20px;
}

.sq-temp-badge {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    color: #fff;
}

.sq-temp-badge--cold { background: #1e40af; }
.sq-temp-badge--cool { background: #0284c7; }
.sq-temp-badge--warm { background: #dc2626; }

.sq-temp-item strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 4px;
}

.sq-temp-item p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* Supply chain */
.sq-supply-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}

.sq-supply-section p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    max-width: 720px;
}

/* Concepts grid */
.sq-concepts { margin-bottom: 48px; }

.sq-concepts h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
}

.sq-concepts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sq-concept {
    background: var(--color-bg);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    padding: 24px;
}

.sq-concept h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.sq-concept p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.sq-concept a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Equipment grid */
.sq-equipment-section { margin-bottom: 48px; }

.sq-equipment-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
}

.sq-equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sq-equip-group {
    background: var(--bg-2, #f9fafb);
    border-radius: 10px;
    padding: 24px;
}

.sq-equip-group h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}

.sq-equip-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sq-equip-group li {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.sq-equip-group li:last-child { border-bottom: none; }

/* Glossary table */
.sq-glossary { margin-bottom: 48px; }

.sq-glossary h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
}

.sq-glossary-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sq-glossary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sq-glossary-table th {
    text-align: left;
    font-weight: 700;
    color: var(--color-text);
    padding: 12px 16px;
    background: var(--bg-2, #f9fafb);
    border-bottom: 2px solid var(--color-border, #e2e8f0);
}

.sq-glossary-table td {
    padding: 10px 16px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    vertical-align: top;
}

.sq-glossary-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    width: 180px;
}

.sq-glossary-table tr:hover td {
    background: var(--teal-1, #f0fdfa);
}

/* Getting started steps */
.sq-getting-started h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.sq-getting-started > p {
    font-size: 15px;
    color: var(--color-text-light);
    margin: 0 0 20px;
}

.sq-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sq-steps li {
    counter-increment: step;
    position: relative;
    padding: 16px 16px 16px 56px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.sq-steps li:last-child { border-bottom: none; }

.sq-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
}

.sq-steps a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Disclaimer */
.sq-disclaimer {
    margin-top: 48px;
    padding: 16px 20px;
    background: var(--bg-2, #f9fafb);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.sq-disclaimer p {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
}

/* Science & Quality — Responsive */
@media (max-width: 768px) {
    .sq-hero { padding: 48px 0 40px; }
    .sq-hero h1 { font-size: 28px; }
    .sq-tabs { gap: 2px; }
    .sq-tab { font-size: 13px; padding: 10px 14px; }
    .sq-protocol-grid { grid-template-columns: 1fr; }
    .sq-coa-grid { grid-template-columns: 1fr; }
    .sq-storage-grid { grid-template-columns: 1fr; }
    .sq-concepts-grid { grid-template-columns: 1fr; }
    .sq-equipment-grid { grid-template-columns: 1fr; }
    .sq-temp-item { flex-direction: column; gap: 12px; }
    .sq-temp-badge { width: 56px; height: 56px; font-size: 13px; }
    .sq-glossary-table td:first-child { white-space: normal; width: auto; }
}

/* ============================================================
   47. ABOUT PAGE
   ============================================================ */

.about-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f4c5c 100%);
    padding: 64px 0 56px;
    text-align: center;
}

.about-hero__badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.about-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.about-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    max-width: 520px;
}

/* About sections */
.about-section {
    padding: 56px 0;
}

.about-section--alt {
    background: var(--bg-2, #f9fafb);
}

.about-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
}

.about-section p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    max-width: 720px;
}

/* Mission: 2-column */
.about-mission {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.about-mission__text p {
    margin: 0 0 16px;
}

.about-mission__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-stat {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f4c5c 100%);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
}

.about-stat__number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-family: 'Inter', system-ui, sans-serif;
}

.about-stat__label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* What We Offer cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.about-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    padding: 32px 24px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: block;
}

.about-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.about-card__icon {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}

.about-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    max-width: none;
}

/* Quality strip */
.about-section--quality {
    background: var(--bg-2, #f9fafb);
}

.about-quality {
    max-width: 640px;
}

.about-quality h2 {
    margin-bottom: 8px;
}

.about-quality > p {
    font-size: 15px;
    color: var(--color-text-light);
    margin: 0 0 24px;
}

.about-quality__list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.about-quality__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.about-quality__list li:last-child { border-bottom: none; }

.about-quality__list svg { flex-shrink: 0; }

/* EU section */
.about-eu {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f4c5c 100%);
    padding: 56px 0;
}

.about-eu h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
    text-align: center;
}

.about-eu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-eu__item {
    text-align: center;
}

.about-eu__item strong {
    display: block;
    font-size: 15px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.about-eu__item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
    max-width: none;
}

/* CTA section */
.about-section--cta {
    padding: 64px 0;
}

.about-section--cta h2 {
    margin-bottom: 8px;
}

.about-section--cta p {
    margin: 0 auto 24px;
    color: var(--color-text-light);
    text-align: center;
}

/* About page — Responsive */
@media (max-width: 768px) {
    .about-hero { padding: 48px 0 40px; }
    .about-hero h1 { font-size: 28px; }
    .about-mission { grid-template-columns: 1fr; gap: 32px; }
    .about-mission__stats { flex-direction: row; flex-wrap: wrap; }
    .about-stat { flex: 1; min-width: 140px; }
    .about-cards { grid-template-columns: 1fr; }
    .about-eu__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 480px) {
    .about-eu__grid { grid-template-columns: 1fr; }
    .about-mission__stats { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   48. CONTACT PAGE
   ═══════════════════════════════════════════════ */
.contact-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f4c5c 100%);
    padding: 64px 0 56px;
    text-align: center;
}
.contact-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.contact-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0 auto;
    max-width: 480px;
}

.contact-section {
    padding: 80px 0 64px;
}
.contact-section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.contact-section__sub {
    text-align: center;
    color: var(--color-text-light);
    max-width: 520px;
    margin: 0 auto 48px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card {
    background: var(--color-bg-light, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    padding: 24px;
    transition: var(--transition, 0.2s ease);
}
.contact-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(13,148,136,0.08);
}
.contact-card__icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.contact-card__icon svg {
    width: 100%;
    height: 100%;
}
.contact-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 6px;
}
.contact-card__text {
    font-size: 14px;
    color: var(--color-text);
    margin: 0 0 4px;
}
.contact-card__text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.contact-card__text a:hover { text-decoration: underline; }
.contact-card__sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--color-bg);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    padding: 32px;
}
.contact-form__heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 24px;
}
.contact-form__group {
    margin-bottom: 20px;
}
.contact-form__group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.contact-form__group input,
.contact-form__group select,
.contact-form__group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: var(--color-bg-light, #f8fafc);
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.contact-form__group input:focus,
.contact-form__group select:focus,
.contact-form__group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.contact-form__group textarea { resize: vertical; }
.contact-form .cp-btn {
    width: 100%;
    justify-content: center;
}

/* FAQ CTA Strip */
.contact-faq-cta {
    background: var(--color-bg-light, #f8fafc);
    padding: 48px 0;
    border-top: 1px solid var(--color-border, #e2e8f0);
}
.contact-faq-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.contact-faq-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}
.contact-faq-text p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-hero { padding: 48px 0 40px; }
    .contact-hero h1 { font-size: 28px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-faq-inner { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════
   49. PEPTIDE CALCULATOR
   ═══════════════════════════════════════════════ */
.calculator-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0f4c5c 100%);
    padding: 64px 0 56px;
    text-align: center;
}
.calculator-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.calculator-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0 auto;
    max-width: 560px;
}
.calc-badge {
    display: inline-block;
    background: rgba(13,148,136,0.15);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.calculator-section {
    padding: 48px 0 64px;
}

/* Steps */
.calc-step {
    margin-bottom: 32px;
}
.calc-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.calc-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.calc-step h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* Syringe Selection Grid */
.syringe-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.syringe-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--color-bg-light, #f8fafc);
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--color-text);
}
.syringe-option:hover {
    border-color: var(--color-primary);
    background: rgba(13,148,136,0.04);
}
.syringe-option.active {
    border-color: var(--color-primary);
    background: rgba(13,148,136,0.08);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.syringe-icon {
    width: 40px;
    height: 60px;
    color: var(--color-primary);
}
.syringe-label {
    font-size: 16px;
    font-weight: 600;
}
.syringe-units {
    font-size: 13px;
    color: #64748b;
}

/* Main Calculator Grid */
.calc-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.calc-inputs-col {
    min-width: 0;
}

/* Preset Buttons */
.preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.preset-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.15s ease;
}
.preset-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.preset-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Input Row */
.calc-input-row {
    display: flex;
    gap: 8px;
}
.calc-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: var(--color-bg-light, #f8fafc);
    color: var(--color-text);
    transition: border-color 0.2s ease;
}
.calc-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.calc-select {
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    min-width: 80px;
}
.calc-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Results Column */
.calc-results-col {
    position: sticky;
    top: 100px;
}

/* Result Cards */
.calc-result-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--color-bg-light, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}
.calc-result-card:hover {
    border-color: var(--color-primary);
}
.calc-result-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,148,136,0.1);
    border-radius: 8px;
    color: var(--color-primary);
    flex-shrink: 0;
}
.calc-result-icon svg {
    width: 20px;
    height: 20px;
}
.calc-result-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.calc-result-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.calc-result-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}
.calc-result-sub {
    font-size: 12px;
    color: #94a3b8;
}

/* Visual Syringe */
.syringe-visual-wrap {
    margin-top: 20px;
    padding: 24px;
    background: var(--color-bg-light, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
}
.syringe-visual-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    text-align: center;
}
.syringe-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 280px;
}
.syringe-barrel {
    position: relative;
    width: 48px;
    height: 220px;
    background: rgba(13,148,136,0.05);
    border: 2px solid #cbd5e1;
    border-radius: 4px 4px 2px 2px;
    overflow: visible;
}
.syringe-ticks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.syringe-ticks .syringe-tick {
    position: absolute;
    right: 0;
    width: 16px;
    height: 1px;
    background: #64748b;
}
.syringe-ticks .syringe-tick-label {
    position: absolute;
    right: 52px;
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
    transform: translateY(-50%);
}
.syringe-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--color-primary), rgba(13,148,136,0.6));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 2px 2px;
}
.syringe-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}
.syringe-marker-label {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transform: translateX(28px);
}
.syringe-marker-label::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: var(--color-primary);
}
.syringe-needle {
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #94a3b8, #cbd5e1);
    border-radius: 0 0 2px 2px;
}

/* Capacity Alert */
.calc-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}
.calc-alert svg {
    flex-shrink: 0;
    color: #dc2626;
}

/* Quick Reference Table */
.calc-reference {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border, #e2e8f0);
}
.calc-reference h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}
.calc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--color-border, #e2e8f0);
}
.calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.calc-table thead th {
    background: var(--color-dark);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}
.calc-table thead th:first-child { border-radius: 8px 0 0 0; }
.calc-table thead th:last-child { border-radius: 0 8px 0 0; }
.calc-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    color: var(--color-text);
    white-space: nowrap;
}
.calc-table tbody tr:last-child td { border-bottom: none; }
.calc-table-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}
.calc-table-clickable:hover {
    background: rgba(13,148,136,0.06);
}
.calc-shop-link {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.calc-shop-link:hover {
    background: var(--color-primary);
    color: #fff;
}
.calc-table-hint {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
    text-align: center;
}

/* Product Recommendations */
.calc-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.calc-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s ease;
}
.calc-product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.calc-product-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}
.calc-product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
}
.calc-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Products Section Wrapper */
.calc-products-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border, #e2e8f0);
}
.calc-products-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
}

/* Calculator Disclaimer */
.calc-disclaimer {
    margin-top: 48px;
    padding: 20px 24px;
    background: var(--color-bg-light, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}
.calc-disclaimer strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Unit Label (mL static label) */
.calc-unit-label {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: var(--color-bg-light, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    min-width: 56px;
    justify-content: center;
}

/* Wide Preset Grid (6 items — dose step) */
.preset-grid-wide {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

/* Syringe Fill — Danger State (overcapacity) */
.syringe-fill.syringe-fill-danger {
    background: linear-gradient(to top, #dc2626, rgba(220,38,38,0.6));
}

/* Syringe Plunger — absolute positioning for JS control */
.syringe-plunger {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 8px;
    background: #94a3b8;
    border-radius: 2px;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Calculator Mobile */
@media (max-width: 768px) {
    .calculator-hero { padding: 48px 0 40px; }
    .calculator-hero h1 { font-size: 28px; }
    .syringe-select-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .syringe-option { padding: 14px 8px; }
    .calc-main-grid { grid-template-columns: 1fr; gap: 24px; }
    .calc-results-col { position: static; }
    .calc-products-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-reference,
    .calc-products-section { margin-top: 32px; padding-top: 32px; }
    .calc-disclaimer { padding: 16px; }
    .calc-table { font-size: 13px; }
    .calc-table thead th,
    .calc-table tbody td { padding: 10px 12px; }
    .preset-grid-wide { gap: 6px; }
    .preset-grid-wide .preset-btn { font-size: 12px; padding: 6px 10px; }
}
@media (max-width: 480px) {
    .calc-products-grid { grid-template-columns: 1fr; }
    .syringe-barrel { height: 180px; }
    .syringe-select-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   50. HERO ANIMATION ENHANCEMENTS
   ═══════════════════════════════════════════════ */

/* Gradient shift on hero background */
@keyframes heroGradientShift {
    0%   { background-position: 50% 50%; filter: hue-rotate(0deg); }
    25%  { filter: hue-rotate(5deg); }
    50%  { background-position: 51% 49%; filter: hue-rotate(0deg); }
    75%  { filter: hue-rotate(-5deg); }
    100% { background-position: 50% 50%; filter: hue-rotate(0deg); }
}
.cp-hero--banner {
    animation: heroGradientShift 20s ease-in-out infinite;
}

/* Pulsing ambient glow */
@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.05); }
}
.cp-hero__glow {
    animation: glowPulse 6s ease-in-out infinite;
}

/* Enhanced particle breathing */
@keyframes particleBreathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.3); }
}
.cp-hero__particle {
    animation-name: particleBreathe, cpFloat1;
    animation-duration: 4s, var(--float-dur, 8s);
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
}
.cp-hero__particle--md {
    animation-name: particleBreathe, cpFloat2;
    animation-duration: 5s, var(--float-dur, 10s);
}
.cp-hero__particle--lg {
    animation-name: particleBreathe, cpFloat3;
    animation-duration: 6s, var(--float-dur, 12s);
}

/* Blur-to-sharp text reveal on headlines */
@keyframes blurReveal {
    0% {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
.cp-hero__eyebrow,
.cp-hero__headline,
.cp-hero__body,
.cp-hero__actions {
    opacity: 0;
    animation: blurReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cp-hero__eyebrow    { animation-delay: 0.1s; }
.cp-hero__headline   { animation-delay: 0.3s; }
.cp-hero__body       { animation-delay: 0.6s; }
.cp-hero__actions    { animation-delay: 0.8s; }

/* Trust strip stagger entrance */
@keyframes trustSlideUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.cp-hero__trust-item {
    opacity: 0;
    animation: trustSlideUp 0.5s ease-out forwards;
}
.cp-hero__trust-item:nth-child(1) { animation-delay: 1.0s; }
.cp-hero__trust-item:nth-child(2) { animation-delay: 1.15s; }
.cp-hero__trust-item:nth-child(3) { animation-delay: 1.3s; }
.cp-hero__trust-item:nth-child(4) { animation-delay: 1.45s; }

/* Subtle dark vignette overlay for depth */
.cp-hero--banner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(15,23,42,0.4) 100%);
    z-index: 1;
}
/* Ensure content sits above vignette */
.cp-hero__inner { position: relative; z-index: 3; }
.cp-hero__trust { position: relative; z-index: 3; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cp-hero--banner { animation: none; }
    .cp-hero__glow { animation: none; }
    .cp-hero__particle { animation: none !important; }
    .cp-hero__eyebrow,
    .cp-hero__headline,
    .cp-hero__body,
    .cp-hero__actions,
    .cp-hero__trust-item {
        opacity: 1;
        animation: none;
        filter: none;
        transform: none;
    }
}


/* ============================================================
   44. CATALOG PAGE — Components & Layout (Phase 2→3 cleanup)
   Dark wrapper bg/color removed (now cascades from :root).
   Remaining overrides = intentional shade differences for depth.
   ============================================================ */

/* sc = shop catalog wrapper — structural only (dark colors cascade from :root) */
.sc-catalog {
    min-height: 60vh;
    padding-bottom: 64px;
}

/* Hide WC default page title — we render our own in .sc-catalog-header */
.sc-catalog .woocommerce-products-header__title,
.sc-catalog .page-title {
    display: none;
}


/* --- Catalog Header --- */
.sc-catalog-header {
    background: #070B14;
    border-bottom: 1px solid #1E293B;
    padding: 48px 0 32px;
    text-align: center;
}
.sc-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0FA6A0;
    display: block;
    margin-bottom: 12px;
}
.sc-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: #E2E8F0;
    margin: 0 0 8px;
}
.sc-subtitle {
    font-size: 15px;
    color: #64748B;
    margin: 0 0 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.sc-search {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}
.sc-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    pointer-events: none;
}
.sc-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: #0A0F1E;
    border: 1px solid #1E293B;
    border-radius: var(--radius-md);
    color: #E2E8F0;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.sc-search input::placeholder { color: #64748B; }
.sc-search input:focus { border-color: #0FA6A0; }


/* --- Category Pills --- */
.sc-pills {
    background: #070B14;
    border-bottom: 1px solid #1E293B;
    padding: 16px 0;
}
.sc-pills-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
}
.sc-pills-scroll::-webkit-scrollbar { display: none; }
.sc-pill {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid #1E293B;
    color: #94A3B8;
    background: transparent;
}
.sc-pill:hover {
    border-color: #0FA6A0;
    color: #0FA6A0;
}
.sc-pill.active {
    background: #0FA6A0;
    border-color: #0FA6A0;
    color: #fff;
}


/* --- Catalog Sidebar: shade overrides (intentionally different from base variables) --- */
.sc-catalog .cp-shop-sidebar {
    background: #070B14;  /* slightly darker than --color-bg for depth */
}
.sc-catalog .cp-sidebar-close:hover { color: #E2E8F0; }
.sc-catalog .cp-filter-link { color: #94A3B8; }  /* muted vs base --color-text */
.sc-catalog .cp-filter-link:hover { background: rgba(15,166,160,0.08); color: #0FA6A0; }
.sc-catalog .cp-filter-link.active { background: #0FA6A0; color: #fff; }
.sc-catalog .cp-filter-count { background: rgba(255,255,255,0.06); color: #64748B; }
.sc-catalog .cp-filter-link.active .cp-filter-count { background: rgba(255,255,255,0.2); color: #fff; }


/* --- Catalog Toolbar: shade overrides --- */
.sc-catalog .cp-shop-toolbar {
    background: #070B14;  /* slightly darker than --color-bg for depth */
}
.sc-catalog .cp-toolbar-count { color: #64748B; }  /* more muted than base --color-text-light */
.sc-mono { font-family: var(--font-mono); font-weight: 600; }
.sc-catalog .cp-layout-btn {
    color: #64748B;  /* more muted than base --color-text-light */
}
.sc-catalog .cp-toolbar-select select {
    color: #94A3B8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
}


/* --- Catalog: Filter toggle + sidebar overlay --- */
.sc-catalog .cp-filter-toggle {
    background: #070B14;  /* slightly darker for depth */
}
.sc-catalog .cp-sidebar-overlay { background: rgba(0,0,0,0.6); }

@media (max-width: 992px) {
    .sc-catalog .cp-shop-sidebar { border-right-color: #1E293B; }
}


/* --- Product Cards on Dark Background --- */
/* Cards stay LIGHT (hybrid design) — just adjust shadow/border for dark context */
.sc-catalog .product-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: rgba(226,232,240,0.15);
}
.sc-catalog .product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transform: translateY(-4px);
}
/* List view border adjustment */
.sc-catalog .woocommerce ul.products[data-layout="list"] .product-card-action {
    border-left-color: rgba(226,232,240,0.15);
}


/* --- Stock Toggle Component --- */
.sc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #94A3B8;
    cursor: pointer;
}
.sc-toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 22px;
    background: #1E293B;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.sc-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #94A3B8;
    border-radius: 50%;
    transition: all 0.2s;
}
.sc-toggle:checked { background: #0FA6A0; }
.sc-toggle:checked::after { left: 21px; background: #fff; }


/* --- Catalog Grid: 4 columns on XL screens --- */
@media (min-width: 1280px) {
    .sc-catalog .woocommerce ul.products,
    .sc-catalog .products.columns-3 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* WooCommerce default ordering/count inside .sc-catalog — hide defaults */
.sc-catalog .woocommerce-result-count { display: none; }
.sc-catalog .woocommerce-ordering { display: inline-block; }


/* --- Catalog Responsive --- */
@media (max-width: 768px) {
    .sc-catalog-header { padding: 32px 0 24px; }
    .sc-title { font-size: 28px; }
    .sc-search { max-width: 100%; }
    .sc-pills-scroll { padding: 0 8px; }
}

@media (max-width: 480px) {
    .sc-title { font-size: 24px; }
    .sc-subtitle { font-size: 13px; }
    .sc-pill { padding: 6px 14px; font-size: 12px; }
}

/* ============================================================
   45. INTERACTIVE MOLECULAR CANVAS (Phase 3)
   ============================================================ */
.cp-molecular-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Ensure all content layers above the canvas */
.site-header { position: relative; z-index: 1000; }
.site-main, main, .site-footer { position: relative; z-index: 1; }

/* ============================================================
   46. DARK THEME — WC COMPONENT OVERRIDES (Phase 3)
   ============================================================ */

/* WC Messages */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    background: var(--color-bg) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text) !important;
}

/* WC Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text-light);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* WC Cart / Checkout Tables */
.woocommerce-cart-form table,
.woocommerce table.shop_table {
    border-color: var(--color-border);
}
.woocommerce-cart-form td,
.woocommerce-cart-form th,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    border-bottom-color: var(--color-border) !important;
    color: var(--color-text);
}
.woocommerce table.shop_table {
    background: var(--color-bg);
}

/* WC Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
#billing_country_field .select2-container .select2-selection,
#shipping_country_field .select2-container .select2-selection {
    background: var(--color-bg) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text) !important;
}

/* WC Order details */
.woocommerce-order-details,
.woocommerce-customer-details {
    background: var(--color-bg);
    border-color: var(--color-border);
}

/* Select2 dropdown (used by WC country/state selects) */
.select2-dropdown {
    background: var(--color-bg);
    border-color: var(--color-border);
}
.select2-results__option {
    color: var(--color-text);
}
.select2-results__option--highlighted {
    background: rgba(15, 166, 160, 0.1) !important;
    color: var(--color-primary) !important;
}

/* WC coupon field */
.woocommerce .coupon .input-text {
    background: var(--color-bg) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text) !important;
}

/* Cart totals */
.cart_totals {
    background: var(--color-bg);
    border-color: var(--color-border);
}
.cart_totals th,
.cart_totals td {
    color: var(--color-text);
}

/* Product quantity input */
.quantity .qty {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text);
}
