.cart-page {
    padding: 26px 0 70px;
}

.cart-page__heading {
    margin: 18px 0 28px;
}

.cart-page__heading h1 {
    margin: 0;

    color: #0f172a;

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
}


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

.shop-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;

    gap: 28px;

    align-items: start;
}


.shop-cart__list {
    min-width: 0;

    display: grid;

    gap: 14px;
}


.shop-cart-item {
    position: relative;

    display: grid;

    grid-template-columns:
        110px
        minmax(150px, 1fr)
        110px
        120px
        110px
        34px;

    gap: 18px;

    align-items: center;

    padding: 14px;

    border: 1px solid #ece5dd;
    border-radius: 16px;

    background: #fff;
}


.shop-cart-item__image {
    width: 110px;
    height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 12px;

    background: #f7f5f2;
}


.shop-cart-item__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


.shop-cart-item__no-image {
    padding: 10px;

    color: #9b9197;

    font-size: 12px;
    text-align: center;
}


.shop-cart-item__title {
    color: #0f172a;

    font-size: 15px;
    font-weight: 800;

    text-decoration: none;
}


.shop-cart-item__title:hover {
    color: var(--brand-orange);
}


.shop-cart-item__article {
    margin-top: 6px;

    color: #948a91;

    font-size: 12px;
}


.shop-cart-item__price {
    display: grid;

    gap: 4px;
}


.shop-cart-item__price strong {
    color: #0f172a;

    font-size: 16px;
}


.shop-cart-item__price span {
    color: #aaa0a7;

    font-size: 12px;

    text-decoration: line-through;
}


.shop-cart-item__count.product-card__quantity {
    align-self: center;
    justify-self: center;
}


.shop-cart-item__cost {
    color: #0f172a;

    font-size: 17px;
    font-weight: 900;
}


.shop-cart-item__remove {
    width: 32px;
    height: 32px;

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    color: #8e858b;

    font-size: 22px;

    background: #f7f5f2;
}


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

.shop-cart-summary {
    position: sticky;
    top: 100px;

    padding: 22px;

    border: 1px solid #ece5dd;
    border-radius: 16px;

    background: #fff;
}


.shop-cart-summary h2 {
    margin: 0 0 20px;

    color: #0f172a;

    font-size: 22px;
}


.shop-cart-summary__row,
.shop-cart-summary__total {
    display: flex;

    justify-content: space-between;

    gap: 16px;
}


.shop-cart-summary__row {
    margin-bottom: 12px;

    color: #6f666c;

    font-size: 14px;
}


.shop-cart-summary__total {
    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #ece5dd;

    color: #0f172a;

    font-size: 19px;
    font-weight: 900;
}


.shop-cart-summary__checkout {
    min-height: 46px;

    margin-top: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #fff;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            var(--brand-orange),
            #f0a02e
        );
}


.shop-cart-summary__continue {
    margin-top: 12px;

    display: block;

    color: #6f666c;

    font-size: 13px;
    text-align: center;

    text-decoration: none;
}


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

.shop-cart-empty {
    padding: 70px 24px;

    border: 1px solid #ece5dd;
    border-radius: 18px;

    text-align: center;

    background: #fff;
}


.shop-cart-empty__title {
    margin-bottom: 10px;

    color: #0f172a;

    font-size: 26px;
    font-weight: 900;
}


.shop-cart-empty p {
    margin: 0 0 24px;

    color: #756b71;
}


.shop-cart-empty a {
    display: inline-flex;

    min-height: 44px;

    padding: 0 22px;

    align-items: center;

    border-radius: 10px;

    color: #fff;
    font-weight: 800;

    text-decoration: none;

    background: var(--brand-orange);
}

.shop-cart-item__change-submit {
    display: none;
}


.shop-cart-item__remove-form {
    margin: 0;
}

.shop-stock-notice {
    margin-bottom: 20px;
    padding: 16px 18px;

    border: 1px solid #f1c56f;
    border-radius: 12px;

    background: #fff8e8;
}


.shop-stock-notice__title {
    margin-bottom: 7px;

    color: #5c4311;

    font-size: 15px;
    font-weight: 850;
}


.shop-stock-notice__text {
    color: #76602e;

    font-size: 13px;
    line-height: 1.6;
}

.shop-cart-item__message {
    grid-column: 1 / -1;

    margin-top: 4px;

    font-size: 12px;
    line-height: 1.4;
}


.shop-cart-item__message.is-error {
    color: #c44335;
}

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

@media (max-width: 1050px) {

    .shop-cart {
        grid-template-columns: 1fr;
    }

    .shop-cart-summary {
        position: static;
    }

}


@media (max-width: 820px) {

    .shop-cart-item {
        grid-template-columns:
            90px
            minmax(0, 1fr);

        gap: 12px;
    }

    .shop-cart-item__image {
        width: 90px;
        height: 80px;

        grid-row: 1 / span 2;
    }

    .shop-cart-item__price,
    .shop-cart-item__count,
    .shop-cart-item__cost {
        grid-column: 2;
    }

    .shop-cart-item__remove {
        position: absolute;

        top: 10px;
        right: 10px;
    }
    
    .shop-cart-item {
        grid-template-columns: 88px minmax(0, 1fr) auto 32px;
        grid-template-areas:
            "image info cost remove"
            "image price price remove"
            "image count count count";

        gap: 8px 10px;
        align-items: start;
    }

    .shop-cart-item__image {
        grid-area: image;

        width: 88px;
        height: 72px;
    }

    .shop-cart-item__info {
        grid-area: info;
        min-width: 0;
    }

    .shop-cart-item__title {
        display: block;
        font-size: 15px;
        line-height: 1.25;
    }

    .shop-cart-item__price {
        grid-area: price;

        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .shop-cart-item__price strong {
        font-size: 15px;
    }

    .shop-cart-item__price span {
        font-size: 12px;
    }

    .shop-cart-item__cost {
        grid-area: cost;

        justify-self: end;
        align-self: start;

        font-size: 18px;
        font-weight: 900;
        line-height: 1;
    }

    .shop-cart-item__count.product-card__quantity {
        grid-area: count;

        justify-self: start;
        align-self: center;

        margin-top: 2px;
    }

    .shop-cart-item__remove {
        grid-area: remove;

        position: static;
        justify-self: end;
        align-self: start;
    }

}