 
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    text-align: center;
}

h1 {
    margin-top: 20px;
    font-size: 2em;
    color: #333;
}

#cart-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    gap: 20px;
    padding: 20px;
    margin-bottom: 40px;
    justify-items: center; /* Center the items in the grid */
}

.cart-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 250px; /* Max width for each card */
}

.cart-item:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.product-price {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

button {
    padding: 8px 8px;
    font-size: 13px;
    margin-top: 10px;
   
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Styling for total amount */
#total-amount {
    font-size: 1.5em;
    color: #333;
    margin-top: 20px;
}

/* Checkout button */
#Checkout  {
    padding: 10px 20px;
    font-size: 16px;
   margin-bottom:120px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

#Checkout:hover {
    background-color: #388e3c;
}

.quantity-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    /* margin-top: 10px;  */
}

.quantity-container button {
    padding: 3px 6px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #007BFF;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
}

.quantity-container span {
    min-width: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}


/* Responsive Design */
@media (max-width: 768px) {
    #cart-container {
        grid-template-columns: 1fr 1fr; /* Two items per row on smaller screens */
    }

    .cart-item {
        max-width: 200px; /* Adjust the size on smaller screens */
    }
}

@media (max-width: 480px) {
    #cart-container {
        grid-template-columns: 1fr; /* One item per row on very small screens */
    }

    .cart-item {
        max-width: 100%; /* Full width for items on very small screens */
    }
}
