/* ═══════════════════════════════════════════════
   RF Wishlist — Design Rose&Fly
   Zéro dépendance, ~4 Ko
   ═══════════════════════════════════════════════ */

/* ── Variables ──────────────────────────── */
:root {
    --rf-wl-rose: #a14b68;
    --rf-wl-rose-light: #eab0c0;
    --rf-wl-rose-bg: #fff7fa;
    --rf-wl-burgundy: #8B2252;
    --rf-wl-ink: #2a1e24;
    --rf-wl-muted: #6b5a61;
    --rf-wl-line: #ecdce2;
    --rf-wl-white: #fff;
    --rf-wl-shadow: 0 4px 16px rgba(161,75,104,.12);
}

/* ══════════════════════════════════════════
   BOUTON CŒUR — Boucle produit (overlay)
   ══════════════════════════════════════════ */

.rf-wl-btn--loop {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--rf-wl-line);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.rf-wl-btn--loop svg {
    fill: none;
    stroke: var(--rf-wl-rose);
    stroke-width: 2;
    transition: fill .25s ease, stroke .25s ease, transform .25s ease;
}

.rf-wl-btn--loop:hover {
    transform: scale(1.1);
    box-shadow: var(--rf-wl-shadow);
}

.rf-wl-btn--loop:hover svg {
    fill: var(--rf-wl-rose-light);
}

.rf-wl-btn--loop.is-active svg {
    fill: var(--rf-wl-rose);
    stroke: var(--rf-wl-rose);
    transform: scale(1.1);
}

.rf-wl-btn--loop.is-active {
    background: var(--rf-wl-rose-bg);
    border-color: var(--rf-wl-rose-light);
}

/* Animation pop */
@keyframes rf-wl-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}
.rf-wl-btn--loop.is-active svg {
    animation: rf-wl-pop .35s ease-out;
}

/* Loading */
.rf-wl-btn.rf-wl-loading {
    pointer-events: none;
    opacity: .6;
}
/* 📁 assets/css/rf-wl-front.css */

/* Après le bloc .rf-wl-btn--loop existant */

/* Masqué par défaut dans la loop */
.woocommerce ul.products li.product .rf-wl-btn--loop {
    opacity: 0;
}

/* Visible au hover */
.woocommerce ul.products li.product:hover .rf-wl-btn--loop {
    opacity: 1;
}

/* Toujours visible sur mobile (pas de hover) */
@media (max-width: 768px) {
    .woocommerce ul.products li.product .rf-wl-btn--loop {
        opacity: 1;
    }
}
/* ══════════════════════════════════════════
   BOUTON CŒUR — Fiche produit (inline ATC)
   ══════════════════════════════════════════ */

.rf-wl-btn--single {
    flex: 0 0 auto;
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(161,75,104,.22);
    background: rgba(250,241,245,.85);
    box-shadow: 0 6px 16px rgba(161,75,104,.07);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.rf-wl-btn--single svg {
    fill: none;
    stroke: var(--rf-wl-rose);
    stroke-width: 2;
    transition: fill .25s ease, stroke .25s ease;
}

.rf-wl-btn--single:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(161,75,104,.18);
    background: rgba(250,241,245,.95);
}

.rf-wl-btn--single.is-active svg {
    fill: var(--rf-wl-burgundy);
    stroke: var(--rf-wl-burgundy);
    animation: rf-wl-pop .35s ease-out;
}

/* ══════════════════════════════════════════
   PAGE WISHLIST
   ══════════════════════════════════════════ */

.rf-wl-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

/* Header */
.rf-wl-header {
    text-align: center;
    margin-bottom: 32px;
}

.rf-wl-header__tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--rf-wl-white);
    color: var(--rf-wl-rose);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    border: 1px solid var(--rf-wl-line);
    box-shadow: 0 4px 14px rgba(161,75,104,.06);
}

.rf-wl-header__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--rf-wl-burgundy);
    margin: 0 0 8px;
    line-height: 1.2;
}

.rf-wl-header__sub {
    font-size: 15px;
    color: var(--rf-wl-muted);
    margin: 0;
}

.rf-wl-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6em;
    color: var(--rf-wl-rose);
    font-weight: 400;
    vertical-align: middle;
}

