/**
 * Cart Notification Styles
 */

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.cart-notification-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.cart-notification-success .cart-notification-icon {
    background: #28a745;
    color: white;
}

.cart-notification-error .cart-notification-icon {
    background: #dc3545;
    color: white;
}

.cart-notification-message {
    font-size: 14px;
    font-weight: 500;
}

/* Cart count badge animation */
.cart-count-updated {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
}

/* Cart badge styles */
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-100px);
    }

    .cart-notification.show {
        transform: translateY(0);
    }
}
