/* ===== GLOBAL ANIMATIONS & EFFECTS ===== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes focusReveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    30% {
        transform: translate(3%, -15%);
    }

    50% {
        transform: translate(12%, 9%);
    }

    70% {
        transform: translate(9%, 4%);
    }

    90% {
        transform: translate(-1%, 7%);
    }
}

.grain-overlay {
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: url('https://gagnantcare.com/wp-content/uploads/2026/01/grain-texture.png');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    animation: grain 8s steps(10) infinite;
}

.reveal-up {
    opacity: 0;
}

.reveal-up.visible {
    animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.focus-reveal {
    opacity: 0;
}

.focus-reveal.visible {
    animation: focusReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gradient-text-shift {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-magenta), var(--color-gold), var(--color-pink), var(--color-magenta));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease 1s;
}

.visible .gradient-text-shift {
    opacity: 1;
}

.float-element {
    animation: float 6s ease-in-out infinite;
}

.parallax-target {
    transition: transform 0.1s cubic-bezier(0.1, 0, 0, 1);
}

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --color-magenta: #df226f;
    --color-pink: #ff4d94;
    --color-gold: #ecb31f;
    --color-navy: #2b3174;
    --color-light-blue: #5a6bb8;
    --color-bg: #fdfdfd;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-slow: 0.4s ease;
}

body {
    font-family: var(--font-body);
    color: var(--color-navy);
    line-height: 1.6;
    background: #ffffff;
}

/* Hide default WordPress admin bar spacing */
body.admin-bar .site-header {
    top: 32px !important;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
.footer-brand {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* REDUCED PADDING FOR INNER PAGES AND LOGIN */
.page-template-default .section,
.woocommerce-page .section {
    padding-top: 6rem;
    /* Ensures content clears the fixed header */
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.7rem 0;
    /* Desktop: Glass effect with light background for readability */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(43, 49, 116, 0.05);
    transition: var(--transition-fast);
}

/* Mobile Header: Solid white for clean look & readability */
@media (max-width: 991px) {
    .site-header {
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Ensure the header is always at the very top */
.page-template-default .site-header,
.woocommerce-page .site-header {
    background: white;
    /* Solid background for inner pages */
    top: 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-navy);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo span {
    color: var(--color-gold);
}

/* ===== HEADER LOGO FIX ===== */
.header-logo-img {
    height: 40px;
    /* Default height */
    max-height: 40px;
    /* Strict constraint */
    width: auto;
    object-fit: contain;
}

.header-subscribe-btn {
    background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-pink) 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(223, 34, 111, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(223, 34, 111, 0.3);
    color: white;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-magenta);
}

.cart-link {
    position: relative;
    color: var(--color-navy);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-right: 0.5rem;
}

.cart-link:hover {
    color: var(--color-magenta);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-magenta);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== HAMBURGER MENU ===== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1010;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    /* Push to the right */
    order: 2;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .site-header .container {
        position: relative;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        box-shadow: 0 8px 24px rgba(43, 49, 116, 0.1);
        border-radius: 0 0 12px 12px;
        gap: 0;
        z-index: 1000;
    }

    .site-nav.nav-open {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .site-nav .nav-link {
        padding: 0.8rem 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        display: block;
    }

    .site-nav .nav-link:last-child {
        border-bottom: none;
    }

    .site-nav .wc-menu-items {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .site-nav .wc-menu-items .nav-link {
        padding: 0.8rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .site-nav .wc-menu-items .cart-link {
        padding: 0.8rem 0;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-right: 0;
    }

    .site-nav .wc-menu-items .cart-link::after {
        content: 'Cart';
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-navy);
    }

    .site-nav .header-subscribe-btn {
        margin-top: 0.5rem;
        text-align: center;
        display: block;
    }
}

/* ===== AFFILIATE REGISTRATION FORM STYLING ===== */
.afwc_reg_form_wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

#afwc_registration_form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 3%;
}

#afwc_registration_form .afwc_reg_field_wrapper {
    width: 100%;
    margin-bottom: 1rem;
}

#afwc_registration_form .afwc_reg_field_wrapper.afwc_is_half {
    width: 48%;
}

#afwc_registration_form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

#afwc_registration_form .afwc_reg_form_field {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-navy);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

#afwc_registration_form .afwc_reg_form_field:focus {
    border-color: var(--color-magenta);
    outline: none;
    box-shadow: 0 0 0 3px rgba(223, 34, 111, 0.1);
}

#afwc_registration_form textarea.afwc_reg_form_field {
    min-height: 120px;
    resize: vertical;
}

