Advanced use of CMS

Question:
[Hi, I’m wondering if anyone can help me with the following. I want to use CMS to display product categories (main categories). These in turn have four or five subcategories that I want to display in a repeater on the dynamic product category page. How am I going to manage to do this - either with a CMS collection or by connecting multiple CMS collections?]

Product:
[Wix Studio Editor.]

you could use reference fields to link the subcategories to the main categories.