* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff8f0;
    color: #333;
}


/* HEADER */

header {
    background: #8b1e1e;
    color: white;

    padding: 18px 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 25px;
    font-weight: bold;
}

.back-home {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.back-home:hover {
    color: #f4b400;
}


/* CART CONTAINER */

.cart-container {
    width: 85%;
    max-width: 1200px;

    margin: 45px auto;
}


/* TITLE */

.cart-title {
    margin-bottom: 30px;
}

.cart-title h1 {
    color: #7a1717;
    margin-bottom: 8px;
}

.cart-title p {
    color: #777;
}


/* CART CONTENT */

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}


/* CART ITEMS */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: white;

    padding: 20px;

    border-radius: 10px;

    display: flex;
    align-items: center;

    gap: 20px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}


/* PRODUCT IMAGE */

.product-image {
    width: 130px;
    height: 130px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* PRODUCT DETAILS */

.product-details {
    flex: 1;
}

.product-details h2 {
    font-size: 20px;
    color: #5b2525;

    margin-bottom: 8px;
}

.product-info {
    color: #777;
    font-size: 14px;

    margin-bottom: 10px;
}

.price {
    color: #b53a1d;

    font-size: 19px;

    font-weight: bold;

    margin-bottom: 12px;
}


/* QUANTITY */

.quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity button {
    width: 30px;
    height: 30px;

    border: 1px solid #ccc;

    background: white;

    border-radius: 5px;

    font-size: 18px;

    cursor: pointer;
}

.quantity button:hover {
    background: #f4b400;
}

.quantity span {
    font-weight: bold;
}


/* REMOVE */

.remove-btn {
    border: none;

    background: none;

    color: #c0392b;

    cursor: pointer;

    font-weight: bold;
}

.remove-btn:hover {
    text-decoration: underline;
}


/* ORDER SUMMARY */

.cart-summary {
    background: white;

    padding: 25px;

    border-radius: 10px;

    height: fit-content;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.cart-summary h2 {
    color: #7a1717;

    margin-bottom: 25px;
}

.summary-row {
    display: flex;

    justify-content: space-between;

    margin-bottom: 15px;

    color: #555;
}

.cart-summary hr {
    border: none;

    border-top: 1px solid #ddd;

    margin: 20px 0;
}

.total-row {
    display: flex;

    justify-content: space-between;

    font-size: 21px;

    font-weight: bold;

    color: #7a1717;

    margin-bottom: 25px;
}


/* CHECKOUT */

.checkout-btn {
    display: block;

    text-align: center;

    background: #8b1e1e;

    color: white;

    padding: 14px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}

.checkout-btn:hover {
    background: #a32620;
}


/* FOOTER */

footer {
    background: #4a1717;

    color: #ddd;

    text-align: center;

    padding: 25px;

    margin-top: 50px;

    font-size: 14px;
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .product-image {
        width: 100px;
        height: 100px;
    }

    .remove-btn {
        margin-left: auto;
    }

    .cart-container {
        width: 90%;
    }
}