.wish-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.wish-btn:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.wish-btn.wish-btn-active,
.wish-btn.wish-btn-active:hover {
    background: #fff;
    color: #dc3545;
    border-color: #f5c2c7;
}

.wish-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.wish-btn-detail {
    width: auto;
    min-height: 42px;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 500;
    box-shadow: none;
}

.wish-btn-detail.wish-btn-active {
    color: #dc3545;
    border-color: #f5c2c7;
    background: #fff5f5;
}

/* Wishlist heart on product cards — show on hover (desktop) */
.product-wishlist-wrap {
    top: 10px;
    right: 10px;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vertical-product-card:hover .product-wishlist-wrap,
.hp-product-card:hover .product-wishlist-wrap,
.hp-product-thumb:hover .product-wishlist-wrap,
.shop-search-card:hover .product-wishlist-wrap,
.shop-product-item:hover .product-wishlist-wrap,
.shop-listing-page .shop-search-card:hover .product-wishlist-wrap,
.shop-listing-page .card-img:hover .product-wishlist-wrap,
.offer-product-slider .vertical-product-card:hover .product-wishlist-wrap {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1);
    pointer-events: auto;
}

/* Touch devices: always show wishlist button */
@media (hover: none), (max-width: 767px) {
    .product-wishlist-wrap {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        pointer-events: auto;
    }
}

.wishlist-card {
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.wishlist-card .product-wishlist-wrap {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.wishlist-card-img {
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.wishlist-empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-toast {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1080;
    background: #111827;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
    pointer-events: none;
    max-width: 320px;
    font-size: 0.95rem;
}

.wishlist-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Legacy aliases — header icons now use .header-icon-btn in _header.php */
.header-wishlist-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .wishlist-card-img {
        height: 220px;
    }
}
