<?php
/**
 * Shared home products cards markup.
 * Expects: $products and shared badge/card vars.
 */
$__productCardFile = __DIR__ . '/product_card.php';
?>
<?php if (empty($products)): ?>
    <div class="products-empty-wrapper">
        <div class="products-empty-state">
            <div class="products-empty-icon">🛒</div>
            <div class="products-empty-text">
                <h4 class="mb-2">
                    <?= __('products.no_products_title', 'No products yet') ?>
                </h4>
            </div>
        </div>
    </div>
<?php else: ?>
    <?php foreach ($products as $product): ?>
        <?php include $__productCardFile; ?>
    <?php endforeach; ?>
<?php endif; ?>
