main.cart-page {
    padding-bottom: 10rem;
}
.page-title {
    font-size: 2.438rem;
    margin-bottom: 3.2rem;
    font-weight: 600;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 42.188rem;
    gap: 2.5rem;
}

/* CART LIST */
.cart-head > * {
    color: #000;
    font-weight: 500;
    font-size: 1.563rem;
    background-color: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}
.cart-item input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    background-color: transparent;
}
.cart-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    padding-bottom: 1.25rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 8rem 1fr auto;
    gap: 1.25rem;
    padding: 2rem 0;
    border-bottom: 1px solid #000;
    align-items: flex-start;
}

.item-thumb {
    width: 10rem;
    height: 10rem;
    background: rgba(220, 220, 217, 1);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-thumb img {
    max-width: 100%;
}
.item-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}
.item-info {
    padding-left: 2rem;
}
.item-info select {
    padding: 0 1.25rem;
    border-radius: 0.6rem;
    background-color: rgba(220, 220, 217, 1);
    height: 2.25rem;
    line-height: 2.25rem;
}
.cart-right {
    text-align: right;
}
.cart-price strong {
    font-size: 1.563rem;
    display: block;
    line-height: 1;
}
.cart-price del {
    font-size: .813rem;
    color: rgba(162, 168, 177, 1);
}
.cart-quality {
    display: flex;
    margin-top: 1.25rem;
}
button.remove-item {
    background-color: transparent;
    border: 0;
    margin-right: 1.25rem;
}
.item-qty {
    display: flex;
    align-items: center;
    border: 1px solid #000;
    border-radius: 2rem;
    height: 3rem;
    line-height: 3rem;
    width: 6.75rem;
}
.item-qty > * {
    color: #000;
    background-color: transparent;
    border: 0;
    width: 100%;
    max-width: 33.33%;
    text-align: center;
    font-size: 1.25rem;
    height: 100%;
}
.item-qty > input {
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}
/* SUMMARY */

.cart-summary h2 {
    font-size: 1.563rem;
    margin-bottom: 1rem;
}
.summary-row > * {
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
}
.summary-row.total > * {
    font-size: 1.25rem;
    font-weight: 500;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-row.total {
    border-bottom: 1px solid #000;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}
.summary-row.total > strong {
    font-size: 1.563rem;
}
.summary-note {
    font-size: 1rem;
    margin: 0;
    padding-left: 1rem;
    margin-bottom: 1.25rem;
}

.order-note textarea {
    width: 100%;
    height: 14.75rem;
    border-radius: 1rem;
    padding: 1.2rem;
    border-bottom: 1px solid #000;
    background-color: transparent;
}
.order-note label {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: block;
}
.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
}
@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-summary {
        order: 2;
    }

    .cart-list {
        order: 1;
    }

    .item-info {
        padding-left: 0;
    }
    .checkout-summary {
        padding: 0 !important;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .cart-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        position: relative;
    }

    .cart-item input[type="checkbox"] {
        position: absolute;
        top: 20px;
        left: 0;
        z-index: 2;
    }

    .item-thumb {
        grid-row: 1 / 2;
        width: 8rem;
        height: 8rem;
        margin-left: 30px;
    }

    .item-info {
        grid-row: 1 / 2;
        padding-left: 0;
    }

    .item-info h3 {
        font-size: 1.1rem;
        padding-right: 20px;
    }

    .cart-right {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        margin-top: 10px;
    }

    .cart-quality {
        margin-top: 0;
        flex-direction: row-reverse;
    }

    .cart-price strong {
        font-size: 1.3rem;
    }
}

@media (max-width: 414px) {
    .cart-head > * {
        font-size: 1.2rem;
    }

    .item-thumb {
        width: 7rem;
        height: 7rem;
    }

    .item-info h3 {
        font-size: 1rem;
    }

    .item-qty {
        width: 100px;
        height: 2.5rem;
    }

    .cart-price strong {
        font-size: 1.15rem;
    }

    .order-note textarea {
        height: 120px;
    }

    .summary-row.total > strong {
        font-size: 1.3rem;
    }
}