css @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #F8FAFC;
    color: #1E293B;
}

/* ================= CART ================= */

.cart-page {
    padding: 120px 7% 70px;
    min-height: 80vh;
}

.cart-title {
    text-align: center;
    margin-bottom: 45px;
}

.cart-title h1 {
    font-size: 34px;
    color: #102A43;
    margin-bottom: 8px;
}

.cart-title p {
    color: #64748B;
    font-size: 14px;
}

/* Main layout */

.cart-container {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
}

/* Products */

.cart-items {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .06);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #F8FAFC;
}

.item-info h3 {
    font-size: 16px;
    color: #102A43;
    margin-bottom: 7px;
}

.item-info p {
    font-size: 13px;
    color: #64748B;
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    color: #1769D1;
}

/* Quantity */

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #DDE3EA;
    border-radius: 6px;
    overflow: hidden;
}

.quantity button {
    width: 32px;
    height: 32px;
    border: none;
    background: #F8FAFC;
    color: #1769D1;
    font-size: 18px;
    cursor: pointer;
}

.quantity button:hover {
    background: #FF6B00;
    color: white;
}

.quantity span {
    width: 32px;
    text-align: center;
    font-size: 13px;
}

/* Remove */

.remove-btn {
    border: none;
    background: transparent;
    color: #DC2626;
    font-size: 12px;
    cursor: pointer;
}

.remove-btn:hover {
    color: #FF6B00;
}

/* ================= SUMMARY ================= */

.cart-summary {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .06);
}

.cart-summary h2 {
    font-size: 21px;
    color: #102A43;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #64748B;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
    margin-top: 10px;
    border-top: 1px solid #E5E7EB;
    font-size: 18px;
    font-weight: 700;
    color: #102A43;
}

.checkout-btn {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 13px;
    border: none;
    border-radius: 7px;
    background: #FF6B00;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #E85D00;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #1769D1;
    font-size: 13px;
}

.continue-shopping:hover {
    color: #FF6B00;
}

/* ================= MOBILE ================= */

@media (max-width: 800px) {

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-item img {
        width: 80px;
        height: 80px;
    }

    .item-price {
        grid-column: 2;
    }

    .quantity {
        grid-column: 2;
        width: fit-content;
    }

    .remove-btn {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 500px) {

    .cart-page {
        padding: 110px 20px 50px;
    }

    .cart-title h1 {
        font-size: 27px;
    }

    .cart-items,
    .cart-summary {
        background: #FFFFFF;
        border-radius: 12px;
        padding: 25px;
        height: fit-content;
        box-shadow: 0 3px 15px rgba(0, 0, 0, .06);
        margin-top: 40px;
    }
}