{if $products|count}
   <h2 class="heading-linethrough"><span>{t}Naposledy prohlédnuté{/t}</span></h2>
   <div class="row">
      {foreach $products as $product}
         <div class="{$catalog_class|default:'col-xxl-2 col-xl-2 col-lg-4 col-sm-6 col-xs-12'}">
            <div class="catalog last-seen">
               <a href="{url s=product IDproduct=$product.id TITLE=$product.title}">
                  <div class="product-link {if !$product.image.id}noimage{/if}" title="{$product.title}">
                     <img src="{get_photo photo=$product.image size=2}" alt="{$product.title}" class="img-responsive m-x-auto">
                     {$gender = $product.sex}
                     {if $gender}
                        <div class="gender">
                           {if $gender == 'W'}
                              <i class="fc icons_female" title="{t}Pro ženy{/t}"></i>
                           {elseif $gender == 'M'}
                              <i class="fc icons_male" title="{t}Pro muže{/t}"></i>
                           {elseif $gender == 'U'}
                              <i class="fc icons_unisex" title="{t}Unisex{/t}"></i>
                           {elseif $gender == 'K'}
                              <i class="fc icons_child-gender" title="{t}Pro děti{/t}"></i>
                           {/if}
                        </div>
                     {/if}
                  </div>

                  <p class="text-center title">
                     {$product.model_title}
                  </p>

                  {if !empty($product.modelProducts)}
                     {get_prices_sizes_etc modelProducts=$product.modelProducts assign=additional_info}
                     {$product.additional_info=$additional_info}
                  {/if}
                  <p class="price text-center">
                     {if !is_null($additional_info.prices.min)}
                        {if $additional_info.prices.min->lessThan($additional_info.prices.max)}
                           {t}od{/t}
                        {/if}
                        {$additional_info.prices.min|format_price}
                     {elseif $product.price_array}
                        {$product.price_array|format_price}
                     {else}
                        {$product.deliveryTimeText}
                     {/if}
                  </p>
               </a>
            </div>
         </div>
      {/foreach}
   </div>
{/if}
