html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    width: 100vw;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

#philosophy, #ingredients, #contact {
    scroll-margin-top: 80px;
}

/* --- Stable Professional Header Grid --- */
.header-grid { 
    display: grid !important; 
    grid-template-columns: 1fr auto 1fr !important; 
    align-items: center !important; 
    height: 90px; 
    padding: 0 5%; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    width: 100%; 
    position: fixed; 
    top: 0; 
    left: 0;
    z-index: 9999; 
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo { height: 50px !important; width: auto; }
.nav-center { display: flex; gap: 30px; justify-content: center; text-transform: uppercase; font-size: 13px; font-family: 'Montserrat', sans-serif; }
.nav-right { display: flex; gap: 20px; justify-content: flex-end; align-items: center; }
.nav-center a, .nav-right a { 
    color: #2D2D2D; 
    text-decoration: none; 
    transition: 0.3s; 
    position: relative;
    padding-bottom: 5px;
}
.nav-center a::after, .nav-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8B1E25;
    transition: width 0.3s ease-out-quart;
}
.nav-center a:hover::after, .nav-right a:hover::after {
    width: 100%;
}
.nav-center a:hover, .nav-right a:hover { color: #8B1E25; }
.nav-right .lang { color: #2D2D2D; font-size: 13px; font-family: 'Montserrat', sans-serif; }

/* Image Interactions */
img {
    transition: transform 0.4s ease-out-quart !important;
}
img:hover {
    transform: scale(1.05);
}

/* --- Optimized Mobile App-Native Header --- */
@media (max-width: 768px) {
    /* 1. Structural Constraints & Surface */
    header.custom-header {
        height: 60px !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }

    /* 2. Flexbox Layout & Component Alignment */
    .header-grid {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 20px !important;
        height: 60px !important;
        min-height: 60px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
    }

    /* Logo Scale & Vertical Centering */
    .logo {
        max-height: 26px !important;
        width: auto !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .nav-left {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 !important;
    }

    /* Visibility Management: Remove text-based links */
    .nav-center {
        display: none !important;
    }

    /* Utility Group: Single-row flex container */
    .nav-right {
        display: flex !important;
        gap: 15px !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 !important;
    }

    /* 3. Micro-Typography & Touch Targets */
    .nav-right .lang {
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
        text-transform: uppercase !important;
        font-family: 'Montserrat', sans-serif !important;
        margin: 0 !important;
    }

    .nav-right .lang a {
        font-size: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
        color: inherit !important;
        text-decoration: none !important;
    }

    /* Iconography: Cart Icon at exactly 20px */
    .nav-right a:last-child {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 20px !important;
        height: 20px !important;
        font-size: 18px !important;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
        text-decoration: none !important;
    }

    /* Geometry Fix: Strip ghost padding/heights from children */
    .header-grid > div {
        min-height: 0 !important;
    }

    /* 4. Global Layout Synchronization */
    .cinematic-hero,
    section:first-of-type {
        padding-top: 60px !important;
    }

    /* Notch safe area */
    @supports (padding: env(safe-area-inset-top)) {
        .cinematic-hero,
        section:first-of-type {
            padding-top: calc(60px + env(safe-area-inset-top)) !important;
        }
    }

    section {
        padding: 60px 20px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .product-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .alchemy-title, .section-title, .final-cta-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .steps-container, .ingredients-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        width: 100% !important;
    }

    .step, .ingredient-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .step-number {
        font-size: 4rem !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin-bottom: 10px !important;
        display: block !important;
    }

    .step-text {
        max-width: 100% !important;
    }
}

/* --- Restored Premium Light Luxury Aesthetic --- */

body {
    background-color: #F5F5F5 !important;
    color: #2D2D2D !important;
    font-family: 'Montserrat', sans-serif;
}

section {
    padding: 150px 8% !important;
    position: relative;
    overflow: hidden;
}

h2 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    color: #2D2D2D;
    font-family: 'Playfair Display', serif;
}

/* --- Cinematic Hero Section --- */
.cinematic-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(232, 232, 232, 0.8) 100%), url('https://images.unsplash.com/photo-1560869713-7d0a29430803?q=80&w=1920&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #2D2D2D;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
}

.brand-name {
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #8B1E25;
    font-size: 14px;
    margin-bottom: 20px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    color: #2D2D2D;
    line-height: 1.1;
    margin-bottom: 30px;
}

.product-description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #4A4A4A;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

/* CTA Button Styling */
.hero-cta .woocommerce.add_to_cart_inline {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-cta .woocommerce.add_to_cart_inline ins {
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.hero-cta .woocommerce.add_to_cart_inline .amount {
    color: #2D2D2D;
    font-size: 1.2rem;
    font-weight: 300;
}

.hero-cta a.button, 
.hero-cta .cta-button,
.final-cta-section a.button {
    background: #8B1E25 !important;
    color: white !important;
    padding: 18px 45px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: 0.3s !important;
    border: 2px solid transparent !important;
    display: inline-block !important;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.hero-cta a.button:hover,
.hero-cta .cta-button:hover,
.final-cta-section a.button:hover {
    background: transparent !important;
    border: 2px solid #8B1E25 !important;
    color: #8B1E25 !important;
}

.accent {
    color: #8B1E25;
}

#ingredients .ingredient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.ingredient-item {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 40px;
    border-radius: 4px;
    transition: 0.4s;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* --- SECTION 1: THE SCIENCE (RE-BUILD) --- */
/* --- Alchemy Section (Centered Flex) --- */
.alchemy-section { 
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%) !important;
    backdrop-filter: blur(10px);
    padding: 150px 10% 80px !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    text-align: center !important; 
}
.alchemy-title { 
    font-family: 'Playfair Display', serif !important; 
    font-size: 3.5rem !important; 
    color: #2D2D2D !important; 
    text-transform: uppercase !important; 
    letter-spacing: 2px !important; 
    margin-bottom: 50px !important; 
    width: 100% !important; 
}
.alchemy-content { 
    max-width: 800px !important; 
    margin: 0 auto !important; 
    color: #4A4A4A !important; 
    line-height: 1.8; 
    font-family: 'Montserrat', sans-serif;
}

/* --- SECTION 2: HOW TO USE (NEW) --- */
#how-to-use {
    background: #F5F5F5 !important;
    padding: 0 8% 150px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    width: 100%;
}
.step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 40px 20px;
}
.step-number {
    font-size: 8rem !important;
    color: rgba(139, 30, 37, 0.1) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    line-height: 1;
}
.step-text {
    font-family: 'Montserrat', sans-serif;
    color: #2D2D2D !important;
    margin-top: 15px;
    font-size: 1.25rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    max-width: 280px;
}

/* --- SECTION 3: INGREDIENTS (RE-BUILD) --- */
#ingredients {
    background: linear-gradient(180deg, #F5F5F5 0%, #FFFFFF 100%) !important;
    padding: 150px 8% !important;
}
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.ingredient-card {
    background: #FFFFFF;
    border: none;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.ingredient-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
}
.ingredient-card h4 {
    font-family: 'Playfair Display', serif;
    color: #8B1E25;
    font-size: 2rem;
    text-transform: uppercase;
}
.ingredient-card p {
    font-family: 'Montserrat', sans-serif;
    color: #4A4A4A;
}

.final-cta-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%) !important;
    padding: 150px 10% !important;
    text-align: center;
}

