/* Animación de producto volando al carrito */
.product-fly-animation {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-fly-animation.flying {
    opacity: 0;
    transform: scale(0.3);
}

/* Efecto de pulso en el carrito */
.nav__cart.cart-pulse {
    animation: cartPulse 0.6s ease-in-out;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        background-color: rgba(107, 142, 58, 0.2);
        border-radius: 50%;
    }
    100% {
        transform: scale(1);
    }
}

/* Efecto de contador animado */
.nav__cart-count.count-bounce {
    animation: countBounce 0.5s ease-in-out;
}

@keyframes countBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        background-color: #4caf50;
    }
    100% {
        transform: scale(1);
    }
}

/* Efecto de partículas (opcional) */
.cart-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #6b8e3a;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    opacity: 1;
    animation: particleFloat 1s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0);
    }
}



