/* =========================================================
   SHREE GANPATI INFOTECH
   PREMIUM WISHLIST PAGE
========================================================= */

.wishlist-page {
    min-height: 70vh;
    padding: 70px 0 100px;
    background: #f8fafb;
}

.wishlist-container {
    width: min(1240px, 92%);
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.wishlist-heading {
    text-align: center;
    margin-bottom: 42px;
}

.wishlist-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;

    color: #df8d28;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.wishlist-eyebrow::before,
.wishlist-eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: #df8d28;
}

.wishlist-heading h1 {
    margin: 0;

    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.wishlist-heading p {
    width: min(560px, 100%);
    margin: 14px auto 0;

    color: #687276;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   GRID
========================================================= */

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}


/* =========================================================
   CARD
========================================================= */

.wishlist-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e7ecee;
    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(18, 60, 69, .04);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.wishlist-card:hover {
    transform: translateY(-7px);
    border-color: #f0c17f;
    box-shadow: 0 20px 45px rgba(18, 60, 69, .11);
}


/* =========================================================
   IMAGE SECTION
========================================================= */

.wishlist-image {
    position: relative;

    width: 100%;
    height: 270px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    /* Slightly darker edges so white products stay visible */
    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #f3f6f6 60%,
            #e9eeee 100%
        );
}


/*
   PRODUCT IMAGE LINK
   Uses its own class so it does NOT affect the remove button.
*/

.wishlist-image-link {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    text-decoration: none;
}

.wishlist-image-link img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 225px;

    object-fit: contain;

    transform: scale(1);

    transition: transform .35s ease;
}

.wishlist-card:hover .wishlist-image-link img {
    transform: scale(1.045);
}


/* =========================================================
   IMAGE BOTTOM LINE
========================================================= */

.wishlist-image::after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 0;

    height: 1px;

    background: #edf0f1;

    pointer-events: none;
}


/* =========================================================
   REMOVE BUTTON (small heart, top-right)
   Selector is intentionally specific so nothing overrides it.
========================================================= */

.wishlist-image .wishlist-remove {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 10;

    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    max-height: 38px;

    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e8edef;
    border-radius: 50%;

    background: rgba(255, 255, 255, .96);

    color: #d95b5b;

    font-size: 14px;
    line-height: 1;

    text-decoration: none;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.wishlist-image .wishlist-remove:hover {
    background: #d95b5b;
    border-color: #d95b5b;
    color: #ffffff;
    transform: rotate(8deg) scale(1.06);
}


/* =========================================================
   CONTENT
========================================================= */

.wishlist-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 20px 21px 21px;
}


/* =========================================================
   CATEGORY
========================================================= */

.wishlist-category {
    margin-bottom: 7px;

    color: #df8d28;

    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* =========================================================
   NAME
========================================================= */

.wishlist-name {
    min-height: 49px;

    margin: 0 0 12px;

    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.wishlist-name a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.wishlist-name a:hover {
    color: #df8d28;
}


/* =========================================================
   PRICE
========================================================= */

.wishlist-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 18px;
}

.wishlist-price .current-price {
    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.wishlist-price .old-price {
    color: #a2aaad;

    font-family: "Inter", sans-serif;
    font-size: 12px;

    text-decoration: line-through;
}


/* =========================================================
   ACTION AREA
========================================================= */

.wishlist-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;

    margin-top: auto;
}


/* =========================================================
   ADD TO CART
========================================================= */

.wishlist-cart-btn {
    min-width: 0;
    height: 45px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;
    border-radius: 10px;

    background: #123c45;

    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.wishlist-cart-btn:hover {
    background: #df8d28;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(223, 141, 40, .22);
}

.wishlist-cart-btn i {
    font-size: 13px;
}

.wishlist-cart-btn:disabled {
    cursor: not-allowed;
    opacity: .85;
    transform: none;
    box-shadow: none;
}

.wishlist-cart-btn.added,
.wishlist-cart-btn.added:hover {
    background: #2e8b57;
    transform: none;
}


/* =========================================================
   TOAST MESSAGE
========================================================= */

.wishlist-toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    z-index: 99999;

    padding: 13px 22px;

    border-radius: 10px;

    background: #123c45;

    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);

    opacity: 0;

    transform: translate(-50%, 20px);

    transition:
        opacity .3s ease,
        transform .3s ease;

    pointer-events: none;
}

.wishlist-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.wishlist-toast.error {
    background: #d95b5b;
}


/* =========================================================
   ADDED TO CART POPUP
========================================================= */

body.cart-popup-lock {
    overflow: hidden;
}

