How to design subcategories menu in ecommerce?

How can I design categories and subcategories menu in the menu.
This is the best example of what I need. Women's Cycling, Triathlon & Speed Skating Suits | High Performance | Garneau USA
When you click men or women in the menu, other subcategories are opening.