<div class="cartbox-focus {if $no_simplebar}custom-scrollbar{/if}" data-cartbox>
   {block "cartbox-header"}
      <div class="cartbox-header">
         {block 'cartbox-title'}
            <p class="h3">{t}Nákupní košík{/t}</p>
         {/block}
         {block 'cartbox-hide'}
            <a href="#" class="fc lightbox_close" data-cartbox-hide></a>
         {/block}
      </div>
   {/block}

   <div class="cartbox-product-list" {if !$no_simplebar}data-simplebar data-simplebar-auto-hide="false"{/if}>
      <div data-reload="cartbox-products">
         {if $cartInfo.items}
            {include "block.products.cart-box.tpl" items=$cartInfo.items image_size=$image_size count=$items_count}
         {else}
            <p class="no-items">{t}V košíku nemáte žádné zboží.{/t}</p>
         {/if}
      </div>
   </div>


   <div class="cartbox-footer">
      <div data-reload="cartbox-footer">
         {block "cartbox-footer"}
            {if !$isDealer}
               {include "components/shipping-progress.tpl" cartPrice=$cartInfo.totalPriceWithVat_array.value_with_vat}
            {/if}
            {block 'price-summary'}
               <div class="price-title">{t}Mezisoučet{/t}
                  <strong class="total-price h3">{$cartInfo.totalPrice}</strong>

                  {*{get_cart_savings assign='cartSavings'}
                  {if $cartSavings->isPositive()}
                     <span>{t}Ušetříte{/t} {$cartSavings|format_price}</span>
                  {/if}*}
               </div>
            {/block}

            {block 'cartbox-btns'}
               <a href="{url s=cart}" class="btn btn-block btn-primary{if $cartInfo.totalPieces == 0} disabled{/if}">{t}Do košíku{/t}</a>
            {/block}
         {/block}
      </div>
   </div>
</div>
<div class="cartbox-bg" data-cartbox></div>
<div class="cartbox-overlay" data-cartbox data-cartbox-hide></div>
