text: !function(e){"use strict";function t(){e(".cain-parallax").each(function(t){var i=e(this),s=i.offset().top-S.scrollTop();i.css("transform","translateY("+.1*s+"px) translateZ(0px)")})}function i(){var t=e(".main-preloader");t.length&&(t.addClass("window-is-loaded"),setTimeout(function(){t.remove()},650))}function s(){e(".social-media-list li a").attr("target","_blank")}function o(){if(e(".header-navigation").hasClass("header-floating")){var t=e(".header-floating-trigger").offset().top,i=e(".header-navigation"),s=i.outerHeight(!0);S.scrollTop()>t-q.offset().top?("relative"!=i.css("position")&&"static"!=i.css("position")||i.before('<div class="clearfix header-floating-helper" id="header-floating-helper" style="height:'+s+'px"></div>'),e(".header-navigation").addClass("floating").css("top",q.offset().top)):(e(".header-navigation").removeClass("floating").css("top",""),e("#header-floating-helper").remove())}}function n(){e(".filter-tab-pane").on("click",function(t){t.preventDefault(),e(this).tab("show")}),e(".tabs-nav").on("click",function(t){t.preventDefault(),e(this).tab("show")})}function a(){var t=e("body");e(".panels-stretch.panel-row-style").each(function(){var i=e(this);i.css({"margin-left":0,"margin-right":0,"padding-left":0,"padding-right":0});var s=i.offset().left-t.offset().left,o=t.outerWidth()-s-i.parent().outerWidth();i.css({"margin-left":-s,"margin-right":-o,"padding-left":"full"===i.data("stretch-type")?s:0,"padding-right":"full"===i.data("stretch-type")?o:0});var n=i.find("> .panel-grid-cell");"full-stretched"===i.data("stretch-type")&&1===n.length&&n.css({"padding-left":0,"padding-right":0}),i.css({"border-left":0,"border-right":0})}),e(".panels-stretch.panel-row-style").length&&e(window).trigger("panelsStretchRows")}function l(){e(".site-header").on("click",".toggle-search-box",function(t){t.preventDefault(),e("body").addClass("search-box-active")}),e(".search-box").on("click",".close-search-box",function(){e("body").removeClass("search-box-active")})}function r(){e(".site-header").on("click",".toggle-side-menu",function(t){t.preventDefault(),e("body").addClass("side-menu-active")}),e(".side-menu-close, .side-menu-overlay").on("click",function(){e("body").removeClass("side-menu-active")}),e(".side-menu").on("click",".subnav-toggle",function(t){t.preventDefault(),e(this).toggleClass("open").next(".sub-menu").slideToggle()})}function c(){e(".site-header").on("click",".toggle-mobile-menu",function(t){t.preventDefault(),e("body").toggleClass("mobile-menu-active");var i=e(".site-header").outerHeight();e(".mobile-menu").css("top",i)}),e(".mobile-menu").find("li:has(ul)").children("a").after('<span class="subnav-toggle"></span>'),e(".mobile-menu").on("click",".subnav-toggle",function(t){t.preventDefault(),e(this).toggleClass("open").next(".sub-menu").slideToggle()})}function d(){e.fn.magnificPopup&&(e(".woocommerce .products li.product, .filter-product-section .product, .best-seller-products .product").each(function(t){e(this).find("#modal-quickview").attr("id","modal-quickview-"+t),e(this).find(".product-quickview").attr("href","#modal-quickview-"+t)}),e(".product-quickview").magnificPopup({type:"inline",preloader:!0,tLoading:"",closeBtnInside:!0,removalDelay:200,mainClass:"modal-quickview",callbacks:{open:function(){e(".quickview-gallery").slick("refresh")}}}))}function u(){e("body").on("click",".q-plus, .q-min",function(t){t.preventDefault();var i=e(this).closest(".quantity").find(".qty"),s=parseInt(i.val()),o=e(this).hasClass("add");!isNaN(s)&&i.val(o?++s:s>0?--s:s)})}function f(){e(".shop-filter-toolbar").on("click",".show-filters",function(t){t.preventDefault(),e(this).toggleClass("filter-active"),e(".shop-filter-content").toggleClass("active").slideToggle()}),e(".shop-filter-bottom").on("click",".toggle-filter-popup",function(t){t.preventDefault(),q.addClass("filter-popup-active");var i=e(".site-header").outerHeight(!0);e(".shop-filter-popup").css({"padding-top":i})}),e(".shop-filter-popup").on("click",".close-filter-popup",function(){q.removeClass("filter-popup-active")})}function p(){e(".shop-filter-content").on("click",".widget-title",function(t){e(".shop-filter-content").hasClass("mobile-active")&&(t.preventDefault(),e(this).closest(".widget").siblings().removeClass("active"),e(this).closest(".widget").toggleClass("active"))}),e(".shop-sidebar").on("click",".widget-title",function(t){e(".shop-sidebar").hasClass("mobile-active")&&(t.preventDefault(),e(this).closest(".widget").siblings().removeClass("active"),e(this).closest(".widget").toggleClass("active"))}),e(".shop-filter-popup").on("click",".widget-title",function(t){e(".shop-filter-popup").hasClass("mobile-active")&&(t.preventDefault(),e(this).closest(".widget").siblings().removeClass("active"),e(this).closest(".widget").toggleClass("active"))})}function h(){e(".shop-filter-popup").on("click","ul li",function(t){e(this).toggleClass("selected")})}function g(){e.each({".shop-filter-content":"",".shop-sidebar":"",".shop-filter-popup":""},function(t,i){e(t).each(function(){S.width()<=991?e(this).addClass("mobile-active"):e(this).removeClass("mobile-active")})})}function m(){e.fn.magnificPopup&&e(".entry-content .mfp-image").closest("a").magnificPopup({type:"image",closeOnContentClick:!0,image:{verticalFit:!0}})}function v(){if(e.fn.isotope){e(".best-seller-section").length&&e(".best-seller-section:not(.wrap-best-seller-slider)").each(function(){var t=e(this),i=t.find(".best-seller-categories").find("a"),s=function(e){e.isotope({filter:"*",itemSelector:".product.col-md-3",percentPosition:!0,animationOptions:{duration:750,easing:"liniar",queue:!1}})};t.children().find(".best-seller-products").imagesLoaded(function(){s(t.find(".best-seller-products"))}),i.click(function(){var s=e(this).attr("data-filter");return i.parents("li").removeClass("active"),e(this).parents("li").addClass("active"),t.find(".best-seller-products").isotope({filter:s,animationOptions:{duration:750,easing:"liniar",queue:!1}}),!1})});var t=e(".categories-section .list-categories-section.not-two-cols"),i=function(){t.isotope({itemSelector:".category-item",masonry:{columnWidth:".category-item"}})};e.fn.imagesLoaded?t.imagesLoaded(i):i.apply(this)}}function b(){if(e.fn.slick){e(".quickview-gallery").each(function(){e(this).slick({infinite:!1})}),e(".hero-slider").each(function(){e(this).slick({infinite:!0,fade:!0,cssEase:"ease-in-out"})}),e(".new-arrival-slider").each(function(){e(this).slick({infinite:!0,dots:!1,responsive:[{breakpoint:992,settings:{dots:!0,arrows:!1}}]})}),e(".best-seller-slider").each(function(){e(this).slick({infinite:!0,slidesToShow:4,slidesToScroll:4,dots:!1,arrows:!0,responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2}}]})}),e(".brand-slider").each(function(){e(this).slick({slidesToShow:5,slidesToScroll:1,infinite:!1,dots:!0,arrows:!1,responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]})}),e(".instagram-slider").each(function(){e(this).slick({slidesToShow:8,slidesToScroll:8,infinite:!1,dots:!1,arrows:!1,responsive:[{breakpoint:1200,settings:{slidesToShow:8,slidesToScroll:8}},{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3,dots:!0}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2,dots:!0}}]})});var t=e(".woocommerce-product-gallery__wrapper").not(".product-layout-2 .woocommerce-product-gallery__wrapper"),i=e(".product-thumbnails"),s=1==i.data("vertical");t.slick({slidesToShow:1,slidesToScroll:1,infinite:!1,dots:!1,asNavFor:i}),i.slick({slidesToShow:4,slidesToScroll:1,dots:!1,focusOnSelect:!0,vertical:s,infinite:!0,arrows:!1,asNavFor:t,responsive:[{breakpoint:992,settings:{vertical:!1}}]})}}function w(){e(".modal-cart").each(function(){var t=e(this).find(".q-plus"),i=e(this).find(".q-min");e(this).find(".quantity").append(t),e(this).find(".quantity").append(i)});var t=e(".single-product .summary .q-plus"),i=e(".single-product .summary .q-min");e(".single-product .summary ").find(".quantity").append(t),e(".single-product .summary ").find(".quantity").append(i)}function k(){if(e("#hero-map").length){var t=e(document).width()>1024;e("#hero-map").each(function(){var i={draggable:t,markers:[{address:e(this).data("address")}],zoom:15};e(this).gMap(i)})}}function y(){if(e.fn.theiaStickySidebar){var t=30,i=e("#wpadminbar"),s=e(".header-navigation.header-floating");t=i.length&&s.length?100+i.height():i.length&&!s.length?30+i.height():!i.length&&s.length?100:t,e(".product-detail-summary.sticky-element").theiaStickySidebar({additionalMarginTop:t,minWidth:992})}}function C(){e("body").fitVids()}var S=e(window),T=e(document),q=e("body");window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},T.ready(function(){a(),l(),r(),c(),C(),s(),m(),k(),y(),u(),n(),f(),p(),g(),h(),w()}),S.load(function(){i(),v(),b(),d(),C()}),S.scroll(function(e){o(),requestAnimationFrame(t)}),S.resize(function(e){a(),o(),g()})}(jQuery);