title: Display deepest child category for current product in woocommerce
body: <p>This seems like it should be easy to do but I haven't been able to, and cannot find any posts regarding it.</p>
  
  <p>I can display all the categories associated with a product, or the top category, but how do you echo only the lowest / deepest category for a product?</p>
  
  <pre><code>Cat-A [x]
    Cat-B [x]
      Cat-C [x]
    Cat-D [ ]
  Cat-E [ ]
    Cat-F [ ]
      Cat-G [ ]
        Cat-H [ ]
  </code></pre>
  
  <p>If this example is the product's ancestry, all I want to print is "Cat-C".</p>
  
  <p>But I don't want to manually set the category level like other solutions, I want it to always print the lowest child, be the product on the archive page, or single product page.</p>
  
  <p>Any idea of how this can / should be done?</p>