.cart-popup {
    position: fixed;
    inset: 0;

    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.cart-popup.open {
    visibility: visible;
    opacity: 1;
}

.cart-popup-overlay {
    position: absolute;
    inset: 0;

    background: rgba(18, 60, 69, .55);

    backdrop-filter: blur(3px);
}

.cart-popup-box {
    position: relative;

    width: min(420px, 100%);

    padding: 38px 30px 30px;

    text-align: center;

    background: #ffffff;

    border-radius: 22px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, .25);

    transform: translateY(20px) scale(.96);

    transition: transform .3s ease;
}

.cart-popup.open .cart-popup-box {
    transform: translateY(0) scale(1);
}

.cart-popup-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f1f4f4;

    color: #123c45;

    font-size: 14px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.cart-popup-close:hover {
    background: #d95b5b;
    color: #ffffff;
}

.cart-popup-check {
    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e6f5ec;

    color: #2e8b57;

    font-size: 26px;
}

.cart-popup-box h3 {
    margin: 0 0 6px;

    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: 23px;
    font-weight: 800;
}

.cart-popup-message {
    margin: 0 0 20px;

    color: #687276;

    font-family: "Inter", sans-serif;
    font-size: 13px;
}

.cart-popup-product {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 24px;
    padding: 12px;

    text-align: left;

    background: #f8fafb;

    border: 1px solid #e7ecee;
    border-radius: 14px;
}

.cart-popup-product img {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    object-fit: contain;

    background: #ffffff;

    border-radius: 10px;
}

.cart-popup-product span {
    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;

    text-transform: uppercase;
}

.cart-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cart-popup-continue,
.cart-popup-view {
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 10px;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.cart-popup-continue {
    background: #ffffff;

    border: 1px solid #e2e8e9;

    color: #123c45;
}

.cart-popup-continue:hover {
    background: #fff6e9;
    border-color: #f0c17f;
    color: #df8d28;
}

.cart-popup-view {
    border: 0;

    background: #123c45;

    color: #ffffff;
}

.cart-popup-view:hover {
    background: #df8d28;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 400px) {

    .cart-popup-actions {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   VIEW BUTTON
========================================================= */

.wishlist-view-btn {
    width: 46px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e2e8e9;
    border-radius: 10px;

    background: #ffffff;

    color: #123c45;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.wishlist-view-btn:hover {
    background: #fff6e9;
    border-color: #f0c17f;
    color: #df8d28;
    transform: translateY(-2px);
}


/* =========================================================
   EMPTY WISHLIST
========================================================= */

.empty-wishlist {
    width: min(620px, 100%);

    margin: 20px auto 0;

    padding: 65px 35px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e6ebed;
    border-radius: 22px;

    box-shadow: 0 15px 45px rgba(18, 60, 69, .07);
}

.empty-icon {
    width: 76px;
    height: 76px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff4e4;

    color: #df8d28;

    font-size: 27px;
}

.empty-icon i {
    line-height: 1;
}

.empty-wishlist h2 {
    margin: 0 0 10px;

    color: #123c45;

    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
}

.empty-wishlist p {
    max-width: 440px;

    margin: 0 auto 27px;

    color: #687276;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   SHOP NOW
========================================================= */

.shop-now-btn {
    min-height: 47px;

    padding: 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 10px;

    background: #123c45;

    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.shop-now-btn:hover {
    background: #df8d28;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(223, 141, 40, .22);
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .wishlist-grid {
        gap: 28px;
    }

    .wishlist-image {
        height: 285px;
    }

    .wishlist-image-link img {
        max-height: 240px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .wishlist-page {
        padding: 55px 0 80px;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .wishlist-image {
        height: 270px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .wishlist-page {
        padding: 42px 0 65px;
    }

    .wishlist-container {
        width: 92%;
    }

    .wishlist-heading {
        margin-bottom: 30px;
    }

    .wishlist-heading h1 {
        font-size: 32px;
    }

    .wishlist-heading p {
        font-size: 13px;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wishlist-card {
        border-radius: 17px;
    }

    .wishlist-image {
        height: 290px;
    }

    .wishlist-image-link img {
        max-height: 245px;
    }

    .wishlist-content {
        padding: 19px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .wishlist-page {
        padding-top: 35px;
    }

    .wishlist-container {
        width: 94%;
    }

    .wishlist-heading h1 {
        font-size: 29px;
    }

    .wishlist-eyebrow {
        font-size: 10px;
    }

    .wishlist-eyebrow::before,
    .wishlist-eyebrow::after {
        width: 20px;
    }

    .wishlist-image {
        height: 250px;
    }

    .wishlist-image-link img {
        max-height: 215px;
    }

    .wishlist-content {
        padding: 17px;
    }

    .wishlist-name {
        font-size: 16px;
    }

    .wishlist-cart-btn {
        font-size: 11px;
    }

    .empty-wishlist {
        padding: 48px 20px;
    }

}