<?php
 $product = wc_get_product( get_the_ID() );
 $product_categories = wc_get_product_category_list( get_the_ID());
 $product_brand = wp_get_post_terms(get_the_ID(), "brand");
?>
 <div class="product-item-box">
     <div class="pro-img">
         <a href="<?php the_permalink(); ?>">
             <?php the_post_thumbnail();?>
         </a>
     </div>
     <div class="product-content">
         <div class="product-content-info">
             <div class="">
                 <div>
                     <h5 class="product-brand">
                         <?php
                             if ($product_brand && count($product_brand) && isset($product_brand[0])) {
                                 echo  esc_html($product_brand[0]->name);
                             }
                         ?>
                     </h5>
                 </div>
             </div>
             <div class="pro-content">
                 <div class="home-product-title "> 
                     <h4 class="product-title ">
                         <a href="<?php the_permalink(); ?>">
                             <?php echo get_the_title(); ?>
                         </a>
                     </h4>
                 </div>
                 <div class="product-price ">
                     <div class="product-price-rate">
                         <?php echo $product->get_price_html(); ?>
                     </div>
                 </div>
             </div>
         </div>
         <div class="product-content-btns">
             <div class="wishlist-quick-view">
                 <?php echo do_shortcode('[yith_wcwl_add_to_wishlist]'); ?>
                 <div class="quick_view"><?php echo do_shortcode('[yith_quick_view]'); ?> </div>
             </div>
             <div class="add-to-cart">
                 <span class="cart-btn my-2">
                     <?php if( $product->is_type( 'variable' ) ){ woocommerce_template_loop_add_to_cart( $product ); } ?>
                 </span>
             </div>
         </div>
     </div>
 </div>