/* Estilos para el botón de wishlist */
.wishlist-container {
    margin: 20px 0;
    text-align: center;
}

.wishlist-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover {
    border-radius: 50%;
}

.heart-icon {
    font-size: 24px;
    color: #ccc;
    transition: all 0.3s ease;
}

.wishlist-btn.in-wishlist .heart-icon {
    color: #000;
    animation: heartbeat 0.6s ease;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Estilos para el botón en el loop de productos */
.wishlist-container-loop {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.wishlist-btn-loop {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;    
}

.wishlist-btn-loop:hover {
    background: white;
    transform: scale(1.1);
}

.wishlist-btn-loop .heart-icon {
    font-size: 20px;
    color: #ccc;
    transition: all 0.3s ease;
}

.wishlist-btn-loop:hover .heart-icon {
    color: #000;
}

.wishlist-btn-loop.in-wishlist .heart-icon {
    color: #000;
    animation: heartbeat 0.6s ease;
}

/* Estilos para la página de wishlist con el nuevo formato */
.custom-wishlist-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wishlist-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-card .product-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .wishlist-products {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}