.cart-page {
    min-height: calc(100vh - 61px);
    padding: 34px 0 70px;
}

.cart-shell {
    width: 92%;
    max-width: 1240px;
    margin: auto;
}

.cart-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    border-left: 5px solid #b4553c;
    padding: 10px 0 10px 18px;
}

.cart-heading p {
    margin-bottom: 6px;
    color: #6a7a83;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cart-heading h1 {
    color: #2C3E50;
    font-size: 34px;
    line-height: 1.2;
}

.cart-heading__link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #cfd8d3;
    border-radius: 4px;
    padding: 0 14px;
    color: #2C3E50;
    background: #fff7f2;
    font-weight: 800;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item,
.cart-note,
.cart-summary {
    border: 1px solid #dde2dc;
    border-radius: 6px;
    background: white;
}

.cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 132px 100px 38px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(44, 62, 80, 0.06);
}

.cart-item:nth-child(1) {
    border-color: rgba(180, 85, 60, 0.35);
    background: linear-gradient(90deg, #fff8f4, #ffffff 34%);
}

.cart-item:nth-child(2) {
    border-color: rgba(66, 122, 99, 0.28);
    background: linear-gradient(90deg, #f3faf5, #ffffff 34%);
}

.cart-item img {
    width: 112px;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
    background: #e8ece8;
}

.cart-item__content p {
    margin-bottom: 5px;
    color: #b4553c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.cart-item__content h2 {
    color: #22313a;
    font-size: 19px;
    line-height: 1.35;
}

.cart-item__content span {
    display: block;
    margin-top: 6px;
    color: #5a6870;
    font-size: 14px;
    line-height: 1.5;
}

.cart-item__quantity {
    min-height: 38px;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    border: 1px solid #cbd8d0;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item__quantity button,
.cart-item__quantity input,
.cart-item__remove {
    border: 0;
    color: #2C3E50;
    background: #fbfdfb;
}

.cart-item__quantity button:hover,
.cart-item__remove:hover {
    background: #f4f7f8;
}

.cart-item__quantity input {
    width: 100%;
    text-align: center;
    outline: 0;
}

.cart-item__quantity input::-webkit-outer-spin-button,
.cart-item__quantity input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.cart-item__price {
    color: #b4553c;
    text-align: right;
    font-size: 17px;
}

.cart-item__remove {
    width: 38px;
    height: 38px;
    border: 1px solid #d8dfdb;
    border-radius: 4px;
}

.cart-note {
    display: flex;
    gap: 14px;
    padding: 16px;
    color: #465761;
    border-color: rgba(66, 122, 99, 0.28);
    background: #f4faf6;
}

.cart-note i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: #427a63;
}

.cart-note h2 {
    margin-bottom: 4px;
    color: #2C3E50;
    font-size: 18px;
}

.cart-note p {
    line-height: 1.6;
}

.cart-summary {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 16px;
    padding: 20px;
    border-color: rgba(180, 85, 60, 0.28);
    box-shadow: 0 16px 34px rgba(44, 62, 80, 0.1);
}

.cart-summary h2 {
    color: #2C3E50;
    font-size: 24px;
}

.cart-summary__row,
.cart-summary__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #53636b;
}

.cart-summary__row strong,
.cart-summary__total strong {
    color: #2C3E50;
}

.cart-voucher {
    display: grid;
    gap: 8px;
    color: #2C3E50;
    font-weight: 800;
}

.cart-voucher div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border: 1px solid rgba(180, 85, 60, 0.32);
    border-radius: 4px;
    overflow: hidden;
}

.cart-voucher input,
.cart-voucher button {
    min-height: 40px;
    border: 0;
    padding: 0 12px;
}

.cart-voucher input {
    min-width: 0;
    outline: 0;
}

.cart-voucher button {
    color: white;
    background: #b4553c;
    font-weight: 800;
}

.cart-summary__total {
    border-top: 1px solid #e4e9e6;
    padding-top: 16px;
    color: #2C3E50;
    font-size: 20px;
    font-weight: 800;
}

.cart-summary__checkout {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    background: linear-gradient(135deg, #2C3E50, #b4553c);
    font-weight: 900;
}

@media (max-width: 960px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 720px) {
    .cart-page {
        padding-top: 24px;
    }

    .cart-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-heading h1 {
        font-size: 28px;
    }

    .cart-item {
        grid-template-columns: 92px minmax(0, 1fr) 36px;
        align-items: start;
        gap: 12px;
    }

    .cart-item img {
        width: 92px;
    }

    .cart-item__quantity {
        grid-column: 1 / 3;
        width: 132px;
    }

    .cart-item__price {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
        text-align: right;
    }

    .cart-item__remove {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .cart-item img {
        width: 82px;
    }

    .cart-item__remove {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .cart-item__quantity {
        grid-column: 1 / 2;
        grid-row: 3;
        width: 120px;
    }

    .cart-item__price {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
}
