/* ═══════════════════════════════════════════════════════════════
   MONARMOTO WISHLIST — Professional eCommerce Wishlist UI
   ═══════════════════════════════════════════════════════════════ */

/* ──────── Product Card Wishlist Button ──────── */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.wishlist-btn:hover {
    transform: scale(1.12);
    background: #fff;
    box-shadow: 0 4px 14px rgba(233,69,96,0.25);
}

.wishlist-btn:focus-visible {
    outline: 2px solid #e94560;
    outline-offset: 2px;
}

.wishlist-btn .wishlist-icon,
.wishlist-btn i {
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #888;
    line-height: 1;
}

.wishlist-btn.active .wishlist-icon,
.wishlist-btn.active i {
    color: #e94560;
}

/* ──────── Heart Pop Animation ──────── */
.heart-pop {
    animation: wishlistHeartPop 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes wishlistHeartPop {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.35); }
    50%  { transform: scale(0.9); }
    75%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ──────── Loading State ──────── */
.wishlist-btn.wishlist-loading {
    pointer-events: none;
    opacity: 0.7;
}

.wishlist-btn.wishlist-loading .wishlist-icon,
.wishlist-btn.wishlist-loading i {
    opacity: 0.3;
}

/* ──────── Badge Styles ──────── */
.wishlist-badge,
#wishlistCount,
#mobileWishlistCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: #e94560;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    top: -6px;
    right: -8px;
    box-shadow: 0 2px 6px rgba(233,69,96,0.35);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.wishlist-badge.empty,
#wishlistCount.empty,
#mobileWishlistCount.empty {
    display: none !important;
}

.wishlist-badge:empty,
#wishlistCount:empty,
#mobileWishlistCount:empty {
    display: none;
}

/* Badge Pulse Animation */
.badge-pulse {
    animation: badgePulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes badgePulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ──────── Mobile Bottom Nav Badge ──────── */
#mobileWishlistCount {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    padding: 0 4px;
}

/* ──────── Header Icon Wishlist Link ──────── */
.header-icon[title="Wishlist"] {
    position: relative;
}

/* ──────── Toast Notification (fallback) ──────── */
.wishlist-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 12px 24px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}
.wishlist-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.wishlist-toast.success {
    background: #27ae60;
}
.wishlist-toast.error {
    background: #e74c3c;
}

/* ──────── Mobile Responsive ──────── */
@media (max-width: 576px) {
    .wishlist-btn {
        width: 30px;
        height: 30px;
        top: 6px;
        right: 6px;
    }
    .wishlist-btn .wishlist-icon,
    .wishlist-btn i {
        font-size: 13px;
    }
}
