/**
 * Animation styles for Aziz Phone Hub
 */

/* Cart Animation */
@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.cart-animation {
    animation: cartBounce 0.5s ease;
    color: #4a6cf7;
}

/* Wishlist Animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.like-btn.active i {
    animation: heartBeat 1s;
    color: #ff5a5a;
}

/* Loading Animation */
@keyframes fadeInOut {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.loading-animation {
    animation: fadeInOut 1.5s infinite ease-in-out;
}

/* Button Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-pulse {
    animation: pulse 1.5s infinite;
}

/* Page Transition */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Product Card Hover Animation */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Buy Now Button Animation */
@keyframes glow {
    0% { box-shadow: 0 0 0 rgba(74, 108, 247, 0.4); }
    50% { box-shadow: 0 0 10px rgba(74, 108, 247, 0.7); }
    100% { box-shadow: 0 0 0 rgba(74, 108, 247, 0.4); }
}

.buy-now:hover {
    animation: glow 1.5s infinite;
}
