/*
Theme Name: Qualitat Theme
Author: Qualitat Dev
Description: Custom WooCommerce theme para Qualitat Ortodoncia
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #0047AB; /* Brand Blue */
    --primary-dark: #003682;
    --secondary: #00A3FF;
    --accent: rgba(0, 71, 171, 0.1);
    --text: #1A1A1A; /* Darker text for visibility on light bg */
    --text-light: #666666;
    --bg-main: rgba(255, 255, 255, 0.7); /* Transparent to show bg */
    --bg-light: rgba(248, 250, 252, 0.75);
    --bg-dark: #0F172A;
    --white: rgba(255, 255, 255, 0.8);
    --btn-secondary: rgba(0, 71, 171, 0.05);

    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --glass: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 71, 171, 0.1);
    --header-bg: #f8f8f8; /* Light greyish header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--bg-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Global Background Watermark */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('imagenes/2.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.5; /* Increased to 50% as requested */
    z-index: -1;
    pointer-events: none;
}



.container {
    max-width: 1300px;
    margin: 0 auto;
    width: 90%;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(25px);
    background: #FFFFFF;
    border-bottom: 2px solid var(--border);
    height: 80px; /* Thinner header for a modern feel */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    padding: 0;
}

header.scrolled {
    height: 80px;
}

nav {
    max-width: 1500px; /* Wider for 'side to side' look */
    margin: 0 auto;
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 70px; /* Fits comfortably in 80px header */
    width: auto;
    object-fit: contain;
    filter: none;
}

/* Dropdown styling */
.nav-links li {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #FFFFFF; /* Reverted to White as requested */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    list-style: none;
    z-index: 1100;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Separated submenus */
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0px);
}

.dropdown a {
    color: var(--primary) !important; /* Blue text on white bg */
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    white-space: nowrap;
    padding: 0.8rem 1.4rem;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: #f8faff !important; /* Very subtle blue tint for separation */
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
}

.dropdown a:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    transform: translateX(5px);
}


