/**
 * IFAD Wishlist — heart button styles.
 *
 * Two variants:
 *   .ifad-wl-btn--loop    — overlay for shop-loop product cards
 *   .ifad-wl-btn--single  — chip on the single-product page action row
 * State classes: `is-saved` (product is in wishlist), `is-busy` (request in flight).
 */

/* Base — the button itself */
.ifad-wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #eaeaf2;
    border-radius: 50%;
    background: #fff;
    color: #0E0E31;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(14, 14, 49, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    outline: none;
}
.ifad-wl-btn:hover {
    background: #f5f5fa;
    border-color: #0E0E31;
    transform: scale(1.05);
}
.ifad-wl-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(14, 14, 49, 0.15);
}
.ifad-wl-btn:disabled,
.ifad-wl-btn.is-busy {
    opacity: 0.6;
    cursor: progress;
}

.ifad-wl-icon {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: fill 0.15s ease, stroke 0.15s ease;
    pointer-events: none;
}

/* Saved state — solid navy fill so the heart reads "kept" without
   introducing a competing brand colour. */
.ifad-wl-btn.is-saved {
    background: #0E0E31;
    border-color: #0E0E31;
    color: #fff;
}
.ifad-wl-btn.is-saved .ifad-wl-icon {
    fill: #fff;
    stroke: #fff;
}
.ifad-wl-btn.is-saved:hover {
    background: #1c1c5c;
    border-color: #1c1c5c;
}

/* Shop-loop variant — absolute overlay, top-right of the card */
.cat_pronuct { position: relative; }
.ifad-wl-loop {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}
.ifad-wl-btn--loop {
    width: 34px;
    height: 34px;
    box-shadow: 0 1px 4px rgba(14, 14, 49, 0.08);
}
.ifad-wl-btn--loop .ifad-wl-icon {
    width: 16px;
    height: 16px;
}

/* Header badge — cart-style counter chip on the header heart link.
   Injected by wishlist.js; anchor gets position: relative from the
   same script so the badge lands on top-right corner. */
.ifad-wl-header-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #0E0E31;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
    z-index: 3;
    font-family: "Nunito Sans", sans-serif;
}
.ifad-wl-header-badge[hidden] { display: none; }

/* Single-product variant — chip on the action-buttons row, sits
   directly next to the "Request information" button. Negative top
   margin pulls it up onto the same visual row as the buttons (they
   sit on the previous flex-wrap line). */
.ifad-wl-single {
    flex: 0 0 auto;
    margin: -39px 0 0 12px;
    align-self: center;
    order: 91;
}
.ifad-wl-btn--single {
    width: 44px;
    height: 44px;
}
.ifad-wl-btn--single .ifad-wl-icon {
    width: 20px;
    height: 20px;
}
