<div class="catalog-card catalog-item-card">
    <a href="{{ $item->getUrl() }}" class="catalog-item-card__image-link">
        @if ($item->isCardType() && trim($item->class))
            <span class="catalog-item-card__type-tag">{{ $item->present()->getClass() }}</span>
        @endif
        <img class="catalog-card__image" src="{{ $item->getImageUrl() }}" alt="{{ $item->name }}">
    </a>
    <div class="catalog-card__body">
        <a class="catalog-item-card__name" href="{{ $item->getUrl() }}" title="{{ $item->name }}">{{ $item->name }}</a>
        @if ($item->manufacturer)
            <p class="catalog-item-card__manufacturer">{{ $item->manufacturer }}</p>
        @endif
        @if ($item->isSimple())
            <h6 class="catalog-item-card__points">{{ $item->getPoints() }} {{ __('Catalog::theme.general.points') }}</h6>
        @else
            <h6 class="catalog-item-card__points">{{ $item->getTypeInstance()->getPointsRange() }} {{ __('Catalog::theme.general.points') }}</h6>
        @endif
        <div class="catalog-item-card__actions">
            <a href="{{ $item->getUrl() }}" class="btn btn-primary">{{ __('Catalog::theme.cart.item.view.label') }}</a>
            <a href="{{ $item->getFavoriteUrl() }}" class="btn btn-default catalog-item-card__favorite {{ $item->isFavorited() ? 'is-active' : '' }}" title="{{ $item->isFavorited() ? __('Catalog::theme.favorite.item.remove.label') : __('Catalog::theme.favorite.item.add.label') }}">
                <span class="{{ $item->isFavorited() ? 'fa-solid' : 'fa-regular' }} fa-heart"></span>
            </a>
        </div>
    </div>
</div>
