.qr-menu-page {
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 300px),
        var(--autoservice-paper);
}

.qr-menu-shell {
    width: min(520px, 100%);
    height: 100dvh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 18px;
    margin: 0 auto;
    padding: 20px 28px;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    color: var(--autoservice-ink);
}

.qr-menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.qr-menu-logo {
    width: 88px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .56));
}

.qr-menu-categories {
    display: none;
}

.qr-menu-category-tools {
    min-width: 0;
}

.qr-menu-mobile-select {
    width: 100%;
    display: grid;
}

.qr-menu-mobile-select select {
    width: 100%;
    min-height: 42px;
    appearance: none;
    border: 1px solid rgba(55, 47, 42, .22);
    border-radius: 999px;
    background:
        linear-gradient(45deg, transparent 50%, #fffaf2 50%) right 18px center / 7px 7px no-repeat,
        linear-gradient(135deg, #fffaf2 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
        #5b554f;
    color: #fffaf2;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    outline: 0;
    padding: 0 42px 0 17px;
    box-shadow: 0 10px 22px rgba(35, 31, 32, .08);
}

.qr-menu-mobile-select select:focus {
    box-shadow: 0 0 0 3px rgba(255, 121, 0, .14), 0 10px 22px rgba(35, 31, 32, .08);
}

.qr-menu-product-panels,
.qr-menu-product-panel {
    min-height: 0;
}

.qr-menu-product-list {
    min-height: 0;
    align-items: start;
    overflow-x: hidden;
}

.qr-menu-product-panels {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 34px;
}

.qr-menu-product-panels::-webkit-scrollbar {
    display: none;
}

.qr-menu-category-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 20px 0 2px;
    color: var(--autoservice-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
}

.qr-menu-category-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qr-menu-product-panel:first-child .qr-menu-category-title {
    margin-top: 4px;
}

.qr-menu-product-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: max-content;
    align-self: start;
    padding: 17px 0 19px;
}

.qr-menu-product-card .autoservice-product-actions {
    align-self: start;
    margin-top: 0;
}

.qr-menu-product-card .autoservice-product-info {
    gap: 5px;
}

.qr-menu-product-card .autoservice-product-info strong {
    font-size: 17px;
    line-height: 1.12;
}

.qr-menu-product-card .autoservice-product-info p {
    max-width: 34em;
    font-size: 13px;
    line-height: 1.28;
}

.qr-menu-product-card .autoservice-product-info span {
    margin-top: 1px;
    font-size: 13px;
}

.qr-menu-empty {
    align-self: center;
    justify-self: center;
    display: grid;
    gap: 6px;
    text-align: center;
    color: #74675f;
}

.qr-menu-empty strong {
    color: var(--autoservice-ink);
    font-size: 17px;
}

.qr-menu-empty span {
    font-size: 13px;
    font-weight: 800;
}

@media (min-width: 720px) {
    .qr-menu-shell {
        padding-right: 34px;
        padding-left: 34px;
    }

    .qr-menu-categories {
        padding-right: 34px;
        padding-left: 34px;
    }
}

@media (min-width: 900px) {
    .qr-menu-page {
        overflow: hidden;
        background:
            radial-gradient(circle at 50% 5%, rgba(255, 255, 255, .54), rgba(255, 255, 255, 0) 360px),
            var(--autoservice-paper);
    }

    .qr-menu-shell {
        width: min(1180px, calc(100% - 72px));
        grid-template-columns: 230px minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        column-gap: 34px;
        row-gap: 26px;
        padding: 32px 0 40px;
    }

    .qr-menu-header {
        grid-column: 1 / -1;
        justify-content: center;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(55, 47, 42, .13);
    }

    .qr-menu-logo {
        width: 132px;
    }

    .qr-menu-categories {
        display: flex;
        align-self: start;
        max-height: calc(100dvh - 178px);
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 4px 20px 20px 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 1px solid rgba(55, 47, 42, .12);
    }

    .qr-menu-category-tools {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
    }

    .qr-menu-mobile-select {
        display: none;
    }

    .qr-menu-categories button {
        width: 100%;
        min-height: 40px;
        gap: 9px;
        justify-content: flex-start;
        padding: 0 16px;
        font-size: 13px;
        text-align: left;
    }

    .qr-menu-categories .qr-menu-category-icon {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }

    .qr-menu-product-panels {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        height: 100%;
        overflow: hidden;
        padding-bottom: 0;
    }

    .qr-menu-product-panel {
        height: 100%;
        overflow: hidden;
    }

    .qr-menu-product-panel[hidden] {
        display: none;
    }

    .qr-menu-category-title {
        display: none;
    }

    .qr-menu-product-list {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 10px 40px 0;
    }

    .qr-menu-product-list::-webkit-scrollbar {
        display: none;
    }

    .qr-menu-product-card {
        padding: 20px 0 22px;
    }

    .qr-menu-product-card .autoservice-product-info {
        gap: 6px;
    }

    .qr-menu-product-card .autoservice-product-info strong {
        font-size: 18px;
    }

    .qr-menu-product-card .autoservice-product-info p {
        font-size: 13px;
        line-height: 1.35;
    }

    .qr-menu-product-card .autoservice-product-info span {
        font-size: 13px;
    }
}

@media (min-width: 1120px) {
    .qr-menu-shell {
        grid-template-columns: 240px minmax(0, 1fr);
        column-gap: 42px;
    }

    .qr-menu-product-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: max-content;
        align-content: start;
        column-gap: 42px;
    }
}

@media (min-width: 1120px) and (max-height: 700px) {
    .qr-menu-shell {
        grid-template-columns: 240px minmax(0, 1fr);
        row-gap: 18px;
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .qr-menu-header {
        padding-bottom: 12px;
    }

    .qr-menu-logo {
        width: 108px;
    }

    .qr-menu-categories {
        max-height: calc(100dvh - 134px);
        gap: 8px;
        padding-top: 2px;
        padding-bottom: 14px;
    }

    .qr-menu-categories button {
        min-height: 36px;
    }

    .qr-menu-product-list {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 30px;
    }

    .qr-menu-product-card {
        padding-top: 13px;
        padding-bottom: 15px;
    }

    .qr-menu-product-card .autoservice-product-info strong {
        font-size: 16.5px;
    }

    .qr-menu-product-card .autoservice-product-info p {
        line-height: 1.3;
    }
}

@media (max-width: 390px) {
    .qr-menu-shell {
        padding-right: 26px;
        padding-left: 26px;
    }

    .qr-menu-logo {
        width: 78px;
    }

    .qr-menu-categories {
        padding-right: 26px;
        padding-left: 26px;
    }
}
