/**
 * Estilos para ZL Wishlist
 */

/* Botón de wishlist */
.zl-wishlist-button {
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.zl-wishlist-button:hover {
    /*transform: scale(1.08);*/
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.zl-wishlist-button:hover .zl-wishlist-icon {
    color: var(--zl-hover-color, #bb2d3b);
}
.zl-wishlist-button .zl-wishlist-icon::before {
    transition: all 0.3s ease;
}
.zl-wishlist-button:hover .zl-wishlist-icon::before {
    transform: scale(1.2);
}

.zl-wishlist-button:active {
    transform: scale(0.95);
}

.zl-wishlist-button i {
    transition: all 0.3s ease;
}

.zl-wishlist-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tabla de wishlist */
.zl-wishlist-table img {
    max-width: 100px;
    height: auto;
    border-radius: 0.375rem;
}

.zl-wishlist-table td {
    vertical-align: middle;
}

.zl-wishlist-table .btn-group {
    gap: 0.5rem;
}

/* Página de wishlist */
.zl-wishlist-page h2 {
    color: #333;
    font-weight: 600;
}

.zl-wishlist-page .disponible {
    font-size: 14px;
}

/* Mensajes toast personalizados */
.zl-wishlist-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.zl-wishlist-toast.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Modal de login */
.zl-login-modal .modal-content {
    border-radius: 1rem;
}

.zl-login-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

.zl-login-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

.zl-login-modal .modal-body i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

/* Wishlist en panel de usuario */
.zl-wishlist-account .table-responsive {
    overflow-x: auto;
}

/* Badges personalizados */
.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .zl-wishlist-table img {
        max-width: 60px;
    }
    
    .zl-wishlist-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Spinner de carga */
.zl-loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animación de corazón */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.3);
    }
    40% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.3);
    }
    80% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.zl-wishlist-button.animate-heart i {
    animation: heartBeat 0.8s ease-in-out;
}

/* Estado activo del botón */
.zl-wishlist-button[data-in-wishlist="1"] {
    background: rgba(255, 255, 255, 0.1);
}

/* Hover effects para productos */
.zl-wishlist-table tr {
    transition: all 0.2s ease;
}

.zl-wishlist-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Alert personalizado */
.alert {
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-success {
    border-left-color: #198754;
}

.alert-danger {
    border-left-color: #dc3545;
}
