.category-nav-shell {
    position: sticky;
    top: 82px;
    z-index: 44;
    margin: 0 -24px;
    padding: 10px 24px;
    background: linear-gradient(180deg, #0b0d0f 78%, #0b0d0fe8 90%, transparent);
    transition: box-shadow 180ms ease, background-color 180ms ease;
}

.category-nav-shell.is-stuck {
    background: #0b0d0ff7;
    box-shadow: 0 16px 34px #0008;
    backdrop-filter: blur(18px);
}

.category-carousel {
    position: relative;
}

.category-nav-shell .category-strip {
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    align-items: center;
}

.category-nav-shell .category-card {
    flex: 0 0 100px;
    min-width: 100px;
    height: 82px;
    padding: 7px 6px;
    gap: 4px;
    scroll-snap-align: center;
}

.category-nav-shell .category-card i {
    flex: 0 0 34px;
    width: 100%;
    display: grid;
    place-items: center;
    line-height: 1;
}

.category-nav-shell .category-card span {
    width: 100%;
    min-height: 2.5em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: inherit;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
}

.category-scroll-button {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ff9a3c9e;
    border-radius: 14px;
    background: linear-gradient(145deg, #ff7a18, #dc4f00);
    color: #fff;
    box-shadow: 0 9px 24px #0009, inset 0 1px #ffffff47;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.category-nav-shell.has-overflow .category-scroll-button {
    display: grid;
    place-items: center;
}

.category-scroll-button.is-backward {
    right: 0;
}

.category-scroll-button.is-forward {
    left: 0;
}

.category-scroll-button span {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.category-scroll-button:hover:not(:disabled),
.category-scroll-button:focus-visible {
    box-shadow: 0 12px 28px #000b, 0 0 0 3px #ff8a2938;
    transform: translateY(-50%) scale(1.05);
}

.category-scroll-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.category-scroll-button:disabled {
    opacity: 0;
    pointer-events: none;
}

.category-nav-shell.has-overflow .category-strip {
    padding-inline: 52px;
}

.category-nav-shell .category-card {
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.category-nav-shell .category-card.active {
    transform: translateY(-2px);
}

.menu-start {
    height: 1px;
}

.category-menu-section {
    min-height: 360px;
    scroll-margin-top: 220px;
}

.category-menu-section + .category-menu-section {
    border-top: 1px solid #ffffff12;
}

.category-menu-section .section-heading > small {
    color: #8f8b86;
    font-size: 11px;
}

@media (max-width: 680px) {
    .category-nav-shell {
        top: 66px;
        margin: 0 -12px;
        padding: 8px 12px;
    }

    .category-nav-shell .category-strip {
        margin: 0;
        gap: 7px;
        padding-block: 0 4px;
    }

    .category-nav-shell.has-overflow .category-strip {
        padding-inline: 43px;
    }

    .category-scroll-button {
        width: 36px;
        height: 48px;
        border-radius: 12px;
    }

    .category-scroll-button span {
        font-size: 21px;
    }

    .category-nav-shell .category-card {
        flex: 0 0 72px;
        min-width: 72px;
        height: 72px;
        padding: 6px 4px;
        gap: 4px;
        border-radius: 12px;
    }

    .category-nav-shell .category-card i {
        flex-basis: 27px;
        font-size: 18px;
        line-height: 1;
    }

    .category-nav-shell .category-card span {
        font-size: 9px;
        line-height: 1.3;
    }

    .category-menu-section {
        min-height: 320px;
        padding-top: 12px;
        scroll-margin-top: 150px;
    }

    .category-menu-section .section-heading {
        margin-bottom: 12px;
    }

    .category-nav-shell.is-stuck .category-card {
        box-shadow: none;
    }
}

@media (min-width: 681px) and (max-width: 1000px) {
    .category-nav-shell .category-strip {
        gap: 8px;
    }

    .category-nav-shell .category-card {
        flex: 0 0 88px;
        min-width: 88px;
        height: 76px;
        padding: 6px 5px;
        gap: 5px;
        border-radius: 13px;
    }

    .category-nav-shell .category-card i {
        flex-basis: 32px;
        font-size: 21px;
    }

    .category-nav-shell .category-card span {
        font-size: 10px;
    }
}
