Please create an attribute, then a variable product following the Woocommerce instruction, then add attribute filter to the shop page widget area in Appearance > Widgets
You can configure the sidebar for the shop page in the Theme Settings > Shop page > Layout.