/* =======================================================
   🍎 TEMA: FRUTAS Y VERDURAS V2 (MODO JUGOSO & ANIMADO) 🥦
   (Mantiene identidad Roja/Amarilla pero con MUCHO movimiento)
   ======================================================= */

/* 1. ANIMACIÓN DE ENTRADA (POP-UP) */
/* Todo el sitio entra suavemente */
body {
    animation: fadeInPage 0.8s ease-out;
}
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2. FONDO DINÁMICO (Lluvia de Vitaminas) */
body::before {
    content: "🍅 🥑 🥕 🌽 🍇 🍋 🍉 🥦";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    font-size: 3.5rem; /* Más grandes */
    line-height: 300px;
    text-align: center;
    letter-spacing: 100px;
    opacity: 0.08; /* Más visibles que antes (eran 0.03) */
    z-index: -1;
    pointer-events: none;
    /* Animación más rápida y compleja */
    animation: floatingVitamins 25s linear infinite; 
}

@keyframes floatingVitamins {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-40px) rotate(10deg) scale(1.1); } /* Se acercan y alejan */
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* 3. ENCABEZADO: LIANAS COLGANTES */
/* Creamos una "cenefa" de hojas que se mueven con el viento */
.main-header::after {
    content: "🌿🍃🌿🍃🌿🍃🌿🍃🌿";
    position: absolute;
    bottom: -22px; /* Colgando visiblemente */
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    color: #4CAF50; /* Forzamos color verde hoja */
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 102;
    pointer-events: none;
    animation: vineWiggle 4s ease-in-out infinite;
    letter-spacing: -5px; /* Juntitas para parecer una enredadera */
}

@keyframes vineWiggle {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(5deg); } /* Se mecen de lado a lado */
}

/* 4. TARJETAS DE PRODUCTO: EFECTO "CRUJIENTE" */
.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; 
}

/* 🔥 CAMBIO AQUÍ: Agregamos #product-grid para ganar fuerza y :active para el celular */
#product-grid .product-card:hover, 
#product-grid .product-card:active {
    transform: scale(1.05) translateY(-5px) !important;
    z-index: 50;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    
    /* Forzamos Borde Verde de 2px (sobreescribe al gris de 1px) */
    border: 2px solid #81C784 !important; 
}

/* Hoja Decorativa que GIRA */
.product-card::after {
    content: "🥗"; /* Ensalada o Hoja */
    position: absolute;
    top: -10px;
    right: -5px; /* Cambiado a la derecha para no tapar ofertas */
    font-size: 1.8rem;
    z-index: 20;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.2));
    transition: 0.5s;
    opacity: 0.8;
}

.product-card:hover::after {
    transform: rotate(360deg) scale(1.2); /* Vuelta completa al tocar */
    opacity: 1;
}

/* 5. BOTONES "AGREGAR": EFECTO GELATINA (JELLY) */
.btn-add-cart, .btn-add-weight {
    position: relative;
    overflow: hidden;
    /* Animación de latido constante para llamar la atención */
    animation: gentlePulse 3s infinite;
}

@keyframes gentlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Efecto de brillo rápido constante */
.btn-add-cart::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shinyPass 4s infinite; /* Pasa un brillo cada 4 segundos */
}

@keyframes shinyPass {
    0% { left: -150%; }
    20% { left: 150%; } /* Pasa rápido */
    100% { left: 150%; } /* Espera */
}

