<?php
global $wc_loop_i;
$short_description = apply_filters( 'woocommerce_short_description', $post->post_excerpt );
$opt = get_option( 'saasland_opt' );
global $product;
$is_product_lightbox = isset($opt['is_product_lightbox']) ? $opt['is_product_lightbox'] : '1';
?>
<div <?php wc_product_class( 'row shop_list_item' ); ?>>
    <div class="col-md-5">
        <div class="shop_list_img">
            <?php the_post_thumbnail( 'saasland_450x420', array( 'class' => 'img-fluid')) ?>
        </div>
    </div>
    <div class="col-md-7 single_product_item mt-0">
        <div class="single_pr_details text-start">
            <a href="<?php the_permalink() ?>" class="s_list_title">
                <h3 class="f_p f_500 f_size_22"> <?php the_title(); ?> </h3>
            </a>

            <?php woocommerce_template_single_rating() ?>

            <?php woocommerce_template_loop_price(); ?>

            <p class="f_p f_300 f_size_15 mt_30 mb_50"> <?php echo get_the_excerpt() ?> </p>
            <div class="pr_button">
                <a href="?add-to-cart=<?php echo get_the_ID() ?>" title="<?php echo esc_attr($product->single_add_to_cart_text()) ?>" class="cart_btn">
                    <?php esc_html_e( 'Add to cart', 'saasland' ) ?>
                </a>
                <?php echo shortcode_exists( 'ti_wishlists_addtowishlist' ) ? do_shortcode( '[ti_wishlists_addtowishlist]' ) : ''; ?>
                <?php if ( $is_product_lightbox == '1' ) : ?>
                    <a href="<?php the_post_thumbnail_url() ?>" class="img_popup">
                        <?php echo saasland_get_icon_svg('saasland-svg-icon', 'ti-eye', '16' ); ?>
                    </a>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>