<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Jet Theme Backend for Magento 2 (System)
 */
/** @var $block Amasty\JetTheme\Block\AjaxCart\Popup */
/** @var $escaper Magento\Framework\Escaper */

// @codingStandardsIgnoreLine
$helper = $this->helper(\Magento\Catalog\Helper\Output::class);
$product = $block->getProduct();
$rating = $block->getRatingSummary($product);
$productName = $helper->productAttribute($product, $product->getName(), 'name');
$escaper = isset($escaper) ? $escaper : $block;
?>

<?= $block->getBlockHtml('gallery.styles') ?>

<div class="column main amtheme-product-wrap">
    <?= /* @noEscape */ $block->getLayout()->renderNonCachedElement('product.info.media') ?>

    <div class="amtheme-product-info">
        <p class="product-name">
            <?= $escaper->escapeHtml($productName); ?>
        </p>
        <div class="amtheme-short-info">
            <?php if ($rating): ?>
                <div class="amtheme-rating"><?= /* @noEscape */ $rating; ?></div>
            <?php endif; ?>
            <?= /* @noEscape */ $block->getLayout()->renderNonCachedElement('product.info.stock.sku') ?>
        </div>
        <div class="product-info-main">
            <div class="amtheme-description">
                <?= /* @noEscape */ $helper->productAttribute($product, $product->getShortDescription(), 'short_description') ?>
            </div>
            <?= /* @noEscape */ $block->getOptions(); ?>
        </div>
    </div>
</div>