#afwc_registration_form input[type="checkbox"].afwc_reg_form_field {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--color-magenta);
    display: inline-block;
    vertical-align: middle;
}

#afwc_registration_form .afwc_reg_terms label {
    display: inline;
    font-weight: 500;
}

#afwc_registration_form .afwc_registration_form_submit {
    background: var(--color-navy);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 0.5rem;
    width: auto;
}

#afwc_registration_form .afwc_registration_form_submit:hover {
    background: var(--color-magenta);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(223, 34, 111, 0.3);
}

@media (max-width: 600px) {
    #afwc_registration_form .afwc_reg_field_wrapper.afwc_is_half {
        width: 100%;
    }

    #afwc_registration_form .afwc_registration_form_submit {
        width: 100%;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-navy);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-brand {
    font-size: 2rem;
    color: white;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.footer-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.5;
}


/* ===== WOOCOMMERCE OVERRIDES (SIDEBAR LAYOUT) ===== */

/* Base Content Width */
.woocommerce-page .entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
    padding-top: 2rem;
}

/* My Account Container - Sidebar (Left) + Content (Right) */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.woocommerce-MyAccount-navigation {
    flex: 0 0 260px;
    /* Fixed sidebar width */
    border-right: 1px solid #eee;
    /* Divider */
    padding-right: 2rem;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--color-navy);
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: #f8f9fa;
    color: var(--color-magenta);
    transform: translateX(5px);
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--color-navy);
    color: white;
    box-shadow: 0 4px 10px rgba(43, 49, 116, 0.2);
}

.woocommerce-MyAccount-content {
    flex: 1;
    /* Content takes remaining width */
    min-width: 0;
    /* Prevents overflow issues */
    padding-top: 0.5rem;
}

/* Headings Override (Prevent Huge Font) */
.woocommerce-account h2,
.woocommerce-account h3,
.woocommerce-Address-title h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.8rem !important;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.woocommerce-account h3 {
    font-size: 1.5rem !important;
}

/* WORDFENCE 2FA FIX */
.wfls-token-group {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* ===== LOGIN PAGE CENTERING ===== */
/* Only applies when not logged in (login form is showing) */
body:not(.logged-in) .woocommerce-page .entry-content,
body:not(.logged-in).woocommerce-page .entry-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body:not(.logged-in) .woocommerce-page .entry-content h2,
body:not(.logged-in).woocommerce-page .entry-content h2,
body:not(.logged-in) .woocommerce-page .entry-content .woocommerce>h2,
body:not(.logged-in).woocommerce-page .entry-content .woocommerce>h2 {
    text-align: center;
    width: 100%;
}

.woocommerce form.login {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(43, 49, 116, 0.08);
    overflow: visible !important;
}

.woocommerce form.login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.woocommerce form.login .lost_password {
    text-align: center;
    display: block;
    margin-top: 1.5rem;
}

#wfls-prompt-overlay {
    z-index: 999999 !important;
    background: rgba(255, 255, 255, 0.98);
}

input[name="wfls-token"] {
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--color-navy);
    background: #fff;
    display: block;
}

/* Addresses Grid - Fixed Side-by-Side */
.u-columns.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
}

.woocommerce-Address {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.75rem;
}

.woocommerce-Address-title h3 {
    margin-bottom: 0 !important;
    font-size: 1.2rem !important;
    color: var(--color-navy);
    font-weight: 600;
}

.woocommerce-Address-title .edit {
    font-size: 0.85rem !important;
    color: var(--color-magenta) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 0.4rem 1rem;
    background: rgba(223, 34, 111, 0.05);
    border-radius: 20px;
    transition: var(--transition-fast);
}

.woocommerce-Address-title .edit:hover {
    background: var(--color-magenta);
    color: white !important;
}

/* Addresses Loop Text */
.woocommerce-Address address {
    font-style: normal;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

/* Forms & Inputs */
.woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-Input {
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fff;
}

.woocommerce-Input:focus {
    border-color: var(--color-magenta);
    outline: none;
    box-shadow: 0 0 0 3px rgba(223, 34, 111, 0.1);
}

/* Buttons */
.woocommerce-Button,
button[name="save_address"],
button[name="save_account_details"],
button[name="login"],
button[name="register"] {
    background: var(--color-navy) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.95rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 1rem;
}

.woocommerce-Button:hover,
button[name="login"]:hover {
    background: var(--color-magenta) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(223, 34, 111, 0.3);
}

/* My Account Dashboard Links */
.woocommerce-MyAccount-content a {
    color: var(--color-magenta);
    text-decoration: underline;
}

/* Affiliate WP Fixes - Resolve Bunching */
.affwp-tab-content table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 1.5rem !important;
    table-layout: fixed !important;
}