.rf-wl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card */
.rf-wl-card {
    position: relative;
    background: var(--rf-wl-white);
    border: 1px solid var(--rf-wl-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(161,75,104,.06);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.rf-wl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(161,75,104,.14);
}

/* Bouton retirer */
.rf-wl-btn--remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--rf-wl-line);
    background: rgba(255,255,255,.9);
    color: var(--rf-wl-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s ease, color .2s ease;
}

.rf-wl-btn--remove:hover {
    background: var(--rf-wl-rose);
    color: var(--rf-wl-white);
    border-color: var(--rf-wl-rose);
}

/* Image */
.rf-wl-card__media {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f7e8ed;
}

.rf-wl-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.rf-wl-card:hover .rf-wl-card__media img {
    transform: scale(1.04);
}

/* Body */
.rf-wl-card__body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rf-wl-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--rf-wl-ink);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-wl-card__title:hover {
    color: var(--rf-wl-rose);
}

.rf-wl-card__price {
    font-size: 15px;
    font-weight: 800;
    color: var(--rf-wl-rose);
}

.rf-wl-card__price del {
    color: var(--rf-wl-muted);
    font-weight: 400;
    font-size: 13px;
    margin-right: 4px;
}

/* Bouton ATC */
.rf-wl-card__atc {
    display: block;
    text-align: center;
    margin-top: auto;
    padding: 11px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rf-wl-rose), var(--rf-wl-burgundy));
    color: var(--rf-wl-white) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 14px rgba(161,75,104,.2);
}

.rf-wl-card__atc:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(161,75,104,.3);
}

/* Variante "Choisir les options" */
.rf-wl-card__atc--options {
    background: var(--rf-wl-white) !important;
    color: var(--rf-wl-rose) !important;
    border: 1.5px solid var(--rf-wl-rose-light);
    box-shadow: none;
}

.rf-wl-card__atc--options:hover {
    background: var(--rf-wl-rose-bg) !important;
    border-color: var(--rf-wl-rose);
    box-shadow: 0 4px 14px rgba(161,75,104,.1);
}

/* Rupture */
.rf-wl-card__oos {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: var(--rf-wl-muted);
    font-weight: 600;
    background: rgba(247,232,237,.5);
    border-radius: 8px;
}

/* ══════════════════════════════════════════
   ÉTAT VIDE
   ══════════════════════════════════════════ */

.rf-wl-empty {
    text-align: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, rgba(247,232,237,.4), rgba(253,245,247,.6));
    border: 1px solid var(--rf-wl-line);
    border-radius: 22px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(161,75,104,.06);
}

.rf-wl-empty__icon {
    font-size: 4rem;
    color: var(--rf-wl-rose-light);
    margin-bottom: 16px;
    opacity: .5;
}

.rf-wl-empty__text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rf-wl-burgundy);
    margin: 0 0 8px;
}

.rf-wl-empty__sub {
    font-size: 14px;
    color: var(--rf-wl-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

.rf-wl-empty__cta {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--rf-wl-rose);
    color: var(--rf-wl-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s ease, transform .15s ease;
}

.rf-wl-empty__cta:hover {
    background: var(--rf-wl-burgundy);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════ */

.rf-wl-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--rf-wl-white);
    border: 1px solid var(--rf-wl-line);
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    z-index: 10000;
    font-size: 14px;
    font-weight: 700;
    color: var(--rf-wl-ink);
    transform: translateX(120%);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    max-width: 320px;
    border-left: 4px solid var(--rf-wl-rose);
}

.rf-wl-toast.is-visible {
    transform: translateX(0);
}

.rf-wl-toast__icon {
    color: var(--rf-wl-rose);
    margin-right: 6px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
    .rf-wl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .rf-wl-header__title {
        font-size: 22px;
    }

    .rf-wl-btn--loop {
        width: 32px;
        height: 32px;
    }

    .rf-wl-btn--loop svg {
        width: 16px;
        height: 16px;
    }

    .rf-wl-toast {
        right: 12px;
        left: 12px;
        max-width: none;
        bottom: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rf-wl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .rf-wl-card__body {
        padding: 10px 12px 14px;
    }

    .rf-wl-card__title {
        font-size: 13px;
    }
}

.ast-sticky-add-to-cart .ast-container .rf-wl-btn{display:none!important;}

