/* ═══════════════════════════════════════════════════════════
   Florence Wishlist
   ═══════════════════════════════════════════════════════════ */

/* ── Heart Button (shared) ────────────────────────────────── */

.fw-heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.fw-heart-btn:hover {
    transform: scale(1.1);
}

.fw-heart-btn:active {
    transform: scale(0.95);
}

.fw-heart-btn.fw-loading {
    pointer-events: none;
    opacity: 0.5;
}

.fw-heart-svg {
    transition: fill 0.25s ease, stroke 0.25s ease;
}

.fw-heart-btn.fw-active .fw-heart-svg {
    fill: #000;
    stroke: #000;
}

/* ── Heart on Loop ────────────────────────────────────────── */

.fw-heart-loop {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fw-heart-loop .fw-heart-svg {
    width: 22px;
    height: 22px;
    color: #0d0d0d;
}

ul.products li.product,
.woocommerce ul.products li.product {
    position: relative;
}

/* ── Heart on Single Product ─────────────────────────────── */

.fw-heart-single {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    vertical-align: middle;
    color: #000;
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: #f5f5f7;
    border-radius: 50%;
}

.fw-heart-single .fw-heart-svg {
    width: 22px;
    height: 22px;
}

.fw-heart-single:hover {
    transform: none;
}

/* ── Header Badge ────────────────────────────────────────── */

.wishlist-menu-item {
    position: relative;
}

.wishlist-menu-item a {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fw-header-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    color: #0d0d0d;
    background: #f5f5f7;
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    min-width: 14px;
    border: 1px solid #0d0d0d;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    pointer-events: none;
}

/* ── Pop animation ────────────────────────────────────────── */

@keyframes fw-heart-pop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.3); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.fw-heart-btn.fw-pop:not(.fw-heart-single) .fw-heart-svg {
    animation: fw-heart-pop 0.4s ease;
}

/* ── Toast ────────────────────────────────────────────────── */

.fw-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #000;
    color: #fff;
    padding: 12px 24px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 3px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.fw-toast a {
    color: #fff;
    text-decoration: underline;
}

.fw-toast.fw-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════
   Wishlist Page — Shop the Look style
   ═══════════════════════════════════════════════════════════ */

.fw-wl-page {
    max-width: 800px;
}

/* ── Page Header ──────────────────────────────────────────── */

.fw-wl-page__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.fw-wl-page__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #0d0d0d;
}

.fw-wl-page__count {
    font-size: 13px;
    color: #999;
}

/* ── Login Banner ────────────────────────────────────────── */

.fw-login-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.fw-login-banner svg {
    flex-shrink: 0;
    color: #666;
}

.fw-login-banner a {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fw-login-banner a:hover {
    color: #333;
}

/* ── Empty State ──────────────────────────────────────────── */

.fw-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
}

.fw-wishlist-empty p {
    font-size: 14px;
    margin-bottom: 24px;
    color: #666;
    line-height: 1.5;
}

.fw-wishlist-empty__heading {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px !important;
}

.fw-wishlist-empty__btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.fw-wishlist-empty__btn:hover {
    background: #222;
    color: #fff !important;
}

/* ── List (vertical stack) ────────────────────────────────── */

.fw-wishlist-list {
    border-top: 1px solid #e5e5e5;
}

/* ── Card — horizontal layout ─────────────────────────────── */

.fw-wishlist-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: opacity 0.3s ease;
    position: relative;
}

.fw-wishlist-item:last-child {
    border-bottom: none;
}

.fw-wishlist-item.fw-removing {
    opacity: 0;
}

/* Image — fixed width */
.fw-wishlist-item__image {
    flex-shrink: 0;
    width: 120px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .fw-wishlist-item__image {
        width: 140px;
    }
}

.fw-wishlist-item__image a {
    display: block;
}

.fw-wishlist-item__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ATC overlay on image */
.fw-atc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.fw-atc-overlay--visible {
    opacity: 1;
}