.affwp-tab-content table th,
.affwp-tab-content table td {
    display: table-cell !important;
    padding: 12px 10px !important;
    text-align: left !important;
    border-bottom: 1px solid #eee !important;
    font-size: 0.85rem !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.affwp-tab-content table th {
    background: #f8f9fa !important;
    font-weight: 600 !important;
    color: var(--color-navy) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    font-size: 0.75rem !important;
}

.affwp-tab-content table td {
    color: #444 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
}

/* Specific column widths for Recent Visits table */
.affwp-tab-content table th:nth-child(1),
.affwp-tab-content table td:nth-child(1) {
    width: 20% !important;
}

.affwp-tab-content table th:nth-child(2),
.affwp-tab-content table td:nth-child(2) {
    width: 15% !important;
}

.affwp-tab-content table th:nth-child(3),
.affwp-tab-content table td:nth-child(3) {
    width: 35% !important;
    word-break: break-all !important;
}

.affwp-tab-content table th:nth-child(4),
.affwp-tab-content table td:nth-child(4) {
    width: 15% !important;
}

.affwp-tab-content table th:nth-child(5),
.affwp-tab-content table td:nth-child(5) {
    width: 15% !important;
}

/* Force horizontal scroll on containers for large tables */
[id^="affwp-affiliate-dashboard"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
}

.affwp-tab-content {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE DESIGN ===== */

/* Tablet and Below */
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 2rem;
    }

    .woocommerce-MyAccount-navigation {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        /* Horizontal Scroll on Mobile */
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .woocommerce-MyAccount-navigation li a {
        white-space: nowrap;
        background: #f5f5f5;
        padding: 0.6rem 1rem;
        border-radius: 20px;
    }

    .woocommerce-MyAccount-navigation li.is-active a {
        background: var(--color-navy);
        color: white;
    }

    .u-columns.woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }

    /* Affiliate tables on tablet */
    .affwp-tab-content table {
        font-size: 0.8rem !important;
    }

    .affwp-tab-content table th,
    .affwp-tab-content table td {
        padding: 8px 6px !important;
        font-size: 0.75rem !important;
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {

    /* Header adjustments */
    .site-header {
        padding: 0.5rem 0;
    }

    .site-header .container {
        padding: 0 1rem;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .header-logo-img {
        height: 32px;
        max-height: 32px;
    }

    .site-nav {
        gap: 0.8rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .header-subscribe-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }

    /* Login page mobile */
    .woocommerce-page .entry-content form.login,
    .woocommerce form.login {
        max-width: 100%;
        padding: 2rem 1.5rem;
        margin: 1rem;
        box-shadow: 0 4px 16px rgba(43, 49, 116, 0.06);
    }

    .woocommerce form.login h2 {
        font-size: 1.5rem !important;
    }

    /* Content padding adjustments */
    .woocommerce-page .entry-content {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .page-template-default .section,
    .woocommerce-page .section {
        padding-top: 5rem;
    }

    /* Form inputs mobile */
    .woocommerce-Input,
    input[name="wfls-token"] {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    /* Buttons mobile */
    .woocommerce-Button,
    button[name="save_address"],
    button[name="save_account_details"],
    button[name="login"],
    button[name="register"] {
        padding: 0.9rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100%;
        margin-top: 1rem;
    }

    /* Account content headings */
    .woocommerce-account h2,
    .woocommerce-account h3 {
        font-size: 1.5rem !important;
    }

    .woocommerce-account h3 {
        font-size: 1.3rem !important;
    }

    /* Address cards mobile */
    .woocommerce-Address {
        padding: 1.5rem;
    }

    .woocommerce-Address-title h3 {
        font-size: 1.1rem !important;
    }

    /* Affiliate dashboard mobile */
    .affwp-tab-content table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .affwp-tab-content table thead,
    .affwp-tab-content table tbody,
    .affwp-tab-content table tr {
        display: table !important;
        width: 100% !important;
    }

    .affwp-tab-content table th,
    .affwp-tab-content table td {
        padding: 10px 8px !important;
        font-size: 0.7rem !important;
        min-width: 80px !important;
    }

    .affwp-tab-content table th:nth-child(3),
    .affwp-tab-content table td:nth-child(3) {
        min-width: 150px !important;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.95rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {

    /* Extra small screens */
    .site-header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .woocommerce form.login {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

    .woocommerce form.login h2 {
        font-size: 1.3rem !important;
    }

    .woocommerce-Address {
        padding: 1rem;
    }

    .affwp-tab-content table th,
    .affwp-tab-content table td {
        padding: 8px 5px !important;
        font-size: 0.65rem !important;
        min-width: 70px !important;
    }

    /* Make sure tables are fully scrollable */
    [id^="affwp-affiliate-dashboard"],
    .affwp-tab-content {
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .site-header {
        padding: 0.4rem 0;
    }

    .woocommerce form.login {
        padding: 1.5rem;
    }

    .page-template-default .section,
    .woocommerce-page .section {
        padding-top: 4rem;
    }
}

/* ===== WAITLIST MOBILE FIX (GLOBAL) ===== */
@media (max-width: 991px) {

    .waitlist-form .mc4wp-form-fields,
    .mc4wp-form-fields {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .waitlist-form .mc4wp-form-fields input[type="email"],
    .mc4wp-form-fields .email-input {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .waitlist-form .mc4wp-form-fields button,
    .mc4wp-form-fields .submit-btn {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding: 1rem !important;
        /* Ensure nice touch target */
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: auto;
    display: block;
    padding: 0;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Video placeholder - ready for custom video */
.hero-video-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: min(450px, 40vw);
    height: min(450px, 40vw);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 450px;
}

.hero-video-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-pink) 100%);
    opacity: 0.1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-navy);
    text-align: center;
    padding: var(--spacing-md);
    border: 2px dashed rgba(43, 49, 116, 0.2);
}

.hero-video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: var(--spacing-md) var(--spacing-lg);
}

.hero-tagline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(43, 49, 116, 0.15);
}

.hero-title {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-navy) 0%, #4a5193 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(43, 49, 116, 0.8);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.hero-illustration {
    margin-top: var(--spacing-md);
    max-width: 300px;
    opacity: 0.9;
    margin-left: auto;
    margin-right: auto;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(43, 49, 116, 0.1));
}

/* ===== STACKED HOVER SECTION (Reworked Story Section) ===== */
.stacked-hover-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--color-navy);
    /* Base color matches Row 1 theme */
    position: relative;
    overflow: hidden;
}

/* ===== GLOBAL BACKGROUND SYSTEM ===== */
.global-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s 1.2s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-layer-1 {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-light-blue) 100%);
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1;
}

