* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    padding: 20px;
}

/* 🔥 Search Bar + Logo Styling */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo {
    height: 40px; /* Adjust as needed */
    width: auto;
}

#search {
    flex: 1;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* 🛒 Layout */
.container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* 📜 Menu Styling */
.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    flex: 1;
}

.menu-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.menu-item img {
    width: 200px; /* Set a fixed width */
    height: 150px; /* Set a fixed height */
    object-fit: cover; /* Ensures images maintain aspect ratio without distortion */
    border-radius: 10px;
}


.menu-item button {
    background-color: #A82C48;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
}

/* 🛒 Cart Styling */
.cart {
    width: 300px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cart h2 {
    text-align: center;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.remove-btn {
    background-color: #da738b;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

#checkout {
    width: 100%;
    background-color: #A82C48;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}
.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Maintain consistent layout */
    gap: 20px;
    align-items: start; /* Prevent stretching */
}

.menu-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease-in-out;
    visibility: visible; 
    opacity: 1;
    height: auto;
}

/* 🔥 Instead of display: none, use visibility + height collapse */
.menu-item.hidden {
    visibility: hidden;
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


/* 📱 Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .cart {
        width: 100%;
        margin-top: 20px;
    }

    .search-container {
        flex-direction: column;
        align-items: center;
    }

    #search {
        width: 100%;
    }
}