/* Body — right side */
.fw-wishlist-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fw-wishlist-item__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.fw-wishlist-item__details {
    flex: 1;
    min-width: 0;
}

/* Product name */
.fw-wishlist-item__name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
}

.fw-wishlist-item__name:hover {
    text-decoration: underline;
}

/* Price */
.fw-wishlist-item__price {
    font-size: 14px;
    color: #444;
}

.fw-wishlist-item__price del {
    color: #999;
    margin-right: 4px;
}

.fw-wishlist-item__price ins {
    text-decoration: none;
    color: #c00;
}

/* Remove button */
.fw-wishlist-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #000;
    transition: opacity 0.2s ease;
}

.fw-wishlist-remove:hover {
    opacity: 0.6;
}

.fw-wishlist-remove svg {
    display: block;
    stroke: currentColor;
}

/* ── Selects — rounded, matching Shop the Look ────────────── */

.fw-wishlist-item__selects {
    margin-bottom: 12px;
    max-width: 280px;
}

.fw-size-select {
    display: block;
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #d8d8d8;
    border-radius: 28px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    background-size: 12px 7px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
    margin-bottom: 8px;
}

.fw-size-select:focus {
    border-color: #000;
    outline: none;
}

.fw-size-select option:disabled {
    color: #bbb;
}

/* ── Add to Bag button ────────────────────────────────────── */

.fw-wishlist-item__atc {
    display: block;
    max-width: 280px;
    width: 100%;
    text-align: center;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.fw-wishlist-item__atc:hover {
    background: #222 !important;
}

.fw-wishlist-item__atc.fw-atc-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Out of stock */
.fw-wishlist-item__oos {
    display: block;
    max-width: 280px;
    width: 100%;
    text-align: center;
    padding: 12px 28px;
    font-size: 13px;
    color: #999;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   Email Wishlist
   ═══════════════════════════════════════════════════════════ */

.fw-email-wishlist {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    max-width: 420px;
}

.fw-email-wishlist__btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    padding: 0;
    font-weight: 500;
    font-family: inherit;
}

.fw-email-wishlist__btn:hover {
    color: #000;
}

.fw-email-wishlist__btn svg {
    flex-shrink: 0;
}

.fw-email-wishlist__form {
    margin-top: 16px;
}

.fw-email-wishlist__input,
.fw-email-wishlist__note {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.fw-email-wishlist__input:focus,
.fw-email-wishlist__note:focus {
    border-color: #000;
    outline: none;
}

.fw-email-wishlist__note {
    resize: vertical;
    min-height: 50px;
}

.fw-email-wishlist__send {
    display: inline-block;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fw-email-wishlist__send:hover {
    background: #222;
}

.fw-email-wishlist__send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   Save Prompt (first-add popup for guests)
   ═══════════════════════════════════════════════════════════ */

.fw-save-prompt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.fw-save-prompt-overlay--visible {
    background: rgba(0, 0, 0, 0.4);
}

.fw-save-prompt {
    background: #fff;
    max-width: 380px;
    width: 100%;
    padding: 36px 32px 28px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fw-save-prompt-overlay--visible .fw-save-prompt {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fw-save-prompt__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.fw-save-prompt__close:hover {
    color: #000;
}

.fw-save-prompt__icon {
    margin-bottom: 16px;
    color: #000;
}

.fw-save-prompt__title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px;
    line-height: 1.3;
}

.fw-save-prompt__text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 20px;
}

.fw-save-prompt__email {
    display: block;
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #d8d8d8;
    background: #fff;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.fw-save-prompt__email:focus {
    border-color: #000;
    outline: none;
}

.fw-save-prompt__email::placeholder {
    color: #aaa;
}

.fw-save-prompt__cta {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.fw-save-prompt__cta:hover {
    background: #222;
    color: #fff !important;
}

.fw-save-prompt__skip {
    display: block;
    width: 100%;
    margin-top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #999;
    font-family: inherit;
    padding: 8px;
    text-align: center;
    transition: color 0.2s ease;
}

.fw-save-prompt__skip:hover {
    color: #666;
}