.bg-layer-2 {
    background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-pink) 100%);
    z-index: 2;
    /* Layer 2 stays on top and fades in/out */
}

/* Only transition the top layer (Pink) over the foundation (Navy) */
.stacked-hover-container:has(.row-2:hover) .bg-layer-2 {
    opacity: 1;
    visibility: visible;
    transform: scale(1.05);
    transition-delay: 0s;
}

/* Remove the transition away logic for layer 1 to keep it as foundation */
.stacked-hover-container:has(.row-2:hover) .bg-layer-1 {
    transform: scale(1.05);
}

/* Shared Background Text inside Global Layers */
.shared-bg-item {
    font-family: var(--font-heading);
    font-size: 20vw;
    /* Reduced slightly for longer word */
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    pointer-events: none;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1), color 0.6s ease;
}

/* Horizontal Divider */
.row-divider {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 8;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.stacked-hover-container:hover .row-divider {
    opacity: 0.3;
}

.hover-row {
    position: relative;
    height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    z-index: 5;
    background: transparent;
    /* Row itself is transparent */
}

.row-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 49, 116, 0.2);
    z-index: 3;
    transition: opacity 0.6s ease;
}

/* Content Focus & Blur Logic */
.row-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.stacked-hover-container:hover .hover-row:not(:hover) .row-content {
    filter: blur(12px);
    opacity: 0.35;
    transform: scale(0.95);
}

.hover-row:hover .row-content {
    filter: blur(0);
    opacity: 1;
    transform: scale(1.02);
}

.row-1 .row-content {
    text-align: left;
}

.row-2 .row-content {
    text-align: right;
}

.row-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 600;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -1.5rem;
    display: block;
}

.row-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    color: var(--color-gold);
    transition: transform 0.4s ease;
}

.hover-row:hover .row-icon,
.hover-row.active .row-icon {
    transform: translateY(-5px) scale(1.1);
}

.row-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    color: white;
    font-family: var(--font-heading);
    font-weight: 500;
}

