{**
 * 2007-2016 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2016 PrestaShop SA
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
{extends file=$layout}

{block name='head_seo' prepend}
  <link rel="canonical" href="{$product.canonical_url}">
{/block}

{block name='head' append}
  <meta property="og:type" content="product">
  <meta property="og:url" content="{$urls.current_url}">
  <meta property="og:title" content="{$page.meta.title}">
  <meta property="og:site_name" content="{$shop.name}">
  <meta property="og:description" content="{$page.meta.description}">
  <meta property="og:image" content="{$product.cover.large.url}">
  <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}">
  <meta property="product:pretax_price:currency" content="{$currency.iso_code}">
  <meta property="product:price:amount" content="{$product.price_amount}">
  <meta property="product:price:currency" content="{$currency.iso_code}">
  {if isset($product.weight) && ($product.weight != 0)}
  <meta property="product:weight:value" content="{$product.weight}">
  <meta property="product:weight:units" content="{$product.weight_unit}">
  {/if}
{/block}

{block name='content'}
  {if isset($smarty.get.thumb_type) && $smarty.get.thumb_type != ''}
    {assign var="dorDetailCols" value="proDetailCol1"}
    {assign var="dorDetailMainImage" value=$smarty.get.thumb_type}
  {/if}
  {if isset($smarty.get.detail_col) && $smarty.get.detail_col != ''}
    {assign var="dorDetailCols" value="proDetailCol{$smarty.get.detail_col}"}
  {/if}

  {if isset($smarty.get.info_style) && $smarty.get.info_style != '' && $smarty.get.info_style == 'default'}
    {assign var="dorDetalInfoStyle" value="1"}
  {/if}
  {if isset($smarty.get.info_style) && $smarty.get.info_style != '' && $smarty.get.info_style == 'accord1'}
    {assign var="dorDetalInfoStyle" value="2"}
  {/if}
  {if isset($smarty.get.info_style) && $smarty.get.info_style != '' && $smarty.get.info_style == 'accord2'}
    {assign var="dorDetalInfoStyle" value="3"}
  {/if}
  {if isset($smarty.get.info_style) && $smarty.get.info_style != '' && $smarty.get.info_style == 'scroll'}
    {assign var="dorDetalInfoStyle" value="4"}
  {/if}
  <section id="main" itemscope itemtype="https://schema.org/Product">
    <meta itemprop="url" content="{$product.url}">
    <input type="hidden" id="dorDetailMainIamge" value="{if isset($dorDetailMainIamge)}{$dorDetailMainIamge}{/if}">
    <input type="hidden" id="dorDetailCols" value="{if isset($dorDetailCols)}{$dorDetailCols}{/if}">
    <div class="row">
      <div class="col-md-6">
        {block name='page_content_container'}
          <section class="page-content" id="content">
            {block name='page_content'}
              {if isset($dorDetailCols) && $dorDetailCols == "proDetailCol4"}
              {block name='product_cover_tumbnails'}
                {include file='catalog/_partials/dorado/dorgallery-product-cover-thumbnails.tpl'}
              {/block}
              {else if isset($dorDetailCols) && ($dorDetailCols == "proDetailCol5" || $dorDetailCols == "proDetailCol6" || $dorDetailCols == "proDetailCol7")}
              {block name='product_cover_tumbnails'}
                {include file='catalog/_partials/dorado/dorsticky-product-cover-thumbnails.tpl'}
              {/block}
              {else}
              {block name='product_cover_tumbnails'}
                {include file='catalog/_partials/product-cover-thumbnails.tpl'}
              {/block}
              {/if}
              {if (isset($dorDetailCols) && $dorDetailCols != "proDetailCol1" && $dorDetailCols != "proDetailCol4" && $dorDetailCols != "proDetailCol5" && $dorDetailCols != "proDetailCol6" && $dorDetailCols != "proDetailCol7") || (isset($dorDetailMainImage) && ($dorDetailMainImage == 'bottom' || $dorDetailMainImage == '') && $dorDetailCols != "proDetailCol4" && $dorDetailCols != "proDetailCol5" && $dorDetailCols != "proDetailCol6" && $dorDetailCols != "proDetailCol7") || !isset($dorDetailCols)}
              <div class="scroll-box-arrows">
                <i class="material-icons left">&#xE314;</i>
                <i class="material-icons right">&#xE315;</i>
              </div>
              {/if}
            {/block}
          </section>
        {/block}
        </div>
        <div class="col-md-6">
          {block name='page_header_container'}
            {block name='page_header'}
              <div class="h1 product-name-detail" itemprop="name">{block name='page_title'}{$product.name}{/block}</div>
            {/block}
          {/block}

          {capture name='displayProductListReviews'}{hook h='displayProductListReviews' product=$product}{/capture}
          {if $smarty.capture.displayProductListReviews}
            <div class="dor-detail-reviews">
            {hook h='displayProductListReviews' product=$product}
            </div>
          {/if}

          {block name='product_prices'}
            {include file='catalog/_partials/product-prices.tpl'}
          {/block}

          <div class="product-information">
            {block name='product_description_short'}
              <div id="product-description-short-{$product.id}" itemprop="description">{$product.description_short nofilter}</div>
            {/block}

            {if $product.is_customizable && count($product.customizations.fields)}
              {block name='product_customization'}
                {include file="catalog/_partials/product-customization.tpl" customizations=$product.customizations}
              {/block}
            {/if}

            <div class="product-actions">
              {block name='product_buy'}
                <form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh">
                  <input type="hidden" name="token" value="{$static_token}">
                  <input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id">
                  <input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id">
                  <input type="hidden" name="idCombination" value="{$product.id_product_attribute}" id="idCombination">

                  {block name='product_variants'}
                    {include file='catalog/_partials/product-variants.tpl'}
                  {/block}

                  {block name='product_pack'}
                    {if $packItems}
                      <section class="product-pack">
                        <h3 class="h4">{l s='This pack contains' d='Shop.Theme.Catalog'}</h3>
                        {foreach from=$packItems item="product_pack"}
                          {block name='product_miniature'}
                            {include file='catalog/_partials/miniatures/pack-product.tpl' product=$product_pack}
                          {/block}
                        {/foreach}
                    </section>
                    {/if}
                  {/block}

                  {block name='product_discounts'}
                    {include file='catalog/_partials/product-discounts.tpl'}
                  {/block}

                  {block name='product_add_to_cart'}
                    {include file='catalog/_partials/product-add-to-cart.tpl'}
                  {/block}

                  {hook h='displayProductButtons' product=$product}

                  {block name='product_refresh'}
                    <input class="product-refresh ps-hidden-by-js" name="refresh" type="submit" value="{l s='Refresh' d='Shop.Theme.Actions'}">
                  {/block}
                </form>
              {/block}

            </div>
            {if isset($dorDetalInfoStyle) && $dorDetalInfoStyle == 2}
            {include file='catalog/_partials/dorado/dorproduct_info_accordion.tpl' product=$product}
            {/if}
            {hook h='displayReassurance'}
        </div>
      </div>
    </div>

    
    {if (isset($dorDetalInfoStyle) && $dorDetalInfoStyle == 1) || !isset($dorDetalInfoStyle)}
    {include file='catalog/_partials/dorado/dorproduct_info_default.tpl' product=$product}
    {else if isset($dorDetalInfoStyle) && $dorDetalInfoStyle == 4}
    {include file='catalog/_partials/dorado/dorproduct_info_scroll.tpl' product=$product}
    {else if isset($dorDetalInfoStyle) && $dorDetalInfoStyle == 3}
    {include file='catalog/_partials/dorado/dorproduct_info_accordion2.tpl' product=$product}
    {/if}
    
    {block name='product_accessories'}
      {if $accessories}
        <section class="product-accessories clearfix">
          <h3 class="h5 text-uppercase">{l s='You might also like' d='Shop.Theme.Catalog'}</h3>
          <div class="products">
            {foreach from=$accessories item="product_accessory"}
              {block name='product_miniature'}
                {include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory}
              {/block}
            {/foreach}
          </div>
        </section>
      {/if}
    {/block}
    {block name='product_images_modal'}
      {include file='catalog/_partials/product-images-modal.tpl'}
    {/block}

    {block name='page_footer_container'}
      <footer class="page-footer">
        {block name='page_footer'}
          <!-- Footer content -->
        {/block}
      </footer>
    {/block}
  </section>
  
{/block}
