/* ══════════════════════════════════════════════════════════════
   STACCIOLLA — Wishlist / Save for Later
   ──────────────────────────────────────────────────────────────
   Two button variants:
     1. .fe-wishlist-btn    — absolute overlay on product cards
                              (archive, new arrivals, best sellers)
     2. .fe-product__wishlist-btn — inline full-width button
                                    on the single product panel
   ══════════════════════════════════════════════════════════════ */

/* ── Parent position context ──────────────────────────────── */
/* Each card parent needs position:relative so the absolute
   button is contained within the card image area.           */
.fe-handbags-card   { position: relative; }
.fe-na-card         { position: relative; }
.fe-bs-card         { position: relative; }

/* archive-product.php was restructured from <a.fe-handbags-card> to
   <div.fe-handbags-card>; patch inner links so styles remain intact. */
.fe-handbags-card__image-link {
    display: block;
    text-decoration: none;
}
.fe-handbags-card__name-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


/* ── Card overlay button ───────────────────────────────────── */
.fe-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
    padding: 0;
    border-radius: 0;
    line-height: 1;
    flex-shrink: 0;
}

/* Reveal on card hover */
.fe-product-card:hover .fe-wishlist-btn,
.fe-handbags-card:hover .fe-wishlist-btn,
.fe-na-card:hover .fe-wishlist-btn,
.fe-bs-card:hover .fe-wishlist-btn,
.fe-wishlist-btn.is-saved {
    opacity: 1;
}

/* Always visible when saved — no background chip */
.fe-wishlist-btn.is-saved {
    background: transparent;
    border: none;
}

.fe-wishlist-btn.is-saved svg {
    stroke: #C8A96A;
    fill: rgba(200, 169, 106, 0.15);
    filter: none;
}

.fe-wishlist-btn:hover {
    background: transparent;
}

.fe-wishlist-btn:hover svg {
    stroke: rgba(26, 25, 22, 0.7);
    fill: none;
}

.fe-wishlist-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    transition: stroke 0.2s ease, fill 0.2s ease;
    stroke: rgba(26, 25, 22, 0.35);
    fill: none;
    filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.6));
}


/* ── Single product inline button ─────────────────────────── */
.fe-product__wishlist-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--fe-border);
    padding: 0.75rem 1.25rem;
    font-family: var(--fe-font-body), sans-serif;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--fe-warm-gray, #888);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
    line-height: 1;
    border-radius: 0;
}

.fe-product__wishlist-btn:hover {
    border-color: var(--fe-black);
    color: var(--fe-black);
}

.fe-product__wishlist-btn:hover svg {
    stroke: rgba(26, 25, 22, 0.7);
    fill: none;
}

.fe-product__wishlist-btn.is-saved {
    border-color: var(--fe-gold, #C8A96A);
    color: var(--fe-black);
}

.fe-product__wishlist-btn.is-saved svg {
    stroke: #C8A96A;
    fill: rgba(200, 169, 106, 0.15);
}

.fe-product__wishlist-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: stroke 0.2s ease, fill 0.2s ease;
    stroke: rgba(26, 25, 22, 0.35);
    fill: none;
}


/* ══════════════════════════════════════════════════════════════
   My Account — Wishlist page
   ══════════════════════════════════════════════════════════════ */

.fe-wishlist-page__eyebrow {
    font-family: var(--fe-font-body), sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fe-gold);
    margin: 0 0 0.5rem;
    display: block;
}

.fe-wishlist-page__title {
    font-family: var(--fe-font-serif), serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--fe-black);
    margin: 0 0 2rem;
    line-height: 1.1;
}

/* Product grid */
.fe-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 0 2rem;
}

@media (max-width: 900px) {
    .fe-wishlist-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .fe-wishlist-grid { grid-template-columns: 1fr; }
}

/* Wishlist product card */
.fe-wl-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.fe-wl-card__img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--fe-cream-dark, #EDE6D8);
    text-decoration: none;
}

.fe-wl-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fe-wl-card:hover .fe-wl-card__img-wrap img {
    transform: scale(1.03);
}

/* Remove (×) button */
.fe-wl-card__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: var(--fe-white);
    border: 1px solid var(--fe-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    color: var(--fe-black);
    font-size: 13px;
    line-height: 1;
    padding: 0;
    border-radius: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: var(--fe-font-body), sans-serif;
}

.fe-wl-card__remove:hover {
    background: var(--fe-black);
    color: var(--fe-white);
    border-color: var(--fe-black);
}

.fe-wl-card__info {
    padding: 0.75rem 0 0;
}

.fe-wl-card__name {
    font-family: var(--fe-font-body), sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--fe-black);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.fe-wl-card__name:hover {
    color: var(--fe-gold);
}

.fe-wl-card__price {
    font-family: var(--fe-font-body), sans-serif;
    font-size: 12px;
    color: var(--fe-warm-gray, #888);
    margin-bottom: 0.625rem;
}

.fe-wl-card__add,
a.fe-wl-card__add,
a.fe-wl-card__add:visited {
    display: block;
    width: 100%;
    background: var(--fe-black);
    color: var(--fe-white) !important;
    border: 1px solid var(--fe-black);
    font-family: var(--fe-font-body), sans-serif;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    box-sizing: border-box;
}

.fe-wl-card__add:hover,
a.fe-wl-card__add:hover {
    background: transparent;
    color: var(--fe-black) !important;
}

/* Empty state */
.fe-wishlist-empty {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.fe-wishlist-empty--visible,
.fe-wishlist-empty:only-child {
    display: block;
}

.fe-wishlist-empty__grifo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    opacity: 0.25;
}

.fe-wishlist-empty__title {
    font-family: var(--fe-font-serif), serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--fe-black);
    margin: 0 0 0.75rem;
}

.fe-wishlist-empty__sub {
    font-family: var(--fe-font-body), sans-serif;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--fe-warm-gray, #888);
    margin: 0 0 1.5rem;
}

.fe-wishlist-empty__btn {
    display: inline-block;
    background: var(--fe-black);
    color: var(--fe-white);
    font-family: var(--fe-font-body), sans-serif;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid var(--fe-black);
    border-radius: 0;
}

.fe-wishlist-empty__btn:hover {
    background: var(--fe-gold);
    border-color: var(--fe-gold);
}
