.cart-page {
    padding: 4rem 0;
}
.cart-header {
    margin-bottom: 1.5rem;
}
.cart-title {
    margin: 0;
    display: block;
    font-size: 4rem;
}
.cart-count {
    color: rgba(126, 126, 126, 1);
    font-weight: 500;
    margin-top: 1rem;
    display: block;
}
.cart-item {
    display: flex;
    padding: 3rem 0;
    border-bottom: 1px solid #000;
    gap: 3rem;
}

.cart-item-image {
    flex: 0 0 24.5rem;
    background: linear-gradient(to left, rgba(241, 219, 221, 1), rgba(241, 219, 221, .5));
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24.5rem;
}
.cart-item-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.5fr; 
    grid-template-rows: auto auto;
    gap: 1rem;
    position: relative;
}
.item-label {
    display: block;
    font-size: 1.25rem;
    color: rgba(126, 126, 126, 1);
    margin-bottom: 0.8rem;
    text-transform: capitalize;
    margin-top: 2.5rem;
}
.item-name {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    max-width: 80%;
}
.item-value {
    font-size: 2rem;
    font-weight: 600;
    color: #000;
}
.btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    transition: 0.3s;
    padding: 0;
    text-align: right;
    margin-top: 2rem;
    margin-left: auto;
    display: block;
}
button.btn-remove img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}
.btn-remove:hover {
    color: #e54d42;
    transform: scale(1.1);
}
.col-price {
    position: absolute;
    bottom: 2rem;
    right: 0;
}
.col-price .item-label {
    display: block;
    font-size: 1.25rem;
    color: rgba(126, 126, 126, 1);
    margin-bottom: 0;
    text-transform: capitalize;
    margin-top: 2rem;
    text-align: right;
}
.price-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.price-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sale-off {
    color: rgba(234, 73, 73, 1);
    font-size: 1rem;
    font-weight: 600;
}

.old-price {
    font-size: 1rem;
    color: rgba(126, 126, 126, 1);
    font-weight: 600;
}
.current-price {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.cart-footer {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-continue {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 1.4rem;
}

.total-row {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: right;
}

.total-row strong {
    font-size: 3.5rem;
    margin-left: 1rem;
}

.btn-checkout {
    background: #000;
    color: #fff;
    padding: 1.5rem 5rem;
    border-radius: 4rem;
    font-size: 1.6rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
h2.section-title {
    margin-bottom: 3rem;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 7rem;
}

.form-group.full-width {
    grid-column: span 2;
}
.form-group.half-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0 3rem;
    border: 1px solid #000;
    border-radius: 4rem;
    font-size: 1.5rem;
    outline: none;
    height: 4.875rem;
    line-height: 4.875rem;
    color: rgba(126, 126, 126, 1);
    font-weight: 500;
    background-color: transparent;
}
.form-group textarea {
    height: 18.438rem;
    padding: 1rem 3rem;
    border-radius: 2rem;
}
.checkout-bottom-grid {
    display: grid;
    grid-template-columns: .95fr 1fr;
    gap: 0;
    position: relative;
    border-top: 1px solid transparent;
}
.payment-methods-column {
    padding-right: 6rem;
}

.voucher-column {
    padding-left: 2rem;
    border-left: 1px solid #ccc; 
}

.payment-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.voucher-input-wrapper input,
.payment-option {
    border: 1px solid #000;
    border-radius: 4rem;
    padding: 0 5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.5rem;
    transition: 0.3s;
    display: inline-block;
    height: 4.875rem;
    line-height: 4.875rem;
    margin-bottom: 1.5rem;
}
.payment-option input {
    display: none;
}
.payment-option:hover,
.payment-option.active {
    background: #000;
    color: #fff;
}
.voucher-input-wrapper input {
    outline: none;
    width: 100%;
    background-color: transparent;
}
.voucher-column h2.section-title {
    margin-bottom: 1rem;
}
.order-summary-section {
    padding: 8rem 0 8rem;
}

.order-summary-card {
    max-width: 100%; 
}

.summary-title {
    margin-bottom: 4rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4rem;
    max-width: 50%;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.summary-row .label {
    font-size: 2rem;
    color: rgba(126, 126, 126, 1);
    font-weight: 500;
}
.summary-row .value {
    font-size: 3rem;
    font-weight: 600;
    color: #000;
}
.summary-total-footer {
    border-top: 1px solid #000;
    padding-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    display: block;
    font-size: 2rem;
    color: rgba(126, 126, 126, 1);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.total-value {
    font-size: 3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}
.btn-final-checkout {
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0 6rem;
}

.btn-final-checkout:hover {
    transform: scale(1.02);
}
button.btn.btn-final-checkout img {
    width: 1.5rem;
    filter: brightness(0) invert(1);
    margin-left: 1rem;
}   
/* ================= CART & CHECKOUT RESPONSIVE ================= */

@media screen and (max-width: 1024px) {
    .form-group input, .form-group textarea {
        width: 100%;
        padding: 0 2rem;
        height: 4rem;
        line-height: 4rem;
    }
    .form-group textarea {
        height: 12rem;
    }
    .col-price .item-label {
        text-align: left;
    }
    .cart-item-image img {
        max-width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .cart-item {
        flex-direction: column;
        gap: 2rem;
        position: relative;
    }

    .cart-item-image {
        flex: 0 0 auto;
        width: 100%;
        height: 20rem;
    }

    .cart-item-details {
        grid-template-columns: 1fr 1fr; 
        gap: 2rem;
    }


    .col-price {
        position: static;
        grid-column: span 2;
        text-align: left;
    }

    .price-box {
        justify-content: flex-start;
    }

    .checkout-bottom-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods-column {
        padding-right: 0;
        margin-bottom: 4rem;
    }

    .voucher-column {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #ccc;
        padding-top: 4rem;
    }

    .summary-details {
        max-width: 100%; 
    }
}

@media screen and (max-width: 768px) {
    .cart-title {
        font-size: 3rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        
        margin-bottom: 2rem;
    }

    .form-group.half-group {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }
    .item-name {
        font-size: 1.5rem;
        max-width: 100%;
    }
    .payment-option {
        width: 100%;
        padding: 0 2rem;
        text-align: center;
    }
    .summary-row .label {
        font-size: 1.5rem;
    }

    .summary-row .value {
        font-size: 1.5rem;
    }

    .summary-total-footer {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .total-left {
        width: 100%;
    }

    .btn-final-checkout {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .cart-item-details {
        grid-template-columns: 1fr; 
    }

    .item-label {
        margin-top: 1rem;
    }

    .current-price {
        font-size: 2.2rem;
    }

    .total-value {
        font-size: 2.5rem;
    }
}