:root {
    --ns-wishlist-bg: #f4f7f2;
    --ns-wishlist-surface: #ffffff;
    --ns-wishlist-surface-2: rgba(255, 255, 255, .72);
    --ns-wishlist-text: #111827;
    --ns-wishlist-muted: #64748b;
    --ns-wishlist-green: #214f36;
    --ns-wishlist-green-2: #2d6a4f;
    --ns-wishlist-line: rgba(17, 24, 39, .10);
    --ns-wishlist-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.ns-wishlist-toggle,
.ns-product-action-btn.wishlist {
    appearance: none;
    border: 1px solid rgba(33, 79, 54, .14);
    background: rgba(255, 255, 255, .92);
    color: var(--ns-wishlist-green);
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.ns-wishlist-toggle:hover,
.ns-product-action-btn.wishlist:hover {
    transform: translateY(-1px);
    border-color: rgba(33, 79, 54, .35);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

.ns-wishlist-toggle.in-wishlist,
.ns-product-action-btn.wishlist.in-wishlist {
    border-color: transparent;
    background: linear-gradient(135deg, #00a046, #21c063);
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 160, 70, .22);
}

.ns-wishlist-toggle.is-loading,
.remove_all_wishlist.is-loading {
    pointer-events: none;
    opacity: .65;
}

.ns-wishlist-icon {
    font-size: 21px;
    line-height: 1;
}

.ns-wishlist-text {
    display: none;
    font-size: 13px;
    font-weight: 800;
}

.wishlist-counter {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffcc00;
    color: #101820;
    font-size: 12px;
    font-weight: 950;
}

.ns-wishlist-page {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
    color: var(--ns-wishlist-text);
}

.ns-wishlist-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: stretch;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--ns-wishlist-line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 10%, rgba(45, 106, 79, .20), transparent 34%),
        linear-gradient(135deg, rgba(244, 247, 242, .98), rgba(255, 255, 255, .94));
    box-shadow: var(--ns-wishlist-shadow);
}

.ns-wishlist-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(33, 79, 54, .10);
    pointer-events: none;
}

.ns-wishlist-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(33, 79, 54, .10);
    color: var(--ns-wishlist-green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ns-wishlist-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .95;
    letter-spacing: -.05em;
}

.ns-wishlist-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--ns-wishlist-muted);
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.65;
}

.ns-wishlist-hero-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 170px;
    padding: 22px;
    border-radius: 24px;
    background: var(--ns-wishlist-surface-2);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
    backdrop-filter: blur(12px);
}

.ns-wishlist-hero-card strong {
    width: fit-content;
    height: auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    color: var(--ns-wishlist-green);
    font-size: clamp(42px, 6vw, 72px);
    line-height: .9;
    letter-spacing: -.06em;
}

.ns-wishlist-hero-card span {
    margin-top: 10px;
    color: var(--ns-wishlist-muted);
    font-size: 14px;
    font-weight: 800;
}

.ns-wishlist-actions {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0;
    padding: 12px;
    border: 1px solid var(--ns-wishlist-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    backdrop-filter: blur(14px);
}

.ns-wishlist-categories {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ns-wishlist-categories button,
.ns-wishlist-clear {
    appearance: none;
    border: 1px solid rgba(33, 79, 54, .14);
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 15px;
    background: #fff;
    color: var(--ns-wishlist-green);
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.ns-wishlist-categories button:hover,
.ns-wishlist-categories button.active {
    background: var(--ns-wishlist-green);
    color: #fff;
    border-color: var(--ns-wishlist-green);
}

.ns-wishlist-categories span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 7px;
    border-radius: 999px;
    background: rgba(33, 79, 54, .10);
    font-size: 12px;
}

.ns-wishlist-categories button.active span,
.ns-wishlist-categories button:hover span {
    background: rgba(255, 255, 255, .18);
}

.ns-wishlist-clear {
    flex: 0 0 auto;
    color: #9f1239;
    border-color: rgba(159, 18, 57, .18);
    background: #fff5f7;
}

.ns-wishlist-clear:hover {
    color: #fff;
    background: #9f1239;
    border-color: #9f1239;
    transform: translateY(-1px);
}

.ns-wishlist-slider-wrap {
    position: relative;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--ns-wishlist-line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(244,247,242,.78));
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.ns-wishlist-swiper {
    width: 100%;
    overflow: visible;
}

.ns-wishlist-slider-list {
    align-items: stretch;
}

.ns-wishlist-slide {
    height: auto;
    min-width: 0;
    transition: opacity .18s ease, transform .18s ease;
}

.ns-wishlist-slide > * {
    height: 100%;
}

.ns-wishlist-slide.is-removing {
    opacity: 0;
    transform: scale(.96);
}

.ns-wishlist-slide[hidden] {
    display: none !important;
}

.ns-wishlist-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.ns-wishlist-slider-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(33, 79, 54, .16);
    background: #fff;
    color: var(--ns-wishlist-green);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    transition: transform .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

.ns-wishlist-slider-btn:hover {
    transform: translateY(-1px);
    background: var(--ns-wishlist-green);
    color: #fff;
}

.ns-wishlist-slider-btn.swiper-button-disabled {
    opacity: .35;
    cursor: default;
    transform: none;
}

.ns-wishlist-slider-pagination {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 90px;
}

.ns-wishlist-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: .28;
    background: var(--ns-wishlist-green);
}

.ns-wishlist-slider-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 22px;
    border-radius: 999px;
}

