/* =========================================================
   VARKA WISHLIST
   Ultra Premium Editorial E-Commerce Experience
========================================================= */

/* =========================================================
   PAGE
========================================================= */

.wishlist-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 8%,
            rgba(201, 164, 92, .09),
            transparent 24%
        ),
        radial-gradient(
            circle at 92% 28%,
            rgba(126, 24, 36, .055),
            transparent 27%
        ),
        var(--ivory, #fffdf9);
    color: var(--dark, #242438);
    min-height: 70vh;
}

/* =========================================================
   HERO
========================================================= */

.wishlist-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(126, 24, 36, .08);
    background:
        linear-gradient(
            115deg,
            #fffdf8 0%,
            #fff9f2 48%,
            #f8eee5 100%
        );
}

.wishlist-hero::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    left: -390px;
    top: -350px;
    border: 1px solid rgba(201, 164, 92, .16);
    border-radius: 50%;
}

.wishlist-hero::after {
    content: "";
    position: absolute;
    width: 570px;
    height: 570px;
    right: -310px;
    bottom: -330px;
    border: 1px solid rgba(126, 24, 36, .10);
    border-radius: 50%;
}

/* =========================================================
   HERO ORBS
========================================================= */

.wishlist-hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(.2px);
}

.wishlist-hero-orb-one {
    width: 310px;
    height: 310px;
    right: 13%;
    top: -185px;
    border: 1px solid rgba(201, 164, 92, .16);
}

.wishlist-hero-orb-two {
    width: 190px;
    height: 190px;
    left: 7%;
    bottom: -120px;
    border: 1px solid rgba(126, 24, 36, .09);
}

/* =========================================================
   HERO INNER
========================================================= */

.wishlist-hero-inner {
    position: relative;
    z-index: 2;
    width: min(
        var(--container-width, 1200px),
        calc(100% - var(--container-padding, 48px))
    );
    min-height: 390px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    align-items: center;
    gap: 70px;
}

/* =========================================================
   HERO COPY
========================================================= */

.wishlist-hero-copy {
    max-width: 760px;
}

.wishlist-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--gold, #c9a45c);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.wishlist-kicker::before {
    content: "";
    width: 38px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold, #c9a45c)
        );
}

.wishlist-kicker::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--gold, #c9a45c);
}

.wishlist-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--deep-burgundy, #701421);
    font-family: var(--auth-serif, "Playfair Display", Georgia, serif);
    font-size: clamp(42px, 5.5vw, 84px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.04em;
}