.row-desc {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    max-width: 500px;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.row-1 .row-desc {
    margin-right: auto;
}

.row-2 .row-desc {
    margin-left: auto;
}

.row-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.row-btn:hover {
    gap: 15px;
}

@media (max-width: 768px) {
    .hover-row {
        height: auto;
        min-height: 420px;
        /* Increased to prevent overlap */
        padding: var(--spacing-xl) 0;
    }

    .row-content {
        padding: 0 var(--spacing-md);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .row-number {
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
        /* Remove negative margin for visibility */
        position: relative;
        top: 0;
    }

    .row-1 .row-content,
    .row-2 .row-content {
        text-align: center;
    }

    .row-1 .row-desc,
    .row-2 .row-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .row-btn {
        margin-top: 1rem;
    }

    /* Mobile Background Switching (Scroll-based) - Seamless Overlap */
    .stacked-hover-container:has(.row-2.active) .bg-layer-2 {
        opacity: 1;
        visibility: visible;
        transform: scale(1.05);
        transition-delay: 0s;
    }

    .stacked-hover-container:has(.row-2.active) .bg-layer-1 {
        transform: scale(1.05);
    }

    /* Global Section Tightening */
    .section {
        padding: var(--spacing-lg) 0;
    }

    :root {
        --spacing-lg: 2.5rem;
        /* Tighter lg spacing for mobile */
    }
}

/* ===== KIT OVERVIEW SECTION ===== */
.kit-section {
    background: #ffffff;
}

.kit-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.kit-header h2 {
    margin-bottom: var(--spacing-sm);
}

.kit-subtitle {
    font-size: clamp(2rem, 4vw, 3rem);
    color: rgba(43, 49, 116, 0.7);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
}

.kit-intro {
    background: linear-gradient(135deg, rgba(43, 49, 116, 0.03) 0%, rgba(87, 171, 209, 0.05) 100%);
    padding: var(--spacing-lg);
    border-radius: 20px;
    margin-bottom: var(--spacing-lg);
}

.kit-intro-tagline {
    text-align: center;
    font-style: italic;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.kit-intro-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(43, 49, 116, 0.7);
}

.product-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0 0;
    /* Removed bottom margin */
}

.product-list li {
    padding: var(--spacing-md);
    background: white;
    border-radius: 15px;
    font-weight: 500;
    color: var(--color-navy);
    box-shadow: 0 4px 20px rgba(43, 49, 116, 0.08);
    transition: box-shadow 0.3s ease, transform 0.1s ease;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    perspective: 1000px;
}

.product-list li:hover {
    box-shadow: 0 8px 30px rgba(43, 49, 116, 0.15);
}

.product-list .product-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.product-list img {
    width: 100%;
    max-width: 300px;
    height: 220px;
    border-radius: 10px;
    object-fit: contain;
    object-position: bottom;
    margin-top: 0.5rem;
    /* Tightened from var(--spacing-sm) */
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.product-list li:hover img {
    /* Handled by JS tilt */
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.product-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(43, 49, 116, 0.08);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 50px rgba(43, 49, 116, 0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: var(--spacing-md);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: var(--spacing-xs);
}

.product-tagline {
    color: var(--color-magenta);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.product-description {
    font-size: 0.95rem;
    color: rgba(43, 49, 116, 0.7);
    line-height: 1.6;
}

/* Product Detail Modal */
.product-detail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 49, 116, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    overflow: hidden;
}

.product-detail.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: var(--spacing-md);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.product-detail-content {
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.product-detail-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-product-name {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 20;
    pointer-events: none;
}

.close-detail {
    position: sticky;
    top: var(--spacing-md);
    right: var(--spacing-md);
    float: right;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-navy);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-bottom: var(--spacing-sm);
}

.close-detail:hover {
    background: var(--color-magenta);
    transform: rotate(90deg);
}

.detail-image-container {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-container img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--color-magenta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(223, 34, 111, 0.3);
}

.hotspot:hover {
    transform: scale(1.2);
    background: var(--color-magenta);
    color: white;
}

.hotspot i,
.hotspot svg {
    font-size: 1.2rem;
    color: var(--color-magenta);
    transition: color 0.3s ease;
}

.hotspot:hover i,
.hotspot:hover svg {
    color: white;
}

/* Hotspot Tooltip */
.hotspot-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 12px;
    width: 220px;
    box-shadow: 0 10px 30px rgba(43, 49, 116, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 40;
    text-align: center;
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hotspot-tooltip h4 {
    color: var(--color-navy);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.hotspot-tooltip p {
    color: rgba(43, 49, 116, 0.8);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Pulse Animation */
.hotspot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-magenta);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.close-detail {
    position: absolute;
    /* Changed from sticky for mobile-friendly top-right corner */
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-navy);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    /* Slightly larger for better tap target */
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
    display: grid;
    place-items: center;
    /* Perfect centering for the character */
    z-index: 100;
    padding: 0;
}

.close-detail:hover {
    background: var(--color-magenta);
    transform: rotate(90deg);
}


.detail-ingredients {
    margin-top: var(--spacing-md);
}

.detail-ingredients h4 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.ingredient-note {
    background: linear-gradient(135deg, rgba(87, 171, 209, 0.1) 0%, rgba(242, 128, 162, 0.1) 100%);
    padding: var(--spacing-md);
    border-radius: 10px;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    text-align: center;
}

/* ===== COMING SOON SECTION ===== */
.coming-soon-section {
    background:
        radial-gradient(ellipse 800px 600px at 35% 50%, rgba(223, 34, 111, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, #5a6bb8 0%, #3d4a8f 50%, #2b3174 100%);
    color: white;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
    /* Offset for sticky header */
    padding: 8rem 0;
    /* Significant vertical padding to fill screen */
}

.highlight-gold {
    color: var(--color-gold);
    font-style: italic;
}

.highlight-accent {
    text-decoration: underline;
    color: var(--color-pink);
}

.coming-soon-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.coming-soon-content h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.coming-soon-text {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    margin-bottom: 0.5rem;
    opacity: 0.95;
    line-height: 1.4;
}

.waitlist-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 20px;
    margin-top: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.email-input-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.email-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(236, 179, 31, 0.2);
}

.submit-btn {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-pink) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    transition: 0.8s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(223, 34, 111, 0.4);
}

.submit-btn:hover::after {
    left: 150%;
}

.form-note {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== MC4WP MAILCHIMP FORM STYLING ===== */
.mc4wp-form {
    width: 100%;
}

.mc4wp-form-fields {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.mc4wp-form .email-input-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.mc4wp-form input[type="email"],
.mc4wp-form input[name="EMAIL"] {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.mc4wp-form input[type="email"]:focus,
.mc4wp-form input[name="EMAIL"]:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(236, 179, 31, 0.2);
}

.mc4wp-form button[type="submit"],
.mc4wp-form input[type="submit"],
.mc4wp-form .submit-btn {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-pink) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mc4wp-form button[type="submit"]:hover,
.mc4wp-form input[type="submit"]:hover,
.mc4wp-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(223, 34, 111, 0.4);
}

/* Success/Error Messages */
.mc4wp-alert {
    margin-top: var(--spacing-md);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
}

.mc4wp-success {
    background: rgba(212, 237, 218, 0.95);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mc4wp-error {
    background: rgba(248, 215, 218, 0.95);
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-navy);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gold);
}

.footer-tagline {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.6;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-video-container {
        width: 350px;
        height: 350px;
        right: 2%;
    }
}

@media (max-width: 768px) {
    .hero-video-container {
        display: none;
    }

    .hero-content {
        padding: var(--spacing-md);
    }

    .product-detail-content {
        max-width: 95vw;
        padding: var(--spacing-md);
        border-radius: 20px;
    }

    .product-detail-inner {
        padding: var(--spacing-md);
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .email-input-group {
        flex-direction: column;
    }

    .mc4wp-form .email-input-group {
        flex-direction: column;
    }

    .mc4wp-form button[type="submit"],
    .mc4wp-form input[type="submit"],
    .mc4wp-form .submit-btn {
        width: 100%;
    }

    .product-list li {
        padding: var(--spacing-sm);
    }

    .product-list img {
        height: 180px;
        /* Shorter image height on mobile */
        margin-top: 0.25rem;
    }

    .kit-intro-tagline {
        margin-bottom: 1rem;
    }

    .kit-intro-text {
        margin-bottom: 0.5rem;
    }

    .kit-intro {
        padding: var(--spacing-md);
    }

    .kit-header {
        margin-bottom: var(--spacing-md);
    }

    .modal-product-name {
        top: 3.5rem;
        /* Raised higher to accommodate multi-line titles */
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
        padding: 0 var(--spacing-md);
        line-height: 1.2;
    }

    .close-detail {
        top: 1rem;
        right: 1rem;
        background: rgba(43, 49, 116, 0.8);
        /* Darker for better visibility */
    }

    .detail-image-container {
        height: 50vh;
        margin-top: 6rem;
        /* Increased margin to give breathing room for 2-line titles */
    }

    .hotspot-tooltip {
        width: 160px;
        /* Narrower tooltips on small screens */
        font-size: 0.8rem;
    }

    /* Smart Side-Aware Tooltip Flipping */
    .hotspot[style*="left"] .hotspot-tooltip {
        left: 0;
        transform: translateX(0) translateY(10px);
        transform-origin: bottom left;
        width: 150px;
    }

    .hotspot[style*="right"] .hotspot-tooltip {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(10px);
        transform-origin: bottom right;
        width: 150px;
    }

    .hotspot[style*="left"]:hover .hotspot-tooltip {
        transform: translateX(0) translateY(0);
    }

    .hotspot[style*="right"]:hover .hotspot-tooltip {
        transform: translateX(0) translateY(0);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Header Mobile Overlap Fix */
    .header-logo-img {
        max-height: 24px !important;
    }

    .site-logo {
        font-size: 1rem !important;
    }

    .header-subscribe-btn {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }

    /* Waitlist Mobile Optimization - Aggressive Override */
    @media (max-width: 991px) {

        .mc4wp-form .email-input-group,
        .email-input-group {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 15px !important;
            height: auto !important;
            min-height: 0 !important;
        }

        .email-input-group .email-input {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            padding: 1rem !important;
            box-sizing: border-box !important;
            font-size: 16px !important;
            /* Prevent iOS zoom */
            margin: 0 !important;
        }

        .email-input-group .submit-btn {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            padding: 1rem !important;
            margin: 0 !important;
        }
    }

    /* General Mobile Styles */
    @media (max-width: 768px) {
        .desktop-only {
            display: none;
        }

        .waitlist-form {
            padding: var(--spacing-sm);
            margin-top: var(--spacing-sm);
        }

        .coming-soon-section {
            padding: 2rem 0;
        }

        .coming-soon-content h2 {
            font-size: 1.8rem;
        }
    }

    /* ===== ANIMATIONS ===== */
    @keyframes float {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-20px);
        }
    }

    .hero-illustration {
        animation: float 6s ease-in-out infinite;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* ===== WOOCOMMERCE PRODUCT PAGE STYLES ===== */

    .woocommerce div.product .product_title {
        font-family: var(--font-heading);
        font-size: clamp(2rem, 3vw, 3rem);
        color: var(--color-navy);
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .woocommerce div.product p.price {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        color: var(--color-magenta);
        font-weight: 500;
        margin-bottom: 1.5rem;
    }

    .woocommerce div.product .woocommerce-product-details__short-description {
        font-size: 1.05rem;
        color: rgba(43, 49, 116, 0.8);
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    /* Add to Cart Button */
    .woocommerce div.product form.cart .button {
        background: linear-gradient(135deg, var(--color-navy) 0%, #4a5193 100%);
        color: white;
        padding: 1rem 2.5rem;
        border-radius: 50px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: none;
        transition: all 0.3s ease;
        margin-top: 1rem;
    }

    .woocommerce div.product form.cart .button:hover {
        background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-pink) 100%);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(223, 34, 111, 0.3);
    }

    /* Product Tabs */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        padding: 0;
        border-bottom: 2px solid #eee;
        margin-bottom: 2rem;
        background: transparent;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        background: transparent;
        border: none;
        margin-right: 2rem;
        padding: 0;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        font-family: var(--font-heading);
        font-weight: 600;
        color: rgba(43, 49, 116, 0.6);
        padding: 1rem 0;
        display: inline-block;
        position: relative;
        border-bottom: 3px solid transparent;
        transition: all 0.3s ease;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
        color: var(--color-navy);
        border-bottom-color: var(--color-magenta);
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
        color: var(--color-magenta);
    }

    .woocommerce div.product .woocommerce-tabs .panel h2 {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: var(--color-navy);
    }

    /* Related Products */
    .woocommerce .related h2 {
        font-family: var(--font-heading);
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
        margin-top: 3rem;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        color: var(--color-navy);
        font-weight: 600;
        padding-top: 0.5rem;
    }

    .woocommerce ul.products li.product .price {
        color: var(--color-magenta);
        font-weight: 500;
        font-size: 0.95rem;
    }

    .woocommerce ul.products li.product .button {
        background: var(--color-navy);
        color: white;
        border-radius: 20px;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .woocommerce ul.products li.product .button:hover {
        background: var(--color-magenta);
    }

}

/* ===== REFINED PRODUCT PAGE DESIGN ===== */

/* Fix Hidden Product Image */
.woocommerce.single-product .woocommerce-product-gallery {
    opacity: 1 !important;
}

/* 1. Main Container & Layout */
.woocommerce div.product {
    background: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(43, 49, 116, 0.05) !important;
    /* Soft, premium shadow */
    padding: 3rem !important;
    margin-top: 2rem !important;
    margin-bottom: 3rem !important;
    position: relative;
    overflow: hidden;
    /* Contains floats */
}

/* Ensure images and summary are side-by-side with better spacing */
.woocommerce div.product div.images {
    width: 48%;
    float: left;
    margin-right: 4%;
    margin-bottom: 2rem;
}

.woocommerce div.product div.summary {
    width: 48%;
    float: right;
    clear: none;
}

/* 2. Image Styling */
.woocommerce div.product div.images img {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    max-height: 500px;
    /* New constraint for desktop */
    object-fit: contain;
    width: auto;
    /* Allow width to adjust */
    margin: 0 auto;
    display: block;
}

/* 3. Typography Refinement */
.woocommerce div.product .product_title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    /* Larger, responsive title */
    color: var(--color-navy);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.woocommerce div.product .price {
    font-family: var(--font-heading);
    font-size: 1.8rem !important;
    /* Override default */
    color: var(--color-magenta) !important;
    font-weight: 500;
    display: block;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(43, 49, 116, 0.8);
    margin-bottom: 2.5rem;
}

/* 4. Form & Button Styling */
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Quantity Input */
.woocommerce div.product form.cart .quantity {
    float: none;
    margin: 0;
}

.woocommerce .quantity .qty {
    width: 80px;
    height: 50px;
    border: 2px solid rgba(43, 49, 116, 0.1);
    border-radius: 25px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    background: #f9f9fc;
}

/* Add to Cart Button (Refined) */
.woocommerce div.product form.cart .button {
    background: linear-gradient(135deg, var(--color-navy) 0%, #4a5193 100%);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(43, 49, 116, 0.2);
    transition: all 0.3s ease;
    margin-top: 0 !important;
    /* Reset previous margin */
}

.woocommerce div.product form.cart .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(223, 34, 111, 0.3);
    background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-pink) 100%);
}

/* Meta Data (SKU, Categories) */
.woocommerce div.product .product_meta {
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 2rem;
}

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

.woocommerce div.product .product_meta a {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 500;
}

/* 5. Tabs Styling (Clean & Modern) */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid rgba(43, 49, 116, 0.1);
    padding: 0;
    margin: 3rem 0 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    margin-right: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 1rem 0;
    color: rgba(43, 49, 116, 0.6);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-navy);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-magenta);
    border-radius: 3px 3px 0 0;
}

.woocommerce div.product .woocommerce-tabs .panel {
    margin-bottom: 3rem;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-navy);
}

