/* Wishlist Button Styles */
.product-card__wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Bootstrap Icons */
.product-card__wishlist .bi {
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #999;
    position: absolute;
    top: 9px;
}

/* Hover state */
.product-card__wishlist:hover {
    transform: scale(0.97);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.product-card__wishlist:hover .bi {
    color: #ff6b6b;
    transform: scale(0.97);
}

/* Active/Liked state */
.product-card__wishlist.active {
    background: #ff4d4d;
    animation: heartBeat 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: transparent;
}

.product-card__wishlist.active .bi {
    color: white;
    transform: scale(0.97);
    position: absolute;
    top: 9px;
}

/* Pulsing animation when active */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.25); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Ripple effect */
.product-card__wishlist::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease-out;
}

.product-card__wishlist:active::after {
    opacity: 0.6;
    transform: scale(2);
    transition: 0s;
}


/* Wishlist Count Badge */
.wishlist-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none; /* Hidden by default */
}

/* Wishlist Page Styles */
.wishlist-page {
    padding: 40px 0;
}

.wishlist-grid {
    gap: 30px;
    margin-top: 30px;
}

.empty-wishlist {
    text-align: center;
    padding: 50px 20px;
}

.empty-wishlist i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-wishlist h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-card__wishlist {
        width: 30px;
        height: 30px;
    }
    
    .product-card__wishlist .love {
        width: 16px;
        height: 16px;
    }

    .product-card__wishlist .bi{
        font-size: 15px;
        top: 7.5px;
    }
    
    .product-card__wishlist.active .bi {
        font-size: 15px;
        top: 7.5px;
    }
}

@media (max-width: 480px) {
    .product-card__wishlist {
        width: 28px;
        height: 28px;
        top: 10px;
        right: 10px;
    }
    
    .wishlist-tooltip {
        display: none; /* Hide tooltips on mobile */
    }

    .product-card__wishlist .bi{
        font-size: 10px;
        top: 5px;
    }

    .product-card__wishlist.active .bi {
        font-size: 10px;
        top: 5px;
    }
}
