/* =============================================
   WISHLIST SYSTEM - HEART ICONS & FUNCTIONALITY
   Save favorite products with animations
   ============================================= */

/* Heart Icon on Product Card */
.product-card {
    position: relative;
}

.wishlist-heart {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.wishlist-heart:hover {
    transform: scale(1.1);
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

.wishlist-heart i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

/* Active/Filled Heart */
.wishlist-heart.active {
    background: var(--danger);
    border-color: var(--danger);
}

.wishlist-heart.active i {
    color: white;
}

.wishlist-heart.active:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Heart Beat Animation */
@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.25);
    }
}

.wishlist-heart.animating {
    animation: heartBeat 0.6s ease;
}

/* Light Theme */
[data-theme="light"] .wishlist-heart {
    background: rgba(248, 250, 252, 0.9);
}

[data-theme="light"] .wishlist-heart i {
    color: var(--text-secondary);
}

/* Wishlist Badge on Header */
.wishlist-btn .badge {
    background: var(--danger);
}

/* Wishlist Page Styles */
.wishlist-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
}

.wishlist-header {
    margin-bottom: 2rem;
}

.wishlist-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.wishlist-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.wishlist-empty i {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.wishlist-item {
    position: relative;
}

.wishlist-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--danger);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.wishlist-remove:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wishlist-heart {
        width: 36px;
        height: 36px;
    }

    .wishlist-heart i {
        font-size: 1.1rem;
    }

    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}