{if $body.products|count or $body.sections|count or $body.producers|count}
   <div class="container autocomplete-inner autocomplete-preload">
      {if $body.products|count}
      <div class="autocomplete-wrapper">
         <div class="autocomplete-products">
            <p class="title-default">{t}Zboží{/t}</p>
            <ul>
               {foreach $body.products as $product}
                  <li class="autocomplete-product-item">
                     <a href="{url s=product IDproduct=$product.id TITLE=$product.title}">
                        <div class="img">
                           <img src="{get_photo photo=$product.image size='product_catalog'}" alt="{$product.title}" class="img-fluid">
                        </div>
                        <span class="title">{$product.title}</span>
                        {block "search-preload-price"}
                           {calc_product_discount product=$product assign='discount'}
                           <span class="price">{$product.productPrice|format_price}</span>
                           {if $discount.discount->asFloat() >= 1}
                              <span class="price-common">{$discount.priceOriginal|format_price}</span>
                           {/if}
                        {/block}
                     </a>
                  </li>
               {/foreach}
            </ul>
         </div>
         {/if}
      </div>
      <div class="autocomplete-side">
         {if $body.sections|count}
            <div class="autocomplete-categories">
               <p class="title-default">{t}Kategorie{/t}</p>
               <ul>
                  {foreach $body.sections as $section}
                     <li>
                        <a href="{url s=category IDcat=$section.id}">{$section.name}</a>
                     </li>
                  {/foreach}
               </ul>
            </div>
         {/if}
         {if $body.producers|count}
            <div class="autocomplete-categories">
               <p class="title-default">{t}Značky{/t}</p>
               <ul>
                  {foreach $body.producers as $producer}
                     <li>
                        <a href="{url s=category IDpd=$producer.id producerTitle=$producer.name}">{$producer.name}</a>
                     </li>
                  {/foreach}
               </ul>
            </div>
         {/if}
      </div>
   </div>
{/if}