/* 6. Related Products Grid Refinement */
.woocommerce .related ul.products li.product {
    background: #ffffff;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(43, 49, 116, 0.05);
    /* Initial light shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.woocommerce .related ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(43, 49, 116, 0.1);
}

.woocommerce .related ul.products li.product img {
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* 7. Mobile Responsiveness */
@media (max-width: 768px) {
    .woocommerce div.product {
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: none;
        /* Flatter look on mobile to save space */
        border-radius: 0;
        background: transparent;
        /* Or keep white but remove shadow */
    }

    /* Stack Layout */
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .woocommerce div.product div.images {
        margin-bottom: 1.5rem;
    }

    /* Adjust Typography */
    .woocommerce div.product .product_title {
        font-size: 2rem;
    }

    /* Center Add to Cart on Mobile */
    .woocommerce div.product form.cart {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        /* Full width button */
    }

    .woocommerce div.product form.cart .button {
        width: 100%;
        padding: 1rem;
    }

    .woocommerce .quantity {
        margin-bottom: 1rem !important;
    }

    .woocommerce .quantity .qty {
        width: 100px;
        /* Wider touch target */
        height: 55px;
    }
}

/* ===== REVIEWS SECTION REFINEMENT ===== */
#reviews {
    background: #f9f9fc;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

#reviews h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.woocommerce #reviews #comments ol.commentlist {
    padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: 1px solid rgba(43, 49, 116, 0.1);
    border-radius: 10px;
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.woocommerce #reviews #comments ol.commentlist li .meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.woocommerce .star-rating {
    float: right;
    color: var(--color-gold);
}

/* Fix "Your Rating" stars in form */
.woocommerce p.stars a {
    color: var(--color-gold);
}

/* Review Form */
#review_form_wrapper {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.comment-form-rating label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ===== ADDITIONAL MOBILE REFINEMENTS ===== */
@media (max-width: 768px) {
    .woocommerce-tabs ul.tabs {
        display: flex;
        /* Scroll horizontal if needed */
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .woocommerce-tabs ul.tabs li {
        margin-right: 1.5rem;
    }

    .woocommerce .related ul.products li.product {
        margin-bottom: 1.5rem;
    }

    /* Ensure product image isn't too huge on mobile */
    .woocommerce div.product div.images img {
        max-height: 35vh;
        /* Reduced from 400px to ~30-35% of screen height */
        object-fit: contain;
        width: 100%;
        margin: 0 auto;
        display: block;
    }

    /* Better spacing for meta */
    .woocommerce div.product .product_meta {
        margin-top: 1rem;
        padding-top: 1rem;
        font-size: 0.85rem;
    }
}