/* Catalog controls must fit the available column, including tablet widths. */
.catalog-page .cat-list-name {
    flex: 1 1 220px;
    min-width: 0;
    width: auto;
    overflow-wrap: anywhere;
}

.catalog-page .onerilen {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
}

.catalog-page .onerilen form,
.catalog-page select[name="sort"] {
    max-width: 100%;
}

.catalog-page .prev-cat {
    max-width: 100%;
    white-space: normal;
}

.catalog-page .yan-kategori-list,
.catalog-page .yan-kategori-heading,
.catalog-page .allcategory-heading,
.catalog-page .allcategory-list {
    overflow-wrap: anywhere;
}

.catalog-page .redirect-category-ust,
.catalog-page .redirect-category-alt {
    height: auto;
}

/* Keep every product thumbnail reachable when the gallery becomes a row. */
@media (max-width: 1199.98px) {
    #thumbnail-carousel .product-detail-carousel-item-position {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    #thumbnail-carousel .product-detail-carousel-item-position > div {
        flex: 0 0 auto;
    }
}
