/* Cart animations and styles */

.qty.cart-updated,
.cart-count.cart-updated {
    animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: #28a745;
        font-weight: bold;
    }
    100% {
        transform: scale(1);
    }
}

/* Loading states */
.btn.adding,
.add-to-cart-btn.adding {
    pointer-events: none;
    opacity: 0.7;
}

/* Attribute error highlight */
.attribute-group.attribute-error {
    animation: errorShake 0.5s ease;
    border: 2px solid #dc3545;
    padding: 10px;
    border-radius: 5px;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Cart item fade out */
.product-widget {
    transition: opacity 0.3s ease;
}

/* Success button state */
.btn-success {
    transition: all 0.3s ease;
}

