/* =====================================================================
   ESTILOS DE CARRITO
   Notificaciones y funcionalidad del carrito
   ===================================================================== */

/* Notificaciones del carrito */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 350px;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification.success {
    border-left: 4px solid #28a745;
}

.cart-notification.success .notification-icon {
    color: #28a745;
}

.cart-notification.error {
    border-left: 4px solid #dc3545;
}

.cart-notification.error .notification-icon {
    color: #dc3545;
}

.notification-icon {
    font-size: 20px;
    font-weight: bold;
}

.notification-message {
    flex: 1;
    font-size: 14px;
}

/* Animacion del contador */
.cart-count.pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Spinner de carga */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}