/* ========== CUSTOM STYLES FOR LUNITA CALZADOS ========== */

/* Glass Header Effect */
.glass-header {
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.8);
}

/* Gold Utilities */
.gold-border {
    border: 1px solid #d4af37;
}

.gold-text {
    color: #d4af37 !important;
}

.bg-gold {
    background-color: #d4af37;
}

/* Global Focus Reset */
*:focus {
    outline: none !important;
}

/* Option Inputs Styling */
.option-select, .option-qty {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease;
}

.option-select option {
    background-color: #171717 !important;
    color: #ffffff !important;
}

.option-select:hover, .option-qty:hover {
    border-color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.option-qty {
    min-width: 60px;
    font-weight: bold;
    color: var(--primary);
}

/* Modal Visibility */
.modal.active {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

/* Shipping Result Visibility */
.shipping-result.visible {
    display: block !important;
    animation: slideUp 0.3s ease;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.cart-item-details {
    font-size: 0.85rem;
    color: #999;
}

.cart-item-price {
    font-weight: bold;
    color: #d42121;
}

.cart-item button {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s;
}

.cart-item button:hover {
    color: #d42121;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toast Notification */
.toast {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid #d42121;
    max-width: 350px;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.dark {
    background: rgba(22, 11, 11, 0.95);
    color: white;
}

.toast-avatar {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #d42121;
    font-size: 1.2rem;
}

.toast-content h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    font-weight: 600;
}

.toast-content p {
    font-size: 0.8rem;
    color: #666;
}

.toast.dark .toast-content p {
    color: #999;
}

/* Header Scroll Effect */
header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hover Effects for Product Cards */
.sport-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sport-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 33, 33, 0.2);
}

/* Alineación de botones Agregar al Pedido */
.sport-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; /* Forzamos que todos midan lo mismo en la fila */
}

.sport-card .space-y-4 {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Siempre arriba */
    gap: 0.5rem !important;
}

/* Fijamos altura del bloque de título para que los precios queden alineados */
.sport-card .flex.justify-between.items-start > div:first-child {
    min-height: 3.5rem; /* Espacio para 2 líneas de título + marca */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Alineación consistente del precio */
.card-price {
    text-align: right;
    min-width: 80px;
    flex-shrink: 0;
}

.sport-card .add-to-cart-btn {
    margin-top: auto !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2d1a1a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d42121;
}



/* ========== MOBILE RESPONSIVE — FULL FIX ========== */
@media (max-width: 768px) {
    /* === NUCLEAR FIX: Nothing escapes the viewport === */
    html {
        overflow-x: hidden !important;
    }
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative !important;
    }

    /* Every section must stay inside */
    section, header, footer, div, article {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .hero {
        height: auto;
        min-height: 75vh;
        padding: 110px 0 30px;
        overflow: hidden;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
        word-break: break-word;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    #cart-float {
        bottom: 20px;
        left: 20px;
    }

    /* Mobile scrollable nav */
    .nav-list {
        display: flex !important;
        overflow-x: auto;
        white-space: nowrap;
        gap: 15px !important;
        padding-left: 90px !important; /* Space for logo */
        padding-right: 15px !important;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        justify-content: flex-start !important;
    }
    .nav-list::-webkit-scrollbar {
        display: none;
    }

    /* Background: kill the -5% left that causes overflow */
    .bg-local-fixed {
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100vh !important;
    }

    /* Hero glow — shrink to fit */
    .hero-glow {
        width: 250px !important;
        height: 250px !important;
    }

    /* Decorative orbs — just hide them */
    .floating-orb-1,
    .floating-orb-2 {
        display: none !important;
    }

    /* Header */
    .header {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    /* Logo smaller on mobile */
    .nav-logo {
        top: 10px !important;
        left: 10px !important;
    }
    .nav-logo-img {
        height: 70px !important;
        width: 70px !important;
    }

    /* 3D sneaker — constrain the whole container */
    .animate-float-slow {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .animate-float-slow img {
        max-width: 80vw !important;
    }

    /* Fix: Don't hide all absolute elements, only those intended as decorative blur orbs */
    .hero-glow, .bg-overlay { 
        display: block !important; 
    }

    /* Kill the absolute positioned blur backgrounds */
    div[class*="blur-"] {
        display: none !important;
    }

    /* Hero tagline */
    .hero-tagline {
        letter-spacing: 1px !important;
        font-size: 0.65rem !important;
        padding: 0 10px;
    }

    /* Hero subtitle */
    .hero-subtitle-large {
        font-size: 1.1rem !important;
    }

    /* Header/Nav sizing for mobile */
    .nav-link {
        font-size: 0.8rem !important;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Buttons row in hero */
    .hero-content > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center;
    }

    /* Product cards — Force 2 equal columns on mobile */
    #tienda .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    /* Shrink card contents for mobile */
    #tienda .grid article.sport-card {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 8px !important;
    }

    #tienda article.sport-card h3 {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
    }

    #tienda article.sport-card .card-brand {
        font-size: 0.6rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #tienda article.sport-card .card-price {
        font-size: 1rem !important;
    }

    #tienda article.sport-card .aspect-\[3\/4\] {
        margin-bottom: 8px !important;
    }

    #tienda article.sport-card p.text-base {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }

    #tienda article.sport-card .product-options select,
    #tienda article.sport-card .product-options input {
        font-size: 0.7rem !important;
        padding: 4px !important;
    }

    #tienda article.sport-card .add-to-cart-btn {
        font-size: 0.7rem !important;
        padding: 8px 4px !important;
    }

    /* Scale down badges on mobile */
    .badge-seasonal, 
    .bg-red-600.text-[10px], 
    .bg-gold.text-black {
        font-size: 0.5rem !important;
        padding: 2px 5px !important;
    }

    .sport-card > div.space-y-4 {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* NUCLEAR: Todo arriba */
        margin-top: 10px !important;
        gap: 4px !important;
    }

    /* Altura FIJA para títulos en móvil - Esto garantiza alineación total */
    .sport-card .flex.justify-between.items-start {
        height: 5.5rem !important; /* Altura fija para contener marca + título de 2 líneas */
        display: flex !important;
        align-items: flex-start !important;
        margin-bottom: 8px !important;
        overflow: hidden !important;
    }

    .sport-card .flex.justify-between.items-start > div:first-child {
        flex: 1 !important;
        min-height: auto !important;
    }

    /* Price fix: even smaller to be super safe */
    .card-price {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-width: 65px !important;
        text-align: right !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Product name: cap lines or size */
    .sport-card h3 {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Description: smaller and standardized spacing */
    .sport-card p.text-base {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        color: #d1d1d1 !important;
    }

    /* Fix buttons text size */
    .add-to-cart-btn {
        font-size: 0.65rem !important;
        padding: 10px 8px !important;
        margin-top: auto !important;
    }

    /* Product options row */
    .product-options {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }

    .product-options .card-qty {
        width: 38px !important;
        min-width: 38px !important;
        padding: 4px 2px !important;
    }

    .product-options select {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 4px !important;
    }

    /* Size guide button on mobile */
    .size-guide-btn {
        font-size: 0.58rem !important;
        padding: 2px 5px !important;
        margin-bottom: 0 !important;
        gap: 0.15rem !important;
    }

    /* Payment methods grid */
    .grid.sm\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Footer grid */
    .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    /* Location section grid */
    .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Videos section */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Payment brands wrap */
    .flex.flex-wrap {
        justify-content: center;
    }

    /* Section padding */
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .mb-16 {
        margin-bottom: 2rem !important;
    }

    .gap-16 {
        gap: 2rem !important;
    }

    .gap-12 {
        gap: 1.5rem !important;
    }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #d42121;
    outline-offset: 2px;
}

/* Loading State (opcional para futuro) */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    background: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

/* Error Message */
.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

/* Hide Elements */
.hidden {
    display: none !important;
}

/* Utility Classes */
.text-primary {
    color: #d42121;
}

.bg-primary {
    background-color: #d42121;
}

.border-primary {
    border-color: #d42121;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override for specific elements that shouldn't transition */
.no-transition,
.no-transition * {
    transition: none !important;
}


/* ========== SNOWMAN WAVING ANIMATION ========== */
@keyframes snow-wave {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}
.snowman-wave {
    display: inline-block;
    animation: snow-wave 1.5s ease-in-out infinite;
    transform-origin: bottom center;
}

/* ========== FLOATING VIDEOS ========== */
@keyframes floatUp {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(0.5deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-0.5deg); }
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(10px) rotate(-0.5deg); }
    50% { transform: translateY(4px) rotate(0deg); }
    75% { transform: translateY(14px) rotate(0.5deg); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.2); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 15px) scale(1.1); }
}