/* Unified Container + Individual Pill Buttons */
.nav-container {
    position: relative;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 9999px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3.5rem; /* Significant separation */
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.mobile-only-link {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-only-link {
        display: block !important;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(0, 71, 171, 0.1);
        padding-top: 1rem;
    }
}

.nav-links a {
    text-decoration: none;
    background: var(--primary); /* Blue buttons */
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.05rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    padding: 0.8rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 20;
    line-height: 1;
    border-radius: 9999px;
    white-space: nowrap;
    width: 170px; /* Locked width */
    height: 44px; /* Fixed height */
    box-shadow: 0 4px 10px rgba(0, 71, 171, 0.1);
}

.nav-links a.active-link,
.nav-links a:hover {
    background: #000000 !important; /* Selected turns black */
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-cursor {
    display: none;
}





@media (max-width: 1024px) {
    .nav-container {
        border-width: 1px;
        padding: 4px;
    }
    .nav-links a {
        padding: 0.6rem 1.2rem;
        font-size: 0.6rem;
    }
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: #FFFFFF;
    background: #003FB3; /* Exact sample blue from photo */
    width: 53px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 4px solid #F3F4F6; /* Thick white/grey border accurately from photo */
    margin-left: 1.5rem;
}

.cart-icon:hover {
    transform: scale(1.04);
}

.cart-icon i {
    width: 26px;
    height: 26px;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FF2E2E; /* Alarm red from photo */
    color: white;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    border: 4px solid #F3F4F6; /* Matching thick white border from photo */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--primary);
}

.hero-content .badge {
    padding: 3px 8px; /* Extra compact padding */
    font-size: 0.5rem; /* Ultra-small font to fit the 300px constraint */
    letter-spacing: 0px; /* Removed letter spacing to save space */
    margin-bottom: 0.5rem;
    white-space: nowrap; /* Ensure it stays in one line but fits */
    width: fit-content;
}



/* Hero Banner & Video Section - Reveal Effect */
.hero-banner {
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
    position: relative;
    z-index: 20;
    margin-top: 80px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video {
    width: 100%;
    height: calc(100vh - 100px);
    overflow: hidden;
    position: relative;
    margin-top: 100px; /* Fixed header offset */
    background: #000;
}

.hero-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Lighter overlay */
    z-index: 1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 20;
    max-width: 260px; /* Restored narrow/long look */
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    color: var(--text);
    box-shadow: 0 30px 70px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Internal centering */
}

.hero-content h1 {
    font-size: 1.4rem; /* Significantly smaller */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.hero-content p {
    font-size: 0.75rem; /* Minimalist description */
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Tighter gap */
    width: 100%;
}

.hero-btns .btn {
    width: 100%;
    padding: 8px 0; /* Slimmer buttons */
    font-size: 0.75rem;
}






/* Buttons (Animated Badge Refresh) */
/* Buttons (Animated Badge Refresh) */
.btn {
    --highlight-hue: 210; /* Default blue highlight */
    --padding: 4px;
    --radius: 9999px; /* Keep pill shape for existing buttons */
    --transition: 0.4s;
    --highlight: hsl(var(--highlight-hue), 100%, 70%);
    --highlight-50: hsla(var(--highlight-hue), 100%, 70%, 0.5);
    --highlight-30: hsla(var(--highlight-hue), 100%, 70%, 0.3);
    --highlight-20: hsla(var(--highlight-hue), 100%, 70%, 0.2);
    --highlight-80: hsla(var(--highlight-hue), 100%, 70%, 0.8);
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 24px;
    background: var(--primary);
    color: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all var(--transition) cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.2);
}

.btn.btn-secondary {
    background: var(--btn-secondary);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn.btn-secondary:hover {
    background: rgba(0, 71, 171, 0.1);
    transform: translateY(-2px);
}



.btn::before {
    content: "";
    position: absolute;
    top: calc(0px - var(--padding));
    left: calc(0px - var(--padding));
    width: calc(100% + var(--padding) * 2);
    height: calc(100% + var(--padding) * 2);
    border-radius: calc(var(--radius) + var(--padding));
    pointer-events: none;
    background-image: linear-gradient(0deg, rgba(0,0,0,0.05), rgba(0,0,0,0.1));
    z-index: -1;
    transition: box-shadow var(--transition), filter var(--transition);
    box-shadow:
        0 -8px 8px -6px rgba(0,0,0,0) inset,
        1px 1px 1px rgba(255,255,255,0.2),
        -1px -1px 1px rgba(0,0,0,0.05);
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: linear-gradient(0deg, #fff, var(--highlight), var(--highlight-50), 15%, transparent);
    background-position: 0 0;
    opacity: 0;
    transition: opacity var(--transition), filter var(--transition);
}

.btn:hover {
    border-color: hsla(var(--highlight-hue), 100%, 80%, 0.4);
    background: #fdfdfd;
    transform: translateY(-2px);
}

.btn:hover::before {
    box-shadow:
        0 -8px 8px -6px rgba(255,255,255,0.8) inset,
        0 -16px 16px -8px var(--highlight-30) inset,
        1px 1px 1px rgba(255,255,255,0.2);
}

.btn:hover::after {
    opacity: 1;
    mask-image: linear-gradient(0deg, #fff, transparent);
    -webkit-mask-image: linear-gradient(0deg, #fff, transparent);
}

.btn:active {
    border-color: hsla(var(--highlight-hue), 100%, 80%, 0.7);
    background-color: hsla(var(--highlight-hue), 50%, 95%, 0.5);
    transform: translateY(0);
}

.btn:active::before {
    box-shadow:
        0 -8px 12px -6px rgba(255,255,255,1) inset,
        0 -16px 16px -8px var(--highlight-80) inset;
}

.btn:active::after {
    opacity: 1;
    filter: brightness(150%);
}

.btn .dot-container {
    position: relative;
    width: 8px;
    height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.btn .dot {
    width: 6px;
    height: 6px;
    background-color: #FFFFFF; /* White dot for blue bg */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn .dot-ping {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #FFFFFF; /* White ping for blue bg */
    border-radius: 50%;
    opacity: 0.4;
    animation: btn-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.btn .divider {
    width: 1px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.3); /* Transparent white divider */
    margin: 0 4px;
    z-index: 2;
}

.btn span {
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    color: #FFFFFF; /* High contrast white text */
    transition: color 0.3s ease;
}


.btn:hover span {
    color: #FFFFFF; /* Maintain white contrast on hover */
}


.btn i[data-lucide="chevron-right"] {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.btn:hover i[data-lucide="chevron-right"] {
    transform: translateX(3px);
    color: var(--primary);
}

.btn-large {
    padding: 12px 32px;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    opacity: 0.8;
}

/* Section General */
.section {
    padding: 4rem 0; /* Reduced padding to remove extra white space */
    position: relative;
    z-index: 30;
    background: var(--bg-main);
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-title h2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.inverted h2 {
    color: white;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: white;
}

/* Intro Section */
.intro-section {
    padding: 6rem 0;
}

.intro-card {
    background: var(--bg-light);
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--accent), transparent 70%);
}

.intro-card p {
    font-size: 1.8rem;
    color: var(--text);
    line-height: 1.6;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Split Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.check-list li i {
    color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    width: 100%;
}

.product-card {
    background: #f0f7ff; /* Luminous Blue Background */
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 71, 171, 0.15);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 71, 171, 0.05);
    
    /* Glow Variables */
    --base: 210; 
    --spread: 150;
    --radius: 15;
    --border-width: 1;
    --backdrop: rgba(255, 255, 255, 0.05);
    --size: 300;
    --border-size: calc(var(--border-width) * 1px);
    --spotlight-size: calc(var(--size) * 1px);
    --hue: var(--base);
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background-image: radial-gradient(
        var(--spotlight-size) var(--spotlight-size) at
        calc(var(--x, 0) * 1px)
        calc(var(--y, 0) * 1px),
        hsl(var(--hue, 210) 100% 70% / 0.15), transparent
    );
    pointer-events: none;
    z-index: 1;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    border-radius: 15px;
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
        calc(var(--x, 0) * 1px)
        calc(var(--y, 0) * 1px),
        hsl(var(--hue, 210) 100% 50% / 0.6), transparent 100%
    );
    background-attachment: scroll;
    pointer-events: none;
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
    -webkit-mask-composite: destination-in;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 71, 171, 0.15);
    border-color: var(--primary);
    background: #e6f2ff;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
    background: #dbeafe;
    transition: transform 0.5s ease;
}

.pinza-overlay {
    position: absolute;
    inset: 0;
    background-color: #7eb8f4; /* Custom code: 7eb8f4 */
    opacity: 0.35; /* Density: 35% */
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
    transition: all 0.4s ease;
    border-radius: inherit;
}

.product-card:hover .pinza-overlay {
    opacity: 0; /* Clear color on hover for true detail display */
}

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

.product-info h3 {
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--primary); /* Blue Title */
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-top: auto;
    padding-top: 1rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.benefit-icon i {
    width: 30px;
    height: 30px;
    color: white;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* Contact Card */
.contact-card {
    background: var(--primary);
    color: white;
    padding: 6rem 4rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 71, 171, 0.3);
}

.contact-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-header p {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.contact-actions .btn-outline {
    border-color: white;
    color: white;
}

.contact-actions .btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 10rem 0 4rem;
    background: var(--bg-light);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: var(--bg-main);
    z-index: 2000;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
    transition: right 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.cart-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.close-cart {
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-light);
}

.cart-footer {
    padding-top: 3rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.btn-checkout {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.2rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.overlay.open {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 4.5rem;
        letter-spacing: -2px;
    }
}

@media (max-width: 1024px) {
    .hero-video {
        height: auto;
        min-height: unset;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 120px 0 40px; /* Removed side padding for edge-to-edge */
        background: transparent;
    }
    .hero-video::after {
        display: none;
    }
    .hero-video video {
        position: relative;
        top: auto;
        left: auto;
        z-index: 1;
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 0; /* Removed rounded corners so it sits flush to screen edges */
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        margin-bottom: 2rem;
    }
    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        text-align: center;
        padding: 2.5rem 1.5rem; /* Restored balance */
        max-width: 90%;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
    }
    .hero-content h1 {
        font-size: 1.4rem; /* Reduced typography size */
    }
    .hero-content p {
        margin: 0 auto 2rem;
    }
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2.5rem;
    }
    .mobile-toggle {
        display: block !important;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .auth-link {
        display: none !important; /* Hide text login/register on mobile to save space */
    }
    .nav-container {
        border-width: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 120px 2rem 4rem 3rem;
        gap: 2.5rem;
        z-index: 990; /* Right below header */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        overflow-y: auto;
    }
    .nav-links li {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links a {
        background: transparent !important;
        color: var(--primary) !important;
        font-size: 1.6rem;
        font-weight: 800;
        padding: 0;
        box-shadow: none;
        width: auto;
        height: auto;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: transform 0.3s ease, color 0.3s ease;
    }
    .nav-links a:hover,
    .nav-links a:active {
        transform: scale(1.05);
        color: var(--secondary) !important;
        box-shadow: none;
    }
    .dropdown {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--border);
        padding: 0 0 0 1.5rem;
        margin-top: 1rem;
        background: transparent !important;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }
    .has-dropdown:hover .dropdown,
    .has-dropdown.active .dropdown {
        display: flex;
        opacity: 1;
        visibility: visible;
        position: relative;
    }
    .dropdown a {
        font-size: 1.1rem !important;
        color: var(--text) !important;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: none !important;
        justify-content: center !important;
        background: transparent !important;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    header {
        height: 90px;
    }
    .logo img {
        height: 60px;
    }
}
/* Bottom Banner & Overlay */
.bottom-banner {
    position: relative;
    width: 100%;
    height: 450px; /* Slightly taller for the new image */
    overflow: hidden;
    line-height: 0;
}

.bottom-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center; /* Centered balancing */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 71, 171, 0.4); /* Blue brand tint */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    line-height: normal;
}

.banner-overlay h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.banner-overlay p {
    font-size: 1.4rem;
    max-width: 700px;
    font-weight: 400;
    opacity: 0.95;
}

.footer-copy {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .banner-overlay h3 {
        font-size: 2rem;
    }
}

/* Auth Links & Modal */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #000;
    margin-left: 0.5rem;
}

.auth-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.auth-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.auth-link#register-trigger {
    color: #666;
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-modal.open {
    display: flex;
}

.auth-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 450px;
    padding: 3.5rem;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
    text-align: center;
    border: 1px solid rgba(0, 71, 171, 0.1);
}

.close-auth {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.close-auth:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.auth-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.auth-header p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.google-btn {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.google-btn:hover {
    background: #f9f9f9;
}

.divider {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    color: #999;
    font-size: 0.8rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fcfcfc;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.divider-text {
    margin: 1.8rem 0;
    position: relative;
    text-align: center;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider-text span {
    background: #fff;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.auth-msg {
    font-weight: 600;
    display: block;
    text-align: center;
}

.cta-glass-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.relative { position: relative; }

/* Custom Round Blue Cursor */
body, a, button, .product-card, #login-trigger, #register-trigger {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="6" fill="%230047AB" stroke="white" stroke-width="2"/></svg>') 12 12, auto;
}

/* Ensure pointers feel interactive but still use the round cursor */
a:hover, button:hover, .cart-icon:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%230047AB" stroke="white" stroke-width="2"/></svg>') 12 12, pointer;
}

/* Spline CTA Section */
.spline-cta {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background: #FFFFFF;
}

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

.spline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(0, 71, 171, 0.05));
    z-index: 2;
    pointer-events: none;
}

.spline-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hyper-glassy card to match Spline vibe */
.cta-glass-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid var(--border) !important;
    padding: 5rem;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 71, 171, 0.15), inset 0 0 60px rgba(255,255,255,1);
}

