<?php
if (!isset($product)) {
    return;
}

$title = __('sections.guarantee', 'Our Guarantee');

$badges = $product['badges'] ?? [
    __('guarantee.badge_1', 'Cash on Delivery'),
    __('guarantee.badge_2', 'Fast Shipping'),
    __('guarantee.badge_3', 'Money Back Guarantee'),
];
?>

<section class="home-section guarantee-section" id="guarantee">
    <div class="container">

        <div class="section-head">
            <h2><?= htmlspecialchars($title, ENT_QUOTES, 'UTF-8') ?></h2>
        </div>

        <div class="guarantee-grid">

            <?php foreach ($badges as $badge): ?>
                <div class="guarantee-card">
                    <div class="guarantee-icon">✓</div>
                    <div class="guarantee-text">
                        <?= htmlspecialchars($badge, ENT_QUOTES, 'UTF-8') ?>
                    </div>
                </div>
            <?php endforeach; ?>

        </div>

    </div>
</section>
