<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

global $product;

if ( ! is_a( $product, 'WC_Product' ) ) {
	return;
}

?>
<li>
	<?php do_action( 'woocommerce_widget_product_item_start', $args ); ?>

	<div class="product-single" href="<?php echo esc_url( $product->get_permalink() ); ?>">
		<div class="product-featured">
			<?php echo woocommerce_get_product_thumbnail('full'); ?>
		</div>
		<div class="product-info">
			<span class="product-title">
				<?php echo wp_kses_post( $product->get_name() ); ?>
			</span>
			<?php echo wp_kses_post( $product->get_price_html() ); ?>
		</div>
		<a class="product-link" href="<?php echo esc_url( $product->get_permalink() ); ?>"></a>
	</div>
	<?php do_action( 'woocommerce_widget_product_item_end', $args ); ?>
</li>
