{function modal_product}
    <div class="inner" data-product="{$product.id}" data-position="{$product@iteration}">
        <div class="col-md-6 col-xs-12 product-image hidden-sm-down">
            <div class="product-photo">
                {if $product.image}
                    <img src="{get_photo photo=$product.image size=3}"
                         alt="{$product.image.descr}" title="{$product.image.descr}"
                         class="img-responsive"/>
                {else}
                    <img src="{get_photo photo=0 size=3}"
                         alt="{$product.title}" class="img-responsive"/>
                {/if}
            </div>
            {if $product.photos}
                <div class="product-gallery" id="product-gallery-modal">
                    {foreach $product.photos as $photo}
                        <span class="thumb">
                                 <img src="{get_photo photo=$photo size=4}" alt="{$photo.descr}" class="img-responsive"/>
                              </span>
                    {/foreach}
                </div>
            {/if}
        </div>
        <div class="col-md-6 col-xs-12 product-content">
            <h1 id="main-title-modal">{$product.title}</h1>
            <div class="perex p-t-1">
                {$product.longDescr nofilter}
            </div>
            {if count($product.variations) > 0  &&  $cfg.module.products_variations }
                <div class="variations-box row p-y-1">
                    <div class="col-xs-12 m-b-1">
                        <h3>Velikost</h3>
                    </div>
                    <div class="col-xs-12 variations {$colorClass}" data-set-variations="variations">
                        {$p=0}
                        {foreach $product.variations as $variation}
                            {$p=$p+1}
                            <label onclick="" class="custom-radio product-variations-item{if $variation.in_store < 1} disabled{/if}">
                                <input name="IDvariation" type="radio" value="{$variation.id}" class="custom-control-input"
                                        {if $variation.in_store < 1} disabled{/if}>
                                <span class="variation-title">
                                              {$variation.value}
                                       </span>
                            </label>
                        {/foreach}
                    </div>
                </div>
            {/if}
            <div class="add-to-cart-box">
                <input type="hidden" name="IDcategory" value="{$category_index}">
                <input type="hidden" name="IDproduct" value="{$product.id}">
                <input type="hidden" name="image" value="{get_photo photo=$product.image size=4}">
                <input type="hidden" name="price" value="{$product.productPrice.value_with_vat}">

                <button type="submit" value="Vložit do setu"
                        class="btn btn-primary btn-{$colorClass}"
                        title="Vložit do setu" data-add-to-set{if $product.deliveryTime != 0} disabled{/if}>Vložit do setu</button>
                <hr>
                <p>
                    <a href="{url s=product IDproduct=$product.id TITLE=$product.title}" title="{$product.title}">Koupit samostatně</a> ({$product.productPrice.value_with_vat|format_price})
                </p>
            </div>
        </div>
    </div>.
{/function}

{foreach $set.categories as $category_index =>  $category}
   <div class="focus product-set" data-category="{$category_index}">
      <div class="focus-content">
         <div class="image-background pos-abs alt-bg hidden-sm-down"></div>
         <a href="#" class="focus-close lightbox_close" data-focus="close"></a>

         <div class="product-set-navigation">
            <a href="#" class="nav-item nav-item-prev" data-product-set-nav data-direction="prev"></a>
            <a href="#" class="nav-item nav-item-next" data-product-set-nav data-direction="next"></a>
         </div>

            {foreach $category.products as $key => $product}
                {block modal_product}
                    {modal_product}
                {/block}
            {/foreach}
      </div>
   </div>
{/foreach}