.final-cta-section .woocommerce.add_to_cart_inline {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* --- SECTION 1.5: MINERAL POWER (NEW) --- */
.mineral-power {
    background-color: #F9F9F9 !important;
    padding: 100px 8% !important;
    overflow: hidden;
}

/* --- SECTION: BEFORE/AFTER COMPARISON SLIDER (BESPOKE) --- */
.comparison-slider-wrapper {
    background-color: #F5F5F5;
    padding: 100px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background-color: #F5F5F5;
    overflow: hidden;
    user-select: none;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: none !important; /* Override global image transition */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
    z-index: 2;
}

.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Typography & Labels */
.comparison-slider .label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #2D2D2D;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 3;
    pointer-events: none;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

/* Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 0;
    pointer-events: none;
    z-index: 4;
}

.handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    background-color: #8B1E25;
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.handle-circle::before,
.handle-circle::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.handle-circle::before {
    border-right: 6px solid #8B1E25;
    margin-right: 3px;
}

.handle-circle::after {
    border-left: 6px solid #8B1E25;
    margin-left: 3px;
}

/* Native Input Range Styling */
.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    margin: 0;
}

@media (max-width: 768px) {
    .comparison-slider-wrapper {
        padding: 60px 20px;
    }
    
    .comparison-slider {
        aspect-ratio: 4 / 5; /* More vertical for mobile */
    }

    .comparison-slider .label {
        bottom: 15px;
        font-size: 10px;
        padding: 6px 12px;
    }
}

.mineral-power__container {
    max-width: 1200px;
    margin: 0 auto;
}

.mineral-power__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mineral-power__image-col {
    position: relative;
}

.mineral-power__image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.mineral-power__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.mineral-power__image-col:hover .mineral-power__image {
    transform: scale(1.08);
}

.mineral-power__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
    pointer-events: none;
}

.mineral-power__title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
    color: #2D2D2D !important;
    margin-bottom: 50px !important;
    text-transform: uppercase;
    letter-spacing: 1px !important;
    line-height: 1.1 !important;
    text-align: left !important;
}

.mineral-power__list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mineral-power__item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mineral-power__item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delay logic for JS */
.mineral-power__item.is-visible {
    transition-delay: calc(var(--item-index) * 200ms);
}

.mineral-power__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B1E25;
    box-shadow: 0 10px 20px rgba(139, 30, 37, 0.1);
}

.mineral-power__icon svg {
    width: 24px;
    height: 24px;
}

.mineral-power__item-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem !important;
    color: #2D2D2D !important;
    margin-bottom: 8px !important;
    letter-spacing: 1px !important;
    text-transform: none !important;
}

.mineral-power__item-desc {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    color: #4A4A4A !important;
    line-height: 1.6 !important;
    letter-spacing: 1px !important;
}

@media (max-width: 992px) {
    .mineral-power__grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mineral-power {
        padding: 80px 20px !important;
    }
    
    .mineral-power__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .mineral-power__image-col {
        order: 2;
    }
    
    .mineral-power__content-col {
        order: 1;
    }
    
    .mineral-power__title {
        text-align: center !important;
        margin-bottom: 40px !important;
    }
    
    .mineral-power__item {
        transform: translateY(20px);
        opacity: 0;
        text-align: left;
    }
    
    .mineral-power__item.is-visible {
        transform: translateY(0);
    }
}