/* 6. TÍTULOS DIVERTIDOS */
/* Iconos que saltan al lado de los títulos */
.cart-header h2::before { content: "🧺 "; display: inline-block; animation: bounceIcon 2s infinite; }
.product-search-header h2::before { content: "🔎 "; display: inline-block; animation: swingIcon 3s infinite; }
.mobile-offers-header h2::before { content: "🔥 "; display: inline-block; animation: pulseIcon 1s infinite; }

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes swingIcon {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

/* 7. BOTÓN FLOTANTE (CARRITO) - MODO FIESTA */
.open-cart-button {
    /* Borde arcoiris giratorio sutil */
    border: 2px solid transparent !important;
    background-image: linear-gradient(#E60000, #E60000), linear-gradient(to right, red, orange, yellow, green); 
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: popIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.open-cart-button::before {
    content: "🍎";
    position: absolute;
    top: -15px; right: -5px;
    font-size: 1.5rem;
    animation: spinApple 5s linear infinite;
}

@keyframes spinApple {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 8. ZONA DE OFERTAS (HOT ZONE) - BORDE CAMINANTE */
#featured-section-container {
    border: 3px dashed #FFC107 !important;
    position: relative;
    background-color: #FFFDE7 !important;
    /* Esto hace que el borde punteado parezca moverse */
    /* Nota: Funciona mejor en bordes sólidos, pero en dashed da efecto vibrante */
    animation: borderThrob 2s infinite; 
}

@keyframes borderThrob {
    0% { border-color: #FFC107; box-shadow: 0 0 10px rgba(255, 193, 7, 0.2); }
    50% { border-color: #FF9800; box-shadow: 0 0 20px rgba(255, 152, 0, 0.5); }
    100% { border-color: #FFC107; box-shadow: 0 0 10px rgba(255, 193, 7, 0.2); }
}

/* Título de ofertas con movimiento */
#featured-section-container h2 {
    animation: tiltTitle 3s ease-in-out infinite;
}
@keyframes tiltTitle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* 9. DETALLE FINAL: CESPED EN EL FOOTER */
/* Un borde de pasto al final de la página */
body::after {
    content: "🌱🌱🌱🌱🌱🌱🌱🌱🌱🌱🌱🌱";
    position: fixed;
    bottom: -10px; left: 0;
    width: 120%; /* Más ancho para moverse */
    font-size: 2rem;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
    white-space: nowrap;
    animation: grassMove 10s linear infinite;
}

@keyframes grassMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50px); }
}

/* =======================================================
   ✨ PACK DE DETALLES PRO (Tipografía, Stickers y Color) ✨
   ======================================================= */

/* 1. FUENTE "MERCADO" (Google Fonts) */
/* Importamos una letra redondeada y divertida solo para los títulos */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;700&display=swap');

h1, h2, h3, .store-name, .btn-add-cart {
    font-family: 'Fredoka', sans-serif !important;
    letter-spacing: 0.5px;
}

/* 2. FOTOS "VIVAS" (Efecto HDR) */
/* Aumenta un poquito la saturación y contraste para que la fruta se vea deliciosa */
.product-card img {
    filter: saturate(1.1) contrast(1.05);
    transition: filter 0.3s;
}
/* Al pasar el mouse, brillan más */
.product-card:hover img {
    filter: saturate(1.3) contrast(1.1) brightness(1.05);
}

/* 3. ETIQUETAS DE OFERTA TIPO "STICKER DE FRUTA" */
/* Transformamos la cinta roja en un sticker ovalado */
.offer-discount-badge {
    border-radius: 50% / 100% !important; /* Forma ovalada perfecta */
    background: radial-gradient(circle at 30% 30%, #FFEB3B, #FBC02D) !important; /* Amarillo Banano */
    color: #E65100 !important; /* Texto Naranja oscuro */
    border: 2px solid #FFF !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    transform: rotate(-15deg) scale(0.9) !important; /* Ligeramente inclinado */
    
    /* Centrado del texto */
    display: flex !important; 
    align-items: center; 
    justify-content: center;
    text-align: center;
    
    /* Quitamos estilos viejos que puedan estorbar */
    width: 55px !important;
    height: 40px !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
}

/* Texto del sticker */
.offer-discount-badge .discount-text {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

/* Pequeño detalle de brillo en el sticker (como plástico) */
.offer-discount-badge::after {
    content: '';
    position: absolute;
    top: 5px; left: 10px;
    width: 15px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transform: rotate(-20deg);
}

/* 4. SELECCIÓN DE TEXTO "ORGÁNICA" */
/* Cuando el usuario selecciona texto, se ve verde hoja */
::selection {
    background: #C8E6C9; /* Fondo verde menta */
    color: #1B5E20; /* Texto verde bosque */
}

/* 5. INPUTS ACTIVOS (Efecto Tallo) */
/* Al hacer clic en buscar o escribir datos, el borde se pone verde */
input:focus, select:focus, textarea:focus {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2) !important;
    outline: none;
}

/* 6. MODAL DE CARRITO (Bolsa de Papel) */
.cart-sidebar.active {
    /* Textura sutil de papel reciclado */
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23dce7dc' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E") !important;
}

/* =======================================================
   🔥 PRODUCTOS DESTACADOS: BORDE PUNTEADO ROJO 🔥
   ======================================================= */

/* 1. EL BORDE ROJO PUNTEADO */
.product-card.featured-product {
    /* Borde punteado rojo de 2px */
    border: 2px dashed #E60000 !important; 
    
    /* Un poco de espacio extra para que el borde no toque la foto */
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.1) !important;
    
    /* Animación de latido en el borde */
    animation: redBorderPulse 2s infinite;
}

/* 2. ANIMACIÓN DEL BORDE (Palpita) */
@keyframes redBorderPulse {
    0% { 
        border-color: #E60000; 
        box-shadow: 0 5px 15px rgba(230, 0, 0, 0.1); 
    }
    50% { 
        border-color: #ff5252; /* Se pone un rojo más claro */
        box-shadow: 0 5px 20px rgba(230, 0, 0, 0.25); /* La sombra crece */
    }
    100% { 
        border-color: #E60000; 
        box-shadow: 0 5px 15px rgba(230, 0, 0, 0.1); 
    }
}

/* 3. AL PASAR EL MOUSE (Efecto extra) */
.product-card.featured-product:hover {
    /* El borde se vuelve sólido y más grueso al tocarlo */
    border-style: solid !important;
    border-width: 3px !important;
    transform: translateY(-5px) scale(1.03) !important;
    animation: none; /* Pausamos el latido para enfocar */
}

/* =========================================
   🍓 EFECTO JUICY: EXPLOSIÓN DE FRUTAS 🍌
   ========================================= */

   .fruit-particle {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none; /* Para que no interfiera con clics */
    font-size: 1.5rem;    /* Tamaño de la fruta */
    z-index: 9999;        /* Por encima de todo */
    opacity: 1;
    
    /* La magia de la animación física */
    animation: fruitFly 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fruitFly {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 1;
    }
    100% {
        /* Se mueve a donde le diga la variable JS (--tx, --ty) */
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1.2);
        opacity: 0; /* Desaparece suavemente */
    }
}

/* --- CARRITO TIPO BOLSA DE PAPEL (KRAFT) --- */
.cart-sidebar.active {
    /* Color cartón/papel */
    background-color: #f4e1c1 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E") !important;
    
    /* Borde dentado arriba (como ticket de compra o bolsa rota) */
    mask-image: linear-gradient(to bottom, transparent 0%, black 20px); 
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20px); 
    
    border-left: none !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4) !important;
}

