/**
 * Estilos para notificaciones de carrito
 */

/* Notificación flotante */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification-success {
    border-left: 4px solid #10b981;
}

.cart-notification-success .fa-check-circle {
    color: #10b981;
}

.cart-notification-error {
    border-left: 4px solid #ef4444;
}

.cart-notification-error .fa-exclamation-circle {
    color: #ef4444;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cart-notification-content i {
    font-size: 20px;
}

.cart-notification-content span {
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.cart-notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cart-notification-close:hover {
    color: #374151;
}

/* Animación del contador */
.cart-counter-pulse {
    animation: counterPulse 0.6s ease;
}

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .cart-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .cart-notification-content span {
        font-size: 13px;
    }
}