.floating-video {
    transition: transform 0.3s ease;
}

.floating-video-1 {
    animation: floatUp 6s ease-in-out infinite;
}

.floating-video-2 {
    animation: floatDown 7s ease-in-out infinite;
}

.floating-video:hover {
    transform: scale(1.02) !important;
}

.floating-video video {
    transition: box-shadow 0.3s ease;
}

.floating-video:hover video {
    box-shadow: 0 25px 60px rgba(212, 33, 33, 0.3);
}

.floating-orb-1 {
    animation: orbFloat1 8s ease-in-out infinite;
}

.floating-orb-2 {
    animation: orbFloat2 10s ease-in-out infinite;
}

/* ========== PHOTO GALLERY GRID ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 400px; /* Más alargadas verticalmente */
    gap: 12px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s ease;
    filter: brightness(0.85);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(212, 33, 33, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

/* Gallery Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px; /* También alargadas en móvil */
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    .gallery-item-tall {
        grid-row: span 1;
    }

    .floating-video-1,
    .floating-video-2 {
        animation-duration: 4s;
    }
}

/* ========== LUNITA STYLES IMPORTED ========== */
/* ========== VARIABLES ========== */
:root {
    --primary: #b71c1c; /* Rojo Profundo Premium */
    --primary-dark: #7f0000;
    --accent: #d4af37; /* Dorado Champagne */
    --text-dark: #121212;
    --text-light: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --bg-overlay: rgba(0, 0, 0, 0.85); /* Más oscuro para contraste */
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========== FONDO DE LOCAL INTELIGENTE ========== */
.bg-local-fixed {
    position: fixed;
    top: -5%; left: -5%; width: 110%; height: 110vh;
    /* Usamos la nueva imagen del local real subida por el usuario */
    background-image: url('background_new.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    z-index: -1;
}

/* ========== HEADER HEADER ========== */
.header { 
    position: absolute; /* Cambiado de fixed a absolute */ 
    top: 0; left: 0; width: 100%; 
    z-index: 100; 
    padding: 20px 0; 
    transition: var(--transition);
}
/* El nav-background scrolleará con la página y desaparecerá */
.header.scrolled { background: rgba(0,0,0,0.9); padding: 10px 0; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: center; width: 100%; }

/* LOGO FIXO FLOTANTE */
.nav-logo {
    position: fixed; /* Fijo relative al viewport */
    top: 20px;
    left: 20px; /* Ajustar posición izquierda */
    z-index: 1001; /* Encima de todo */
}
.nav-logo-img {
    height: 70px; /* Reducido a pedido de Yani para que no sea enorme */
    width: 70px;  /* Forzamos cuadrado */
    object-fit: cover; /* Asegura que cubra el área */
    border-radius: 50%; /* Lo hace circular */
    /* Ajuste fino para centrar el círculo interno de la imagen si tiene bordes blancos */
    object-position: center; 
    border: 2px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
    animation: floatLogo 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}



/* Destellos (Sparkles) */
.sparkle {
    position: absolute;
    color: var(--accent);
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    animation: sparkleEffect 3s infinite;
    text-shadow: 0 0 10px var(--accent);
}

@keyframes sparkleEffect {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.s1 { top: 5px; right: 5px; animation-delay: 0s; }
.s2 { bottom: 10px; left: -5px; font-size: 1rem; animation-delay: 1s; }
.s3 { top: 40%; right: -10px; animation-delay: 2s; }

.nav-logo-img:hover { transform: scale(1.1) rotate(5deg); border-color: var(--primary); }

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.nav-list { 
	margin: 0; /* Reset margin */
	background: rgba(0,0,0,0.6); /* Fondo para leer mejor links */
	padding: 10px 20px;
	border-radius: 50px;
	display: flex; gap: 30px; 
	list-style: none; /* remove default list style */
}
.nav-link { 
    color: var(--white); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 1px;
    font-size: 0.95rem;
    text-decoration: none;
}
.nav-link:hover { color: var(--primary); }

/* ========== HERO REALISTA ========== */
.hero { 
    height: 82vh; 
    min-height: 520px;
    display: flex; align-items: center; justify-content: center; 
    text-align: center; 
    position: relative;
    padding-top: 80px;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; margin: 0 auto; text-align: center; width: 100%; }
.hero-main-title { 
    font-family: var(--font-heading); 
    font-size: 4rem; 
    color: var(--white); 
    line-height: 0.9; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    transform: rotate(-2deg);
}

/* Animación Simpática */
@keyframes sympatheticMove {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-10px); }
}
.animate-sympathetic {
    display: inline-block;
    animation: sympatheticMove 4s ease-in-out infinite;
}

/* Subtítulo Grande */
.hero-subtitle-large {
    font-size: 1.2rem !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    color: #fff; 
    margin-bottom: 30px;
}
.hero-tagline { 
    font-size: 1.1rem; 
    color: var(--accent); 
    margin-bottom: 30px; 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 4px;
    background: transparent;
    display: block;
    text-align: center;
    padding: 0;
    margin-right: -4px; /* Compensar el letter-spacing para centrado perfecto */
}
.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(211,47,47,0.4) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Buttons from Lunita */
.btn { 
    display: inline-block; 
    padding: 16px 40px; 
    font-family: var(--font-body); 
    font-weight: 900;
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    border: none; 
    cursor: pointer; 
    transition: var(--transition);
    border-radius: 50px; /* Pill shape elegante */
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary { 
    background: var(--primary); 
    color: var(--white); 
    box-shadow: 0 10px 20px rgba(183, 28, 28, 0.3); 
}
.btn-primary:hover { 
    background: var(--primary-dark); 
    color: var(--white); 
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(183, 28, 28, 0.4);
}

/* Header Cart Badge styles */
.cart-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 5px !important;
}
.header-cart-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: var(--primary) !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: bold !important;
    width: 18px !important; 
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    border: 1px solid white !important;
    z-index: 10;
}