/* Items del carrito */
#cart-items li {
    background: rgba(255,255,255,0.6) !important; /* Papel semitransparente */
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 8px;
    border-radius: 4px;
}

/* =======================================================
   🛠️ AJUSTES FINALES V3: BORDE, SIN DIFUMINADO Y FONDO
   ======================================================= */

/* 1. ESTILO DE LA VENTANA DEL CARRITO (PC Y MÓVIL) */
.cart-sidebar.active {
    background-color: #f4e1c1 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E") !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;


    /* B. TRAZO AL BORDE (CONTORNO) */
    border: 2px solid #000000 !important; /* Borde negro sólido */
    
    /* C. FONDO OSCURO (TÉCNICA OUTLINE) */
    /* Creamos un borde gigante semitransparente alrededor */
    outline: 5000px solid rgba(0, 0, 0, 0.7) !important;
    
    /* Aseguramos que nada corte la sombra/borde */
    clip-path: none !important;
    overflow: visible !important;
}



/* 3. BOTÓN CERRAR (X) EN PC - COLOR ROJO */
/* Forzamos que en pantallas grandes también sea rojo */
@media (min-width: 1025px) {
    #close-cart-btn {
        display: flex !important; /* Asegurar que se muestre */
        align-items: center;
        justify-content: center;
        
        /* ESTILO ROJO */
        background-color: #E60000 !important; 
        color: #ffffff !important;
        
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
        border: 2px solid #000 !important; /* Borde negro para combinar con el carrito */
        
        font-size: 1.2rem !important;
        opacity: 1 !important;
        cursor: pointer;
        
        /* Posición */
        position: absolute;
        right: 20px;
        top: 20px;
    }

    #close-cart-btn:hover {
        transform: scale(1.1);
        background-color: #ff0000 !important;
    }
}

