/* ============================================================
   A1 CASH & CARRY
   WISHLIST PAGE
============================================================ */


/* ============================================================
   MAIN PAGE
============================================================ */

.wishlist-page {

    min-height: 70vh;

    background: var(--background);

    padding:
        30px 0 70px;
}


.wishlist-container {

    width:
        min(1400px, 94%);

    margin:
        auto;
}


/* ============================================================
   BREADCRUMB
============================================================ */

.wishlist-breadcrumb {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 12px;

    margin-bottom: 30px;

    color:
        var(--text-light);
}


.wishlist-breadcrumb a {

    color:
        var(--primary);

    display: flex;

    align-items: center;

    gap: 6px;

    font-weight: 500;
}


.wishlist-breadcrumb a:hover {

    text-decoration: underline;
}


.wishlist-breadcrumb > i {

    font-size: 9px;

    color:
        #98a2b3;
}


/* ============================================================
   PAGE HEADER
============================================================ */

.wishlist-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 30px;
}


.wishlist-label {

    color:
        var(--primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.wishlist-header h1 {

    font-size: 32px;

    margin-top: 4px;

    color:
        var(--text);
}


.wishlist-header p {

    color:
        var(--text-light);

    font-size: 13px;

    margin-top: 5px;
}


/* ============================================================
   WISHLIST COUNT
============================================================ */

.wishlist-count-box {

    min-width: 180px;

    padding:
        15px 20px;

    border-radius: 12px;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    display: flex;

    align-items: center;

    gap: 12px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .05);
}


.wishlist-count-box > i {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        #fff0f0;

    color:
        #e53935;

    font-size: 18px;
}


.wishlist-count-box strong {

    display: block;

    font-size: 20px;

    color:
        var(--text);
}


.wishlist-count-box span {

    display: block;

    font-size: 10px;

    color:
        var(--text-light);
}


/* ============================================================
   WISHLIST GRID
============================================================ */

.wishlist-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


/* ============================================================
   WISHLIST PRODUCT CARD
============================================================ */

.wishlist-product-card {

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    position: relative;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.wishlist-product-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .12);
}


/* ============================================================
   IMAGE
============================================================ */

.wishlist-product-image {

    height: 230px;

    background:
        #f7f8f7;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


.wishlist-product-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 18px;

    transition:
        transform .4s ease;
}


.wishlist-product-card:hover
.wishlist-product-image img {

    transform:
        scale(1.06);
}


/* ============================================================
   REMOVE HEART
============================================================ */

.wishlist-remove-btn {

    position: absolute;

    top: 12px;

    right: 12px;

    z-index: 10;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        #ffffff;

    color:
        #e53935;

    border:
        1px solid #eeeeee;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .12);

    cursor: pointer;

    transition:
        .25s ease;
}


.wishlist-remove-btn:hover {

    background:
        #e53935;

    color:
        #ffffff;

    transform:
        scale(1.1);
}


/* ============================================================
   PRODUCT INFO
============================================================ */

.wishlist-product-info {

    padding: 16px;
}


.wishlist-brand {

    font-size: 11px;

    color:
        var(--primary);

    font-weight: 600;
}


.wishlist-product-name {

    font-size: 15px;

    line-height: 1.4;

    min-height: 43px;

    margin-top: 4px;

    color:
        var(--text);
}


.wishlist-product-type {

    font-size: 11px;

    color:
        var(--text-light);

    margin-top: 5px;
}


/* ============================================================
   PRICE
============================================================ */

.wishlist-price {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    flex-wrap: wrap;
}


.wishlist-price strong {

    font-size: 18px;

    color:
        var(--text);
}


.wishlist-price del {

    font-size: 11px;

    color:
        #98a2b3;
}


.wishlist-discount {

    font-size: 10px;

    font-weight: 700;

    color:
        #07862a;
}


/* ============================================================
   ACTION BUTTONS
============================================================ */

.wishlist-actions {

    display: grid;

    grid-template-columns:
        1fr 1.35fr;

    gap: 8px;

    margin-top: 15px;
}


.wishlist-view-btn,
.wishlist-cart-btn {

    height: 38px;

    border-radius: 7px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    font-size: 11px;

    font-weight: 600;

    transition:
        .25s ease;
}


