html.menu-html {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

html.menu-html::-webkit-scrollbar {
    display: none;
}

body.menu-page {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible;
}

.menu-app {
    position: relative;
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.menu-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(0.85rem + env(safe-area-inset-top, 0px))
        3.5rem
        0.85rem;
    background: rgba(26, 20, 16, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.menu-header__back {
    position: absolute;
    left: 1rem;
    bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--gold-light);
    text-decoration: none;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    transition: background 0.15s ease;
}

.menu-header__back svg {
    width: 22px;
    height: 22px;
}

.menu-header__back:active {
    background: rgba(201, 169, 110, 0.2);
}

.menu-header__logo {
    width: clamp(110px, 32vw, 140px);
    height: auto;
    display: block;
}

.cat-slider-wrap {
    position: sticky;
    top: calc(64px + env(safe-area-inset-top, 0px));
    z-index: 15;
    background: rgba(26, 20, 16, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.12);
    padding: 0.65rem 0;
}

.cat-slider {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cat-slider::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid rgba(201, 169, 110, 0.28);
    background: rgba(12, 8, 5, 0.55);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.cat-chip.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: rgba(201, 169, 110, 0.45);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 90, 43, 0.35);
}

.menu-main {
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sub-accordion {
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 14px;
    background: rgba(12, 8, 5, 0.62);
}

.sub-accordion__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sub-accordion__toggle:active {
    background: rgba(255, 255, 255, 0.04);
}

.sub-accordion__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.sub-accordion.is-open .sub-accordion__icon {
    transform: rotate(90deg);
}

.sub-accordion__panel {
    display: none;
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    padding: 0.5rem 0.85rem 0.85rem;
}

.sub-accordion.is-open .sub-accordion__panel {
    display: block;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.product-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.product-item__name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.3rem;
    line-height: 1.35;
}

.product-item__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.menu-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
    font-size: 0.95rem;
}

@media (min-width: 481px) {
    .cat-chip {
        font-size: 0.88rem;
        padding: 0.6rem 1.1rem;
    }
}
