<?php

/**
 * @copyright   Copyright (C) 2005 - 2013 Michael Richey. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
use Joomla\CMS\Language\Text;
?>
<div class="card <?= $this->params->get('overlay_text','dark')=='dark'?'bg-light text-dark':'bg-dark text-white';?> position-relative">
  <img src="<?= $product->image;?>" class="card-img" alt="<?= $product->title;?>">
  <div class="card-img-overlay text-<?= $this->params->get('overlay_text','dark');?>">
    <h5 class="card-title"><a target="_blank" href="<?= $product->url;?>"><?= $product->title;?></a></h5>
    <?php /* foreach($product->getItemInfo()->getFeatures()->getDisplayValues() as $feature) : ?>
    <p class="card-text"><?= $feature;?></p>
    <?php endforeach; */ ?>
    <a target="_blank" href="<?= $product->url;?>" class="btn <?= $this->params->get('button','btn-dark');?> <?= $this->params->get('button_size','');?> position-absolute bottom-0 end-0">
        <i class="fab fa-brands fa-amazon fa-fw me-2" style="color:#ff9800;"></i>
        <?php echo Text::_('PLG_CONTENT_APAAPI_BUTTON_TEXT');?>
    </a>
  </div>
</div>