.cart-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 0 20px 80px;
    background: #fff;
}
.cart-page__bg {
    position: absolute;
    inset: 0;
    background-image: image-set(
        url('../image/backgrounds/bg-wood-texture.webp') type('image/webp'),
        url('../image/backgrounds/bg-wood-texture.png') type('image/png')
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.cart-page__container {
    position: relative;
    z-index: 1;
    padding-top: 160px;
}
.cart-page__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    color: #6f625a;
    font-size: 14px;
}
.cart-page__breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #b7aaa2;
}
.cart-page__breadcrumbs a:hover {
    color: #e25305;
}
.cart-page__breadcrumbs li:last-child span {
    color: #211812;
}
.cart-page__title {
    margin: 0 0 42px;
    font-size: 39px;
    line-height: 1.25;
    font-weight: 700;
}
.cart-page__alert {
    margin: 0 0 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(116, 41, 0, .1);
    font-size: 16px;
    line-height: 1.45;
}
.cart-page__alert a {
    color: #e25305;
    font-weight: 600;
}
.cart-page__alert--success {
    border: 1px solid rgba(66, 166, 0, .25);
}
.cart-page__alert--info {
    border: 1px solid rgba(226, 83, 5, .22);
}
.cart-page__alert--error {
    border: 1px solid rgba(166, 0, 0, .25);
    color: #8d1400;
}
.cart-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}
.cart-page__items {
    display: grid;
    gap: 18px;
}
.cart-page__item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 130px 180px 82px;
    gap: 22px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(186, 186, 186, .7);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(116, 41, 0, .1);
}
.cart-page__image {
    width: 120px;
    aspect-ratio: 1;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #d9d9d9;
}
.cart-page__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-page__product {
    min-width: 0;
}
.cart-page__product-title {
    display: inline-block;
    color: #252525;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}
.cart-page__product-title:hover {
    color: #e25305;
}
.cart-page__stock {
    margin-left: 5px;
    color: #a60000;
    font-weight: 700;
}
.cart-page__options {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    color: #6f625a;
    font-size: 10px;
    line-height: 1.35;
}
.cart-page__options div {
    display: flex;
    gap: 5px;
}
.cart-page__options dt,
.cart-page__options dd {
    margin: 0;
}
.cart-page__meta {
    margin: 8px 0 0;
    color: #6f625a;
    font-size: 14px;
}
.cart-page__quantity.product__quantity {
    height: 40px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.cart-page__quantity button {
    height: 100%;
    border: 0;
    background: transparent;
    color: #252525;
    font-size: 22px;
    cursor: pointer;
}
.cart-page__quantity input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    text-align: center;
    color: #252525;
    font-size: 18px;
    background: transparent;
}
.cart-page__prices {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.cart-page__price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6f625a;
    font-size: 14px;
    line-height: 1.35;
}
.cart-page__price-row strong {
    color: #252525;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.cart-page__price-row--total strong {
    color: #e25305;
    font-size: 18px;
}
.cart-page__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.cart-page__icon-button {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7f1ec;
    color: #e25305;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cart-page__icon-button:hover {
    transform: translateY(-2px);
    background: #e25305;
    color: #fff;
}
.cart-page__icon-button::before,
.cart-page__icon-button::after {
    content: '';
    position: absolute;
    display: block;
}
.cart-page__icon-button--update::before {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}
.cart-page__icon-button--update::after {
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(6px, -7px) rotate(23deg);
}
.cart-page__icon-button--remove::before,
.cart-page__icon-button--remove::after {
    width: 16px;
    height: 2px;
    border-radius: 4px;
    background: currentColor;
}
.cart-page__icon-button--remove::before {
    transform: rotate(45deg);
}
.cart-page__icon-button--remove::after {
    transform: rotate(-45deg);
}
.cart-page__summary {
    position: sticky;
    top: 24px;
    padding: 26px;
    border: 1px solid rgba(186, 186, 186, .7);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(116, 41, 0, .14);
}
.cart-page__summary-title {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}
.cart-page__totals {
    display: grid;
    gap: 13px;
    margin: 0 0 24px;
}
.cart-page__total-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #ece2db;
    font-size: 16px;
    line-height: 1.35;
}
.cart-page__total-row dt,
.cart-page__total-row dd {
    margin: 0;
}
.cart-page__total-row dd {
    color: #e25305;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.cart-page__summary-actions {
    display: grid;
    gap: 12px;
}
.cart-page__button {
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(80deg, #e25305 0%, #ff8a12 100%);
    box-shadow: 0 0 20px rgba(116, 41, 0, .24);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.cart-page__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(116, 41, 0, .35);
}
.cart-page__button--outline {
    border-color: #ed670a;
    background: #fff;
    color: #252525;
    box-shadow: none;
}
.cart-page__button[aria-disabled="true"] {
    pointer-events: none;
    opacity: .55;
}
.cart-page__continue {
    display: table;
    margin: 18px auto 0;
    color: #e25305;
    font-size: 15px;
    font-weight: 600;
}
.cart-page__continue:hover {
    text-decoration: underline;
}
@media (max-width: 1180px) {
    .cart-page__layout {
        grid-template-columns: 1fr;
    }
    .cart-page__summary {
        position: static;
    }
}
@media (max-width: 920px) {
    .cart-page__container {
        padding-top: 135px;
    }
    .cart-page__item {
        grid-template-columns: 100px minmax(0, 1fr) 150px;
    }
    .cart-page__image {
        width: 100px;
    }
    .cart-page__prices,
    .cart-page__actions {
        grid-column: 2 / -1;
    }
    .cart-page__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .cart-page {
        padding: 0 14px 56px;
    }
    .cart-page__container {
        padding-top: 124px;
    }
    .cart-page__title {
        margin-bottom: 28px;
        font-size: 30px;
    }
    .cart-page__item {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 16px;
        padding: 14px;
        border-radius: 14px;
    }
    .cart-page__image {
        width: 86px;
    }
    .cart-page__quantity,
    .cart-page__prices,
    .cart-page__actions {
        grid-column: 1 / -1;
    }
    .cart-page__summary {
        padding: 20px;
        border-radius: 14px;
    }
    .cart-page__total-row,
    .cart-page__price-row {
        font-size: 14px;
    }
}

.cart-page--empty {
    display: block;
}
.cart-empty {
    max-width: 640px;
    margin: 0 auto;
    padding: 44px 36px;
    border: 1px solid rgba(186, 186, 186, .7);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(116, 41, 0, .12);
    text-align: center;
}
.cart-empty__title {
    margin: 0 0 16px;
    color: #252525;
    font-size: 39px;
    line-height: 1.25;
    font-weight: 700;
}
.cart-empty__text {
    margin: 0 0 28px;
    color: #6f625a;
    font-size: 18px;
    line-height: 1.55;
}
.cart-empty__button {
    min-width: 180px;
}

@media (max-width: 640px) {
    .cart-empty {
        padding: 30px 20px;
        border-radius: 14px;
    }
    .cart-empty__title {
        font-size: 30px;
    }
    .cart-empty__text {
        font-size: 16px;
    }
}
