/* =================================================================
   CHR Avenir Wishlist
   Brand blue : #1B3A5C   |   Active heart : #EF4444
   NOTE: this file styles ONLY .chr-wishlist-* classes.
   The single "Favoris" button reuses your theme .chr-sp__action-btn,
   so its base look comes from the theme (not from here).
   ================================================================= */

/* ---- Heart icon (shared base) ---- */
.chr-wishlist-btn svg,
.chr-wishlist-single svg {
    fill: none;
    stroke: #1B3A5C;
    stroke-width: 2;
    transition: fill .2s ease, stroke .2s ease;
}
.chr-wishlist-btn svg { width: 18px; height: 18px; }      /* archive heart */
.chr-wishlist-single svg { width: 16px; height: 16px; }    /* matches "Partager" icon */

.chr-wishlist-btn.active svg,
.chr-wishlist-single.active svg {
    fill: #EF4444;
    stroke: #EF4444;
}

/* Single "Favoris" active cue (scoped so it never touches Partager) */
.chr-sp__action-btn.chr-wishlist-single.active {
    color: #EF4444;
    border-color: rgba(239, 68, 68, .35);
}

/* ---- Each product card becomes the positioning context for the heart ---- */
.woocommerce ul.products li.product {
    position: relative;
}

/* =============================================================
   ARCHIVE — DESKTOP : heart slides in on hover (near the button)
   Tweak bottom/right to fine-tune over your card.
   ============================================================= */
@media (min-width: 769px) {
    .woocommerce ul.products li.product .chr-wishlist-btn {
        position: absolute;
        bottom: 125px;
        right: 15px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transform: translateY(100%);
        transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
        z-index: 5;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    }
    .woocommerce ul.products li.product:hover .chr-wishlist-btn {
        opacity: 1;
        transform: translateY(0);
    }
    .woocommerce ul.products li.product .chr-wishlist-btn:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
    }
}

/* =============================================================
   ARCHIVE — MOBILE : heart pinned top-right of the card
   ============================================================= */
@media (max-width: 768px) {
    .woocommerce ul.products li.product .chr-wishlist-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 1;
        z-index: 20;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    }
}

/* =============================================================
   FAVORITES PAGE  [chr_wishlist]  — gate / empty states
   ============================================================= */
.chr-wishlist-gate,
.chr-wishlist-empty {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
    padding: 36px 26px;
    background: #fff;
    border: 1px solid #EEF1F4;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(27, 58, 92, .06);
}
.chr-wishlist-gate svg,
.chr-wishlist-empty svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke: #1B3A5C;
    stroke-width: 1.6;
    margin-bottom: 16px;
}
.chr-wishlist-gate h3,
.chr-wishlist-empty h3 {
    color: #1B3A5C;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
}
.chr-wishlist-gate p,
.chr-wishlist-empty p {
    color: #5A6B7B;
    margin: 0 0 24px;
    line-height: 1.55;
    font-size: 15px;
}
.chr-wishlist-gate__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.chr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.chr-btn--primary { background: #1B3A5C; color: #fff; }
.chr-btn--primary:hover { background: #15314D; color: #fff; }
.chr-btn--ghost { background: #fff; color: #1B3A5C; border: 1px solid #1B3A5C; }
.chr-btn--ghost:hover { background: #F3F6F9; color: #1B3A5C; }
.chr-wishlist-results { margin-top: 6px; }

/* =============================================================
   OPTIONAL — header wishlist count badge
   ============================================================= */
.chr-wishlist-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #1B3A5C;
    text-decoration: none;
}
.chr-wishlist-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 9px;
    background: #1B3A5C;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
