{* @compiler:inline-only *}
<div class="product-description">
   {if $descr_exists || $body.product.video_url}
      {* v products.variations.tpl je forloop vsech popisu, tam setuju pokud nejaky vubec existuje *}
      {* je to problem hlavne u zahr. mutaci, protoze vetsinou popis nemaji, samotny nadpis vypada divne *}
      <h2 class="{$header_class}">{t}Popis produktu{/t}</h2>
   {/if}

   <div data-text="variation-description" class="variation-description">
      {$body.product.longDescr|default:$body.model.descr|default:$body.serie.descr|markdown2html nofilter}
   </div>
   {if $body.product.video_url}
      <div class="product-video">
         {$var = []}
         {$d = preg_match('/.*v=([A-Za-z0-9_]*)/', $body.product.video_url, $var)}
         {if !$var[1]}{$var[1] = $body.product.video_url|replace:'https://youtu.be/':''|replace:'https://youtube.com/shorts/':''}{/if}

         <iframe id="player" frameborder="0" allowfullscreen="1" allow="autoplay; encrypted-media" title="YouTube video player"
                 src="https://www.youtube.com/embed/{$var[1]}" loading="lazy" width="560" height="315"></iframe>
      </div>
   {/if}
</div>

<div class="product-description tabs-nav-product">
   <h2 class="{$header_class}" data-tab-target="#gpsr-tab"
      {if empty($body.product.param[$body.gpsrParamID]['values']) && !$body.product.sup_name && !$body.product.sup_addr && !$body.product.sup_contact}style="display:none;"{/if}
      >{t}Ostatní informace{/t}
   </h2>
    <div class="tab-pane" id="gpsr-tab" data-tabs="gpsr-tab" data-html="gpsr-tab-content">
       {gpsr_tab_content product=$body.product}
    </div>
</div>
