{{#extend "base" pageClass="page-product-details" title="Product details page new with cashback"
          isDiscount=true
          isPlaceholder=false
          isSQM=false
          isDescription=true
          isCashback=true
          isSize=false
          hourly-delivery=false
          badge-text='cashback'
          badge-color='red'
          badge-text-color='white'
          currentlyInStock=true
          pagePdp=true
}}
    {{#content "head" mode="append" pagePdp=true}}
    {{/content}}
    {{#content "body"}}
        <main class="pdp__main">
            <div class="container">
                <div class="pdp">
                    <div class="pdp__title">
                        <h1 class="pdp__heading">Bosch PSB 1800 LI-2 18V Li-Ion Cordless Combi Drill Example with long
                            title in two raws
                        </h1>
                        <div class="pdp__reviews_small">
                            <span class="product-code product-code-v2">Product code: <strong id="product-code-val">236334</strong></span>
                            <div class="product-card__reviews review-star">
                                <div class="product-rating product-rating-v2">
                                    <div class="rating-bg">
                                        <i class="fa fa-star" aria-hidden="true"></i>
                                        <i class="fa fa-star" aria-hidden="true"></i>
                                        <i class="fa fa-star" aria-hidden="true"></i>
                                        <i class="fa fa-star" aria-hidden="true"></i>
                                        <i class="fa fa-star" aria-hidden="true"></i>
                                        <div class="rating-overlay" data-rating="{{#if review-rating}}{{review-rating}}{{else}}0{{/if}}">
                                            <i class="fa fa-star" aria-hidden="true"></i>
                                            <i class="fa fa-star" aria-hidden="true"></i>
                                            <i class="fa fa-star" aria-hidden="true"></i>
                                            <i class="fa fa-star" aria-hidden="true"></i>
                                            <i class="fa fa-star" aria-hidden="true"></i>
                                        </div>
                                    </div>
                                </div>
                                <span class="review-star-average review-star-average-v2">(4.6)</span>
                            </div>
                            <span class="pdp__reviews-link-wrap"><a href="#" data-link="#pdp-reviews" id="open-review">82 reviews</a></span>
                        </div>
                    </div>

                    <div class="pdp__gallery">
                        {{> gallery-pdp-v2 }}
                    </div>
                    <div class="pdp__aside">
                        {{> price-block-v2
                        isProductSaved=false
                        isUserLogedOut=false
                        install=true
                        sample=true
                        cc=true
                        delivery=true
                        }}
                    </div>
                    <div class="pdp__description">
                        {{> product-main-info-v2 isAdvice=true}}
                    </div>
                    {{> fulfilment-accordions }}
                </div>
            </div>
            <div class="container container-info">
                <div class="pdp">
                    <div class="pdp__info">
                        {{> pdp-info-v2  isProductSaved=false isUserLogedOut=true}}
                    </div>
                </div>
            </div>
                {{> recently-viewed }}
        </main>
    {{/content}}
    {{#content "foot" mode="append"}}
        <script type="text/html" id="mini-basket-popup">
                {{> popover-mini-basket mod="popover-mini-basket_just-added" products=mini-basket.just-added just-added=true}}
        </script>
        <script defer src="./js/page/pdp.js"></script>
        {{> click-and-collect-modal}}
    {{/content}}
{{/extend}}

<script>
    if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) {
        $(document).ready(function () {
            $('.modal').on('scroll', function () {
                $(':focus').blur();
            });
        });
    }

    $(document).ready(function () {

        $('#info-details').toggleClass('accordion_collapsed');
        $('#details-content').css('display', 'block');

        $('#open-review').on('click', function() {
            $('#info-review').toggleClass('accordion_collapsed');
            $('#review-content').css('display', 'block');
        })
    })
</script>
