Custom Post Types – View products by attributes on category pages


I'm looking for a solution for displaying products by attributes (pa_size and pa_color) on the product category pages.
I have too many color and size options for my products. That's why I want to create subcategories for all of them and display them. To like; example.com/parent-category/subcategory/ (subcategory is an attribute term and should display products by attributes) I can display products by shortcode on the regular WordPress content page, but I think that's not a good solution. I searched for hours, but I can not figure it out. Could someone help me with that?