<?php
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes 2020-present. All rights reserved.
 * This product is licensed per Magento install
 * See https://hyva.io/license
 */

declare(strict_types=1);

use Hyva\Theme\Model\ViewModelRegistry;
use Hyva\Theme\ViewModel\CurrentProduct;
use Hyva\Theme\ViewModel\Modal;
use Magento\Catalog\Model\Product;
use Magento\Framework\Escaper;
use Magento\Framework\View\Element\Template;

// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis

/** @var Template $block */
/** @var Escaper $escaper */
/** @var ViewModelRegistry $viewModels */

/** @var CurrentProduct $currentProduct */
$currentProduct = $viewModels->require(CurrentProduct::class);

$product = $block->hasData('product')
    ? $block->getData('product')
    : $currentProduct->get();

if (!$product || !$product->getId()) {
    return;
}

$shortDescription = $product->getData('short_description');  // Use getData() for raw HTML

?>

<?php if (!empty($shortDescription) && strtolower($shortDescription) !== 'no'): ?>


    <?php endif ?>
<div class="grid grid-cols-2 gap-4">
    <img src="/media/catalog/category/1.jpg" alt="Image 1" class="w-full h-auto rounded shadow">
    <img src="/media/catalog/category/1.jpg" alt="Image 2" class="w-full h-auto rounded shadow">
</div>