/* =======================================================
   🧹 LIMPIEZA TOTAL: CARRITO ORDENADO + FONDO KRAFT
   ======================================================= */

/* 1. EL FONDO KRAFT (PAPEL) SIN DESVANECIDO */
.cart-sidebar.active {
    /* Fondo color papel con textura de ruido */
    background-color: #f4e1c1 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E") !important;
    
    /* CLAVE: ESTO QUITA EL DIFUMINADO/DESVANECIDO DE ARRIBA */
    mask-image: none !important;
    -webkit-mask-image: none !important;
    
    /* Mantenemos el borde negro y el telón oscuro */
    border: 2px solid #000 !important;
    outline: 5000px solid rgba(0, 0, 0, 0.7) !important;
    
    clip-path: none !important;
    overflow: visible !important;
}



/* 3. GRUPO IZQUIERDO (ÍCONO + TEXTO) */
/* Esto pega el ícono azul junto al texto "Mi Canasta" */
.cart-header-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important; /* Espacio entre la bolsa y las letras */
    flex: 1; /* Ocupa el espacio disponible */
}

/* El Ícono (Bolsa Azul) */
.cart-header-icon {
    font-size: 2.2rem !important; /* Tamaño ideal */
    display: flex !important;
    align-items: center;
    line-height: 1;
    margin: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* El Texto ("Mi Canasta") */
.cart-text-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.1 !important;
}

.cart-text-info h2 {
    font-size: 1.3rem !important;
    color: #3e2723 !important; /* Café oscuro para que lea bien en Kraft */
    margin: 0 !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.cart-text-info small {
    font-size: 0.85rem !important;
    color: #5d4037 !important; /* Café medio */
    font-weight: 600 !important;
}

/* 4. BOTÓN CERRAR (A LA DERECHA) */
#close-cart-btn {
    /* Quitamos posición absoluta para que respete el Flexbox */
    position: static !important;
    
    /* Diseño del botón */
    width: 38px !important;
    height: 38px !important;
    background-color: #E60000 !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    
    /* Centrado interno de la X */
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    
    margin-left: 10px !important; /* Margen de seguridad */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    cursor: pointer;
    opacity: 1 !important;
}

/* Ocultar la barrita gris superior (la manija) si estorba en este diseño */
.cart-header::before {
    display: none !important;
}

/* =======================================================
   🎨 NUEVO FONDO Y DECORACIÓN DE PIE DE PÁGINA
   ======================================================= */

/* 1. FONDO DE PÁGINA RENOVADO (Adiós al blanco plano) */
body {
    /* Color base: Un crema/hueso muy suave y cálido */
    background-color: #fcfcf5 !important; 
    
    /* Patrón de cuadrícula muy sutil (Estilo "Papel Milimetrado" o Mantel) */
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px) !important;
    
    /* Tamaño de los cuadritos */
    background-size: 30px 30px !important; 
    
    /* El fondo se queda fijo mientras haces scroll (Efecto elegante) */
    background-attachment: fixed !important;
}

/* 2. MOVER LAS SEMILLAS ENCIMA DEL FOOTER ROJO */

/* A. Borramos el pasto viejo que estaba flotando al final */
body::after {
    display: none !important;
}

/* B. Preparamos el Pie de Página (Footer) */
footer {
    position: relative !important; /* Necesario para pegar las semillas */
    margin-top: 60px !important;   /* Damos espacio arriba para las plantas */
    z-index: 10 !important;
    /* Aseguramos que el rojo sea intenso */
    background-color: #E60000 !important; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1) !important; /* Sombra hacia arriba */
}

/* C. Creamos la línea de semillas NUEVA */
footer::before {
    content: "🌱🌿🌱🌿🌱🌿🌱🌿🌱🌿🌱🌿🌱🌿🌱🌿🌱🌿🌱🌿";
    position: absolute;
    
    /* LA CLAVE: Lo subimos para que quede sentado sobre el borde rojo */
    top: -28px; 
    left: 0;
    
    width: 150%; /* Más ancho para que se mueva sin cortes */
    height: 40px;
    
    font-size: 1.8rem;
    line-height: 1;
    
    /* Color y Sombra */
    color: #4CAF50; /* Verde Hoja */
    text-shadow: 0 2px 0 rgba(0,0,0,0.1); /* Pequeña sombra para dar volumen */
    
    /* Animación de desplazamiento suave */
    animation: seedsWalk 15s linear infinite;
    
    pointer-events: none; /* Que no estorbe al click */
    white-space: nowrap;  /* Todo en una sola línea */
}

