/* Wishlist Heart Icon CSS & Animations */

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wishlist-btn i {
    font-size: 18px;
    color: #ccc;
    transition: color 0.3s ease;
}

.wishlist-btn.active i {
    color: #e74c3c;
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

/* For product detail page */
.product-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.product-wishlist-btn:hover {
    background: #e2e6ea;
}

.product-wishlist-btn i {
    margin-right: 8px;
    color: #ccc;
    transition: color 0.3s ease;
}

.product-wishlist-btn.active {
    border-color: #e74c3c;
    color: #e74c3c;
}

.product-wishlist-btn.active i {
    color: #e74c3c;
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

/* Wishlist nav badge */
#wishlist-count {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -10px;
}
