/* Reset default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Page background */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 15px;
}

/* Page heading */
h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #333;
}

/* Cart container */
#cart {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Individual cart item */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f9fafc;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Item name */
.cart-item h4 {
    font-size: 1.1rem;
    color: #222;
}

/* Price text */
.cart-item span {
    font-weight: bold;
    color: #4f46e5;
}

/* Total amount */
#total {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #111827;
}

/* Checkout button */
a {
    display: inline-block;
    margin-top: 25px;
    text-decoration: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.35);
    transition: all 0.3s ease;
}

a:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.45);
}

/* Responsive design */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    a {
        width: 100%;
        text-align: center;
    }
}
