/* =========================================================
   EVELORA HOUSE
   CART
   ========================================================= */

.cart-page {
    padding: 70px 5% 100px;
}

.cart-container {
    max-width: 1250px;
    margin: 0 auto;
}

.cart-heading {
    margin-bottom: 50px;
}

.cart-heading h1 {
    margin: 8px 0 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(38px, 5vw, 58px);

    font-weight: 400;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.cart-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    gap: 60px;

    align-items: start;
}


/* =========================================================
   CART ITEM
   ========================================================= */

.cart-item {
    display: grid;

    grid-template-columns:
        130px
        1fr
        auto;

    gap: 25px;

    padding: 25px 0;

    border-top: 1px solid #e5e5e5;
}

.cart-item:last-child {
    border-bottom: 1px solid #e5e5e5;
}

.cart-item-image {
    width: 130px;
    height: 160px;

    background: #f5f4f1;

    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cart-item-brand {
    margin: 3px 0 7px;

    color: #888;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.cart-item-name {
    margin: 0 0 12px;

    font-size: 16px;

    font-weight: 400;
}

.cart-item-price {
    font-size: 14px;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.cart-quantity {
    display: flex;

    align-items: center;

    width: 110px;

    height: 38px;

    margin-top: 20px;

    border: 1px solid #ddd;
}

.cart-quantity button {
    width: 34px;

    height: 100%;

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 16px;
}

.cart-quantity span {
    flex: 1;

    text-align: center;

    font-size: 13px;
}


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

.remove-item {
    margin-top: 20px;

    padding: 0;

    border: none;

    background: none;

    color: #777;

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;
}

.remove-item:hover {
    color: #111;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.cart-summary {
    position: sticky;

    top: 30px;

    padding: 30px;

    background: #f7f6f3;
}

.cart-summary h2 {
    margin: 0 0 25px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 26px;

    font-weight: 400;
}

.summary-row {
    display: flex;

    justify-content: space-between;

    padding: 12px 0;

    font-size: 13px;
}

.summary-total {
    margin-top: 10px;

    padding-top: 20px;

    border-top: 1px solid #ddd;

    font-size: 16px;

    font-weight: 600;
}

.checkout-button {
    display: block;

    width: 100%;

    margin-top: 25px;

    padding: 17px;

    border: 1px solid #111;

    background: #111;

    color: #fff;

    text-align: center;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 2px;

    text-decoration: none;

    transition: 0.25s ease;
}

.checkout-button:hover {
    background: transparent;

    color: #111;
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.empty-cart {
    grid-column: 1 / -1;

    padding: 100px 20px;

    text-align: center;

    border-top: 1px solid #e5e5e5;
}

.empty-cart h2 {
    margin-bottom: 15px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;

    font-weight: 400;
}

.empty-cart p {
    margin-bottom: 25px;

    color: #777;
}

.continue-shopping {
    display: inline-block;

    padding: 15px 28px;

    background: #111;

    color: #fff;

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 1.5px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .cart-layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .cart-summary {
        position: static;
    }
}


@media (max-width: 600px) {

    .cart-page {
        padding:
            45px 20px
            70px;
    }

    .cart-item {
        grid-template-columns:
            90px
            1fr;

        gap: 15px;
    }

    .cart-item-image {
        width: 90px;
        height: 115px;
    }

    .cart-item-actions {
        grid-column: 2;
    }

}