/* ===== "Shop by category" as a sliding row (owner 2026-11-17) ==========
   Only the grid that the script marks with .rx-slide turns into a row; when
   the tiles fit in one line nothing changes. */
body.rx-shop .sf-cats .sf-cat-grid.rx-slide {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 7px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
    scroll-behavior: smooth;
}

body.rx-shop .sf-cats .sf-cat-grid.rx-slide::-webkit-scrollbar {
    display: none;
}

body.rx-shop .sf-cats .sf-cat-grid.rx-slide > span {
    display: contents;
}

body.rx-shop .sf-cats .sf-cat-grid.rx-slide .sf-cat-tile {
    flex: 0 0 calc((100% - 14px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}
