/* =============================================
   NS Wishlist — bykenneth.nl
   ============================================= */

/* ── Hartje op product cards (loop) ── */
.ns-wl-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    backdrop-filter: blur(4px);
}

.ns-wl-btn:hover {
    background: #fff;
    transform: scale(1.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}

.ns-heart-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #333;
    stroke-width: 1.8;
    transition: fill 0.2s, stroke 0.2s;
    pointer-events: none;
}

.ns-wl-btn--active .ns-heart-icon {
    fill: #111;
    stroke: #111;
}

@keyframes nsHeartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.ns-wl-btn--pop { animation: nsHeartPop 0.35s ease; }

/* ── Hartje single product ── */
.ns-wl-btn--single {
    position: relative;
    top: auto; right: auto;
    width: auto; height: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    margin-top: 8px;
    border: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.ns-wl-btn--single:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    border-bottom-color: #111;
}
.ns-wl-btn--single .ns-heart-icon { width: 18px; height: 18px; stroke-width: 1.6; }
.ns-wl-btn__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #333;
}

/* ── Header badge ── */
a.favourites { position: relative; }
.ns-wl-badge {
    position: absolute;
    top: -6px; right: -8px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: #111;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    line-height: 1;
}
.ns-wl-badge--visible { opacity: 1; transform: scale(1); }

/* ── Toast ── */
.ns-wl-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 22px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.22s, transform 0.22s;
    pointer-events: none;
    white-space: nowrap;
}
.ns-wl-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.ns-wl-toast--remove { background: #555; }

/* ── Verlanglijst pagina ── */
#ns-wishlist-page { min-height: 300px; }

/* WooCommerce loop wordt volledig hergebruikt.
   Alleen de wrapper class="woocommerce" zorgt dat alle bestaande
   product card CSS automatisch van toepassing is. */
#ns-wishlist-items ul.products {
    margin-top: 0 !important;
}

/* Loading spinner */
.ns-wl-loading {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}
.ns-wl-loading__spinner {
    width: 28px; height: 28px;
    border: 2px solid #e0e0e0;
    border-top-color: #111;
    border-radius: 50%;
    animation: nsSpinnerSpin 0.7s linear infinite;
}
@keyframes nsSpinnerSpin { to { transform: rotate(360deg); } }

/* Verwijder animatie */
#ns-wishlist-items li.product.ns-wl-item--removing {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    pointer-events: none;
}

/* ── Lege staat ── */
.ns-wl-empty {
    text-align: center;
    padding: 80px 20px;
}
.ns-wl-empty__icon {
    width: 56px; height: 56px;
    fill: none;
    stroke: #ccc;
    stroke-width: 1.2;
    margin-bottom: 20px;
}
.ns-wl-empty h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 10px;
}
.ns-wl-empty p { font-size: 14px; color: #777; margin-bottom: 28px; }
.ns-wl-empty__cta {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
    background: #111;
    padding: 14px 28px;
    text-decoration: none;
    border: 1px solid #111;
    transition: background 0.18s, color 0.18s;
}
.ns-wl-empty__cta:hover { background: #fff; color: #111; }

/* ── Afbeeldingen fix verlanglijst ── */
#ns-wishlist-items ul.products li.product a .imagewrapper {
    height: 400px;
    align-items: stretch;
}

#ns-wishlist-items ul.products li.product a img {
    height: 100% !important;
    object-fit: contain;
    object-position: center;
}
