/* ── YITH Wishlist – Product Card Override ── */

/* Our positioned wrapper */
.odonata-wishlist-wrap {
    z-index: 10;
}

/* YITH React mount container */
.odonata-wishlist-wrap .yith-add-to-wishlist-button-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 0.5rem;
    border-radius: 9999px;
    background: rgba(var(--background-rgb, 255 255 255) / 0.8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.odonata-wishlist-wrap .yith-add-to-wishlist-button-block:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* The actual button/link inside */
.odonata-wishlist-wrap .yith-wcwl-add-to-wishlist-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    box-shadow: none !important;
    text-decoration: none;
    color: inherit;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.odonata-wishlist-wrap .yith-wcwl-add-to-wishlist-button:hover {
    background: transparent !important;
}

/* Hide "Add to wishlist" / "Added" text label */
.odonata-wishlist-wrap .yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}

/* Icon wrapper */
.odonata-wishlist-wrap .yith-wcwl-icon-svg__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Heart SVG icon */
.odonata-wishlist-wrap svg.yith-wcwl-icon-svg,
.odonata-wishlist-wrap .yith-wcwl-add-to-wishlist-button svg,
.odonata-wishlist-wrap .yith-wcwl-add-to-wishlist-button img {
    width: 1rem !important;
    height: 1rem !important;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s ease, fill 0.2s ease;
}

/* Added / Exists state – filled red heart */
.odonata-wishlist-wrap .yith-wcwl-add-to-wishlist-button--added svg.yith-wcwl-icon-svg,
.odonata-wishlist-wrap .yith-wcwl-add-to-wishlist-button--exists svg.yith-wcwl-icon-svg {
    color: hsl(var(--destructive));
    fill: hsl(var(--destructive));
}

/* Hide WC "View cart" link after add-to-cart */
.woocommerce ul.products li.product .added_to_cart {
    display: none;
}

/* Hide YITH wishlist feedback popup/toast */
.yith-wcwl-feedback-messages-container {
    display: none !important;
}
