/**
 * Wishlist Styles
 */

/* Wishlist Button on Single Product */
.btn-favorite.lemira-wishlist-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-favorite.lemira-wishlist-button svg {
    transition: all 0.3s ease;
}

.btn-favorite.lemira-wishlist-button:hover svg {
    transform: scale(1.08);
}

.btn-favorite.lemira-wishlist-button.active {
    border: 1px solid #dc3545;
    background-color: #dc3545;
    color: #fff;
}

.btn-favorite.lemira-wishlist-button.active svg {
    fill: currentColor;
}

.btn-favorite.lemira-wishlist-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Wishlist Page */
.lemira-wishlist-page {
    padding: 0;
}

.lemira-wishlist-page .wishlist-item {
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

/* Remove Button */
.wishlist-item .remove-from-wishlist {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 10;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-item:hover .remove-from-wishlist {
    opacity: 1;
}

.wishlist-item .remove-from-wishlist:hover {
    transform: scale(1.1);
}

.wishlist-item .remove-from-wishlist i {
    font-size: 14px;
}

/* Product Card inherits styles from main style.css */
.wishlist-item .product-card {
    height: 100%;
}

.wishlist-item .product-image {
    background: #f8f9fa;
}

.wishlist-item .product-title {
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price styling to match shop page */
.wishlist-item .price .text-gray-small {
    color: #6c757d;
    font-size: 0.85em;
}

.wishlist-item .price .fw-bold {
    font-size: 18px;
    font-weight: 700;
}

/* Weight styling */
.wishlist-item .product-weight .fw-semibold {
    font-weight: 600;
}

.wishlist-item .product-weight .text-muted {
    color: #6c757d;
}

/* Empty Wishlist Message */
.woocommerce-message--info {
    padding: 40px;
    text-align: center;
    border-radius: 8px;
}

.woocommerce-message--info p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Wishlist Count Badge (if you want to add it to menu) */
.wishlist-count {
    display: inline-block;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 4px;
    min-width: 18px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-item .card-img-top {
        height: 200px;
    }

    .wishlist-item .remove-from-wishlist {
        opacity: 1;
    }
}

/* Animation for adding to wishlist */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.2);
    }
    20%, 40% {
        transform: scale(1.1);
    }
}

.lemira-wishlist-button.adding i {
    animation: heartbeat 0.6s ease;
}
