/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

header .cart-info {
    font-size: 18px;
}

footer {
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
}

footer .checkout {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

footer .checkout:hover {
    background-color: #218838;
}

/* Cart Styles */
.cart-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.cart-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin: 10px 0;
    width: 80%;
    max-width: 800px;
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-5px);
}

.cart-item img {
    max-width: 100px;
    border-radius: 8px;
}

.cart-item div {
    flex-grow: 1;
    margin-left: 20px;
}

.cart-item h3 {
    font-size: 18px;
    color: #007bff;
    margin-bottom: 10px;
}

.cart-item p {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.cart-item input[type="number"] {
    width: 50px;
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-item button {
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cart-item button:hover {
    background-color: #c82333;
}

/* Empty Cart Message */
.cart-items p {
    font-size: 18px;
    color: #777;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-item img {
        max-width: 80px;
    }

    .cart-item div {
        margin-left: 0;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    header .cart-info {
        margin-top: 10px;
    }
}