@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: khaki;
}

.container {
    max-width: 100%;
    margin: 0 auto; /* Center the container horizontally */
    text-align: center;
}

.main {
    background-color: brown;
    color: white;
    padding: 20px; /* Add some padding for better spacing */
    margin-bottom: 20px; /* Add margin to separate from other elements */
}

.vendor {
    color: red;
    font-weight: 600;
}

.text {
    color: purple;
    margin-bottom: 10px;
}

.button {
    padding: 10px 20px;
    margin: 10px;
    background-color: orange;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.button:hover {
    background-color: orangered;
    color: white;
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Center-align products */
}

.product {
    width: 23%; /* Each product takes up 22% of the container width */
    margin: 10px;
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    text-align: center;
    background-color: white;
    max-height: 590px;
    overflow: hidden; /* Hide overflow content */
}

.product img {
    width: 100%; /* Make images fill the container */
    height: 200px; /* Maintain aspect ratio */
    margin-bottom: 10px;
}

.add-to-cart-button {
    display: block; /* Change to block display for full width */
    margin: 10px auto; /* Center the button horizontally */
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%; /* Adjust button width */
    font-size: 20px;
}

.add-to-cart-button:hover {
    background-color: blue;
}

.search-container {
    margin-bottom: 20px;
}

.search-container input[type="text"] {
    width: 50%; /* Adjust search input width */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.no-match-message {
    text-align: center;
    font-size: 20px;
    color: red;
    margin-top: 20px;
}


/* Cart container */
.cart-container {
    background-color: #f4f4f4;
    color: black;
    padding: 20px;
    width: 200px;
    position: fixed;
    top: 40px;
    right: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cart-items {
    margin-top: 10px;
}

.cart-item {
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Total amount */
#total-amount {
    font-weight: bold;
}