/* Animated Badge Button (The Eldora UI Style) */
/* Redundant .btn block removed to allow primary styles to apply */


/* The Pinging Dot */
.btn-dot-container {
    position: relative;
    width: 8px;
    height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.btn-dot-ping {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: btn-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes btn-ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* The Vertical Divider */
.btn-divider {
    width: 1px;
    height: 16px;
    background-color: #e5e7eb;
}

/* The Chevron (Lucide chevron-right) */
.btn i[data-lucide="chevron-right"] {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.btn:hover i[data-lucide="chevron-right"] {
    transform: translateX(4px);
    color: var(--primary);
}

/* The Moving Light Path (SVG) */
.btn-path-svg {
    position: absolute;
    top: -40px;
    left: 0;
    width: 160px;
    height: 80px;
    pointer-events: none;
    z-index: 10;
}

.btn-light-dot {
    offset-path: path("M 20 40 h 120"); /* Simplified horizontal path */
    animation: btn-path-move 3s linear infinite;
}

@keyframes btn-path-move {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    40% { offset-distance: 100%; opacity: 1; }
    50%, 100% { offset-distance: 100%; opacity: 0; }
}

/* Animated Badge - Light Path SVG Animation */
.btn .btn-svg {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 165px;
    height: 80px;
    pointer-events: none;
    z-index: 10;
}

.multiline {
    offset-anchor: 10px 0px;
    animation: multiline-animation-path 3s linear infinite;
}

.ml-light-1 {
    offset-path: path("M 69 49.8 h -30 q -3 0 -3 -3 v -13 q 0 -3 -3 -3 h -23 q -3 0 -3 -3 v -13 q 0 -3 -3 -3 h -50");
}

@keyframes multiline-animation-path {
    0% { offset-distance: 0%; opacity: 0; }
    5%, 50% { opacity: 1; }
    55%, 100% { offset-distance: 100%; opacity: 0; }
}

/* Ensure the button is relative for the absolute SVG */
.btn {
    position: relative !important;
}

/* Feature Showcase Styles */
.feature-showcase {
    background: var(--bg-main);
    padding: 8rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-left {
    max-width: 600px;
}

.feature-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.stat-chip {
    padding: 6px 14px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Accordion */
.accordion {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Tabs Panel (Right) */
.showcase-panel {
    position: relative;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tab-content.active {
    opacity: 1;
}

.tab-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    padding: 6px;
    border-radius: 16px;
    display: flex;
    gap: 4px;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-trigger {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.tab-trigger.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.2);
}

.cart-drawer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Glassmorphism Pro */
    box-shadow: -20px 0 50px rgba(0, 71, 171, 0.1);
}

.btn:hover {
    box-shadow: 0 0 20px rgba(0, 71, 171, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.woocommerce-products-header {
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

/* Bottom Banner Refinements */
.woocommerce-products-header {
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.woocommerce-products-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #ffffff, transparent);
}

/* Recorrido Modal Logic - Cleanup */
.recorrido-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.recorrido-overlay.active {
    display: flex !important;
}

.recorrido-modal {
    background: #000;
    width: 95%; 
    max-width: 1400px;
    height: 85vh; 
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recorrido-overlay.active .recorrido-modal {
    transform: scale(1);
}

#recorrido-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-recorrido-x {
    position: absolute;
    top: 25px;
    right: 80px; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    color: #000000; 
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.1);
}

.close-recorrido-x:hover {
    background: #000;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* Product Detail Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.modal-content.product-detail-grid {
    background: #FFFFFF !important;
    width: 90%;
    max-width: 1000px;
    border-radius: 24px;
    position: relative;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    box-shadow: 0 50px 100px rgba(0, 71, 171, 0.2);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-image-section {
    background: #fdfdfd;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.modal-image-section img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.detail-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

#detail-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#add-to-cart-detail {
    flex: 1;
    padding: 18px;
    font-size: 1rem;
    background: #000080;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 128, 0.25);
}

/* Tablet & Mobile Responsive */
@media (max-width: 900px) {
    .modal-content.product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        height: auto;
        overflow-y: auto;
    }
    
    .modal-image-section img {
        max-height: 300px;
    }
}

@media (max-width: 500px) {
    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .modal-info-section h2 {
        font-size: 1.5rem;
    }
    .detail-price {
        font-size: 1.8rem;
    }
}

/* Magnetic Scroll Reveal Animation */
.reveal-card, .product {
    opacity: 1; /* Default visible if JS fails */
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
    will-change: transform, opacity;
}

.js-active .reveal-card:not(.active) {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
}

.reveal-card.active, .product.active {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

/* Staggered entry for the 8 cards */
.reveal-card:nth-child(1) { transition-delay: 0.1s; }
.reveal-card:nth-child(2) { transition-delay: 0.2s; }
.reveal-card:nth-child(3) { transition-delay: 0.3s; }
.reveal-card:nth-child(4) { transition-delay: 0.4s; }
.reveal-card:nth-child(5) { transition-delay: 0.5s; }
.reveal-card:nth-child(6) { transition-delay: 0.6s; }
.reveal-card:nth-child(7) { transition-delay: 0.7s; }
.reveal-card:nth-child(8) { transition-delay: 0.8s; }

