/* wishlist.css */

/* Contenedor principal minimalista */
.wishlist-container {
    margin-top: 150px; /* Separa el contenido del navbar fijo */
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 2rem;
}

/* Título del carrito */
.wishlist-title {
    font-size: 2rem;
    font-weight: bold;
    color: #008243; /* Verde distintivo */
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Lista de ítems: en vez de tabla, usamos un contenedor flexible */
.wishlist-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* espacio vertical entre items */
}

/* Cada item de la wishlist, simulando un recuadro */
.wishlist-item {
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Sección izquierda: imagen */
.wishlist-item-image {
    flex: 0 0 50%; /* La imagen ocupará el 50% del ancho del contenedor */
}

/* Imagen del producto/servicio */
.wishlist-product-img {
    width: 80%;      /* La imagen se adapta al 100% del ancho de su contenedor */
    height: auto;     /* Mantiene la proporción */
    max-height: 300px; /* Limita la altura a 250px (puedes ajustar este valor si lo deseas) */
    object-fit: cover;
    border-radius: 4px;
}

/* Descripción del item */
.wishlist-item-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}



/* Sección central: nombre, tipo y/o descripción */
.wishlist-item-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.wishlist-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.wishlist-item-type {
    font-size: 0.9rem;
    color: #555;
}

/* Sección derecha: botón de eliminación */
.wishlist-item-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.wishlist-delete-btn {
    background-color: #d9534f;
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: background-color 0.2s;
    cursor: pointer;
}
.wishlist-delete-btn:hover {
    background-color: #c9302c;
}

/* Responsividad para móviles */
@media (max-width: 576px) {
    .wishlist-product-img {
        width: 60px;
        height: 60px;
    }

    .wishlist-item {
        flex-direction: column; /* Apila la imagen arriba, luego texto, luego botón */
        align-items: flex-start;
    }

    .wishlist-item-actions {
        margin-top: 0.5rem;
    }
}
