body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #4a3b32;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0; 
    box-sizing: border-box;
    width: 100%; 
}

.cardapio-container {
    width: 100%;
    max-width: 700px; 
    min-width: 300px; /* Slightly reduced min-width */
    background-color: #3e3028;
    border-radius: 0; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 10px; /* Reduced padding for mobile first */
    text-align: center;
    box-sizing: border-box; 
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 15px; /* Further reduced margin */
    padding-bottom: 10px; /* Reduced padding */
    border-bottom: 1px solid #5a4b42;
    width: 100%; 
}

.logo-img {
    max-height: 45px; /* Further adjusted for mobile */
    width: auto;
    max-width: 65%; 
}

.lang-btn {
    background-color: #d3c1b0;
    color: #4a3b32;
    border: none;
    padding: 6px 10px; /* Further adjusted padding */
    border-radius: 18px; /* Adjusted border-radius */
    cursor: pointer;
    font-size: 0.75em; /* Further adjusted font size */
    display: flex;
    align-items: center;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
}

.lang-btn img {
    width: 16px; 
    height: auto;
    margin-right: 4px;
}

.category-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px; /* Further reduced gap */
    margin-bottom: 15px; /* Reduced margin */
}

.category-button {
    background-color: #d3c1b0;
    color: #4a3b32;
    border: none;
    padding: 8px 15px; /* Adjusted padding */
    border-radius: 20px; /* Adjusted border-radius */
    cursor: pointer;
    font-size: 0.85em; /* Adjusted font size */
    width: 90%; /* Adjusted width for mobile */
    max-width: 260px; 
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.category-button.active,
.category-button:hover {
    background-color: #bca997;
}

.menu-items-container {
    margin-top: 10px;
    text-align: left;
}

.menu-items-container > p { 
    text-align: center;
    font-size: 0.9em; /* Adjusted font size */
    color: #c0b0a0;
}

.menu-category-title {
    font-size: 1.4em; /* Adjusted for mobile */
    color: #e87722;
    margin-bottom: 10px;
    text-align: center;
}

.menu-item {
    background-color: #4f423a;
    border-radius: 6px; /* Adjusted border-radius */
    padding: 8px;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center; 
}

.menu-item img {
    width: 60px; /* Adjusted for mobile */
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d3c1b0; 
    flex-shrink: 0; 
}

.menu-item-details {
    flex-grow: 1;
    text-align: left; 
}

.menu-item h3 {
    margin-top: 0;
    margin-bottom: 3px; /* Reduced margin */
    color: #f0e0d0;
    font-size: 0.9em; /* Adjusted for mobile */
}

.menu-item p {
    margin-bottom: 3px;
    font-size: 0.75em; /* Adjusted for mobile */
    color: #c0b0a0;
    line-height: 1.2;
}

.menu-item .price {
    font-weight: bold;
    color: #e87722;
    font-size: 0.9em; /* Adjusted for mobile */
}

footer {
    margin-top: 15px;
    padding-top: 8px;
    border-top: 1px solid #5a4b42;
    font-size: 0.85em;
}

footer a {
    color: #e87722;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for larger screens (tablets and up) */
@media (min-width: 601px) {
    .cardapio-container {
        border-radius: 10px; 
        padding: 20px;
        max-width: 700px; /* Restore max-width for desktop */
    }
    .logo-img {
        max-height: 60px;
        max-width: 70%; /* Restore for desktop */
    }
    .lang-btn {
        font-size: 0.9em;
        padding: 10px 15px;
        border-radius: 20px;
    }
    .lang-btn img {
        width: 20px;
        margin-right: 8px;
    }
    .category-nav {
        gap: 10px;
        margin-bottom: 30px;
    }
    .category-button {
        width: 60%;
        max-width: 300px;
        font-size: 1em;
        padding: 12px 25px;
        border-radius: 25px;
    }
    .menu-items-container {
        margin-top: 20px;
    }
    .menu-items-container > p {
        font-size: 1.1em;
    }
    .menu-category-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .menu-item {
        padding: 15px;
        margin-bottom: 15px;
        gap: 15px;
        border-radius: 8px;
    }
    .menu-item img {
        width: 100px;
        height: 100px;
        border: 2px solid #d3c1b0;
        border-radius: 5px;
    }
    .menu-item h3 {
        font-size: 1.2em;
        margin-bottom: 5px;
    }
    .menu-item p {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    .menu-item .price {
        font-size: 1.1em;
    }
    footer {
        margin-top: 30px;
        padding-top: 15px;
        font-size: 1em;
    }
}

.hidden {
    display: none !important;
}