/* View */

.wishlist-view-btn {

    background:
        #f0f6f1;

    color:
        var(--primary);
}


.wishlist-view-btn:hover {

    background:
        #dff0e2;
}


/* Cart */

.wishlist-cart-btn {

    background:
        var(--primary);

    color:
        #ffffff;
}


.wishlist-cart-btn:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-1px);
}


/* ============================================================
   EMPTY WISHLIST
============================================================ */

.wishlist-empty {

    text-align: center;

    padding:
        80px 20px;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius: 15px;
}


.wishlist-empty-icon {

    width: 90px;

    height: 90px;

    margin:
        0 auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        #fff0f0;

    color:
        #e53935;

    font-size: 38px;
}


.wishlist-empty h2 {

    font-size: 24px;

    color:
        var(--text);

    margin-bottom: 7px;
}


.wishlist-empty p {

    font-size: 13px;

    color:
        var(--text-light);

    margin-bottom: 22px;
}


/* ============================================================
   SHOP BUTTON
============================================================ */

.wishlist-shop-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        12px 22px;

    border-radius: 8px;

    background:
        var(--primary);

    color:
        #ffffff;

    font-size: 13px;

    font-weight: 600;

    transition:
        .25s ease;
}


.wishlist-shop-btn:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-2px);
}


/* ============================================================
   DARK MODE
============================================================ */

body.dark-mode .wishlist-page {

    background:
        #07111f;
}


body.dark-mode .wishlist-header h1 {

    color:
        #ffffff;
}


body.dark-mode .wishlist-header p {

    color:
        #9fb5ca;
}


body.dark-mode .wishlist-count-box {

    background:
        #0d1b2a;

    border-color:
        #203a56;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .3);
}


body.dark-mode .wishlist-count-box strong {

    color:
        #ffffff;
}


body.dark-mode .wishlist-count-box span {

    color:
        #9fb5ca;
}


body.dark-mode .wishlist-count-box > i {

    background:
        #102a45;

    color:
        #ff5c5c;
}


/* Product cards */

body.dark-mode .wishlist-product-card {

    background:
        #0d1b2a;

    border-color:
        #203a56;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .3);
}


body.dark-mode .wishlist-product-image {

    background:
        #091522;
}


body.dark-mode .wishlist-product-name {

    color:
        #ffffff;
}


body.dark-mode .wishlist-product-type {

    color:
        #9fb5ca;
}


body.dark-mode .wishlist-price strong {

    color:
        #ffffff;
}


body.dark-mode .wishlist-remove-btn {

    background:
        #11243a;

    color:
        #ff5c5c;

    border-color:
        #29445e;
}


body.dark-mode .wishlist-remove-btn:hover {

    background:
        #e53935;

    color:
        #ffffff;
}


body.dark-mode .wishlist-view-btn {

    background:
        #102a45;

    color:
        #64b5f6;
}


body.dark-mode .wishlist-view-btn:hover {

    background:
        #153957;
}


body.dark-mode .wishlist-empty {

    background:
        #0d1b2a;

    border-color:
        #203a56;
}


body.dark-mode .wishlist-empty h2 {

    color:
        #ffffff;
}


body.dark-mode .wishlist-empty p {

    color:
        #9fb5ca;
}


body.dark-mode .wishlist-empty-icon {

    background:
        #102a45;

    color:
        #ff5c5c;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1200px) {

    .wishlist-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }
}


@media (max-width: 768px) {

    .wishlist-page {

        padding:
            20px 0 50px;
    }


    .wishlist-header {

        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .wishlist-count-box {

        width: 100%;

        max-width: 220px;
    }


    .wishlist-header h1 {

        font-size: 26px;
    }


    .wishlist-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;
    }


    .wishlist-product-image {

        height: 200px;
    }
}


@media (max-width: 480px) {

    .wishlist-grid {

        grid-template-columns:
            1fr;
    }


    .wishlist-product-image {

        height: 240px;
    }


    .wishlist-header h1 {

        font-size: 24px;
    }


    .wishlist-empty {

        padding:
            60px 15px;
    }
}