/* ============================================================
   wishlist.css — стилі для вподобань
   bodyClass: page-wishlist (вже встановлено у wishlist.php)
   Немає глобальних конфліктів
   ============================================================ */

.product-card .wishlist-heart,
.wishlist-heart {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 3 !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-heart:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.pnp-item > .wishlist-heart,
.product-title-row > .wishlist-heart {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.pnp-item > .wishlist-heart:hover,
.product-title-row > .wishlist-heart:hover {
    transform: scale(1.1);
    box-shadow: none;
}

.wishlist-heart-svg {
    width: 18px !important;
    height: 18px !important;
    fill: none;
    stroke: #C4A0B0;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.25s ease, stroke 0.25s ease, transform 0.25s ease;
}

.wishlist-heart:hover .wishlist-heart-svg {
    stroke: #6B2D4E;
}

.wishlist-heart.active .wishlist-heart-svg {
    fill: #6B2D4E;
    stroke: #6B2D4E;
}

@keyframes wishlistHeartPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.4); }
    60%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.wishlist-heart.pop .wishlist-heart-svg {
    animation: wishlistHeartPop 0.4s ease;
}

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

.wishlist_end {
    position: relative;
}

.wishlist_end .wishlist-count {
    position: absolute;
    top: -4px;
    right: -6px;
}

.wishlist-page-title {
    margin-bottom: 24px;
}

.wishlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 420px;
    margin: 60px auto;
    text-align: center;
    color: #666;
}

.wishlist-empty-icon {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: #d9d9d9;
    stroke-width: 1.4;
}

.wishlist-empty-btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 8px;
}

.wishlist-card-removing {
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: scale(0.92);
}