How/where do I edit product box structure?

I am working on my custom woo theme, and i want to change the structure of the product box in the product loop. I found that the “

    ” and “

” are in loop -start and -end files, but how do I change the inside html?

I could find individual components like price, title, etc, but I want to move the add to cart button inside the “.woocommerce-LoopProduct-link”, now i have this structure:

<ul class="products columns-4"> <li class="product"> <a class="woocommerce-LoopProduct-link">...</a> <a class="add_to_cart_button">...</a> </li> </ul> 

I tried to search the documentation and couldn’t find anything useful.