/* Fallback if Swiper JS does not load */
.no-js .ns-wishlist-slider-list,
.ns-wishlist-slider-list:not(.swiper-wrapper) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ns-wishlist-empty {
    display: grid;
    place-items: center;
    text-align: center;
    margin: 28px auto 0;
    padding: clamp(34px, 6vw, 72px) 24px;
    border: 1px dashed rgba(33, 79, 54, .28);
    border-radius: 30px;
    background: linear-gradient(135deg, #fff, rgba(244, 247, 242, .88));
}

.ns-wishlist-empty[hidden],
.ns-wishlist-slider-wrap[hidden],
.ns-wishlist-actions[hidden] {
    display: none !important;
}

.ns-wishlist-empty__icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(33, 79, 54, .10);
    color: var(--ns-wishlist-green);
    font-size: 44px;
}

.ns-wishlist-empty h2 {
    margin: 0;
    font-size: clamp(25px, 4vw, 42px);
    letter-spacing: -.04em;
}

.ns-wishlist-empty p {
    max-width: 580px;
    margin: 13px auto 22px;
    color: var(--ns-wishlist-muted);
    font-size: 16px;
    line-height: 1.65;
}

.ns-wishlist-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--ns-wishlist-green);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(33, 79, 54, .20);
}

.ns-wishlist-empty__btn:hover {
    color: #fff;
    background: var(--ns-wishlist-green-2);
}

@media (max-width: 1180px) {
    .ns-wishlist-slider-wrap { padding: 16px; }
}

@media (max-width: 860px) {
    .ns-wishlist-page {
        width: min(100% - 20px, 720px);
        padding-top: 18px;
    }
    .ns-wishlist-hero {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }
    .ns-wishlist-hero-card {
        min-height: 120px;
    }
    .ns-wishlist-actions {
        position: relative;
        top: auto;
        align-items: stretch;
        flex-direction: column;
        border-radius: 20px;
    }
    .ns-wishlist-category-wrap {
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .ns-wishlist-categories {
        flex-wrap: nowrap;
        min-width: max-content;
    }
    .ns-wishlist-clear {
        width: 100%;
    }
    .ns-wishlist-slider-wrap { border-radius: 24px; padding: 14px; }
}

@media (max-width: 560px) {
    .ns-wishlist-page { width: calc(100% - 16px); }
    .ns-wishlist-hero { padding: 22px; }
    .ns-wishlist-slider-nav { gap: 10px; }
    .ns-wishlist-slider-btn { width: 42px; height: 42px; font-size: 26px; }
    .ns-wishlist-toggle,
    .ns-product-action-btn.wishlist { min-width: 40px; height: 40px; }
}



/* === Wishlist SVG button hardening: same heart everywhere, never stretched === */
.ns-wishlist-toggle,
.ns-product-action-btn.wishlist,
button.ns-wishlist-toggle,
button.ns-product-action-btn.wishlist {
    box-sizing: border-box !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    flex: 0 0 42px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.ns-wishlist-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
}

.ns-wishlist-svg,
.ns-wishlist-icon svg,
.ns-wishlist-toggle svg,
.ns-product-action-btn.wishlist svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px !important;
    overflow: visible !important;
}

.ns-wishlist-svg path,
.ns-wishlist-icon svg path,
.ns-wishlist-toggle svg path,
.ns-product-action-btn.wishlist svg path {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linejoin: round;
    transition: fill .18s ease, stroke .18s ease;
}

.ns-wishlist-toggle.in-wishlist .ns-wishlist-svg path,
.ns-product-action-btn.wishlist.in-wishlist .ns-wishlist-svg path,
.ns-wishlist-toggle.in-wishlist svg path,
.ns-product-action-btn.wishlist.in-wishlist svg path {
    fill: currentColor;
    stroke: currentColor;
}

.ns-product-single-wishlist {
    display: flex;
    align-items: center;
    gap: 12px;
    /* margin-top: 14px; */
}

.ns-product-single-wishlist .ns-wishlist-toggle,
.ns-product-single-wishlist .ns-product-action-btn.wishlist {
    /* width: auto !important; */
    /* max-width: none !important; */
    /* min-width: 100% !important; */
    /* flex: 1 1 auto !important; */
    /* height: 52px !important; */
    /* max-height: 52px !important; */
    /* min-height: 52px !important; */
    /* padding: 0 18px !important; */
    /* border-radius: 18px !important; */
    /* gap: 10px !important; */
}

.ns-product-single-wishlist .ns-wishlist-text {
    display: inline-flex !important;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 560px) {
    .ns-wishlist-toggle,
    .ns-product-action-btn.wishlist,
    button.ns-wishlist-toggle,
    button.ns-product-action-btn.wishlist {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        flex-basis: 40px !important;
    }

    .ns-product-single-wishlist .ns-wishlist-toggle,
    .ns-product-single-wishlist .ns-product-action-btn.wishlist {
        width: auto !important;
        min-width: 100% !important;
        max-width: none !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        flex-basis: auto !important;
    }
}
