[PERF] Make ecommerce category page faster

Products variants related to one product template should have the same public categories, so it doesn't make sense to restrict domain on variant categories instead of product.template categories.

This change makes requests for category page 17 times faster (2.1min =>7.24sec) for shop with thousands of products and hundreds variants per product.