How can I create customer segments based on product variant?

How to create customer segments based on product variant?