/* D. Animación: Hace que las plantas "caminen" lateralmente */
@keyframes seedsWalk {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

/* =======================================================
   🚀 AJUSTES FINALES: QUITAR WA Y ONDAS EN CARRITO
   ======================================================= */

/* 1. ELIMINAR EL BOTÓN FLOTANTE DE WHATSAPP */
/* Usamos selectores comunes para ocultarlo. Si tu botón tiene 
   otra clase específica y no desaparece, avísame. */
   .whatsapp-float, 
   .btn-whatsapp, 
   [href*="whatsapp.com"] {
       display: none !important;
   }
   
   
   /* 2. ONDAS DE ENERGÍA EN EL BOTÓN FLOTANTE DEL CARRITO */
   
   /* Aseguramos que el botón principal esté por encima de las ondas */
   .cart-float {
       position: fixed !important;
       z-index: 1500 !important; /* Un z-index alto */
       /* Quitamos cualquier overflow hidden que pudiera cortar las ondas */
       overflow: visible !important; 
   }
   
   /* Creamos dos ondas (pseudo-elementos) detrás del botón */
   .cart-float::before,
   .cart-float::after {
       content: '';
       position: absolute;
       /* Centrados perfectamente detrás del botón */
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%);
       
       /* Empiezan del tamaño del botón */
       width: 100%;
       height: 100%;
       border-radius: 50%;
       
       /* COLOR DE LA ONDA: Naranja intenso rojizo (#FF5722) */
       /* Usamos rgba para que sea semitransparente */
       background-color: rgba(255, 87, 34, 0.6);
       
       /* Se ponen detrás del botón verde */
       z-index: -1;
       
       /* La animación de pulso */
       animation: rippleWave 2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
   }
   
   /* La segunda onda sale con un segundo de retraso para el efecto continuo */
   .cart-float::after {
       animation-delay: 0.8s;
   }
   
   /* DEFINICIÓN DE LA ANIMACIÓN DE ONDA */
   @keyframes rippleWave {
       0% {
           width: 100%;  /* Empieza pegado al botón */
           height: 100%;
           opacity: 0.8; /* Casi opaco */
       }
       100% {
           width: 300%;  /* Crece hasta 3 veces su tamaño */
           height: 300%;
           opacity: 0;   /* Se desvanece completamente */
       }
   }

   /* =======================================================
   🌊 ONDAS DE ENERGÍA CORREGIDAS (SIN ROMPER LA MANZANA)
   ======================================================= */

.open-cart-button {
    /* 1. Permitimos que las ondas se salgan del botón */
    overflow: visible !important;
    
    /* 2. Animación de pulso infinito (Ondas Naranjas/Rojas) */
    animation: cartPulse 2s infinite !important;
}

/* Definición de las ondas (Shadows) */
@keyframes cartPulse {
    0% {
        /* Empiezan pegadas al botón */
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7), 
                    0 0 0 0 rgba(255, 87, 34, 0.4); 
    }
    70% {
        /* Se expanden hacia afuera y se desvanecen */
        box-shadow: 0 0 0 20px rgba(255, 87, 34, 0), 
                    0 0 0 40px rgba(255, 87, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0), 
                    0 0 0 0 rgba(255, 87, 34, 0);
    }
}

/* =========================================
   🍎 EXPLOSIÓN DE FRUTAS (Corrección Z-Index)
   ========================================= */

   .fruit-particle {
    position: fixed; /* 'Fixed' asegura que la fruta salga exactamente donde hiciste click */
    z-index: 999999 !important; /* ¡NIVEL DIOS! Encima del modal, de la alerta y de todo */
    pointer-events: none; /* Para que no interfiera con otros clicks */
    font-size: 1.5rem; /* Tamaño jugoso */
    
    /* La animación física */
    animation: flyAndFade 0.8s forwards ease-out;
}

/* Definimos la animación por si acaso no estaba cargando */
@keyframes flyAndFade {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        /* Usamos las variables que calculaste en JS (--tx, --ty) */
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.5);
    }
}

