/* Comparador de Productos - Estilos */

.comparador-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.comparador-content {
    padding: 1rem;
}

.comparador-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
}

.btn-close-comparador {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-close-comparador:hover {
    background: #f0f0f0;
    color: #dc3545;
}

.comparador-productos {
    margin-bottom: 0.75rem;
}

.comparador-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.comparador-nombre {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-eliminar-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-eliminar-item:hover {
    background: #ffe6e6;
}

.comparador-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid #e0e0e0;
}

.btn-comparar-ahora {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #007bff;
    color: white;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-comparar-ahora:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Botón de añadir al comparador */
.btn-comparar-producto {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-comparar-producto:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
}

.btn-comparar-producto.en-comparador {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-comparar-producto.en-comparador:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Notificaciones Toast */
.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1060;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease-out;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-warning .toast-content i {
    color: #ffc107;
}

.toast-info .toast-content i {
    color: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .comparador-flotante {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

