<?php

defined('ABSPATH') || exit;

global $product;

// Ensure visibility.
if (empty($product) || !$product->is_visible()) {
    return;
}
?>
<li <?php wc_product_class('product-list', $product); ?>>
    <?php
    /**
     * Functions hooked in to bikys_woocommerce_before_shop_loop_item action
     *
     */
    do_action('bikys_woocommerce_before_shop_loop_item');


    ?>
    <div class="product-label">
        <?php
        woocommerce_show_product_loop_sale_flash();
        bikys_woocommerce_get_product_label_stock();
        ?>
    </div>
    <div class="product-transition">
        <div class="product-image image-main">
            <?php
            /**
             * Functions hooked in to bikys_woocommerce_before_shop_loop_item_title action
             *
             * @see woocommerce_template_loop_product_thumbnail - 15 - woo
             *
             *
             */
            do_action('bikys_woocommerce_before_shop_loop_item_title');
            ?>
        </div>
    </div>
    <div class="product-caption">
        <?php bikys_woocommerce_get_product_category(); ?>
        <?php woocommerce_template_loop_product_title(); ?>
        <?php woocommerce_template_loop_price(); ?>
        <?php woocommerce_template_loop_rating(); ?>
        <?php bikys_woocommerce_render_variable(); ?>
        <div class="product-action">
            <?php woocommerce_template_loop_add_to_cart(); ?>
            <div class="group-action">
                <div class="shop-action">
                    <?php bikys_wishlist_button(); ?>
                    <?php bikys_compare_button(); ?>
                    <?php bikys_quickview_button(); ?>
                </div>
            </div>
        </div>
    </div>
    <?php
    /**
     * Functions hooked in to bikys_woocommerce_after_shop_loop_item action
     *
     */
    do_action('bikys_woocommerce_after_shop_loop_item');
    ?>
</li>
