        body {
            font-family: Arial, sans-serif;
            max-width: 900px;
            margin: 40px auto;
        }

        h1 {
            margin-bottom: 20px;
        }

        .cart-item {
            display: flex;
            align-items: center;
            border-bottom: 1px solid #ddd;
            padding: 15px 0;
        }

        .cart-item img {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            margin-right: 20px;
            object-fit: cover;
        }

        .cart-details {
            flex: 1;
        }

        .cart-actions {
            text-align: right;
        }

        .qty-controls button {
            padding: 5px 10px;
            margin: 0 5px;
        }

        .remove-btn {
            background: none;
            border: none;
            color: red;
            cursor: pointer;
        }

        .total-box {
            text-align: right;
            margin-top: 20px;
            font-size: 20px;
            font-weight: bold;
        }

        .checkout-btn {
            display: inline-block;
            margin-top: 20px;
            padding: 12px 20px;
            background: black;
            color: white;
            border-radius: 6px;
            text-decoration: none;
        }
       /* Navigation Buttons (Always Visible) */
.cart-navigation {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cart-navigation .nav-btn {
    padding: 12px 22px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.2s ease;
}

.cart-navigation .nav-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Checkout Button */
.checkout-btn {
    padding: 14px 26px;
    background: #ff6f61; /* soft coral accent */
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    transition: background 0.25s ease, transform 0.2s ease;
}

.checkout-btn:hover {
    background: #ff4f40;
    transform: translateY(-2px);
}

/* Clear Cart Button */
.clear-cart-form .remove-btn {
    padding: 12px 20px;
    background: #b00020;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.clear-cart-form .remove-btn:hover {
    background: #8a001a;
    transform: translateY(-2px);
}
.continue-shopping-btn {
    background: #007bff;
    color: white;
    padding: 12px 0;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s ease;
}

.continue-shopping-btn:hover {
    background: #005fcc;
}

.cart-actions a,
.cart-actions button {
    display: block;
    width: 100%;
    margin: 10px 0;
}
/* ============================
   CART PAGE — MOBILE LAYOUT
   ============================ */
@media (max-width: 768px) {

    /* Make the cart table stack */
    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    /* Hide table headers on mobile */
    .cart-table thead {
        display: none;
    }

    /* Add spacing between items */
    .cart-table tr {
        margin-bottom: 20px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 15px;
    }

    /* Product image */
    .cart-item-image img {
        width: 100%;
        max-width: 120px;
        height: auto;
        display: block;
        margin: 0 auto 10px;
    }

    /* Product name */
    .cart-item-name {
        text-align: center;
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* Quantity controls */
    .cart-qty {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 10px 0;
    }

    /* Price + subtotal */
    .cart-price,
    .cart-subtotal {
        text-align: center;
        font-size: 16px;
        margin: 5px 0;
    }

    /* Totals section */
    .cart-totals {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    /* Buttons */
    .cart-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .cart-buttons a,
    .cart-buttons button {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }
}
