/* ============ WISHLIST (علاقه‌مندی‌ها) ============ */

.woocommerce ul.products li.product,
.producthome,
.mh-wishlist-card {
    position: relative;
}

.mh-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 50%;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: color .2s, transform .2s, border-color .2s;
}

.mh-wishlist-btn:hover,
.mh-wishlist-btn:focus-visible {
    color: #e53950;
    border-color: #e53950;
}

.mh-wishlist-btn .mh-wishlist-icon {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: fill .2s;
}

.mh-wishlist-btn.is-active {
    color: #e53950;
}

.mh-wishlist-btn.is-active .mh-wishlist-icon {
    fill: currentColor;
}

.mh-wishlist-btn:active {
    transform: scale(.9);
}

.mh-wishlist-btn.is-loading {
    opacity: .6;
    pointer-events: none;
}

/* روی کارت‌ها: گوشه چپ بالا (نشان ناموجود در سمت راست است) */
.mh-wishlist-btn--loop,
.mh-wishlist-btn--card {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

/* صفحه محصول: بالای دکمه افزودن به سبد خرید */
.mh-wishlist-btn--single {
    width: auto;
    height: 42px;
    gap: .5rem;
    padding: 0 1rem;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
}

.mh-wishlist-btn--single .mh-wishlist-icon {
    width: 22px;
    height: 22px;
    color: #e53950;
}

.mh-wishlist-btn--single.is-active {
    border-color: #e53950;
    color: #e53950;
}

/* ---------- حساب کاربری ---------- */

.mh-wishlist-card {
    border: 1px solid #eee;
    transition: box-shadow .2s;
}

.mh-wishlist-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.mh-wishlist-card__image img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}

.mh-wishlist-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
    text-decoration: none;
}

.mh-wishlist-qty {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.mh-wishlist-qty .mh-qty-btn {
    width: 32px;
    height: 38px;
    border: 0;
    background: #f5f5f5;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.mh-wishlist-qty .mh-qty-btn:hover {
    background: var(--main, #81D8D0);
}

.mh-wishlist-qty__input {
    width: 44px;
    height: 38px;
    border: 0;
    text-align: center;
    -moz-appearance: textfield;
}

.mh-wishlist-qty__input::-webkit-outer-spin-button,
.mh-wishlist-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mh-wishlist-add-to-cart {
    background: var(--main, #81D8D0);
    color: #222;
    height: 40px;
    white-space: nowrap;
}

.mh-wishlist-add-to-cart:hover {
    filter: brightness(.95);
    color: #222;
}

.mh-wishlist-add-to-cart--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
}

.mh-wishlist-add-to-cart.loading {
    opacity: .6;
}

.mh-wishlist-out-of-stock {
    background: #f1f1f1;
    color: #999;
}
