/* ===== MENU PAGE ===== */

.menu-page {
    background: var(--white);
    color: var(--black);
    padding: 24px 0 60px;
}

.menu-page .menu-wrap {
    width: min(1100px, 92%);
    margin: 0 auto;
}

html {
    scroll-behavior: smooth;
}

.menu-page .menu-subnav-wrapper {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
}

/* Subnav */
.menu-page .menu-subnav {
    position: relative;
    z-index: 10;
    background: var(--white);
    padding: 12px 4% 12px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #dedede;
}

.menu-page .menu-subnav a {
    font-size: .9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    color: var(--black);
    white-space: nowrap;
}

.menu-page .menu-subnav a:hover {
    border-bottom-color: var(--black);
}

/* Sections */
.menu-page .menu-section {
    margin-top: 40px;
    scroll-margin-top: 200px;
}

.menu-page .menu-section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 16px;
}

/* Items */
.menu-page .menu-items {
    border-top: 1px solid #dcdcdc;
}

.menu-page .menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.2fr) minmax(70px, .5fr);
    column-gap: 1.5rem;
    padding: 14px 0;
    border-bottom: 1px solid #dcdcdc;
}

.menu-page .menu-item-name {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    align-content: center;
}

.menu-page .menu-item-desc {
    border-left: 1px solid #dcdcdc;
    padding-left: 1.5rem;
    font-size: .95rem;
    line-height: 1.4;
}

.menu-page .menu-item-price {
    border-left: 1px solid #dcdcdc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-weight: 600;
    font-size: .95rem;
}

.menu-page .menu-item-price-value {
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.menu-page .menu-item-price-value::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-page .menu-subnav-wrapper {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--white);
    }

    .menu-page .menu-subnav a {
        white-space: nowrap;
    }

    .menu-page .menu-subnav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .menu-page .menu-subnav::-webkit-scrollbar {
        display: none;
    }

    /* Left fade */
    .menu-page .menu-subnav-wrapper::before,
    .menu-page .menu-subnav-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 48px;
        pointer-events: none;
        z-index: 20;
    }

    .menu-page .menu-subnav-wrapper::before {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
    }

    .menu-page .menu-subnav-wrapper::after {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
    }


    .menu-page .menu-subnav-wrapper.is-stuck {
        padding-top: 64px;
        box-shadow: 0 2px 6px rgba(0,0,0,.08);
    }

    .menu-page .menu-item {
        grid-template-columns: 1.4fr 1.6fr;
        grid-template-rows: auto auto;
        row-gap: .5rem;
    }

    .menu-page .menu-item-price {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-end;
        border-left: none;
        padding-left: 0;
    }

    .menu-page .menu-item-desc {
        grid-column: 1 / -1;
        border-left: none;
        padding-left: 0;
        padding-top: .35rem;
    }
}
