<?php

/* mart/template/product/product.twig */
class __TwigTemplate_7ccedb009b45eb39a2dd3554928dbf4f905ce7ba9e107f0bc2c07d74b9483c55 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo (isset($context["header"]) ? $context["header"] : null);
        echo "
";
        // line 2
        if ((isset($context["animated_fadeup"]) ? $context["animated_fadeup"] : null)) {
            // line 3
            echo "  ";
            $context["fadeup"] = "animated fadeInUp";
        } else {
            // line 5
            echo "  ";
            $context["fadeup"] = "";
        }
        // line 7
        echo "<div id=\"product-product\" class=\"";
        echo (((isset($context["container"]) ? $context["container"] : null)) ? ((isset($context["container"]) ? $context["container"] : null)) : ("container-fluid"));
        echo "\">
  <div class=\"row\">";
        // line 8
        echo (isset($context["column_left"]) ? $context["column_left"] : null);
        echo "
    ";
        // line 9
        if (((isset($context["column_left"]) ? $context["column_left"] : null) && (isset($context["column_right"]) ? $context["column_right"] : null))) {
            // line 10
            echo "    ";
            $context["class"] = "col-sm-6";
            // line 11
            echo "    ";
        } elseif (((isset($context["column_left"]) ? $context["column_left"] : null) || (isset($context["column_right"]) ? $context["column_right"] : null))) {
            // line 12
            echo "    ";
            $context["class"] = "col-sm-9";
            // line 13
            echo "    ";
        } else {
            // line 14
            echo "    ";
            $context["class"] = "col-sm-12";
            // line 15
            echo "    ";
        }
        // line 16
        echo "    <div id=\"content\" class=\"";
        echo (isset($context["class"]) ? $context["class"] : null);
        echo " product-page\">
      <div class=\"content-inner\">
        ";
        // line 18
        echo (isset($context["content_top"]) ? $context["content_top"] : null);
        echo "
        <div class=\"row\">
          ";
        // line 20
        if (((isset($context["column_left"]) ? $context["column_left"] : null) || (isset($context["column_right"]) ? $context["column_right"] : null))) {
            // line 21
            echo "          ";
            $context["class"] = "col-sm-6";
            // line 22
            echo "          ";
        } else {
            // line 23
            echo "          ";
            $context["class"] = "col-sm-7";
            // line 24
            echo "          ";
        }
        // line 25
        echo "          <div class=\"";
        echo (isset($context["class"]) ? $context["class"] : null);
        echo "\">
            ";
        // line 26
        if (((isset($context["thumb"]) ? $context["thumb"] : null) || (isset($context["images"]) ? $context["images"] : null))) {
            // line 27
            echo "              ";
            if (((isset($context["image_view"]) ? $context["image_view"] : null) == "popup")) {
                // line 28
                echo "              <ul class=\"product-image\">
                ";
                // line 29
                if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
                    // line 30
                    echo "                <li><a class=\"image-main\" href=\"";
                    echo (isset($context["popup"]) ? $context["popup"] : null);
                    echo "\" title=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\"><img src=\"";
                    echo (isset($context["thumb"]) ? $context["thumb"] : null);
                    echo "\" title=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\" alt=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\" class=\"img-responsive\"/></a></li>
                <li class=\"pull-left\"><a class=\"image-additional\" href=\"";
                    // line 31
                    echo (isset($context["popup"]) ? $context["popup"] : null);
                    echo "\" title=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\"><img src=\"";
                    echo (isset($context["thumb_additional"]) ? $context["thumb_additional"] : null);
                    echo "\" title=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\" alt=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\" class=\"img-responsive\"/></a></li>
                ";
                }
                // line 33
                echo "                ";
                if ((isset($context["images"]) ? $context["images"] : null)) {
                    // line 34
                    echo "                ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
                    foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
                        // line 35
                        echo "                <li class=\"pull-left\"><a class=\"image-additional\" href=\"";
                        echo $this->getAttribute($context["image"], "popup", array());
                        echo "\" title=\"";
                        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                        echo "\"> <img src=\"";
                        echo $this->getAttribute($context["image"], "thumb", array());
                        echo "\" title=\"";
                        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                        echo "\" alt=\"";
                        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                        echo "\" class=\"img-responsive\" /></a></li>
                ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 37
                    echo "                ";
                }
                // line 38
                echo "              </ul>
              ";
            } elseif ((            // line 39
(isset($context["image_view"]) ? $context["image_view"] : null) == "photoswipe")) {
                // line 40
                echo "              ";
                if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
                    // line 41
                    echo "              <div class=\"product-gallery\" itemscope itemtype=\"http://schema.org/ImageGallery\">
                <figure itemprop=\"associatedMedia\" itemscope itemtype=\"http://schema.org/ImageObject\" class=\"col-sm-6\">
                  <a href=\"";
                    // line 43
                    echo (isset($context["popup"]) ? $context["popup"] : null);
                    echo "\" itemprop=\"contentUrl\" data-size=\"";
                    echo (isset($context["image_popup_width"]) ? $context["image_popup_width"] : null);
                    echo "x";
                    echo (isset($context["image_popup_height"]) ? $context["image_popup_height"] : null);
                    echo "\" data-index=\"0\">
                    <img src=\"";
                    // line 44
                    echo (isset($context["popup"]) ? $context["popup"] : null);
                    echo "\" itemprop=\"thumbnail\" alt=\"Product Image\">
                  </a>
                </figure>
                ";
                    // line 47
                    if ((isset($context["images"]) ? $context["images"] : null)) {
                        // line 48
                        echo "                ";
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
                        foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
                            // line 49
                            echo "                <figure itemprop=\"associatedMedia\" itemscope itemtype=\"http://schema.org/ImageObject\" class=\"col-sm-6\">
                  <a href=\"";
                            // line 50
                            echo $this->getAttribute($context["image"], "popup", array());
                            echo "\" itemprop=\"contentUrl\" data-size=\"";
                            echo $this->getAttribute($context["image"], "image_popup_width", array());
                            echo "x";
                            echo $this->getAttribute($context["image"], "image_popup_height", array());
                            echo "\" data-index=\"0\">
                    <img src=\"";
                            // line 51
                            echo $this->getAttribute($context["image"], "popup", array());
                            echo "\" itemprop=\"thumbnail\" alt=\"Product Image\">
                  </a>
                </figure>
                ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 55
                        echo "                ";
                    }
                    // line 56
                    echo "              </div>
              ";
                }
                // line 58
                echo "              <div class=\"pswp\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">
                <div class=\"pswp__bg\"></div>
                <div class=\"pswp__scroll-wrap\">
                  <div class=\"pswp__container\">
                    <div class=\"pswp__item\"></div>
                    <div class=\"pswp__item\"></div>
                    <div class=\"pswp__item\"></div>
                  </div>
                  <div class=\"pswp__ui pswp__ui--hidden\">
                    <div class=\"pswp__top-bar\">
                      <div class=\"pswp__counter\"></div>
                      <button class=\"pswp__button pswp__button--close\" title=\"Close (Esc)\"></button>
                      <button class=\"pswp__button pswp__button--share\" title=\"Share\"></button>
                      <button class=\"pswp__button pswp__button--fs\" title=\"Toggle fullscreen\"></button>
                      <button class=\"pswp__button pswp__button--zoom\" title=\"Zoom in/out\"></button>
                      <div class=\"pswp__preloader\">
                        <div class=\"pswp__preloader__icn\">
                          <div class=\"pswp__preloader__cut\">
                            <div class=\"pswp__preloader__donut\"></div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class=\"pswp__share-modal pswp__share-modal--hidden pswp__single-tap\">
                      <div class=\"pswp__share-tooltip\"></div>
                    </div>
                    <button class=\"pswp__button pswp__button--arrow--left\" title=\"Previous (arrow left)\"></button>
                    <button class=\"pswp__button pswp__button--arrow--right\" title=\"Next (arrow right)\"></button>
                    <div class=\"pswp__caption\">
                      <div class=\"pswp__caption__center\"></div>
                    </div>
                  </div>
                </div>
              </div>
              ";
            } else {
                // line 93
                echo "              <div class=\"product-image\">
                <div class=\"slider slider-for\">
                  ";
                // line 95
                if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
                    // line 96
                    echo "                  <div class=\"easyzoom easyzoom--overlay\">
                    <a href=\"";
                    // line 97
                    echo (isset($context["popup"]) ? $context["popup"] : null);
                    echo "\" title=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\">
                      <img src=\"";
                    // line 98
                    echo (isset($context["popup"]) ? $context["popup"] : null);
                    echo "\" title=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\" alt=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\" class=\"img-responsive\">
                    </a>
                  </div>
                  ";
                }
                // line 102
                echo "                  ";
                if ((isset($context["images"]) ? $context["images"] : null)) {
                    // line 103
                    echo "                  ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
                    foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
                        // line 104
                        echo "                  <div class=\"easyzoom easyzoom--overlay\">
                    <a href=\"";
                        // line 105
                        echo $this->getAttribute($context["image"], "popup", array());
                        echo "\" title=\"";
                        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                        echo "\">
                      <img src=\"";
                        // line 106
                        echo $this->getAttribute($context["image"], "popup", array());
                        echo "\" title=\"";
                        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                        echo "\" alt=\"";
                        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                        echo "\" class=\"img-responsive\">
                    </a>
                  </div>
                  ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 110
                    echo "                  ";
                }
                // line 111
                echo "                </div>
                <div class=\"slider slider-nav\">
                  ";
                // line 113
                if ((isset($context["thumb"]) ? $context["thumb"] : null)) {
                    // line 114
                    echo "                  <div>
                    <img src=\"";
                    // line 115
                    echo (isset($context["thumb_additional"]) ? $context["thumb_additional"] : null);
                    echo "\" title=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\" alt=\"";
                    echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                    echo "\" class=\"img-responsive image-additional\">
                  </div>
                  ";
                }
                // line 118
                echo "                  ";
                if ((isset($context["images"]) ? $context["images"] : null)) {
                    // line 119
                    echo "                  ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
                    foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
                        // line 120
                        echo "                  <div>
                    <img src=\"";
                        // line 121
                        echo $this->getAttribute($context["image"], "thumb", array());
                        echo "\" title=\"";
                        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                        echo "\" alt=\"";
                        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
                        echo "\" class=\"img-responsive image-additional\">
                  </div>
                  ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 124
                    echo "                  ";
                }
                // line 125
                echo "                </div>
              </div>
              ";
            }
            // line 128
            echo "            ";
        }
        // line 129
        echo "          </div>
          ";
        // line 130
        if (((isset($context["column_left"]) ? $context["column_left"] : null) || (isset($context["column_right"]) ? $context["column_right"] : null))) {
            // line 131
            echo "          ";
            $context["class"] = "col-sm-6";
            // line 132
            echo "          ";
        } else {
            // line 133
            echo "          ";
            $context["class"] = "col-sm-5";
            // line 134
            echo "          ";
        }
        // line 135
        echo "          <div class=\"";
        echo (isset($context["class"]) ? $context["class"] : null);
        echo " ";
        echo (isset($context["fadeup"]) ? $context["fadeup"] : null);
        echo "\">
            <ul class=\"breadcrumb\">
              ";
        // line 137
        $context["i"] = 1;
        // line 138
        echo "              ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 139
            echo "                ";
            if ((twig_length_filter($this->env, (isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null)) != (isset($context["i"]) ? $context["i"] : null))) {
                // line 140
                echo "                <li><a href=\"";
                echo $this->getAttribute($context["breadcrumb"], "href", array());
                echo "\">";
                echo $this->getAttribute($context["breadcrumb"], "text", array());
                echo "</a></li>
                ";
            } else {
                // line 142
                echo "                <li>";
                echo $this->getAttribute($context["breadcrumb"], "text", array());
                echo "</li>
                ";
            }
            // line 144
            echo "                ";
            $context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1);
            // line 145
            echo "              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 146
        echo "            </ul>
            <h1>";
        // line 147
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "</h1>
            ";
        // line 148
        if ((isset($context["review_status"]) ? $context["review_status"] : null)) {
            // line 149
            echo "            <div class=\"rating\">
              <p>
                ";
            // line 151
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(range(1, 5));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 152
                echo "                ";
                if (((isset($context["rating"]) ? $context["rating"] : null) < $context["i"])) {
                    // line 153
                    echo "                <span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-1x\"></i></span>
                ";
                } else {
                    // line 155
                    echo "                <span class=\"fa fa-stack\"><i class=\"fa fa-star fa-stack-1x\"></i><i class=\"fa fa-star-o fa-stack-1x\"></i></span>
                ";
                }
                // line 157
                echo "                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 158
            echo "                <a href=\"\" id=\"reviews\" onclick=\"\$('a[href=\\'#tab-review\\']').trigger('click'); return false;\">(";
            echo (isset($context["reviews"]) ? $context["reviews"] : null);
            echo " )</a>
              </p>
            </div>
            ";
        }
        // line 162
        echo "            ";
        if ((isset($context["short_description"]) ? $context["short_description"] : null)) {
            // line 163
            echo "            <div class=\"short-description\">
              <p>";
            // line 164
            echo (isset($context["short_description_text"]) ? $context["short_description_text"] : null);
            echo "</p>
            </div>
            ";
        }
        // line 167
        echo "            <div class=\"table-responsive\">
              <table class=\"table table-borderless\">
                ";
        // line 169
        if ((isset($context["manufacturer"]) ? $context["manufacturer"] : null)) {
            // line 170
            echo "                <tr>
                  <td class=\"col-xs-6 col-md-4\">";
            // line 171
            echo (isset($context["text_manufacturer"]) ? $context["text_manufacturer"] : null);
            echo "</td>
                  <td><a href=\"";
            // line 172
            echo (isset($context["manufacturers"]) ? $context["manufacturers"] : null);
            echo "\">";
            echo (isset($context["manufacturer"]) ? $context["manufacturer"] : null);
            echo "</a></td>
                </tr>
                ";
        }
        // line 175
        echo "                <tr>
                  <td class=\"col-xs-6 col-md-4\">";
        // line 176
        echo (isset($context["text_model"]) ? $context["text_model"] : null);
        echo "</td>
                  <td>";
        // line 177
        echo (isset($context["model"]) ? $context["model"] : null);
        echo "</td>
                </tr>
                ";
        // line 179
        if ((isset($context["reward"]) ? $context["reward"] : null)) {
            // line 180
            echo "                <tr>
                  <td class=\"col-xs-6 col-md-4\">";
            // line 181
            echo (isset($context["text_reward"]) ? $context["text_reward"] : null);
            echo "</td>
                  <td>";
            // line 182
            echo (isset($context["reward"]) ? $context["reward"] : null);
            echo "</td>
                </tr>
                ";
        }
        // line 185
        echo "                <tr>
                  <td class=\"col-xs-6 col-md-4\">";
        // line 186
        echo (isset($context["text_stock"]) ? $context["text_stock"] : null);
        echo "</td>
                  <td>";
        // line 187
        echo (isset($context["stock"]) ? $context["stock"] : null);
        echo "</td>
                </tr>
              </table>
            </div>
            <div id=\"product\">
              ";
        // line 192
        if ((isset($context["options"]) ? $context["options"] : null)) {
            // line 193
            echo "              <h3>";
            echo (isset($context["text_option"]) ? $context["text_option"] : null);
            echo "</h3>
              ";
            // line 194
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["options"]) ? $context["options"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
                // line 195
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "select")) {
                    // line 196
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\" for=\"input-option";
                    // line 197
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\">";
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <select name=\"option[";
                    // line 198
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "]\" id=\"input-option";
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\" class=\"form-control\">
                  <option value=\"\">";
                    // line 199
                    echo (isset($context["text_select"]) ? $context["text_select"] : null);
                    echo "</option>
                  ";
                    // line 200
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
                    foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
                        // line 201
                        echo "                  <option value=\"";
                        echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
                        echo "\">";
                        echo $this->getAttribute($context["option_value"], "name", array());
                        echo "
                  ";
                        // line 202
                        if ($this->getAttribute($context["option_value"], "price", array())) {
                            // line 203
                            echo "                  (";
                            echo $this->getAttribute($context["option_value"], "price_prefix", array());
                            echo $this->getAttribute($context["option_value"], "price", array());
                            echo ")
                  ";
                        }
                        // line 205
                        echo "                  </option>
                  ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 207
                    echo "                </select>
              </div>
              ";
                }
                // line 210
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "radio")) {
                    // line 211
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\">";
                    // line 212
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <div id=\"input-option";
                    // line 213
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\">
                  ";
                    // line 214
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
                    foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
                        // line 215
                        echo "                  <div class=\"radio\">
                    <label>
                      <input type=\"radio\" name=\"option[";
                        // line 217
                        echo $this->getAttribute($context["option"], "product_option_id", array());
                        echo "]\" value=\"";
                        echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
                        echo "\" />
                      ";
                        // line 218
                        if ($this->getAttribute($context["option_value"], "image", array())) {
                            echo " <img src=\"";
                            echo $this->getAttribute($context["option_value"], "image", array());
                            echo "\" alt=\"";
                            echo $this->getAttribute($context["option_value"], "name", array());
                            echo " ";
                            if ($this->getAttribute($context["option_value"], "price", array())) {
                                echo " ";
                                echo $this->getAttribute($context["option_value"], "price_prefix", array());
                                echo " ";
                                echo $this->getAttribute($context["option_value"], "price", array());
                                echo " ";
                            }
                            echo "\" class=\"img-thumbnail\" /> ";
                        }
                        echo "                  
                      ";
                        // line 219
                        echo $this->getAttribute($context["option_value"], "name", array());
                        echo "
                      ";
                        // line 220
                        if ($this->getAttribute($context["option_value"], "price", array())) {
                            // line 221
                            echo "                      (";
                            echo $this->getAttribute($context["option_value"], "price_prefix", array());
                            echo $this->getAttribute($context["option_value"], "price", array());
                            echo ")
                      ";
                        }
                        // line 223
                        echo "                    </label>
                  </div>
                  ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 226
                    echo "                </div>
              </div>
              ";
                }
                // line 229
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "checkbox")) {
                    // line 230
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\">";
                    // line 231
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <div id=\"input-option";
                    // line 232
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\">
                  ";
                    // line 233
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["option"], "product_option_value", array()));
                    foreach ($context['_seq'] as $context["_key"] => $context["option_value"]) {
                        // line 234
                        echo "                  <div class=\"checkbox\">
                    <label>
                      <input type=\"checkbox\" name=\"option[";
                        // line 236
                        echo $this->getAttribute($context["option"], "product_option_id", array());
                        echo "][]\" value=\"";
                        echo $this->getAttribute($context["option_value"], "product_option_value_id", array());
                        echo "\" />
                      ";
                        // line 237
                        if ($this->getAttribute($context["option_value"], "image", array())) {
                            echo " <img src=\"";
                            echo $this->getAttribute($context["option_value"], "image", array());
                            echo "\" alt=\"";
                            echo $this->getAttribute($context["option_value"], "name", array());
                            echo " ";
                            if ($this->getAttribute($context["option_value"], "price", array())) {
                                echo " ";
                                echo $this->getAttribute($context["option_value"], "price_prefix", array());
                                echo " ";
                                echo $this->getAttribute($context["option_value"], "price", array());
                                echo " ";
                            }
                            echo "\" class=\"img-thumbnail\" /> ";
                        }
                        // line 238
                        echo "                      ";
                        echo $this->getAttribute($context["option_value"], "name", array());
                        echo "
                      ";
                        // line 239
                        if ($this->getAttribute($context["option_value"], "price", array())) {
                            // line 240
                            echo "                      (";
                            echo $this->getAttribute($context["option_value"], "price_prefix", array());
                            echo $this->getAttribute($context["option_value"], "price", array());
                            echo ")
                      ";
                        }
                        // line 242
                        echo "                    </label>
                  </div>
                  ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option_value'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 245
                    echo "                </div>
              </div>
              ";
                }
                // line 248
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "text")) {
                    // line 249
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\" for=\"input-option";
                    // line 250
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\">";
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <input type=\"text\" name=\"option[";
                    // line 251
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "]\" value=\"";
                    echo $this->getAttribute($context["option"], "value", array());
                    echo "\" placeholder=\"";
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "\" id=\"input-option";
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\" class=\"form-control\" />
              </div>
              ";
                }
                // line 254
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "textarea")) {
                    // line 255
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\" for=\"input-option";
                    // line 256
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\">";
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <textarea name=\"option[";
                    // line 257
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "]\" rows=\"5\" placeholder=\"";
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "\" id=\"input-option";
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\" class=\"form-control\">";
                    echo $this->getAttribute($context["option"], "value", array());
                    echo "</textarea>
              </div>
              ";
                }
                // line 260
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "file")) {
                    // line 261
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\">";
                    // line 262
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <button type=\"button\" id=\"button-upload";
                    // line 263
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\" data-loading-text=\"";
                    echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
                    echo "\" class=\"btn btn-default btn-block\"><i class=\"fa fa-upload\"></i> ";
                    echo (isset($context["button_upload"]) ? $context["button_upload"] : null);
                    echo "</button>
                <input type=\"hidden\" name=\"option[";
                    // line 264
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "]\" value=\"\" id=\"input-option";
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\" />
              </div>
              ";
                }
                // line 267
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "date")) {
                    // line 268
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\" for=\"input-option";
                    // line 269
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\">";
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <div class=\"input-group date\">
                  <input type=\"text\" name=\"option[";
                    // line 271
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "]\" value=\"";
                    echo $this->getAttribute($context["option"], "value", array());
                    echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-option";
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\" class=\"form-control\" />
                  <span class=\"input-group-btn\">
                  <button class=\"btn btn-form\" type=\"button\"><i class=\"material-icons\">date_range</i></button>
                  </span></div>
              </div>
              ";
                }
                // line 277
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "datetime")) {
                    // line 278
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\" for=\"input-option";
                    // line 279
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\">";
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <div class=\"input-group datetime\">
                  <input type=\"text\" name=\"option[";
                    // line 281
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "]\" value=\"";
                    echo $this->getAttribute($context["option"], "value", array());
                    echo "\" data-date-format=\"YYYY-MM-DD HH:mm\" id=\"input-option";
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\" class=\"form-control\" />
                  <span class=\"input-group-btn\">
                  <button type=\"button\" class=\"btn btn-form\"><i class=\"material-icons\">date_range</i></button>
                  </span></div>
              </div>
              ";
                }
                // line 287
                echo "              ";
                if (($this->getAttribute($context["option"], "type", array()) == "time")) {
                    // line 288
                    echo "              <div class=\"form-group";
                    if ($this->getAttribute($context["option"], "required", array())) {
                        echo " required ";
                    }
                    echo "\">
                <label class=\"control-label\" for=\"input-option";
                    // line 289
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\">";
                    echo $this->getAttribute($context["option"], "name", array());
                    echo "</label>
                <div class=\"input-group time\">
                  <input type=\"text\" name=\"option[";
                    // line 291
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "]\" value=\"";
                    echo $this->getAttribute($context["option"], "value", array());
                    echo "\" data-date-format=\"HH:mm\" id=\"input-option";
                    echo $this->getAttribute($context["option"], "product_option_id", array());
                    echo "\" class=\"form-control\" />
                  <span class=\"input-group-btn\">
                  <button type=\"button\" class=\"btn btn-form\"><i class=\"material-icons\">date_range</i></button>
                  </span></div>
              </div>
              ";
                }
                // line 297
                echo "              ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 298
            echo "              ";
        }
        // line 299
        echo "              ";
        if ((isset($context["recurrings"]) ? $context["recurrings"] : null)) {
            // line 300
            echo "              <hr>
              <h3>";
            // line 301
            echo (isset($context["text_payment_recurring"]) ? $context["text_payment_recurring"] : null);
            echo "</h3>
              <div class=\"form-group required\">
                <select name=\"recurring_id\" class=\"form-control\">
                  <option value=\"\">";
            // line 304
            echo (isset($context["text_select"]) ? $context["text_select"] : null);
            echo "</option>
                  ";
            // line 305
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["recurrings"]) ? $context["recurrings"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["recurring"]) {
                // line 306
                echo "                  <option value=\"";
                echo $this->getAttribute($context["recurring"], "recurring_id", array());
                echo "\">";
                echo $this->getAttribute($context["recurring"], "name", array());
                echo "</option>
                  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['recurring'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 308
            echo "                </select>
                <div class=\"help-block\" id=\"recurring-description\"></div>
              </div>
              ";
        }
        // line 312
        echo "              ";
        if ((isset($context["price"]) ? $context["price"] : null)) {
            // line 313
            echo "              <ul class=\"list-unstyled price\">
                ";
            // line 314
            if ( !(isset($context["special"]) ? $context["special"] : null)) {
                // line 315
                echo "                <li>
                  <h3 class=\"price-regular\">";
                // line 316
                echo (isset($context["price"]) ? $context["price"] : null);
                echo "</h3>
                </li>
                ";
            } else {
                // line 319
                echo "                <li>
                  <h4 class=\"price-old\">";
                // line 320
                echo (isset($context["price"]) ? $context["price"] : null);
                echo "</h4>
                  <br />
                  <h3 class=\"price-new\">";
                // line 322
                echo (isset($context["special"]) ? $context["special"] : null);
                echo "</h3>
                </li>
                <li>
                </li>
                ";
            }
            // line 327
            echo "                ";
            if ((isset($context["tax"]) ? $context["tax"] : null)) {
                // line 328
                echo "                <li class=\"tax-rewards\">";
                echo (isset($context["text_tax"]) ? $context["text_tax"] : null);
                echo " ";
                echo (isset($context["tax"]) ? $context["tax"] : null);
                echo "</li>
                ";
            }
            // line 330
            echo "                ";
            if ((isset($context["points"]) ? $context["points"] : null)) {
                // line 331
                echo "                <li class=\"tax-rewards\">";
                echo (isset($context["text_points"]) ? $context["text_points"] : null);
                echo " ";
                echo (isset($context["points"]) ? $context["points"] : null);
                echo "</li>
                ";
            }
            // line 333
            echo "                ";
            if ((isset($context["discounts"]) ? $context["discounts"] : null)) {
                // line 334
                echo "                <li>
                  <hr>
                </li>
                ";
                // line 337
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["discounts"]) ? $context["discounts"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["discount"]) {
                    // line 338
                    echo "                <li>";
                    echo $this->getAttribute($context["discount"], "quantity", array());
                    echo (isset($context["text_discount"]) ? $context["text_discount"] : null);
                    echo $this->getAttribute($context["discount"], "price", array());
                    echo "</li>
                ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['discount'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 340
                echo "                ";
            }
            // line 341
            echo "              </ul>
              ";
        }
        // line 343
        echo "              <div class=\"form-group\">
                <div class=\"input-group\">
                  <span class=\"input-group-btn\">
                    <button type=\"button\" class=\"btn btn-form minus ripplelink\"><i class=\"material-icons\">remove</i></button>
                  </span>
                  <input type=\"text\" name=\"quantity\" value=\"";
        // line 348
        echo (isset($context["minimum"]) ? $context["minimum"] : null);
        echo "\" size=\"2\" id=\"input-quantity\" class=\"form-control text-center quantity\">
                  <input type=\"hidden\" name=\"product_id\" value=\"";
        // line 349
        echo (isset($context["product_id"]) ? $context["product_id"] : null);
        echo "\" />
                  <span class=\"input-group-btn\">
                    <button type=\"button\" class=\"btn btn-form plus ripplelink\"><i class=\"material-icons\">add</i></button>
                  </span>
                </div>
                <br />
                <button type=\"button\" id=\"button-cart\" data-loading-text=\"";
        // line 355
        echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
        echo "\" class=\"btn btn-block btn-primary\">";
        echo (isset($context["button_cart"]) ? $context["button_cart"] : null);
        echo "</button>
              </div>
              ";
        // line 357
        if (((isset($context["minimum"]) ? $context["minimum"] : null) > 1)) {
            // line 358
            echo "              <div class=\"alert alert-info\"><i class=\"fa fa-info-circle\"></i> ";
            echo (isset($context["text_minimum"]) ? $context["text_minimum"] : null);
            echo "</div>
              ";
        }
        // line 360
        echo "              <div class=\"btn-group\">
                <button type=\"button\" data-toggle=\"tooltip\" data-placement=\"top\" class=\"btn btn-empty\" title=\"";
        // line 361
        echo (isset($context["button_wishlist"]) ? $context["button_wishlist"] : null);
        echo "\" onclick=\"wishlist.add('";
        echo (isset($context["product_id"]) ? $context["product_id"] : null);
        echo "');\"><i class=\"material-icons\">favorite_border</i></button>
                <button type=\"button\" data-toggle=\"tooltip\" data-placement=\"top\" class=\"btn btn-empty\" title=\"";
        // line 362
        echo (isset($context["button_compare"]) ? $context["button_compare"] : null);
        echo "\" onclick=\"compare.add('";
        echo (isset($context["product_id"]) ? $context["product_id"] : null);
        echo "');\"><i class=\"material-icons\">compare_arrows</i></button>
              </div>
              ";
        // line 364
        if ((isset($context["tags"]) ? $context["tags"] : null)) {
            // line 365
            echo "              <ul class=\"list-inline tags\">
                ";
            // line 366
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(range(0, twig_length_filter($this->env, (isset($context["tags"]) ? $context["tags"] : null))));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 367
                echo "                <li><a href=\"";
                echo $this->getAttribute($this->getAttribute((isset($context["tags"]) ? $context["tags"] : null), "i", array()), "href", array());
                echo "\">";
                echo $this->getAttribute($this->getAttribute((isset($context["tags"]) ? $context["tags"] : null), "i", array()), "tag", array());
                echo "</a></li>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 369
            echo "              </ul>
              ";
        }
        // line 371
        echo "              <br />
              ";
        // line 372
        if ((isset($context["share_buttons"]) ? $context["share_buttons"] : null)) {
            // line 373
            echo "              <!-- AddThis Button BEGIN -->
              <div class=\"addthis_toolbox addthis_default_style\" data-url=\"";
            // line 374
            echo (isset($context["share"]) ? $context["share"] : null);
            echo "\"><a class=\"addthis_button_facebook_like\" fb:like:layout=\"button_count\"></a> <a class=\"addthis_button_tweet\"></a> <a class=\"addthis_button_pinterest_pinit\"></a> <a class=\"addthis_counter addthis_pill_style\"></a></div>
              <script type=\"text/javascript\" src=\"//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-515eeaf54693130e\"></script>
              <!-- AddThis Button END -->
              ";
        }
        // line 378
        echo "            </div>
          </div>
        </div>
        <div class=\"row\">
          <div class=\"col-xs-12\">
            <ul class=\"nav nav-tabs\">
              <li class=\"active\"><a href=\"#tab-description\" data-toggle=\"tab\">";
        // line 384
        echo (isset($context["tab_description"]) ? $context["tab_description"] : null);
        echo "</a></li>
              ";
        // line 385
        if ((isset($context["attribute_groups"]) ? $context["attribute_groups"] : null)) {
            // line 386
            echo "              <li><a href=\"#tab-specification\" data-toggle=\"tab\">";
            echo (isset($context["tab_attribute"]) ? $context["tab_attribute"] : null);
            echo "</a></li>
              ";
        }
        // line 388
        echo "              ";
        if ((isset($context["review_status"]) ? $context["review_status"] : null)) {
            // line 389
            echo "              <li><a href=\"#tab-review\" data-toggle=\"tab\">";
            echo (isset($context["tab_review"]) ? $context["tab_review"] : null);
            echo "</a></li>
              ";
        }
        // line 391
        echo "            </ul>
            <div class=\"tab-content\">
              <div class=\"tab-pane active ";
        // line 393
        echo (isset($context["fadeup"]) ? $context["fadeup"] : null);
        echo "\" id=\"tab-description\">";
        echo (isset($context["description"]) ? $context["description"] : null);
        echo "</div>
              ";
        // line 394
        if ((isset($context["attribute_groups"]) ? $context["attribute_groups"] : null)) {
            // line 395
            echo "              <div class=\"tab-pane ";
            echo (isset($context["fadeup"]) ? $context["fadeup"] : null);
            echo "\" id=\"tab-specification\">
                <table class=\"table\">
                  ";
            // line 397
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["attribute_groups"]) ? $context["attribute_groups"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["attribute_group"]) {
                // line 398
                echo "                  <thead>
                    <tr>
                      <td colspan=\"2\"><strong>";
                // line 400
                echo $this->getAttribute($context["attribute_group"], "name", array());
                echo "</strong></td>
                    </tr>
                  </thead>
                  <tbody>
                    ";
                // line 404
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["attribute_group"], "attribute", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
                    // line 405
                    echo "                    <tr>
                      <td>";
                    // line 406
                    echo $this->getAttribute($context["attribute"], "name", array());
                    echo "</td>
                      <td>";
                    // line 407
                    echo $this->getAttribute($context["attribute"], "text", array());
                    echo "</td>
                    </tr>
                    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 410
                echo "                  </tbody>
                  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attribute_group'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 412
            echo "                </table>
              </div>
              ";
        }
        // line 415
        echo "              ";
        if ((isset($context["review_status"]) ? $context["review_status"] : null)) {
            // line 416
            echo "              <div class=\"tab-pane ";
            echo (isset($context["fadeup"]) ? $context["fadeup"] : null);
            echo "\" id=\"tab-review\">
                <form class=\"form-horizontal\" id=\"form-review\">
                  <div id=\"review\"></div>
                  <h2>";
            // line 419
            echo (isset($context["text_write"]) ? $context["text_write"] : null);
            echo "</h2>
                  ";
            // line 420
            if ((isset($context["review_guest"]) ? $context["review_guest"] : null)) {
                // line 421
                echo "                  <div class=\"form-group required\">
                    <div class=\"col-sm-12\">
                      <label class=\"control-label\" for=\"input-name\">";
                // line 423
                echo (isset($context["entry_name"]) ? $context["entry_name"] : null);
                echo "</label>
                      <input type=\"text\" name=\"name\" value=\"";
                // line 424
                echo (isset($context["customer_name"]) ? $context["customer_name"] : null);
                echo "\" id=\"input-name\" class=\"form-control\" />
                    </div>
                  </div>
                  <div class=\"form-group required\">
                    <div class=\"col-sm-12\">
                      <label class=\"control-label\" for=\"input-review\">";
                // line 429
                echo (isset($context["entry_review"]) ? $context["entry_review"] : null);
                echo "</label>
                      <textarea name=\"text\" rows=\"5\" id=\"input-review\" class=\"form-control\"></textarea>
                      <div class=\"help-block\">";
                // line 431
                echo (isset($context["text_note"]) ? $context["text_note"] : null);
                echo "</div>
                    </div>
                  </div>
                  <div class=\"form-group required\">
                    <div class=\"col-sm-12\">
                      <label class=\"control-label\">";
                // line 436
                echo (isset($context["entry_rating"]) ? $context["entry_rating"] : null);
                echo "</label>
                      &nbsp;&nbsp;&nbsp; ";
                // line 437
                echo (isset($context["entry_bad"]) ? $context["entry_bad"] : null);
                echo " &nbsp;
                      <input type=\"radio\" name=\"rating\" value=\"1\" />
                      &nbsp;
                      <input type=\"radio\" name=\"rating\" value=\"2\" />
                      &nbsp;
                      <input type=\"radio\" name=\"rating\" value=\"3\" />
                      &nbsp;
                      <input type=\"radio\" name=\"rating\" value=\"4\" />
                      &nbsp;
                      <input type=\"radio\" name=\"rating\" value=\"5\" />
                      &nbsp;";
                // line 447
                echo (isset($context["entry_good"]) ? $context["entry_good"] : null);
                echo "</div>
                  </div>
                  ";
                // line 449
                echo (isset($context["captcha"]) ? $context["captcha"] : null);
                echo "
                  <div class=\"buttons clearfix\">
                    <div class=\"pull-right\">
                      <button type=\"button\" id=\"button-review\" data-loading-text=\"";
                // line 452
                echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
                echo "\" class=\"btn btn-default\">";
                echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
                echo "</button>
                    </div>
                  </div>
                  ";
            } else {
                // line 456
                echo "                  ";
                echo (isset($context["text_login"]) ? $context["text_login"] : null);
                echo "
                  ";
            }
            // line 458
            echo "                </form>
              </div>
              ";
        }
        // line 461
        echo "            </div>
            ";
        // line 462
        if ((isset($context["products"]) ? $context["products"] : null)) {
            // line 463
            echo "            <h3>";
            echo (isset($context["text_related"]) ? $context["text_related"] : null);
            echo "</h3>
              <div class=\"row\">
                ";
            // line 465
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["products"]) ? $context["products"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
                // line 466
                echo "                <div class=\"product-layout product-grid col-xs-6 col-md-3\">
                  <div class=\"product-thumb ";
                // line 467
                echo ((($this->getAttribute($context["product"], "out_of_stock", array()) && (isset($context["badge_out_of_stock"]) ? $context["badge_out_of_stock"] : null))) ? ("out-of-stock") : (""));
                echo "\">
                    <div class=\"image\">
                      <a href=\"";
                // line 469
                echo $this->getAttribute($context["product"], "href", array());
                echo "\"><img src=\"";
                echo $this->getAttribute($context["product"], "thumb", array());
                echo "\" alt=\"";
                echo $this->getAttribute($context["product"], "name", array());
                echo "\" title=\"";
                echo $this->getAttribute($context["product"], "name", array());
                echo "\" class=\"img-responsive\" /></a>
                    </div>
                    ";
                // line 471
                if (($this->getAttribute($context["product"], "out_of_stock", array()) && (isset($context["badge_out_of_stock"]) ? $context["badge_out_of_stock"] : null))) {
                    // line 472
                    echo "                    <div class=\"badge-stock\">";
                    echo (isset($context["badge_out_of_stock_label"]) ? $context["badge_out_of_stock_label"] : null);
                    echo "</div>
                    ";
                }
                // line 474
                echo "                    ";
                if (((($this->getAttribute($context["product"], "recently_added", array()) && (isset($context["badge_recently_added"]) ? $context["badge_recently_added"] : null)) &&  !$this->getAttribute($context["product"], "special", array())) &&  !$this->getAttribute($context["product"], "out_of_stock", array()))) {
                    // line 475
                    echo "                    <div class=\"badge-new\">";
                    echo (isset($context["badge_recently_added_label"]) ? $context["badge_recently_added_label"] : null);
                    echo "</div>
                    ";
                }
                // line 477
                echo "                    ";
                if ((($this->getAttribute($context["product"], "special", array()) && (isset($context["badge_sale"]) ? $context["badge_sale"] : null)) &&  !$this->getAttribute($context["product"], "out_of_stock", array()))) {
                    // line 478
                    echo "                    <div class=\"badge-sale\">";
                    echo (isset($context["badge_sale_label"]) ? $context["badge_sale_label"] : null);
                    echo "</div>
                    ";
                }
                // line 480
                echo "                    <button type=\"button\" class=\"btn btn-empty pull-right\" onclick=\"wishlist.add('";
                echo $this->getAttribute($context["product"], "product_id", array());
                echo "');\"><i class=\"material-icons\">favorite_border</i></button>
                    <div class=\"name\">
                      <a href=\"";
                // line 482
                echo $this->getAttribute($context["product"], "href", array());
                echo "\">";
                echo $this->getAttribute($context["product"], "name", array());
                echo "</a>
                    </div>
                    ";
                // line 484
                if ($this->getAttribute($context["product"], "rating", array())) {
                    // line 485
                    echo "                    <div class=\"rating\">
                      ";
                    // line 486
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable(range(1, 5));
                    foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                        // line 487
                        echo "                      ";
                        if (($this->getAttribute($context["product"], "rating", array()) < $context["i"])) {
                            // line 488
                            echo "                      <span class=\"fa fa-stack\"><i class=\"fa fa-star-o fa-stack-2x\"></i></span>
                      ";
                        } else {
                            // line 490
                            echo "                      <span class=\"fa fa-stack\"><i class=\"fa fa-star fa-stack-2x\"></i><i class=\"fa fa-star-o fa-stack-2x\"></i></span>
                      ";
                        }
                        // line 492
                        echo "                      ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 493
                    echo "                    </div>
                    ";
                }
                // line 495
                echo "                    <div class=\"description\">
                      <p>";
                // line 496
                echo $this->getAttribute($context["product"], "description", array());
                echo "</p>
                    </div>
                    <div class=\"caption\">
                      ";
                // line 499
                if (($this->getAttribute($context["product"], "colors", array()) && (isset($context["product_color_options"]) ? $context["product_color_options"] : null))) {
                    // line 500
                    echo "                      <div class=\"colors\">
                        ";
                    // line 501
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "colors", array()));
                    foreach ($context['_seq'] as $context["_key"] => $context["color"]) {
                        // line 502
                        echo "                        <span style=\"background:#";
                        echo $context["color"];
                        echo ";\"></span>
                        ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['color'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 504
                    echo "                      </div>
                      ";
                }
                // line 506
                echo "                      ";
                if ($this->getAttribute($context["product"], "price", array())) {
                    // line 507
                    echo "                      <div class=\"price\">
                        ";
                    // line 508
                    if ( !$this->getAttribute($context["product"], "special", array())) {
                        // line 509
                        echo "                        <span class=\"price-regular\">";
                        echo $this->getAttribute($context["product"], "price", array());
                        echo "</span>
                        ";
                    } else {
                        // line 511
                        echo "                        <span class=\"price-old\">";
                        echo $this->getAttribute($context["product"], "price", array());
                        echo "</span> <span class=\"price-new\">";
                        echo $this->getAttribute($context["product"], "special", array());
                        echo "</span>
                        ";
                    }
                    // line 513
                    echo "                      </div>
                      ";
                }
                // line 515
                echo "                      <button type=\"button\" class=\"btn btn-primary\" onclick=\"cart.add('";
                echo $this->getAttribute($context["product"], "product_id", array());
                echo "', '";
                echo $this->getAttribute($context["product"], "minimum", array());
                echo "');\">";
                echo (isset($context["button_cart"]) ? $context["button_cart"] : null);
                echo "</button>
                    </div>
                  </div>
                </div>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 520
            echo "              </div>
              ";
        }
        // line 522
        echo "          </div>
        </div>
      ";
        // line 524
        echo (isset($context["content_bottom"]) ? $context["content_bottom"] : null);
        echo "
      </div>
    </div>
    ";
        // line 527
        echo (isset($context["column_right"]) ? $context["column_right"] : null);
        echo "
  </div>
</div>
<script><!--
\$('select[name=\\'recurring_id\\'], input[name=\"quantity\"]').change(function(){
  \$.ajax({
    url: 'index.php?route=product/product/getRecurringDescription',
    type: 'post',
    data: \$('input[name=\\'product_id\\'], input[name=\\'quantity\\'], select[name=\\'recurring_id\\']'),
    dataType: 'json',
    beforeSend: function() {
      \$('#recurring-description').html('');
    },
    success: function(json) {
      \$('.alert, .text-danger').remove();

      if (json['success']) {
        \$('#recurring-description').html(json['success']);
      }
    }
  });
});
//--></script>
<script><!--
\$('#button-cart').on('click', function() {
  \$.ajax({
    url: 'index.php?route=checkout/cart/add',
    type: 'post',
    data: \$('#product input[type=\\'text\\'], #product input[type=\\'hidden\\'], #product input[type=\\'radio\\']:checked, #product input[type=\\'checkbox\\']:checked, #product select, #product textarea'),
    dataType: 'json',
    beforeSend: function() {
      \$('#button-cart').button('loading');
    },
    complete: function() {
      \$('#button-cart').button('reset');
    },
    success: function(json) {
      \$('.alert, .text-danger').remove();
      \$('.form-group').removeClass('has-error');

      if (json['error']) {
        if (json['error']['option']) {
          for (i in json['error']['option']) {
            var element = \$('#input-option' + i.replace('_', '-'));

            if (element.parent().hasClass('input-group')) {
              element.parent().after('<div class=\"text-danger\">' + json['error']['option'][i] + '</div>');
            } else {
              element.after('<div class=\"text-danger\">' + json['error']['option'][i] + '</div>');
            }
          }
        }

        if (json['error']['recurring']) {
          \$('select[name=\\'recurring_id\\']').after('<div class=\"text-danger\">' + json['error']['recurring'] + '</div>');
        }

        // Highlight any found errors
        \$('.text-danger').parent().addClass('has-error');
      }

      if (json['success']) {

        setTimeout(function () {

          // Update cart quantity
          \$('#cart-total').text(json.total);

          updateCounter('#cart-total');

        }, 100);

        // Show notification
        notify(json.success, 'success');
      }
    },
    error: function(xhr, ajaxOptions, thrownError) {
      alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
    }
  });
});
//--></script>
<script><!--
\$('.date').datetimepicker({
  pickTime: false
});

\$('.datetime').datetimepicker({
  pickDate: true,
  pickTime: true
});

\$('.time').datetimepicker({
  pickDate: false
});

\$('button[id^=\\'button-upload\\']').on('click', function() {
  var node = this;

  \$('#form-upload').remove();

  \$('body').prepend('<form enctype=\"multipart/form-data\" id=\"form-upload\" style=\"display: none;\"><input type=\"file\" name=\"file\" /></form>');

  \$('#form-upload input[name=\\'file\\']').trigger('click');

  if (typeof timer != 'undefined') {
      clearInterval(timer);
  }

  timer = setInterval(function() {
    if (\$('#form-upload input[name=\\'file\\']').val() != '') {
      clearInterval(timer);

      \$.ajax({
        url: 'index.php?route=tool/upload',
        type: 'post',
        dataType: 'json',
        data: new FormData(\$('#form-upload')[0]),
        cache: false,
        contentType: false,
        processData: false,
        beforeSend: function() {
          \$(node).button('loading');
        },
        complete: function() {
          \$(node).button('reset');
        },
        success: function(json) {
          \$('.text-danger').remove();

          if (json['error']) {
            \$(node).parent().find('input').after('<div class=\"text-danger\">' + json['error'] + '</div>');
          }

          if (json['success']) {
            alert(json['success']);

            \$(node).parent().find('input').attr('value', json['code']);
          }
        },
        error: function(xhr, ajaxOptions, thrownError) {
          alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
        }
      });
    }
  }, 500);
});
//--></script>
<script><!--
\$('#review').delegate('.pagination a', 'click', function(e) {
    e.preventDefault();

    \$('#review').fadeOut('slow');

    \$('#review').load(this.href);

    \$('#review').fadeIn('slow');
});

\$('#review').load('index.php?route=product/product/review&product_id=";
        // line 686
        echo (isset($context["product_id"]) ? $context["product_id"] : null);
        echo "');

\$('#button-review').on('click', function() {
  \$.ajax({
    url: 'index.php?route=product/product/write&product_id=";
        // line 690
        echo (isset($context["product_id"]) ? $context["product_id"] : null);
        echo "',
    type: 'post',
    dataType: 'json',
    data: \$(\"#form-review\").serialize(),
    beforeSend: function() {
      \$('#button-review').button('loading');
    },
    complete: function() {
      \$('#button-review').button('reset');
    },
    success: function(json) {
      \$('.alert-success, .alert-danger').remove();

      if (json['error']) {
        \$('#review').after('<div class=\"alert alert-danger\"><i class=\"fa fa-exclamation-circle\"></i> ' + json['error'] + '</div>');
      }

      if (json['success']) {
        \$('#review').after('<div class=\"alert alert-success\"><i class=\"fa fa-check-circle\"></i> ' + json['success'] + '</div>');

        \$('input[name=\\'name\\']').val('');
        \$('textarea[name=\\'text\\']').val('');
        \$('input[name=\\'rating\\']:checked').prop('checked', false);
      }
    }
  });
});

//--></script>
<script>
// Scroll to reviews
\$('#reviews').on('click', function(e) {
  e.preventDefault();
  \$('html, body').animate({
    scrollTop: \$('#tab-review').offset().top
  }, 'slow');
});

// Change product quantity
\$('.minus').on('click', function() {
  var newVal = parseInt(\$('#input-quantity').val());
  if (newVal > 1) {
    newVal -= 1;
    \$('#input-quantity').val(newVal);
  } else {
    if (!\$(this).hasClass('stop-rl')) {
      \$(this).addClass('stop-rl');
    }
  }
});

\$('.plus').on('click', function() {
  var newVal = parseInt(\$('#input-quantity').val());
  newVal += 1;
  \$('#input-quantity').val(newVal);
  if (\$('.minus').hasClass('stop-rl')) {
    \$('.minus').removeClass('stop-rl');
  }
});

// Hide additional image in case if there is only one image
if (\$('.image-additional').length == 1) {
  \$('.image-additional').css(\"display\", \"none\");
}

</script>
";
        // line 756
        if (((isset($context["image_view"]) ? $context["image_view"] : null) == "popup")) {
            // line 757
            echo "<script>
\$(document).ready(function() {
  \$('.product-image').magnificPopup({
    type:'image',
    delegate: '.image-main',
    gallery: {
      enabled:true
    }
  });
  // Change main image when additional image is clicked
  \$('.image-additional').on('click', function(e) {
    e.preventDefault();
    var largeImageUrl = \$(this).attr('href');
    \$('.image-main').attr('href', largeImageUrl);
    \$('.image-main').find('img').attr('src', largeImageUrl);
  });
});
</script>
";
            // line 775
            if ((isset($context["image_protection"]) ? $context["image_protection"] : null)) {
                // line 776
                echo "<script>
\$('.product-image img').on('click', function() {
  setTimeout(function() {
    \$('img').bind('contextmenu', function() {
      return false;
    });
  });
});
</script>
";
            }
        } elseif ((        // line 786
(isset($context["image_view"]) ? $context["image_view"] : null) == "photoswipe")) {
            // line 787
            echo "<script>
var initPhotoSwipeFromDOM = function(gallerySelector) {
  // parse slide data (url, title, size ...) from DOM elements
  // (children of gallerySelector)
  var parseThumbnailElements = function(el) {
    var thumbElements = el.childNodes,
      numNodes = thumbElements.length,
      items = [],
      figureEl,
      linkEl,
      size,
      item;

    for (var i = 0; i < numNodes; i++) {

      figureEl = thumbElements[i]; // <figure> element

      // include only element nodes
      if (figureEl.nodeType !== 1) {
        continue;
      }

      linkEl = figureEl.children[0]; // <a> element

      size = linkEl.getAttribute('data-size').split('x');

      // create slide object
      item = {
        src: linkEl.getAttribute('href'),
        w: parseInt(size[0], 10),
        h: parseInt(size[1], 10)
      };
      console.log(item);

      if (figureEl.children.length > 1) {
        // <figcaption> content
        item.title = figureEl.children[1].innerHTML;
      }

      if (linkEl.children.length > 0) {
        // <img> thumbnail element, retrieving thumbnail url
        item.msrc = linkEl.children[0].getAttribute('src');
      }

      item.el = figureEl; // save link to element for getThumbBoundsFn
      items.push(item);
    }

    return items;
  };

  // find nearest parent element
  var closest = function closest(el, fn) {
    return el && ( fn(el) ? el : closest(el.parentNode, fn) );
  };

  // triggers when user clicks on thumbnail
  var onThumbnailsClick = function(e) {
    e = e || window.event;
    e.preventDefault ? e.preventDefault() : e.returnValue = false;

    var eTarget = e.target || e.srcElement;

    // find root element of slide
    var clickedListItem = closest(eTarget, function(el) {
      return (el.tagName && el.tagName.toUpperCase() === 'FIGURE');
    });

    if (!clickedListItem) {
      return;
    }

    // find index of clicked item by looping through all child nodes
    // alternatively, you may define via data- attribute
    var clickedGallery = clickedListItem.parentNode,
        childNodes = clickedListItem.parentNode.childNodes,
        numChildNodes = childNodes.length,
        nodeIndex = 0,
        index;

    for (var i = 0; i < numChildNodes; i++) {
      if (childNodes[i].nodeType !== 1) {
        continue;
      }

      if (childNodes[i] === clickedListItem) {
        index = nodeIndex;
        break;
      }
      nodeIndex++;
    }

    if (index >= 0) {
      // open PhotoSwipe if valid index found
      openPhotoSwipe(index, clickedGallery);
    }
    return false;
  };

  // parse picture index and gallery index from URL (#&pid=1&gid=2)
  var photoswipeParseHash = function() {
    var hash = window.location.hash.substring(1),
    params = {};

    if (hash.length < 5) {
      return params;
    }

    var vars = hash.split('&');
    for (var i = 0; i < vars.length; i++) {
      if (!vars[i]) {
        continue;
      }
      var pair = vars[i].split('=');
      if (pair.length < 2) {
        continue;
      }
      params[pair[0] = pair[1]];
    }

    if (params.gid) {
      params.gid = parseInt(params.gid, 10);
    }

    return params;
  };

  var openPhotoSwipe = function(index, galleryElement, disableAnimation, fromURL) {
    var pswpElement = document.querySelectorAll('.pswp')[0],
        gallery,
        options,
        items;

    items = parseThumbnailElements(galleryElement);

    // define options (if needed)
    options = {

      // define gallery index (for URL)
      galleryUID: galleryElement.getAttribute('data-pswp-uid'),

      getThumbBoundsFn: function(index) {
        // See Options -> getthumbBoundsFn section of documentation for more info
        var thumbnail = items[index].el.getElementsByTagName('img')[0], // find thumbnail
            pageYScroll = window.pageYOffset || document.documentElement.scrollTop,
            rect = thumbnail.getBoundingClientRect();

        return {x:rect.left, y:rect.top + pageYScroll, w:rect.width};
      }
    };

    // PhotoSwipe opened from URL
    if (fromURL) {
      if (options.galleryPIDs) {
        // parse real index when custom PIDs are used
        // http://photoswipe.com/documentation/faq.html#custom-pid-in-url
        for (var j = 0; j < items.length; j++) {
          if (items[j].pid == index) {
            options.index = j;
            break;
          }
        }
      } else {
        options.index = parseInt(index, 10);
      }
    } else {
      options.index = parseInt(index, 10);
    }

    // exit if index not found
    if (isNaN(options.index)) {
      return;
    }

    if (disableAnimation) {
      options.showAnimationDuration = 0;
    }

    // Pass data to PhotoSwipe and initialize it
    gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options);
    gallery.init();
  };

  // loop through all gallery elements and bind events
  var galleryElements = document.querySelectorAll(gallerySelector);

  for (var i = 0, l = galleryElements.length; i < l; i++) {
    galleryElements[i].setAttribute('data-pswp-uid', i+1);
    galleryElements[i].onclick = onThumbnailsClick;
  }

  // Parse URL and open gallery if it contains #&pid=3&gid=1
  var hashData = photoswipeParseHash();
  if (hashData.pid && hashData.gid) {
    openPhotoSwipe(hashData.pid, galleryElements[hashData.gid - 1], true, true);
  }
};

// execute above function
initPhotoSwipeFromDOM('.product-gallery');
</script>
";
        } else {
            // line 989
            echo "<script>
\$('.slider-for').slick({
  slidesToShow: 1,
  slidesToScroll: 1,
  arrows: false,
  fade: true,
  asNavFor: '.slider-nav',
  dots: false
});
\$('.slider-nav').slick({
  slidesToShow: 5,
  slidesToScroll: 1,
  centerMode: false,
  arrows: false,
  focusOnSelect: true,
  asNavFor: '.slider-for',
  dots: false
})
</script>
<script>
\$('.easyzoom').easyZoom();
</script>
";
            // line 1011
            if ((isset($context["image_protection"]) ? $context["image_protection"] : null)) {
                // line 1012
                echo "<script>
\$(document).ready(function() {
  \$('.easyzoom').bind('contextmenu', function() {
    return false;
  });
});
</script>
";
            }
        }
        // line 1021
        echo (isset($context["footer"]) ? $context["footer"] : null);
        echo "
";
    }

    public function getTemplateName()
    {
        return "mart/template/product/product.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  2054 => 1021,  2043 => 1012,  2041 => 1011,  2017 => 989,  1813 => 787,  1811 => 786,  1799 => 776,  1797 => 775,  1777 => 757,  1775 => 756,  1706 => 690,  1699 => 686,  1537 => 527,  1531 => 524,  1527 => 522,  1523 => 520,  1507 => 515,  1503 => 513,  1495 => 511,  1489 => 509,  1487 => 508,  1484 => 507,  1481 => 506,  1477 => 504,  1468 => 502,  1464 => 501,  1461 => 500,  1459 => 499,  1453 => 496,  1450 => 495,  1446 => 493,  1440 => 492,  1436 => 490,  1432 => 488,  1429 => 487,  1425 => 486,  1422 => 485,  1420 => 484,  1413 => 482,  1407 => 480,  1401 => 478,  1398 => 477,  1392 => 475,  1389 => 474,  1383 => 472,  1381 => 471,  1370 => 469,  1365 => 467,  1362 => 466,  1358 => 465,  1352 => 463,  1350 => 462,  1347 => 461,  1342 => 458,  1336 => 456,  1327 => 452,  1321 => 449,  1316 => 447,  1303 => 437,  1299 => 436,  1291 => 431,  1286 => 429,  1278 => 424,  1274 => 423,  1270 => 421,  1268 => 420,  1264 => 419,  1257 => 416,  1254 => 415,  1249 => 412,  1242 => 410,  1233 => 407,  1229 => 406,  1226 => 405,  1222 => 404,  1215 => 400,  1211 => 398,  1207 => 397,  1201 => 395,  1199 => 394,  1193 => 393,  1189 => 391,  1183 => 389,  1180 => 388,  1174 => 386,  1172 => 385,  1168 => 384,  1160 => 378,  1153 => 374,  1150 => 373,  1148 => 372,  1145 => 371,  1141 => 369,  1130 => 367,  1126 => 366,  1123 => 365,  1121 => 364,  1114 => 362,  1108 => 361,  1105 => 360,  1099 => 358,  1097 => 357,  1090 => 355,  1081 => 349,  1077 => 348,  1070 => 343,  1066 => 341,  1063 => 340,  1052 => 338,  1048 => 337,  1043 => 334,  1040 => 333,  1032 => 331,  1029 => 330,  1021 => 328,  1018 => 327,  1010 => 322,  1005 => 320,  1002 => 319,  996 => 316,  993 => 315,  991 => 314,  988 => 313,  985 => 312,  979 => 308,  968 => 306,  964 => 305,  960 => 304,  954 => 301,  951 => 300,  948 => 299,  945 => 298,  939 => 297,  926 => 291,  919 => 289,  912 => 288,  909 => 287,  896 => 281,  889 => 279,  882 => 278,  879 => 277,  866 => 271,  859 => 269,  852 => 268,  849 => 267,  841 => 264,  833 => 263,  829 => 262,  822 => 261,  819 => 260,  807 => 257,  801 => 256,  794 => 255,  791 => 254,  779 => 251,  773 => 250,  766 => 249,  763 => 248,  758 => 245,  750 => 242,  743 => 240,  741 => 239,  736 => 238,  720 => 237,  714 => 236,  710 => 234,  706 => 233,  702 => 232,  698 => 231,  691 => 230,  688 => 229,  683 => 226,  675 => 223,  668 => 221,  666 => 220,  662 => 219,  644 => 218,  638 => 217,  634 => 215,  630 => 214,  626 => 213,  622 => 212,  615 => 211,  612 => 210,  607 => 207,  600 => 205,  593 => 203,  591 => 202,  584 => 201,  580 => 200,  576 => 199,  570 => 198,  564 => 197,  557 => 196,  554 => 195,  550 => 194,  545 => 193,  543 => 192,  535 => 187,  531 => 186,  528 => 185,  522 => 182,  518 => 181,  515 => 180,  513 => 179,  508 => 177,  504 => 176,  501 => 175,  493 => 172,  489 => 171,  486 => 170,  484 => 169,  480 => 167,  474 => 164,  471 => 163,  468 => 162,  460 => 158,  454 => 157,  450 => 155,  446 => 153,  443 => 152,  439 => 151,  435 => 149,  433 => 148,  429 => 147,  426 => 146,  420 => 145,  417 => 144,  411 => 142,  403 => 140,  400 => 139,  395 => 138,  393 => 137,  385 => 135,  382 => 134,  379 => 133,  376 => 132,  373 => 131,  371 => 130,  368 => 129,  365 => 128,  360 => 125,  357 => 124,  344 => 121,  341 => 120,  336 => 119,  333 => 118,  323 => 115,  320 => 114,  318 => 113,  314 => 111,  311 => 110,  297 => 106,  291 => 105,  288 => 104,  283 => 103,  280 => 102,  269 => 98,  263 => 97,  260 => 96,  258 => 95,  254 => 93,  217 => 58,  213 => 56,  210 => 55,  200 => 51,  192 => 50,  189 => 49,  184 => 48,  182 => 47,  176 => 44,  168 => 43,  164 => 41,  161 => 40,  159 => 39,  156 => 38,  153 => 37,  136 => 35,  131 => 34,  128 => 33,  115 => 31,  102 => 30,  100 => 29,  97 => 28,  94 => 27,  92 => 26,  87 => 25,  84 => 24,  81 => 23,  78 => 22,  75 => 21,  73 => 20,  68 => 18,  62 => 16,  59 => 15,  56 => 14,  53 => 13,  50 => 12,  47 => 11,  44 => 10,  42 => 9,  38 => 8,  33 => 7,  29 => 5,  25 => 3,  23 => 2,  19 => 1,);
    }
}
/* {{ header }}*/
/* {% if animated_fadeup %}*/
/*   {% set fadeup = 'animated fadeInUp' %}*/
/* {% else %}*/
/*   {% set fadeup = '' %}*/
/* {% endif %}*/
/* <div id="product-product" class="{{ container ?: 'container-fluid' }}">*/
/*   <div class="row">{{ column_left }}*/
/*     {% if column_left and column_right %}*/
/*     {% set class = 'col-sm-6' %}*/
/*     {% elseif column_left or column_right %}*/
/*     {% set class = 'col-sm-9' %}*/
/*     {% else %}*/
/*     {% set class = 'col-sm-12' %}*/
/*     {% endif %}*/
/*     <div id="content" class="{{ class }} product-page">*/
/*       <div class="content-inner">*/
/*         {{ content_top }}*/
/*         <div class="row">*/
/*           {% if column_left or column_right %}*/
/*           {% set class = 'col-sm-6' %}*/
/*           {% else %}*/
/*           {% set class = 'col-sm-7' %}*/
/*           {% endif %}*/
/*           <div class="{{ class }}">*/
/*             {% if thumb or images %}*/
/*               {% if image_view == "popup" %}*/
/*               <ul class="product-image">*/
/*                 {% if thumb %}*/
/*                 <li><a class="image-main" href="{{ popup }}" title="{{ heading_title }}"><img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" class="img-responsive"/></a></li>*/
/*                 <li class="pull-left"><a class="image-additional" href="{{ popup }}" title="{{ heading_title }}"><img src="{{ thumb_additional }}" title="{{ heading_title }}" alt="{{ heading_title }}" class="img-responsive"/></a></li>*/
/*                 {% endif %}*/
/*                 {% if images %}*/
/*                 {% for image in images %}*/
/*                 <li class="pull-left"><a class="image-additional" href="{{ image.popup }}" title="{{ heading_title }}"> <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" class="img-responsive" /></a></li>*/
/*                 {% endfor %}*/
/*                 {% endif %}*/
/*               </ul>*/
/*               {% elseif image_view == "photoswipe"%}*/
/*               {% if thumb %}*/
/*               <div class="product-gallery" itemscope itemtype="http://schema.org/ImageGallery">*/
/*                 <figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject" class="col-sm-6">*/
/*                   <a href="{{ popup }}" itemprop="contentUrl" data-size="{{ image_popup_width }}x{{ image_popup_height }}" data-index="0">*/
/*                     <img src="{{ popup }}" itemprop="thumbnail" alt="Product Image">*/
/*                   </a>*/
/*                 </figure>*/
/*                 {% if images %}*/
/*                 {% for image in images %}*/
/*                 <figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject" class="col-sm-6">*/
/*                   <a href="{{ image.popup }}" itemprop="contentUrl" data-size="{{ image.image_popup_width }}x{{ image.image_popup_height }}" data-index="0">*/
/*                     <img src="{{ image.popup }}" itemprop="thumbnail" alt="Product Image">*/
/*                   </a>*/
/*                 </figure>*/
/*                 {% endfor %}*/
/*                 {% endif %}*/
/*               </div>*/
/*               {% endif %}*/
/*               <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">*/
/*                 <div class="pswp__bg"></div>*/
/*                 <div class="pswp__scroll-wrap">*/
/*                   <div class="pswp__container">*/
/*                     <div class="pswp__item"></div>*/
/*                     <div class="pswp__item"></div>*/
/*                     <div class="pswp__item"></div>*/
/*                   </div>*/
/*                   <div class="pswp__ui pswp__ui--hidden">*/
/*                     <div class="pswp__top-bar">*/
/*                       <div class="pswp__counter"></div>*/
/*                       <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>*/
/*                       <button class="pswp__button pswp__button--share" title="Share"></button>*/
/*                       <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>*/
/*                       <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>*/
/*                       <div class="pswp__preloader">*/
/*                         <div class="pswp__preloader__icn">*/
/*                           <div class="pswp__preloader__cut">*/
/*                             <div class="pswp__preloader__donut"></div>*/
/*                           </div>*/
/*                         </div>*/
/*                       </div>*/
/*                     </div>*/
/*                     <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">*/
/*                       <div class="pswp__share-tooltip"></div>*/
/*                     </div>*/
/*                     <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>*/
/*                     <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>*/
/*                     <div class="pswp__caption">*/
/*                       <div class="pswp__caption__center"></div>*/
/*                     </div>*/
/*                   </div>*/
/*                 </div>*/
/*               </div>*/
/*               {% else %}*/
/*               <div class="product-image">*/
/*                 <div class="slider slider-for">*/
/*                   {% if thumb %}*/
/*                   <div class="easyzoom easyzoom--overlay">*/
/*                     <a href="{{ popup }}" title="{{ heading_title }}">*/
/*                       <img src="{{ popup }}" title="{{ heading_title }}" alt="{{ heading_title }}" class="img-responsive">*/
/*                     </a>*/
/*                   </div>*/
/*                   {% endif %}*/
/*                   {% if images %}*/
/*                   {% for image in images %}*/
/*                   <div class="easyzoom easyzoom--overlay">*/
/*                     <a href="{{ image.popup }}" title="{{ heading_title }}">*/
/*                       <img src="{{ image.popup }}" title="{{ heading_title }}" alt="{{ heading_title }}" class="img-responsive">*/
/*                     </a>*/
/*                   </div>*/
/*                   {% endfor %}*/
/*                   {% endif %}*/
/*                 </div>*/
/*                 <div class="slider slider-nav">*/
/*                   {% if thumb %}*/
/*                   <div>*/
/*                     <img src="{{ thumb_additional }}" title="{{ heading_title }}" alt="{{ heading_title }}" class="img-responsive image-additional">*/
/*                   </div>*/
/*                   {% endif %}*/
/*                   {% if images %}*/
/*                   {% for image in images %}*/
/*                   <div>*/
/*                     <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" class="img-responsive image-additional">*/
/*                   </div>*/
/*                   {% endfor %}*/
/*                   {% endif %}*/
/*                 </div>*/
/*               </div>*/
/*               {% endif %}*/
/*             {% endif %}*/
/*           </div>*/
/*           {% if column_left or column_right %}*/
/*           {% set class = 'col-sm-6' %}*/
/*           {% else %}*/
/*           {% set class = 'col-sm-5' %}*/
/*           {% endif %}*/
/*           <div class="{{ class }} {{ fadeup }}">*/
/*             <ul class="breadcrumb">*/
/*               {% set i = 1 %}*/
/*               {% for breadcrumb in breadcrumbs %}*/
/*                 {% if breadcrumbs|length != i %}*/
/*                 <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>*/
/*                 {% else %}*/
/*                 <li>{{ breadcrumb.text}}</li>*/
/*                 {% endif %}*/
/*                 {% set i = i + 1 %}*/
/*               {% endfor %}*/
/*             </ul>*/
/*             <h1>{{ heading_title }}</h1>*/
/*             {% if review_status %}*/
/*             <div class="rating">*/
/*               <p>*/
/*                 {% for i in 1..5 %}*/
/*                 {% if rating < i %}*/
/*                 <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>*/
/*                 {% else %}*/
/*                 <span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>*/
/*                 {% endif %}*/
/*                 {% endfor %}*/
/*                 <a href="" id="reviews" onclick="$('a[href=\'#tab-review\']').trigger('click'); return false;">({{ reviews }} )</a>*/
/*               </p>*/
/*             </div>*/
/*             {% endif %}*/
/*             {% if short_description %}*/
/*             <div class="short-description">*/
/*               <p>{{ short_description_text }}</p>*/
/*             </div>*/
/*             {% endif %}*/
/*             <div class="table-responsive">*/
/*               <table class="table table-borderless">*/
/*                 {% if manufacturer %}*/
/*                 <tr>*/
/*                   <td class="col-xs-6 col-md-4">{{ text_manufacturer }}</td>*/
/*                   <td><a href="{{ manufacturers }}">{{ manufacturer }}</a></td>*/
/*                 </tr>*/
/*                 {% endif %}*/
/*                 <tr>*/
/*                   <td class="col-xs-6 col-md-4">{{ text_model }}</td>*/
/*                   <td>{{ model }}</td>*/
/*                 </tr>*/
/*                 {% if reward %}*/
/*                 <tr>*/
/*                   <td class="col-xs-6 col-md-4">{{ text_reward }}</td>*/
/*                   <td>{{ reward }}</td>*/
/*                 </tr>*/
/*                 {% endif %}*/
/*                 <tr>*/
/*                   <td class="col-xs-6 col-md-4">{{ text_stock }}</td>*/
/*                   <td>{{ stock }}</td>*/
/*                 </tr>*/
/*               </table>*/
/*             </div>*/
/*             <div id="product">*/
/*               {% if options %}*/
/*               <h3>{{ text_option }}</h3>*/
/*               {% for option in options %}*/
/*               {% if option.type == 'select' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/*                 <select name="option[{{ option.product_option_id }}]" id="input-option{{ option.product_option_id }}" class="form-control">*/
/*                   <option value="">{{ text_select }}</option>*/
/*                   {% for option_value in option.product_option_value %}*/
/*                   <option value="{{ option_value.product_option_value_id }}">{{ option_value.name }}*/
/*                   {% if option_value.price %}*/
/*                   ({{ option_value.price_prefix }}{{ option_value.price }})*/
/*                   {% endif %}*/
/*                   </option>*/
/*                   {% endfor %}*/
/*                 </select>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if option.type == 'radio' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label">{{ option.name }}</label>*/
/*                 <div id="input-option{{ option.product_option_id }}">*/
/*                   {% for option_value in option.product_option_value %}*/
/*                   <div class="radio">*/
/*                     <label>*/
/*                       <input type="radio" name="option[{{ option.product_option_id }}]" value="{{ option_value.product_option_value_id }}" />*/
/*                       {% if option_value.image %} <img src="{{ option_value.image }}" alt="{{ option_value.name }} {% if option_value.price %} {{ option_value.price_prefix }} {{ option_value.price }} {% endif %}" class="img-thumbnail" /> {% endif %}                  */
/*                       {{ option_value.name }}*/
/*                       {% if option_value.price %}*/
/*                       ({{ option_value.price_prefix }}{{ option_value.price }})*/
/*                       {% endif %}*/
/*                     </label>*/
/*                   </div>*/
/*                   {% endfor %}*/
/*                 </div>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if option.type == 'checkbox' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label">{{ option.name }}</label>*/
/*                 <div id="input-option{{ option.product_option_id }}">*/
/*                   {% for option_value in option.product_option_value %}*/
/*                   <div class="checkbox">*/
/*                     <label>*/
/*                       <input type="checkbox" name="option[{{ option.product_option_id }}][]" value="{{ option_value.product_option_value_id }}" />*/
/*                       {% if option_value.image %} <img src="{{ option_value.image }}" alt="{{ option_value.name }} {% if option_value.price %} {{ option_value.price_prefix }} {{ option_value.price }} {% endif %}" class="img-thumbnail" /> {% endif %}*/
/*                       {{ option_value.name }}*/
/*                       {% if option_value.price %}*/
/*                       ({{ option_value.price_prefix }}{{ option_value.price }})*/
/*                       {% endif %}*/
/*                     </label>*/
/*                   </div>*/
/*                   {% endfor %}*/
/*                 </div>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if option.type == 'text' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/*                 <input type="text" name="option[{{ option.product_option_id }}]" value="{{ option.value }}" placeholder="{{ option.name }}" id="input-option{{ option.product_option_id }}" class="form-control" />*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if option.type == 'textarea' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/*                 <textarea name="option[{{ option.product_option_id }}]" rows="5" placeholder="{{ option.name }}" id="input-option{{ option.product_option_id }}" class="form-control">{{ option.value }}</textarea>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if option.type == 'file' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label">{{ option.name }}</label>*/
/*                 <button type="button" id="button-upload{{ option.product_option_id }}" data-loading-text="{{ text_loading }}" class="btn btn-default btn-block"><i class="fa fa-upload"></i> {{ button_upload }}</button>*/
/*                 <input type="hidden" name="option[{{ option.product_option_id }}]" value="" id="input-option{{ option.product_option_id }}" />*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if option.type == 'date' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/*                 <div class="input-group date">*/
/*                   <input type="text" name="option[{{ option.product_option_id }}]" value="{{ option.value }}" data-date-format="YYYY-MM-DD" id="input-option{{ option.product_option_id }}" class="form-control" />*/
/*                   <span class="input-group-btn">*/
/*                   <button class="btn btn-form" type="button"><i class="material-icons">date_range</i></button>*/
/*                   </span></div>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if option.type == 'datetime' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/*                 <div class="input-group datetime">*/
/*                   <input type="text" name="option[{{ option.product_option_id }}]" value="{{ option.value }}" data-date-format="YYYY-MM-DD HH:mm" id="input-option{{ option.product_option_id }}" class="form-control" />*/
/*                   <span class="input-group-btn">*/
/*                   <button type="button" class="btn btn-form"><i class="material-icons">date_range</i></button>*/
/*                   </span></div>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if option.type == 'time' %}*/
/*               <div class="form-group{% if option.required %} required {% endif %}">*/
/*                 <label class="control-label" for="input-option{{ option.product_option_id }}">{{ option.name }}</label>*/
/*                 <div class="input-group time">*/
/*                   <input type="text" name="option[{{ option.product_option_id }}]" value="{{ option.value }}" data-date-format="HH:mm" id="input-option{{ option.product_option_id }}" class="form-control" />*/
/*                   <span class="input-group-btn">*/
/*                   <button type="button" class="btn btn-form"><i class="material-icons">date_range</i></button>*/
/*                   </span></div>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% endfor %}*/
/*               {% endif %}*/
/*               {% if recurrings %}*/
/*               <hr>*/
/*               <h3>{{ text_payment_recurring }}</h3>*/
/*               <div class="form-group required">*/
/*                 <select name="recurring_id" class="form-control">*/
/*                   <option value="">{{ text_select }}</option>*/
/*                   {% for recurring in recurrings %}*/
/*                   <option value="{{ recurring.recurring_id }}">{{ recurring.name }}</option>*/
/*                   {% endfor %}*/
/*                 </select>*/
/*                 <div class="help-block" id="recurring-description"></div>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if price %}*/
/*               <ul class="list-unstyled price">*/
/*                 {% if not special %}*/
/*                 <li>*/
/*                   <h3 class="price-regular">{{ price }}</h3>*/
/*                 </li>*/
/*                 {% else %}*/
/*                 <li>*/
/*                   <h4 class="price-old">{{ price }}</h4>*/
/*                   <br />*/
/*                   <h3 class="price-new">{{ special }}</h3>*/
/*                 </li>*/
/*                 <li>*/
/*                 </li>*/
/*                 {% endif %}*/
/*                 {% if tax %}*/
/*                 <li class="tax-rewards">{{ text_tax }} {{ tax }}</li>*/
/*                 {% endif %}*/
/*                 {% if points %}*/
/*                 <li class="tax-rewards">{{ text_points }} {{ points }}</li>*/
/*                 {% endif %}*/
/*                 {% if discounts %}*/
/*                 <li>*/
/*                   <hr>*/
/*                 </li>*/
/*                 {% for discount in discounts %}*/
/*                 <li>{{ discount.quantity }}{{ text_discount }}{{ discount.price }}</li>*/
/*                 {% endfor %}*/
/*                 {% endif %}*/
/*               </ul>*/
/*               {% endif %}*/
/*               <div class="form-group">*/
/*                 <div class="input-group">*/
/*                   <span class="input-group-btn">*/
/*                     <button type="button" class="btn btn-form minus ripplelink"><i class="material-icons">remove</i></button>*/
/*                   </span>*/
/*                   <input type="text" name="quantity" value="{{ minimum }}" size="2" id="input-quantity" class="form-control text-center quantity">*/
/*                   <input type="hidden" name="product_id" value="{{ product_id }}" />*/
/*                   <span class="input-group-btn">*/
/*                     <button type="button" class="btn btn-form plus ripplelink"><i class="material-icons">add</i></button>*/
/*                   </span>*/
/*                 </div>*/
/*                 <br />*/
/*                 <button type="button" id="button-cart" data-loading-text="{{ text_loading }}" class="btn btn-block btn-primary">{{ button_cart }}</button>*/
/*               </div>*/
/*               {% if minimum > 1 %}*/
/*               <div class="alert alert-info"><i class="fa fa-info-circle"></i> {{ text_minimum }}</div>*/
/*               {% endif %}*/
/*               <div class="btn-group">*/
/*                 <button type="button" data-toggle="tooltip" data-placement="top" class="btn btn-empty" title="{{ button_wishlist }}" onclick="wishlist.add('{{ product_id }}');"><i class="material-icons">favorite_border</i></button>*/
/*                 <button type="button" data-toggle="tooltip" data-placement="top" class="btn btn-empty" title="{{ button_compare }}" onclick="compare.add('{{ product_id }}');"><i class="material-icons">compare_arrows</i></button>*/
/*               </div>*/
/*               {% if tags %}*/
/*               <ul class="list-inline tags">*/
/*                 {% for i in 0..tags|length %}*/
/*                 <li><a href="{{ tags.i.href }}">{{ tags.i.tag }}</a></li>*/
/*                 {% endfor %}*/
/*               </ul>*/
/*               {% endif %}*/
/*               <br />*/
/*               {% if share_buttons %}*/
/*               <!-- AddThis Button BEGIN -->*/
/*               <div class="addthis_toolbox addthis_default_style" data-url="{{ share }}"><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_tweet"></a> <a class="addthis_button_pinterest_pinit"></a> <a class="addthis_counter addthis_pill_style"></a></div>*/
/*               <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-515eeaf54693130e"></script>*/
/*               <!-- AddThis Button END -->*/
/*               {% endif %}*/
/*             </div>*/
/*           </div>*/
/*         </div>*/
/*         <div class="row">*/
/*           <div class="col-xs-12">*/
/*             <ul class="nav nav-tabs">*/
/*               <li class="active"><a href="#tab-description" data-toggle="tab">{{ tab_description }}</a></li>*/
/*               {% if attribute_groups %}*/
/*               <li><a href="#tab-specification" data-toggle="tab">{{ tab_attribute }}</a></li>*/
/*               {% endif %}*/
/*               {% if review_status %}*/
/*               <li><a href="#tab-review" data-toggle="tab">{{ tab_review }}</a></li>*/
/*               {% endif %}*/
/*             </ul>*/
/*             <div class="tab-content">*/
/*               <div class="tab-pane active {{ fadeup }}" id="tab-description">{{ description }}</div>*/
/*               {% if attribute_groups %}*/
/*               <div class="tab-pane {{ fadeup }}" id="tab-specification">*/
/*                 <table class="table">*/
/*                   {% for attribute_group in attribute_groups %}*/
/*                   <thead>*/
/*                     <tr>*/
/*                       <td colspan="2"><strong>{{ attribute_group.name }}</strong></td>*/
/*                     </tr>*/
/*                   </thead>*/
/*                   <tbody>*/
/*                     {% for attribute in attribute_group.attribute %}*/
/*                     <tr>*/
/*                       <td>{{ attribute.name }}</td>*/
/*                       <td>{{ attribute.text }}</td>*/
/*                     </tr>*/
/*                     {% endfor %}*/
/*                   </tbody>*/
/*                   {% endfor %}*/
/*                 </table>*/
/*               </div>*/
/*               {% endif %}*/
/*               {% if review_status %}*/
/*               <div class="tab-pane {{ fadeup }}" id="tab-review">*/
/*                 <form class="form-horizontal" id="form-review">*/
/*                   <div id="review"></div>*/
/*                   <h2>{{ text_write }}</h2>*/
/*                   {% if review_guest %}*/
/*                   <div class="form-group required">*/
/*                     <div class="col-sm-12">*/
/*                       <label class="control-label" for="input-name">{{ entry_name }}</label>*/
/*                       <input type="text" name="name" value="{{ customer_name }}" id="input-name" class="form-control" />*/
/*                     </div>*/
/*                   </div>*/
/*                   <div class="form-group required">*/
/*                     <div class="col-sm-12">*/
/*                       <label class="control-label" for="input-review">{{ entry_review }}</label>*/
/*                       <textarea name="text" rows="5" id="input-review" class="form-control"></textarea>*/
/*                       <div class="help-block">{{ text_note }}</div>*/
/*                     </div>*/
/*                   </div>*/
/*                   <div class="form-group required">*/
/*                     <div class="col-sm-12">*/
/*                       <label class="control-label">{{ entry_rating }}</label>*/
/*                       &nbsp;&nbsp;&nbsp; {{ entry_bad }} &nbsp;*/
/*                       <input type="radio" name="rating" value="1" />*/
/*                       &nbsp;*/
/*                       <input type="radio" name="rating" value="2" />*/
/*                       &nbsp;*/
/*                       <input type="radio" name="rating" value="3" />*/
/*                       &nbsp;*/
/*                       <input type="radio" name="rating" value="4" />*/
/*                       &nbsp;*/
/*                       <input type="radio" name="rating" value="5" />*/
/*                       &nbsp;{{ entry_good }}</div>*/
/*                   </div>*/
/*                   {{ captcha }}*/
/*                   <div class="buttons clearfix">*/
/*                     <div class="pull-right">*/
/*                       <button type="button" id="button-review" data-loading-text="{{ text_loading }}" class="btn btn-default">{{ button_continue }}</button>*/
/*                     </div>*/
/*                   </div>*/
/*                   {% else %}*/
/*                   {{ text_login }}*/
/*                   {% endif %}*/
/*                 </form>*/
/*               </div>*/
/*               {% endif %}*/
/*             </div>*/
/*             {% if products %}*/
/*             <h3>{{ text_related }}</h3>*/
/*               <div class="row">*/
/*                 {% for product in products %}*/
/*                 <div class="product-layout product-grid col-xs-6 col-md-3">*/
/*                   <div class="product-thumb {{ product.out_of_stock and badge_out_of_stock ? 'out-of-stock' : '' }}">*/
/*                     <div class="image">*/
/*                       <a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive" /></a>*/
/*                     </div>*/
/*                     {% if product.out_of_stock and badge_out_of_stock %}*/
/*                     <div class="badge-stock">{{ badge_out_of_stock_label }}</div>*/
/*                     {% endif %}*/
/*                     {% if product.recently_added and badge_recently_added and not product.special and not product.out_of_stock %}*/
/*                     <div class="badge-new">{{ badge_recently_added_label }}</div>*/
/*                     {% endif %}*/
/*                     {% if product.special and badge_sale and not product.out_of_stock %}*/
/*                     <div class="badge-sale">{{ badge_sale_label }}</div>*/
/*                     {% endif %}*/
/*                     <button type="button" class="btn btn-empty pull-right" onclick="wishlist.add('{{ product.product_id }}');"><i class="material-icons">favorite_border</i></button>*/
/*                     <div class="name">*/
/*                       <a href="{{ product.href }}">{{ product.name }}</a>*/
/*                     </div>*/
/*                     {% if product.rating %}*/
/*                     <div class="rating">*/
/*                       {% for i in 1..5 %}*/
/*                       {% if product.rating < i %}*/
/*                       <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>*/
/*                       {% else %}*/
/*                       <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>*/
/*                       {% endif %}*/
/*                       {% endfor %}*/
/*                     </div>*/
/*                     {% endif %}*/
/*                     <div class="description">*/
/*                       <p>{{ product.description }}</p>*/
/*                     </div>*/
/*                     <div class="caption">*/
/*                       {% if product.colors and product_color_options %}*/
/*                       <div class="colors">*/
/*                         {% for color in product.colors %}*/
/*                         <span style="background:#{{ color }};"></span>*/
/*                         {% endfor %}*/
/*                       </div>*/
/*                       {% endif %}*/
/*                       {% if product.price %}*/
/*                       <div class="price">*/
/*                         {% if not product.special %}*/
/*                         <span class="price-regular">{{ product.price }}</span>*/
/*                         {% else %}*/
/*                         <span class="price-old">{{ product.price }}</span> <span class="price-new">{{ product.special }}</span>*/
/*                         {% endif %}*/
/*                       </div>*/
/*                       {% endif %}*/
/*                       <button type="button" class="btn btn-primary" onclick="cart.add('{{ product.product_id }}', '{{ product.minimum }}');">{{ button_cart }}</button>*/
/*                     </div>*/
/*                   </div>*/
/*                 </div>*/
/*                 {% endfor %}*/
/*               </div>*/
/*               {% endif %}*/
/*           </div>*/
/*         </div>*/
/*       {{ content_bottom }}*/
/*       </div>*/
/*     </div>*/
/*     {{ column_right }}*/
/*   </div>*/
/* </div>*/
/* <script><!--*/
/* $('select[name=\'recurring_id\'], input[name="quantity"]').change(function(){*/
/*   $.ajax({*/
/*     url: 'index.php?route=product/product/getRecurringDescription',*/
/*     type: 'post',*/
/*     data: $('input[name=\'product_id\'], input[name=\'quantity\'], select[name=\'recurring_id\']'),*/
/*     dataType: 'json',*/
/*     beforeSend: function() {*/
/*       $('#recurring-description').html('');*/
/*     },*/
/*     success: function(json) {*/
/*       $('.alert, .text-danger').remove();*/
/* */
/*       if (json['success']) {*/
/*         $('#recurring-description').html(json['success']);*/
/*       }*/
/*     }*/
/*   });*/
/* });*/
/* //--></script>*/
/* <script><!--*/
/* $('#button-cart').on('click', function() {*/
/*   $.ajax({*/
/*     url: 'index.php?route=checkout/cart/add',*/
/*     type: 'post',*/
/*     data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'),*/
/*     dataType: 'json',*/
/*     beforeSend: function() {*/
/*       $('#button-cart').button('loading');*/
/*     },*/
/*     complete: function() {*/
/*       $('#button-cart').button('reset');*/
/*     },*/
/*     success: function(json) {*/
/*       $('.alert, .text-danger').remove();*/
/*       $('.form-group').removeClass('has-error');*/
/* */
/*       if (json['error']) {*/
/*         if (json['error']['option']) {*/
/*           for (i in json['error']['option']) {*/
/*             var element = $('#input-option' + i.replace('_', '-'));*/
/* */
/*             if (element.parent().hasClass('input-group')) {*/
/*               element.parent().after('<div class="text-danger">' + json['error']['option'][i] + '</div>');*/
/*             } else {*/
/*               element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>');*/
/*             }*/
/*           }*/
/*         }*/
/* */
/*         if (json['error']['recurring']) {*/
/*           $('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>');*/
/*         }*/
/* */
/*         // Highlight any found errors*/
/*         $('.text-danger').parent().addClass('has-error');*/
/*       }*/
/* */
/*       if (json['success']) {*/
/* */
/*         setTimeout(function () {*/
/* */
/*           // Update cart quantity*/
/*           $('#cart-total').text(json.total);*/
/* */
/*           updateCounter('#cart-total');*/
/* */
/*         }, 100);*/
/* */
/*         // Show notification*/
/*         notify(json.success, 'success');*/
/*       }*/
/*     },*/
/*     error: function(xhr, ajaxOptions, thrownError) {*/
/*       alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/*     }*/
/*   });*/
/* });*/
/* //--></script>*/
/* <script><!--*/
/* $('.date').datetimepicker({*/
/*   pickTime: false*/
/* });*/
/* */
/* $('.datetime').datetimepicker({*/
/*   pickDate: true,*/
/*   pickTime: true*/
/* });*/
/* */
/* $('.time').datetimepicker({*/
/*   pickDate: false*/
/* });*/
/* */
/* $('button[id^=\'button-upload\']').on('click', function() {*/
/*   var node = this;*/
/* */
/*   $('#form-upload').remove();*/
/* */
/*   $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>');*/
/* */
/*   $('#form-upload input[name=\'file\']').trigger('click');*/
/* */
/*   if (typeof timer != 'undefined') {*/
/*       clearInterval(timer);*/
/*   }*/
/* */
/*   timer = setInterval(function() {*/
/*     if ($('#form-upload input[name=\'file\']').val() != '') {*/
/*       clearInterval(timer);*/
/* */
/*       $.ajax({*/
/*         url: 'index.php?route=tool/upload',*/
/*         type: 'post',*/
/*         dataType: 'json',*/
/*         data: new FormData($('#form-upload')[0]),*/
/*         cache: false,*/
/*         contentType: false,*/
/*         processData: false,*/
/*         beforeSend: function() {*/
/*           $(node).button('loading');*/
/*         },*/
/*         complete: function() {*/
/*           $(node).button('reset');*/
/*         },*/
/*         success: function(json) {*/
/*           $('.text-danger').remove();*/
/* */
/*           if (json['error']) {*/
/*             $(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>');*/
/*           }*/
/* */
/*           if (json['success']) {*/
/*             alert(json['success']);*/
/* */
/*             $(node).parent().find('input').attr('value', json['code']);*/
/*           }*/
/*         },*/
/*         error: function(xhr, ajaxOptions, thrownError) {*/
/*           alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/*         }*/
/*       });*/
/*     }*/
/*   }, 500);*/
/* });*/
/* //--></script>*/
/* <script><!--*/
/* $('#review').delegate('.pagination a', 'click', function(e) {*/
/*     e.preventDefault();*/
/* */
/*     $('#review').fadeOut('slow');*/
/* */
/*     $('#review').load(this.href);*/
/* */
/*     $('#review').fadeIn('slow');*/
/* });*/
/* */
/* $('#review').load('index.php?route=product/product/review&product_id={{ product_id }}');*/
/* */
/* $('#button-review').on('click', function() {*/
/*   $.ajax({*/
/*     url: 'index.php?route=product/product/write&product_id={{ product_id }}',*/
/*     type: 'post',*/
/*     dataType: 'json',*/
/*     data: $("#form-review").serialize(),*/
/*     beforeSend: function() {*/
/*       $('#button-review').button('loading');*/
/*     },*/
/*     complete: function() {*/
/*       $('#button-review').button('reset');*/
/*     },*/
/*     success: function(json) {*/
/*       $('.alert-success, .alert-danger').remove();*/
/* */
/*       if (json['error']) {*/
/*         $('#review').after('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>');*/
/*       }*/
/* */
/*       if (json['success']) {*/
/*         $('#review').after('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>');*/
/* */
/*         $('input[name=\'name\']').val('');*/
/*         $('textarea[name=\'text\']').val('');*/
/*         $('input[name=\'rating\']:checked').prop('checked', false);*/
/*       }*/
/*     }*/
/*   });*/
/* });*/
/* */
/* //--></script>*/
/* <script>*/
/* // Scroll to reviews*/
/* $('#reviews').on('click', function(e) {*/
/*   e.preventDefault();*/
/*   $('html, body').animate({*/
/*     scrollTop: $('#tab-review').offset().top*/
/*   }, 'slow');*/
/* });*/
/* */
/* // Change product quantity*/
/* $('.minus').on('click', function() {*/
/*   var newVal = parseInt($('#input-quantity').val());*/
/*   if (newVal > 1) {*/
/*     newVal -= 1;*/
/*     $('#input-quantity').val(newVal);*/
/*   } else {*/
/*     if (!$(this).hasClass('stop-rl')) {*/
/*       $(this).addClass('stop-rl');*/
/*     }*/
/*   }*/
/* });*/
/* */
/* $('.plus').on('click', function() {*/
/*   var newVal = parseInt($('#input-quantity').val());*/
/*   newVal += 1;*/
/*   $('#input-quantity').val(newVal);*/
/*   if ($('.minus').hasClass('stop-rl')) {*/
/*     $('.minus').removeClass('stop-rl');*/
/*   }*/
/* });*/
/* */
/* // Hide additional image in case if there is only one image*/
/* if ($('.image-additional').length == 1) {*/
/*   $('.image-additional').css("display", "none");*/
/* }*/
/* */
/* </script>*/
/* {% if image_view == "popup" %}*/
/* <script>*/
/* $(document).ready(function() {*/
/*   $('.product-image').magnificPopup({*/
/*     type:'image',*/
/*     delegate: '.image-main',*/
/*     gallery: {*/
/*       enabled:true*/
/*     }*/
/*   });*/
/*   // Change main image when additional image is clicked*/
/*   $('.image-additional').on('click', function(e) {*/
/*     e.preventDefault();*/
/*     var largeImageUrl = $(this).attr('href');*/
/*     $('.image-main').attr('href', largeImageUrl);*/
/*     $('.image-main').find('img').attr('src', largeImageUrl);*/
/*   });*/
/* });*/
/* </script>*/
/* {% if image_protection %}*/
/* <script>*/
/* $('.product-image img').on('click', function() {*/
/*   setTimeout(function() {*/
/*     $('img').bind('contextmenu', function() {*/
/*       return false;*/
/*     });*/
/*   });*/
/* });*/
/* </script>*/
/* {% endif %}*/
/* {% elseif image_view == "photoswipe" %}*/
/* <script>*/
/* var initPhotoSwipeFromDOM = function(gallerySelector) {*/
/*   // parse slide data (url, title, size ...) from DOM elements*/
/*   // (children of gallerySelector)*/
/*   var parseThumbnailElements = function(el) {*/
/*     var thumbElements = el.childNodes,*/
/*       numNodes = thumbElements.length,*/
/*       items = [],*/
/*       figureEl,*/
/*       linkEl,*/
/*       size,*/
/*       item;*/
/* */
/*     for (var i = 0; i < numNodes; i++) {*/
/* */
/*       figureEl = thumbElements[i]; // <figure> element*/
/* */
/*       // include only element nodes*/
/*       if (figureEl.nodeType !== 1) {*/
/*         continue;*/
/*       }*/
/* */
/*       linkEl = figureEl.children[0]; // <a> element*/
/* */
/*       size = linkEl.getAttribute('data-size').split('x');*/
/* */
/*       // create slide object*/
/*       item = {*/
/*         src: linkEl.getAttribute('href'),*/
/*         w: parseInt(size[0], 10),*/
/*         h: parseInt(size[1], 10)*/
/*       };*/
/*       console.log(item);*/
/* */
/*       if (figureEl.children.length > 1) {*/
/*         // <figcaption> content*/
/*         item.title = figureEl.children[1].innerHTML;*/
/*       }*/
/* */
/*       if (linkEl.children.length > 0) {*/
/*         // <img> thumbnail element, retrieving thumbnail url*/
/*         item.msrc = linkEl.children[0].getAttribute('src');*/
/*       }*/
/* */
/*       item.el = figureEl; // save link to element for getThumbBoundsFn*/
/*       items.push(item);*/
/*     }*/
/* */
/*     return items;*/
/*   };*/
/* */
/*   // find nearest parent element*/
/*   var closest = function closest(el, fn) {*/
/*     return el && ( fn(el) ? el : closest(el.parentNode, fn) );*/
/*   };*/
/* */
/*   // triggers when user clicks on thumbnail*/
/*   var onThumbnailsClick = function(e) {*/
/*     e = e || window.event;*/
/*     e.preventDefault ? e.preventDefault() : e.returnValue = false;*/
/* */
/*     var eTarget = e.target || e.srcElement;*/
/* */
/*     // find root element of slide*/
/*     var clickedListItem = closest(eTarget, function(el) {*/
/*       return (el.tagName && el.tagName.toUpperCase() === 'FIGURE');*/
/*     });*/
/* */
/*     if (!clickedListItem) {*/
/*       return;*/
/*     }*/
/* */
/*     // find index of clicked item by looping through all child nodes*/
/*     // alternatively, you may define via data- attribute*/
/*     var clickedGallery = clickedListItem.parentNode,*/
/*         childNodes = clickedListItem.parentNode.childNodes,*/
/*         numChildNodes = childNodes.length,*/
/*         nodeIndex = 0,*/
/*         index;*/
/* */
/*     for (var i = 0; i < numChildNodes; i++) {*/
/*       if (childNodes[i].nodeType !== 1) {*/
/*         continue;*/
/*       }*/
/* */
/*       if (childNodes[i] === clickedListItem) {*/
/*         index = nodeIndex;*/
/*         break;*/
/*       }*/
/*       nodeIndex++;*/
/*     }*/
/* */
/*     if (index >= 0) {*/
/*       // open PhotoSwipe if valid index found*/
/*       openPhotoSwipe(index, clickedGallery);*/
/*     }*/
/*     return false;*/
/*   };*/
/* */
/*   // parse picture index and gallery index from URL (#&pid=1&gid=2)*/
/*   var photoswipeParseHash = function() {*/
/*     var hash = window.location.hash.substring(1),*/
/*     params = {};*/
/* */
/*     if (hash.length < 5) {*/
/*       return params;*/
/*     }*/
/* */
/*     var vars = hash.split('&');*/
/*     for (var i = 0; i < vars.length; i++) {*/
/*       if (!vars[i]) {*/
/*         continue;*/
/*       }*/
/*       var pair = vars[i].split('=');*/
/*       if (pair.length < 2) {*/
/*         continue;*/
/*       }*/
/*       params[pair[0] = pair[1]];*/
/*     }*/
/* */
/*     if (params.gid) {*/
/*       params.gid = parseInt(params.gid, 10);*/
/*     }*/
/* */
/*     return params;*/
/*   };*/
/* */
/*   var openPhotoSwipe = function(index, galleryElement, disableAnimation, fromURL) {*/
/*     var pswpElement = document.querySelectorAll('.pswp')[0],*/
/*         gallery,*/
/*         options,*/
/*         items;*/
/* */
/*     items = parseThumbnailElements(galleryElement);*/
/* */
/*     // define options (if needed)*/
/*     options = {*/
/* */
/*       // define gallery index (for URL)*/
/*       galleryUID: galleryElement.getAttribute('data-pswp-uid'),*/
/* */
/*       getThumbBoundsFn: function(index) {*/
/*         // See Options -> getthumbBoundsFn section of documentation for more info*/
/*         var thumbnail = items[index].el.getElementsByTagName('img')[0], // find thumbnail*/
/*             pageYScroll = window.pageYOffset || document.documentElement.scrollTop,*/
/*             rect = thumbnail.getBoundingClientRect();*/
/* */
/*         return {x:rect.left, y:rect.top + pageYScroll, w:rect.width};*/
/*       }*/
/*     };*/
/* */
/*     // PhotoSwipe opened from URL*/
/*     if (fromURL) {*/
/*       if (options.galleryPIDs) {*/
/*         // parse real index when custom PIDs are used*/
/*         // http://photoswipe.com/documentation/faq.html#custom-pid-in-url*/
/*         for (var j = 0; j < items.length; j++) {*/
/*           if (items[j].pid == index) {*/
/*             options.index = j;*/
/*             break;*/
/*           }*/
/*         }*/
/*       } else {*/
/*         options.index = parseInt(index, 10);*/
/*       }*/
/*     } else {*/
/*       options.index = parseInt(index, 10);*/
/*     }*/
/* */
/*     // exit if index not found*/
/*     if (isNaN(options.index)) {*/
/*       return;*/
/*     }*/
/* */
/*     if (disableAnimation) {*/
/*       options.showAnimationDuration = 0;*/
/*     }*/
/* */
/*     // Pass data to PhotoSwipe and initialize it*/
/*     gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, options);*/
/*     gallery.init();*/
/*   };*/
/* */
/*   // loop through all gallery elements and bind events*/
/*   var galleryElements = document.querySelectorAll(gallerySelector);*/
/* */
/*   for (var i = 0, l = galleryElements.length; i < l; i++) {*/
/*     galleryElements[i].setAttribute('data-pswp-uid', i+1);*/
/*     galleryElements[i].onclick = onThumbnailsClick;*/
/*   }*/
/* */
/*   // Parse URL and open gallery if it contains #&pid=3&gid=1*/
/*   var hashData = photoswipeParseHash();*/
/*   if (hashData.pid && hashData.gid) {*/
/*     openPhotoSwipe(hashData.pid, galleryElements[hashData.gid - 1], true, true);*/
/*   }*/
/* };*/
/* */
/* // execute above function*/
/* initPhotoSwipeFromDOM('.product-gallery');*/
/* </script>*/
/* {% else %}*/
/* <script>*/
/* $('.slider-for').slick({*/
/*   slidesToShow: 1,*/
/*   slidesToScroll: 1,*/
/*   arrows: false,*/
/*   fade: true,*/
/*   asNavFor: '.slider-nav',*/
/*   dots: false*/
/* });*/
/* $('.slider-nav').slick({*/
/*   slidesToShow: 5,*/
/*   slidesToScroll: 1,*/
/*   centerMode: false,*/
/*   arrows: false,*/
/*   focusOnSelect: true,*/
/*   asNavFor: '.slider-for',*/
/*   dots: false*/
/* })*/
/* </script>*/
/* <script>*/
/* $('.easyzoom').easyZoom();*/
/* </script>*/
/* {% if image_protection %}*/
/* <script>*/
/* $(document).ready(function() {*/
/*   $('.easyzoom').bind('contextmenu', function() {*/
/*     return false;*/
/*   });*/
/* });*/
/* </script>*/
/* {% endif %}*/
/* {% endif %}*/
/* {{ footer }}*/
/* */
