/*
 * Guest wishlist (localStorage). Used by:
 * - resources/views/components/wishlist_action.blade.php   heart on product cards
 * - resources/views/e-files/wishlist/header_icon.blade.php header link + count
 * - resources/views/e-comm/wishlist.blade.php              wishlist page
 */

.wl-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.wl-heart:hover {
    transform: scale(1.1);
}

.wl-heart:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.wl-heart__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #6b7280;
    transition: fill .15s ease, stroke .15s ease;
}

.wl-heart:hover .wl-heart__icon {
    stroke: #ef4444;
}

.wl-heart.is-active .wl-heart__icon {
    fill: #ef4444;
    stroke: #ef4444;
}

.wl-heart.wl-pop {
    animation: wl-pop .3s ease;
}

@keyframes wl-pop {
    50% { transform: scale(1.25); }
}

/* Detail page button (text + heart) */
.wl-detail-btn.is-active {
    border-color: #fca5a5;
    color: #ef4444;
}

.wl-detail-btn.is-active .wl-heart__icon {
    fill: #ef4444;
    stroke: #ef4444;
}

/* Header counter */
.wl-count {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .wl-heart,
    .wl-heart__icon {
        transition: none;
    }

    .wl-heart.wl-pop {
        animation: none;
    }
}
