:root {
    /* --- Pure Sanctuary Palette (Professional Luxury 2026) --- */
    
    /* 1. DOMINANT */
    --brand-white: #FFFFFF;
    --brand-stone: #F8F9FA;
    
    /* 2. ACCENTS */
    --brand-purple: #8B2DCB;
    --brand-gold: #B8860B;
    --brand-orange: #D35400;
    
    /* 3. NEUTRALS */
    --text-primary: #121212;
    --text-secondary: #505050;
    --border-light: #EEEEEE;
    --border-medium: #DDDDDD;
    
    /* 4. MOTION & GLASS */
    --glass-blur: blur(20px) saturate(180%);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    
    /* 5. FONTS */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
}

/* Base Reset & Foundation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--brand-white);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.2;
    font-weight: 400;
}

h1 { font-size: 3.5rem; margin-bottom: 2rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p { margin-bottom: 1.5rem; color: var(--text-secondary); }

a {
    color: var(--brand-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover { color: var(--brand-gold); }

/* Utility Classes */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding { padding: 120px 0; }

.text-center { text-align: center; }

/* Elevated White Card System */
.white-card {
    background: var(--brand-white);
    border: 1px solid var(--border-light);
    border-radius: 4px; /* Clinical luxury uses tighter radii */
    padding: 40px;
    transition: all 0.5s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.white-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-gold);
}



/* --- NUCLEAR HEADER RECONSTRUCTION (Phase 7) --- */
body.redesign-pure header {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-bottom: 1px solid var(--border-light) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.4s ease !important;
}

body.redesign-pure .header-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

body.redesign-pure .logo-container {
    flex: 0 0 25% !important;
    max-width: 250px !important;
    display: block !important;
}

body.redesign-pure .logo-container img {
    height: auto !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
}

body.redesign-pure .nav-links {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin: 0 40px !important;
}

body.redesign-pure .nav-link {
    font-family: var(--font-heading) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: var(--text-primary) !important;
    position: relative !important;
    padding-bottom: 5px !important;
    white-space: nowrap !important;
}

body.redesign-pure .user-hud-pure {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}


/* Adjust hero/main content to clear the fixed header */
body.redesign-pure main, 
body.redesign-pure .hero {
    padding-top: 100px !important;
}

/* --- NUCLEAR CONTRAST RECOVERY (Clinical Luxury Upgrade) --- */
/* Target legacy white/transparent text that is now invisible on white */
body.redesign-pure p[style*="rgba(255,255,255"],
body.redesign-pure h4[style*="rgba(255,255,255"],
body.redesign-pure span[style*="rgba(255,255,255"],
body.redesign-pure div[style*="rgba(255,255,255"],
body.redesign-pure td[style*="rgba(255,255,255"],
body.redesign-pure li[style*="rgba(255,255,255"],
body.redesign-pure .text-muted,
body.redesign-pure .card-price[style*="color: var(--text-muted)"] {
    color: var(--text-secondary) !important;
}

body.redesign-pure .filter-btn.inactive {
    background: var(--brand-stone) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-light) !important;
}

body.redesign-pure .filter-btn.active {
    background: var(--brand-gold) !important;
    color: var(--brand-white) !important;
    border-color: var(--brand-gold) !important;
}

/* Fix for icons that might be white */
body.redesign-pure i[style*="color: rgba(255,255,255"],
body.redesign-pure i[style*="color: white"],
body.redesign-pure i[style*="color: #fff"] {
    color: var(--brand-purple) !important;
}

/* Luxury Table Contrast */
body.redesign-pure .luxury-table th {
    background: var(--brand-stone) !important;
    color: var(--text-primary) !important;
}

body.redesign-pure .luxury-table td {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

/* Upgrade Modal Contrast Fix */
body.redesign-pure #upgradeModal .modal-content {
    background: var(--brand-white) !important;
    border: 1px solid var(--brand-gold) !important;
}

body.redesign-pure #upgradeModal h2,
body.redesign-pure #upgradeModal p,
body.redesign-pure #upgradeModal button {
    color: var(--text-primary) !important;
}

/* Redesign Button System */
.btn-pure {
    display: inline-block;
    padding: 15px 40px;
    background: var(--text-primary);
    color: var(--brand-white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pure:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-pure-gold {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
}

.btn-pure-gold:hover {
    background: transparent;
    color: var(--brand-gold);
}

/* --- Product Card & Artifact Framing (Clinical Luxury) --- */
.product-card {
    background: var(--brand-white);
    border: 1px solid var(--border-light);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-radius: 4px; /* Clinical precision */
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

/* --- NUCLEAR MUSEUM SPECIMEN FRAMING (Clinical Luxury Override) --- */
body.redesign-pure .product-card .card-img {
    background-color: var(--brand-stone) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    padding: 30px !important; /* Generous museum matte */
    border: 1px solid var(--border-light) !important;
    border-radius: 4px !important;
    aspect-ratio: 1 / 1 !important; /* Mathematical precision */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

body.redesign-pure .product-card .card-img img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* The Specimen View */
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1) !important; /* Elevation within the card */
    filter: brightness(1.02) contrast(1.05) !important;
}

body.redesign-pure .product-card:hover .card-img img {
    transform: scale(1.1) translateY(-10px) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2) !important;
}

/* Base Card Refinement */
body.redesign-pure .product-card {
    background: var(--brand-white) !important;
    border: 1px solid var(--border-light) !important;
    padding: 24px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.5s ease !important;
    box-sizing: border-box !important;
}

.product-card:hover {
    border-color: var(--brand-gold) !important;
    transform: translateY(-5px) !important;
}

/* Redesign Section Titles */
section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

section p.subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- Responsiveness & Fixes (Pure Sanctuary 2026) --- */

/* 1. Desktop Defaults (Hide Mobile UI) */
.mobile-menu-trigger-pure,
.mobile-menu-overlay-pure {
    display: none !important;
}

/* 2. Media Queries */
@media (max-width: 1024px) {
    /* Hide Desktop Nav */
    .nav-links {
        display: none !important;
    }
    
    /* Show Mobile Trigger */
    .mobile-menu-trigger-pure {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-primary);
        order: 2;
    }
    
    /* Mobile Overlay Style */
    .mobile-menu-overlay-pure {
        display: flex !important; /* Managed by opacity/visibility */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--brand-white);
        z-index: 2000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .mobile-menu-overlay-pure.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 30px;
        right: 40px;
        font-size: 2rem;
        cursor: pointer;
    }
    
    .mobile-nav-link {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        color: var(--text-primary);
        text-transform: uppercase;
        letter-spacing: 0.2em;
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }
    
    .mobile-menu-overlay-pure.active .mobile-nav-link {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .container { padding: 0 30px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.6rem !important; }
    .hero { padding: 6rem 0 4rem 0 !important; }
    .logo-container img { height: 35px !important; }
    
    /* Grid adjustments */
    .methodology-grid { 
        grid-template-columns: 1fr !important; 
        gap: 1.5rem !important;
    }
    
    /* Floating button fixes */
    .whatsapp-btn { bottom: 90px !important; right: 20px !important; }
    .back-to-top { bottom: 30px !important; right: 20px !important; }
    
    /* HUD Fix */
    .user-hud-pure {
        padding: 0 10px !important;
        border: none !important;
        gap: 12px !important;
    }
    .user-hud-pure .nav-link:not(.cart-icon-pure) {
        display: none !important; /* Hide secondary HUD links on mobile */
    }
    .user-hud-pure .nav-link i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem !important; }
    .btn-pure { width: 100%; text-align: center; }
}
