:root {
    --bg-color: #f7f5f2;
    --text-color: #333;
    --accent-color: #e04b2a;
    --border-color: #d9d9d9;
    --header-height: 60px;
    --nav-height: 50px;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    height: 40px;
    display: flex;
    align-items: center;
}

.logo {
    height: 100%;
}

.restaurant-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    display: none; /* Hidden on mobile by default */
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: border-color 0.3s;
    font-size: 20px;
    line-height: 1;
}

.lang-btn.active {
    border-color: var(--accent-color);
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 30px;
    transition: width 0.3s ease-in-out;
}

.search-container.active {
    width: 150px;
}

#search-input {
    border: none;
    outline: none;
    background-color: transparent;
    width: 100%;
    padding: 5px 30px 5px 5px;
    font-size: 1rem;
    color: var(--text-color);
}

#search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 0;
}

#search-btn svg {
    height: 20px;
    width: 20px;
    color: var(--text-color);
}

/* Categories Nav */
.categories-nav {
    padding: 10px 0;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: var(--header-height);
    z-index: 999;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

#categories-list {
    list-style: none;
    margin: 0;
    padding: 0 15px;
    display: inline-flex;
    gap: 10px;
}

.category-item {
    display: inline-block;
}

.category-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    white-space: nowrap;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Menu items */
.menu-container {
    padding: 20px 15px;
}

#menu-items-list {
    display: grid;
    gap: 20px;
}

.menu-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

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

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.price-divider {
    color: #999;
}

.item-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.item-details {
    display: flex;
    justify-content: flex-end;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive design for larger screens */
@media (min-width: 768px) {
    .main-header {
        padding: 10px 40px;
    }

    .logo-group {
        flex-grow: 1; /* Allow logo group to take up space */
    }

    .restaurant-name {
        display: block; /* Show name on larger screens */
    }

    .categories-nav {
        padding: 10px 40px;
    }

    #categories-list {
        padding: 0;
        justify-content: center;
    }

    .menu-container {
        padding: 20px 40px;
    }

    #menu-items-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #menu-items-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-container {
        width: 250px;
    }
}