.wishlist-hero h1 em {
    display: block;
    margin-top: 9px;
    color: var(--burgundy, #701421);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.03em;
}

.wishlist-hero-copy p {
    max-width: 570px;
    margin: 24px 0 0;
    color: var(--muted, #756862);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   HERO ART
========================================================= */

.wishlist-hero-art {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-art-circle {
    position: relative;
    width: min(340px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 164, 92, .36);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 40% 32%,
            rgba(255, 255, 255, .98),
            rgba(255, 248, 238, .85) 47%,
            rgba(242, 226, 212, .58) 100%
        );
    box-shadow:
        0 35px 90px rgba(76, 38, 24, .10),
        inset 0 0 0 18px rgba(255, 255, 255, .28);
    transform: rotate(-4deg);
}

.wishlist-art-circle::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(201, 164, 92, .22);
    border-radius: 50%;
}

.wishlist-art-circle::after {
    content: "";
    position: absolute;
    inset: 40px;
    border: 1px dashed rgba(126, 24, 36, .10);
    border-radius: 50%;
}

.wishlist-art-heart {
    position: relative;
    z-index: 3;
    display: block;
    color: var(--burgundy, #701421);
    font-family: Georgia, serif;
    font-size: 100px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 14px 35px rgba(126, 24, 36, .12);
}

.wishlist-art-label {
    position: absolute;
    right: 8%;
    bottom: 11%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-width: 125px;
    padding: 12px 16px;
    border: 1px solid rgba(126, 24, 36, .12);
    border-radius: 14px;
    background: rgba(255, 253, 248, .88);
    color: var(--deep-burgundy, #701421);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .24em;
    box-shadow: 0 18px 40px rgba(55, 29, 19, .10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.wishlist-art-label small {
    margin-top: 4px;
    color: var(--gold, #c9a45c);
    font-size: 7px;
    letter-spacing: .2em;
}

/* =========================================================
   SAVED LIST
========================================================= */

.wishlist-list-section {
    width: min(
        var(--container-width, 1200px),
        calc(100% - var(--container-padding, 48px))
    );
    margin: 0 auto;
    padding: 60px 0 90px;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.wishlist-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.wishlist-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--gold, #c9a45c);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.wishlist-section-heading h2 {
    margin: 0;
    color: var(--deep-burgundy, #701421);
    font-family: var(--auth-serif, "Playfair Display", Georgia, serif);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.1;
}

.wishlist-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--varka-border, rgba(201, 164, 92, 0.22));
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: var(--muted, #756862);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(60, 30, 20, .045);
}

.wishlist-count-pill span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--burgundy, #701421);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

/* =========================================================
   PRODUCT GRID
========================================================= */

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

/* =========================================================
   PRODUCT CARD
========================================================= */

.wishlist-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--varka-border, rgba(201, 164, 92, 0.22));
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(55, 27, 18, .04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.wishlist-card:hover {
    transform: translateY(-6px);
    border-color: rgba(126, 24, 36, .22);
    box-shadow: 0 20px 45px rgba(55, 27, 18, .09);
}

/* =========================================================
   IMAGE
========================================================= */

.wishlist-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #fffaf4, #f3e6dc);
}

.wishlist-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.wishlist-card:hover .wishlist-card-image img {
    transform: scale(1.05);
}

/* =========================================================
   SAVED BADGE
========================================================= */

.wishlist-favourite-badge {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    width: auto;
    height: 26px;
    max-height: 26px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: rgba(255, 253, 248, .92);
    color: var(--burgundy, #701421);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(45, 20, 15, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.wishlist-favourite-badge span {
    font-size: 11px;
    line-height: 1;
}

/* =========================================================
   CARD BODY
========================================================= */

.wishlist-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wishlist-card-meta {
    margin-bottom: 6px;
    color: var(--gold, #c9a45c);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.wishlist-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.wishlist-card-title-row h3 {
    min-width: 0;
    margin: 0;
    color: var(--deep-burgundy, #701421);
    font-family: var(--auth-serif, "Playfair Display", Georgia, serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.wishlist-card-title-row h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wishlist-card-title-row h3 a:hover {
    color: var(--burgundy, #701421);
}

/* =========================================================
   REMOVE BUTTON
========================================================= */

.wishlist-remove-button {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--varka-border, rgba(201, 164, 92, 0.22));
    border-radius: 50%;
    background: #fff8f5;
    color: var(--burgundy, #701421);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-remove-button:hover {
    transform: scale(1.1);
    border-color: var(--burgundy, #701421);
    background: var(--burgundy, #701421);
    color: #ffffff;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.wishlist-card-description {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--muted, #756862);
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =========================================================
   CARD FOOTER
========================================================= */

.wishlist-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(201, 164, 92, 0.15);
}

.wishlist-card-price {
    color: var(--burgundy, #701421);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.wishlist-view-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--burgundy, #701421);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wishlist-view-button:hover {
    background: #8b1c2b;
    transform: translateY(-1px);
}

/* =========================================================
   EMPTY WISHLIST (CLEAN VERTICAL STACK FIX)
========================================================= */

.wishlist-empty {
    position: relative;
    width: min(
        var(--container-width, 1200px),
        calc(100% - var(--container-padding, 48px))
    );
    min-height: 480px;
    margin: 45px auto 80px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden;
    border: 1px solid var(--varka-border, rgba(201, 164, 92, 0.22));
    border-radius: 28px;
    padding: 50px 24px !important;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(201, 164, 92, .075),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #fffdf9,
            #fff8f1
        );
    box-shadow: 0 20px 60px rgba(57, 29, 20, .05);
}

.wishlist-empty::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -320px;
    left: -300px;
    border: 1px solid rgba(201, 164, 92, .12);
    border-radius: 50%;
    pointer-events: none;
}

.wishlist-empty::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -280px;
    bottom: -300px;
    border: 1px solid rgba(126, 24, 36, .08);
    border-radius: 50%;
    pointer-events: none;
}

/* Empty Symbol */
.wishlist-empty-symbol {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(201, 164, 92, .32);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            #fffdf9,
            #f9ede3
        );
    box-shadow: 0 15px 35px rgba(70, 35, 22, .08);
}

.wishlist-empty-symbol span {
    color: var(--burgundy, #701421);
    font-size: 34px;
    line-height: 1;
}

/* Empty Typography */
.wishlist-empty-kicker {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 10px;
    color: var(--gold, #c9a45c);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.wishlist-empty h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--deep-burgundy, #701421);
    font-family: var(--auth-serif, "Playfair Display", Georgia, serif);
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.wishlist-empty h2 em {
    display: inline;
    color: var(--burgundy, #701421);
    font-style: italic;
    font-weight: 500;
}

.wishlist-empty p {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 16px auto 0;
    color: var(--muted, #756862);
    font-size: 14px;
    line-height: 1.7;
}

/* Empty Actions */
.wishlist-empty-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    width: 100%;
}

.wishlist-primary-button,
.wishlist-secondary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.wishlist-primary-button {
    background: var(--burgundy, #701421);
    color: #ffffff;
    border: 1px solid var(--burgundy, #701421);
    box-shadow: 0 10px 25px rgba(126, 24, 36, .18);
}

.wishlist-primary-button:hover {
    background: #8b1c2b;
    border-color: #8b1c2b;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(126, 24, 36, .24);
}

.wishlist-secondary-button {
    border: 1px solid var(--varka-border, rgba(201, 164, 92, 0.22));
    background: rgba(255, 255, 255, .85);
    color: var(--dark, #242438);
}

.wishlist-secondary-button:hover {
    border-color: rgba(126, 24, 36, .25);
    background: #ffffff;
    color: var(--burgundy, #701421);
    transform: translateY(-2px);
}

/* =========================================================
   WISHLIST PROMISE BAR
========================================================= */

.wishlist-promise {
    width: 100%;
    padding: 38px 0;
    background: rgba(255, 253, 248, 0.92);
    border-top: 1px solid var(--varka-border, rgba(201, 164, 92, 0.22));
    border-bottom: 1px solid var(--varka-border, rgba(201, 164, 92, 0.22));
}

.wishlist-promise-inner {
    width: min(
        var(--container-width, 1200px),
        calc(100% - var(--container-padding, 48px))
    );
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 24px;
}

.wishlist-promise-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.wishlist-promise-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 164, 92, 0.32);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255,255,255,.95),
            rgba(250,243,234,.92)
        );
    color: var(--burgundy, #701421);
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(61, 29, 30, 0.04);
}

.wishlist-promise-item > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wishlist-promise-item strong {
    display: block;
    color: var(--burgundy, #701421);
    font-size: 14px;
    font-weight: 700;
}

.wishlist-promise-item span {
    display: block;
    color: var(--varka-text-soft, #665d59);
    font-size: 12px;
}

/* Removal Animation */
.wishlist-card-removing {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

/* =========================================================
   RESPONSIVE OVERRIDES
========================================================= */

@media (max-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .wishlist-hero-inner {
        grid-template-columns: 1fr 300px;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .wishlist-hero {
        min-height: auto;
        padding: 50px 0 40px;
    }

    .wishlist-hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .wishlist-hero-copy {
        margin-inline: auto;
    }

    .wishlist-kicker {
        justify-content: center;
    }

    .wishlist-hero-copy p {
        margin-inline: auto;
    }

    .wishlist-hero-art {
        display: none;
    }

    .wishlist-list-section {
        padding: 40px 0 60px;
    }

    .wishlist-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .wishlist-promise-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .wishlist-page {
        padding-bottom: 20px;
    }

    .wishlist-hero h1 {
        font-size: 34px;
    }

    .wishlist-hero-copy p {
        font-size: 13px;
    }

    .wishlist-empty {
        min-height: auto;
        margin: 30px auto 60px;
        padding: 40px 18px !important;
        border-radius: 20px;
    }

    .wishlist-empty-symbol {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .wishlist-empty-symbol span {
        font-size: 26px;
    }

    .wishlist-empty h2 {
        font-size: 26px;
    }

    .wishlist-empty p {
        font-size: 13px;
        margin-top: 12px;
    }

    .wishlist-empty-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .wishlist-primary-button,
    .wishlist-secondary-button {
        width: 100%;
        min-height: 44px;
    }

    .wishlist-card {
        border-radius: 14px;
    }

    .wishlist-card-body {
        padding: 12px 10px;
    }

    .wishlist-card-title-row h3 {
        font-size: 14px;
    }

    .wishlist-card-description {
        display: none;
    }

    .wishlist-card-price {
        font-size: 14px;
    }

    .wishlist-view-button {
        padding: 0 10px;
        font-size: 10.5px;
    }

    .wishlist-promise-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}