/**
 * Wishlist
 */

/* Wishlistボタン */
.btn-wishlist {
    position: relative;
    transition: all 0.3s ease;
}

/* Wishlist選択されたアイコン色 */
.btn-wishlist.active .icon-heart {
    fill: #FF5C5C;
    color: #FF5C5C;
}

.btn-wishlist.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-wishlist.loading::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FF5C5C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ヘッダー ウィッシュリストバッジ */
.nav-icon-item {
    position: relative;
}

.wishlist-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    background-color: #e43131;
    color: #fff;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
}
