/* Basic Reset */
body,
h1,
h2,
h3,
p,
ul,
li {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.search-container {
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container button {
    background-color: #3e3e3e;
    border: none;
    border-radius: 5px;
    margin-right: 4px;
    height: 37px;
    width: 150px;
    color: white;
}

#searchInput {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.food-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px;
}

.food-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.food-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.food-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.food-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.food-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    flex-grow: 1;
}

.food-price {
    font-size: 1em;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.btn-addToCart {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.btn-addToCart:hover {
    background-color: #0056b3;
}

.cart-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.cart-container h2 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

#cart-items {
    list-style: none;
    padding: 0;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#cart-items li:last-child {
    border-bottom: none;
}

.cart-item-details {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.plusminus{
    display: flex;
    align-items: center;
    padding: 9px;
    gap: 4px;
}
.cart-item-name {
    font-weight: bold;
    margin-right: 10px;
}

.cart-item-price {
    color: #28a745;
}

.remove-from-cart-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1em;
    margin-left: 10px;
}

.remove-from-cart-btn:hover {
    text-decoration: underline;
}

.cart-total {
    padding-top: 15px;
    text-align: right;
}

#checkout-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
    width: 100%;
    transition: background-color 0.3s ease;
}

#checkout-btn:hover {
    background-color: #1e7e34;
}

.empty-cart {
    color: #777;
    text-align: center;
    padding: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .food-menu {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .cart-container {
        max-width: 100%;
    }
}

.plus {
    width: 16px;
    margin-left: 10px;
}

.minus {
    width: 16px;
}