/* ========== PRODUCT GALLERY MODAL ========== */
#gallery-modal {
    transition: all 0.4s ease;
}

#gallery-modal.active {
    display: flex !important;
    animation: fadeIn 0.4s ease forwards;
}

.gallery-nav {
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-nav:hover {
    transform: scale(1.1);
    background: #d42121;
}

.gallery-nav .material-icons {
    font-size: 32px;
}

#gallery-img {
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 45px;
        height: 45px;
    }
    
    .gallery-nav .material-icons {
        font-size: 24px;
    }
    
    #gallery-img {
        max-height: 50vh;
    }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

/* Etiquetas de Temporada (Badge Verano/Invierno) */
.badge-seasonal {
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
    border-radius: 9999px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: inline-block;
    background: #1e40af; /* Azul más profundo y premium */
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.1em;
    position: relative;
    border-left: 4px solid #d4af37; /* Detalle en dorado */
    backdrop-filter: blur(4px);
    z-index: 30;
}

.badge-seasonal.invierno {
    background: rgba(30, 64, 175, 0.9);
}

.badge-seasonal.verano {
    background: rgba(185, 28, 28, 0.9);
}

/* ========== SNOWFALL ANIMATION ========== */
@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.45;
    }
    70% {
        opacity: 0.45;
    }
    100% {
        transform: translateY(105vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes twinkle {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(255, 255, 255, 0.8);
    }
}

.snowflake {
    position: absolute;
    top: -10vh;
    color: white;
    font-family: 'Material Icons' !important;
    user-select: none;
    pointer-events: none;
    z-index: 9999;
    animation: snowfall 12s linear infinite, twinkle 3s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    opacity: 0;
}
.snow-container {
    opacity: 0;
    transition: opacity 5s ease-in-out;
}
.snow-container.active-snow {
    opacity: 1;
}


/* ========== FLOATING SOCIAL WIDGET (OPTION C) ========== */
#social-float {
    z-index: 100;
}

#social-toggle {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#social-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 33, 33, 0.4);
}

#social-toggle:active {
    transform: scale(0.95);
}

#social-menu a {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, filter 0.3s ease;
}

#social-menu a:hover {
    filter: brightness(1.15);
    transform: scale(1.15);
}

/* Pulse Animation on Main Toggle */
@keyframes socialPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 33, 33, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 33, 33, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 33, 33, 0);
    }
}

#social-toggle {
    animation: socialPulseGlow 2.5s infinite;
}

/* Staggered transition delay when opening */
#social-menu.active a:nth-child(1) { transition-delay: 0.05s; }
#social-menu.active a:nth-child(2) { transition-delay: 0.1s; }
#social-menu.active a:nth-child(3) { transition-delay: 0.15s; }

/* ========== SIZE GUIDE MODAL ========== */
.size-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.size-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.size-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.size-modal-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.size-modal.active .size-modal-container {
    transform: scale(1);
}

.size-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.size-guide-btn {
    color: #ff3333;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
    width: fit-content;
}

.size-guide-btn:hover {
    color: #ffffff;
    background: #ff3333;
    border-color: #ff3333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.2);
}

.size-guide-btn:active {
    transform: translateY(0);
}

