.menu-group {
    padding-top: 5%;
}

.btn-link {
    font-size: 1rem;
}

.filters-group {
    height: 42px;
    position: sticky;
    top: var(--cabecalho-compacto, 56px);
    z-index: 89;
}

.dish {
    height: 100%;
}

.dish-abrir {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: none;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dish-abrir:hover {
    transform: translateY(-5px);
}

.dish-abrir:active {
    transform: scale(0.98);
    transition-duration: 0.08s;
}

.dish-abrir:focus-visible {
    outline: 3px solid var(--marca-texto);
    outline-offset: 3px;
}

.dish-lupa {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: rgba(var(--marca-sobre-rgb), 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--marca);
    font-size: 0.95rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.dish-abrir:hover .dish-lupa,
.dish-abrir:focus-visible .dish-lupa {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .dish-lupa {
        opacity: 1;
        transform: none;
    }
}

@keyframes dish-dica {
    30% {
        transform: translateY(-7px);
    }

    60% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-3px);
    }
}

.dish-dica .dish-abrir {
    animation: dish-dica 1.1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.dish-dica:nth-of-type(2) .dish-abrir {
    animation-delay: 0.12s;
}

.dish-dica:nth-of-type(3) .dish-abrir {
    animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {

    .dish-abrir,
    .dish-media img,
    .dish-lupa {
        transition: none;
    }

    .dish-dica .dish-abrir {
        animation: none;
    }
}

.dish-media {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--fundo);
}

.dish-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.dish-abrir:hover .dish-media img {
    transform: scale(1.04);
}

.dish-media-vazia {
    display: grid;
    place-items: center;
    padding: 0;
    background: linear-gradient(150deg, var(--escuro), var(--escuro-2));
    color: var(--marca);
    font-size: 3rem;
}

.dish-media-vazia i {
    opacity: 0.6;
}

.dish-faixa {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.55rem 0.7rem 0.6rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(var(--marca-sobre-rgb), 0.72);
    color: var(--texto-invertido);
}

.dish-faixa-topo {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}

.dish-nome {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-preco {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.dish-desc {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    line-height: 1.35;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-lista {
    list-style: none;
    margin: 0 0 4rem;
    padding: 0;
    background: var(--superficie);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dish-linha {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--borda);
}

.product-lista .dish-linha:last-child {
    border-bottom: none;
}

.dish-linha:nth-child(odd) {
    background: var(--superficie-2);
}

.dish-linha-texto {
    flex: 1;
    min-width: 0;
}

.dish-linha-nome {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--texto);
    line-height: 1.3;
}

.dish-linha-desc {
    display: block;
    margin-top: 3px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--cinza-forte);
}

.dish-linha-preco {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--marca-texto);
    white-space: nowrap;
}

.dish-linha.destacado {
    background: var(--marca-lavado);
}

@media screen and (max-width: 767px) {
    .dish-linha {
        padding: 12px 14px;
        gap: 12px;
    }

    .dish-linha-nome {
        font-size: 1rem;
    }

    .dish-linha-preco {
        font-size: 1.05rem;
    }
}

.dish-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dish-backdrop.aberta {
    opacity: 1;
}

.dish-backdrop[hidden] {
    display: none;
}

body.dish-aberta {
    overflow: hidden;
}

.dish-ficha {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    max-height: 90dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--escuro);
    color: var(--texto-invertido);
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dish-backdrop.aberta .dish-ficha {
    opacity: 1;
    transform: none;
}

.dish-ficha-media {
    position: relative;
}

.dish-ficha-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.dish-ficha-img[hidden] {
    display: none;
}

.dish-ficha-veu {
    position: absolute;
    inset: 34% 0 0 0;
    background: linear-gradient(to bottom,
            rgba(var(--marca-sobre-rgb), 0),
            rgba(var(--marca-sobre-rgb), 0.58) 52%,
            rgba(var(--marca-sobre-rgb), 0.96));
}

.dish-ficha-titulo {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 108px 22px 26px;
}

.dish-ficha-media:has(.dish-ficha-img[hidden]) .dish-ficha-veu {
    display: none;
}

.dish-ficha-media:has(.dish-ficha-img[hidden]) .dish-ficha-titulo {
    position: static;
    padding-top: 30px;
}

.dish-ficha-selo {
    position: absolute;
    right: 24px;
    bottom: -30px;
    z-index: 2;
    width: 68px;
    height: 68px;
    padding: 4px;
    border-radius: 50%;
    background: var(--escuro);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.dish-ficha-categoria {
    font-family: var(--fonte-titulo);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--marca);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dish-ficha-categoria[hidden] {
    display: none;
}

.dish-ficha-nome {
    margin: 0;
    font-family: var(--fonte-titulo);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.12;
    color: var(--texto-invertido);
    text-wrap: balance;
}

.dish-ficha-filete {
    display: block;
    height: 1px;
    background: var(--marca);
}

.dish-ficha-corpo {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 36px 26px 26px;
}

.dish-ficha-desc {
    margin: 0;
    font-size: 1rem;
    line-height: 1.66;
    color: var(--sobre-escuro-2);
}

.dish-ficha-desc[hidden] {
    display: none;
}

.dish-ficha-rodape {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

.dish-ficha-preco {
    margin: 0;
    font-family: var(--fonte-titulo);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--marca);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dish-ficha-ementa {
    display: inline-flex;
    align-items: center;
    min-height: var(--toque);
    padding: 0.64rem 1.1rem;
    color: var(--marca);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(var(--marca-rgb), 0.55);
    transition: background 0.25s ease, color 0.25s ease;
}

.dish-ficha-ementa:hover,
.dish-ficha-ementa:focus {
    background: var(--marca);
    color: var(--marca-sobre);
    text-decoration: none;
}

.dish-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(var(--marca-sobre-rgb), 0.72);
    color: var(--texto-invertido);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.dish-fechar:hover {
    background: rgba(var(--marca-sobre-rgb), 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .dish-abrir,
    .dish-media img,
    .dish-backdrop,
    .dish-ficha,
    .dish-ficha-ementa {
        transition: none;
    }

    .dish-ficha {
        transform: none;
    }

    .dish-abrir:hover {
        transform: none;
    }

    .dish-abrir:hover .dish-media img {
        transform: none;
    }
}

.js-scroll-step.selected .btn-link,
.js-scroll-step.selected .btn-link:hover {
    background-color: var(--marca);
    color: var(--marca-sobre);
    border-radius: 5px;
}

@media screen and (min-width: 992px) {
    .filters-group {
        position: relative;
        top: auto;
        height: auto;
        margin-right: 20px;
        padding-top: 4px;
        width: 270px;
    }

    .filters-group::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 56px;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(244, 246, 244, 0), var(--fundo));
        opacity: 1;
        transition: opacity 0.2s ease;
    }

    .filters-group.no-fim::after {
        opacity: 0;
    }
}

.filters-group .filters-container::before {
    box-shadow: 1px 13px 20px -3px rgba(0, 0, 0, 0.11);
    height: 40px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

@media screen and (min-width: 992px) {
    .filters-group .filters-container::before {
        display: none;
    }
}

.filters-group h5 {
    color: var(--cinza);
    display: none;
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 10px;
}

@media screen and (min-width: 992px) {
    .filters-group h5 {
        display: block;
        margin: 0 0 10px;
        padding: 0 0 10px 18px;
        border-bottom: 1px solid var(--borda);
        color: var(--cinza-forte);
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 1.6px;
        text-transform: uppercase;
    }
}

.filters-group .filters {
    box-shadow: 0px 10px 30px 0px rgba(153, 153, 153, 0.2);
    background-color: var(--texto-invertido);
    display: flex;
    left: -15px;
    padding: 6px;
    position: absolute;
    width: calc(100% + 30px);
    z-index: 6;
    overflow-x: auto;
}

@media screen and (min-width: 768px) {
    .filters-group .filters {
        margin-left: revert;
    }
}

.filters-group .filters li {
    height: 30px;
    margin-top: 2%;
    margin-bottom: 2%;
}

.filters-group .filters li button {
    color: var(--cinza-forte);
    display: block;
    font-size: 11px !important;
    font-weight: bold;
    line-height: 30px;
    padding: 0 20px;
    scroll-behavior: smooth;
    text-transform: none;
    white-space: nowrap;
    width: 100%;
    font-size: 1rem;
}

@media screen and (min-width: 992px) {
    .filters-group .filters li button {
        line-height: 42px;
    }
}

.filters-group .filters li button:hover {
    color: var(--texto);
}

.filtro-conta {
    display: none;
}

.filters-group .filters li::before {
    content: '';
    height: 40px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: -1;
}

.filters-group .filters li.selected {
    margin-top: 2%;
    margin-bottom: 2%;
    background: transparent;
    border-radius: 5px;
    font-weight: 800;
}

.filters-group .filters li.selected button,
.filters-group .filters li.selected button:hover {
    font-size: 1rem;
    color: var(--marca-sobre);
    font-weight: 800;
}

@media screen and (min-width: 992px) {
    .filters-group .filters li {
        height: auto;
    }
}

.menu-group {
    margin-bottom: 60px;
    max-width: 1110px;
    position: relative;
}

.menu-group h2 {
    color: var(--texto);
    font-size: 45px;
    text-align: center;
    position: relative;
}

.menu-group:first-of-type {
    margin-top: 20px;
}

@media screen and (min-width: 992px) {
    .menu-group:first-of-type {
        margin-top: 0;
    }
}

@media screen and (min-width: 768px) {
    .product-grid {
        display: flex;
        flex-wrap: wrap;
    }
}

@media screen and (min-width: 768px) {
    .product-grid .product-container {
        margin-bottom: 40px;
        margin-right: 15px;
        padding: 0;
        width: calc(33.33% - 10px);
    }

    .product-grid .product-container:nth-child(3n+3) {
        margin-right: 0;
    }
}

@media screen and (max-width: 767px) {
    .dish {
        margin-bottom: 15px;
    }

    .dish-media-vazia {
        font-size: 2.4rem;
    }

    .dish-backdrop {
        padding: 16px;
    }

    .dish-ficha {
        max-width: none;
        max-height: 85dvh;
    }

    .dish-ficha-titulo {
        padding: 0 92px 18px 20px;
    }

    .dish-ficha-selo {
        right: 18px;
        bottom: -26px;
        width: 58px;
        height: 58px;
    }

    .dish-ficha-corpo {
        gap: 18px;
        padding: 30px 20px 22px;
    }

    .dish-ficha-nome {
        font-size: 1.4rem;
    }

    .dish-ficha-preco {
        font-size: 1.45rem;
    }
}

@media screen and (min-width: 992px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    #_menu .row {
        display: flex;
        flex-wrap: nowrap;
        margin: 0 -15px;
    }

    #_menu .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
        padding: 0 15px;
    }

    #_menu .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
        padding: 0 15px;
    }

    .menu-group {
        margin-top: 30px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .product-container {
        margin: 0 !important;
        width: 100% !important;
    }

    .dish {
        margin-bottom: 0;
    }

    .filters-group .filters {
        display: flex;
        flex-direction: column;
        gap: 0;
        left: 0;
        margin: 0;
        padding: 0 4px 44px !important;
        background: transparent;
        box-shadow: none !important;
        position: relative !important;
        width: 100% !important;
        max-height: calc(100vh - 190px);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .filters-group .filters::-webkit-scrollbar {
        display: none;
    }

    .filters-group .filters li {
        margin: 0 !important;
        height: auto !important;
    }

    .filters-group .filters li.filtro-sulco {
        margin-top: 14px !important;
        padding-top: 14px;
        border-top: 1px solid var(--borda);
    }

    .filters-group .filters li .js-scroll-step {
        display: block;
        border-left: 2px solid transparent;
        transition: border-color 0.2s ease, background 0.2s ease;
    }

    .filters-group .filters li .js-scroll-step:hover {
        background: linear-gradient(90deg, var(--marca-lavado), transparent);
    }

    .filters-group .filters li button {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        text-align: left;
        padding: 8px 10px 8px 12px !important;
        font-size: 0.78rem !important;
        font-weight: 700;
        letter-spacing: 0.3px;
        line-height: 1.35 !important;
        white-space: normal;
        color: var(--cinza-forte);
        background: transparent;
        border-radius: 0;
        transition: color 0.2s ease;
    }

    .filters-group .filters li button:hover {
        background: transparent;
        color: var(--marca-texto-forte) !important;
    }

    .filters-group .filters li .filtro-nome {
        min-width: 0;
    }

    .filters-group .filters li .filtro-conta {
        display: block;
        flex: 0 0 auto;
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--cinza-forte);
    }

    .filters-group .filters li .js-scroll-step.selected {
        border-left-color: var(--marca);
        background: linear-gradient(90deg, var(--marca-lavado), transparent);
    }

    .filters-group .filters li .js-scroll-step.selected .btn-link,
    .filters-group .filters li .js-scroll-step.selected .btn-link:hover {
        background: transparent;
        border-radius: 0;
        color: var(--texto);
        font-weight: 800;
    }

    .filters-group .filters li .js-scroll-step.selected .filtro-conta {
        color: var(--marca-texto);
    }
}