I searched this topic and found the following info:
(1) Go to DASHBOARD >> PRODUCTS >> PRODUCT CATEGORIES
>> Fill your category name, slug (url) and parent category.
>> For main category, select "none" for parent category.
>> For sub category, choose your main category
(2) Go to APPEARANCE...