<div class="product-items">
    <div class="items col-12">
        <a class="a col-12" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
            <?php the_post_thumbnail(); ?>
        </a>

        <div class="block col-12">
            <h3><?php the_title(); ?></h3>
            <span class="reat"><?php echo do_shortcode('[cusrev_reviews_rating]') ?> </span>

            <?php
            global $product;
            $regular = $product->get_regular_price();
            $sale    = $product->get_sale_price();
            ?>

            <div class="prices">
                <?php if ( $product->is_on_sale() ) : ?>
                    <span class="regular-price" style="text-decoration:line-through;color:#72826D;">
                        <?php echo wc_price($regular); ?>
                    </span>

                    <span class="sale-price" style="color:#B928E5;font-weight:bold;margin-right:8px;">
                        <?php echo wc_price($sale); ?>
                    </span>

                <?php else : ?>
                    <span class="normal-price" style="font-weight:bold;">
                        <?php echo wc_price($regular); ?>
                    </span>
                <?php endif; ?>
            </div>

            <!-- زر إضافة للمفضلة -->
            <div class="add heart" data-product-id="<?php echo get_the_ID(); ?>"></div>

            <!-- زر حذف من المفضلة -->
            <div class="remove-from-wishlist" data-product-id="<?php echo get_the_ID(); ?>">
                حذف
            </div>

        </div><!-- block -->
    </div><!-- items -->
</div><!-- product-items -->
