var Themeoo,$cs_body,$cs_main,$cs_masthead,$cs_window,$cs_document,cs_is_device,cs_is_sticky,cs_is_transparent,cs_is_small,cs_has_admin_bar,cs_is_blank,cs_no_mobile_anim,cs_sticky_height,cs_admin_bar_height,cs_header_height,cs_header_top,ThemeooCache={$window:jQuery(window),$head:jQuery("#masthead"),$body:jQuery("body")};!function(e,o,t){Themeoo={initFormPlaceHolder:function(){"placeholder"in t.createElement("input")||(e("input[placeholder], textarea[placeholder]").each(function(){var o=e(this).attr("placeholder");""===this.value&&(this.value=o),e(this).focus(function(){this.value===o&&(this.value="")}).blur(function(){""===e.trim(this.value)&&(this.value=o)})}),e("form").submit(function(){e(this).find("input[placeholder], textarea[placeholder]").each(function(){this.value===e(this).attr("placeholder")&&(this.value="")})}))},initTooltip:function(){e("a[data-toggle=tooltip]").tooltip()},showBackToTop:function(){var t=e(".cd-top"),i=e(o);i.scrollTop()>300?(t.addClass("cd-is-visible"),ThemeooCache.$body.addClass("scrolled")):t.removeClass("cd-is-visible cd-fade-out"),i.scrollTop()>1200&&t.addClass("cd-fade-out")},initBackToTop:function(){e(".cd-top").on("click",function(o){o.preventDefault(),e("body,html").animate({scrollTop:0},700)})},initTransparentHeader:function(){if(!ThemeooCache.$body.hasClass("transparent-header")){var o=e("#masthead").height();e(".transparent-header .page-builder .themeoo-row:first-of-type .container:first-of-type, .transparent-header .page-builder .themeoo-row:first-of-type .container-fluid:first-of-type").css("padding-top",o+20)}},initMobileMenu:function(){e("#themeoo-mobile-icon").on("click",function(o){o.preventDefault(),e(this).toggleClass("cs-collapse"),e("#navigation-mobile").slideToggle(500,"easeInOutExpo")}),e("#navigation-mobile li:has(ul) > .themeoo-dropdown-plus").on("click",function(o){o.preventDefault(),e(this).toggleClass("cs-times"),e(this).parent().find("> ul").slideToggle(500,"easeInOutExpo")}),e("#navigation-mobile li:has(ul) > a").on("click",function(o){if("#"===e(this).attr("href")){o.preventDefault();var t=e(this).parent();t.find("> .themeoo-dropdown-plus").toggleClass("cs-times"),t.find("> ul").slideToggle(500,"easeInOutExpo")}})},staticVariables:function(){$themeoo_body=e("body"),$themeoo_masthead=e("#masthead"),$themeoo_main=e("#main"),$themeoo_window=e(o),$themeoo_document=e(t),themeoo_is_device=!!navigator.userAgent.toLowerCase().match(/(android|webos|blackberry|ipod|iphone|ipad|opera mini|iemobile|windows phone|windows mobile)/),themeoo_is_sticky=!!parseInt(themeoo_ajax.sticky),themeoo_has_admin_bar=!!$themeoo_body.hasClass("admin-bar"),themeoo_sticky_height=parseInt(themeoo_ajax.header)?parseInt(themeoo_ajax.header):50,themeoo_admin_bar_height=themeoo_has_admin_bar?32:0,themeoo_header_height=$themeoo_masthead?$themeoo_masthead.outerHeight():0,themeoo_header_top=$themeoo_masthead&&$themeoo_masthead.offset()?$themeoo_masthead.offset().top:0},dynamicVariables:function(){themeoo_is_small=o.innerWidthi?($themeoo_masthead.trigger("close-modals").addClass("is-sticky"),$themeoo_main.css("padding-top",o)):($themeoo_masthead.removeClass("is-sticky"),$themeoo_main.removeAttr("style")),t>o+i?$themeoo_masthead.addClass("is-compact"):$themeoo_masthead.removeClass("is-compact"))})}},initFixSticky:function(){themeoo_is_sticky&&themeoo_is_small?($themeoo_masthead.removeClass("is-sticky is-compact"),$themeoo_main.removeAttr("style"),themeoo_is_transparent&&($themeoo_body.addClass("is-transparent cs-is-small"),$themeoo_window.scroll())):$themeoo_body.removeClass("cs-is-small")},initContentProduct:function(){e(t).ready(function(){e(".largeGrid").click(function(){return e(this).find("a").addClass("active"),e(".smallGrid a").removeClass("active"),e(".product-item").addClass("large").each(function(){}),setTimeout(function(){e(".info-large").show()},200),setTimeout(function(){e(".view_gallery").trigger("click")},400),!1}),e(".smallGrid").click(function(){return e(this).find("a").addClass("active"),e(".largeGrid a").removeClass("active"),e("div.product-item").removeClass("large"),e(".make3D").removeClass("animate"),e(".info-large").fadeOut("fast"),setTimeout(function(){e("div.flip-back").trigger("click")},400),!1}),e(".smallGrid").click(function(){return e(".product-item").removeClass("large"),!1}),e(".colors-large a").click(function(){return!1}),e(".product-item").each(function(o,t){e(t).find(".view_gallery").click(function(){e(t).find("div.carouselNext, div.carouselPrev").removeClass("visible"),e(t).find(".make3D").addClass("flip-10"),setTimeout(function(){e(t).find(".make3D").removeClass("flip-10").addClass("flip90").find("div.shadow").show().fadeTo(80,1,function(){e(t).find(".product-front, .product-front div.shadow").hide()})},50),setTimeout(function(){e(t).find(".make3D").removeClass("flip90").addClass("flip190"),e(t).find(".product-back").show().find("div.shadow").show().fadeTo(90,0),setTimeout(function(){e(t).find(".make3D").removeClass("flip190").addClass("flip180").find("div.shadow").hide(),setTimeout(function(){e(t).find(".make3D").css("transition","100ms ease-out"),e(t).find(".cx, .cy").addClass("s1"),setTimeout(function(){e(t).find(".cx, .cy").addClass("s2")},100),setTimeout(function(){e(t).find(".cx, .cy").addClass("s3")},200),e(t).find("div.carouselNext, div.carouselPrev").addClass("visible")},100)},100)},150)}),e(t).find(".flip-back").click(function(){e(t).find(".make3D").removeClass("flip180").addClass("flip190"),setTimeout(function(){e(t).find(".make3D").removeClass("flip190").addClass("flip90"),e(t).find(".product-back div.shadow").css("opacity",0).fadeTo(100,1,function(){e(t).find(".product-back, .product-back div.shadow").hide(),e(t).find(".product-front, .product-front div.shadow").show()})},50),setTimeout(function(){e(t).find(".make3D").removeClass("flip90").addClass("flip-10"),e(t).find(".product-front div.shadow").show().fadeTo(100,0),setTimeout(function(){e(t).find(".product-front div.shadow").hide(),e(t).find(".make3D").removeClass("flip-10").css("transition","100ms ease-out"),e(t).find(".cx, .cy").removeClass("s1 s2 s3")},100)},150)}),function(o){var t=e(o).find(".carousel ul"),i=e(".product-item").outerWidth(),a=0,s=!1,n=0;e(t).attr("rel",n),e(t).find("li").each(function(){a+=i}),e(t).css("width",a),e(".carousel li").css("width",i),e(".carousel").css("width",i),e(".arrows-perspective").css("width",i),e(o).find("div.carouselNext").on("click",function(){var o=Math.abs(parseInt(e(t).css("left"))),d=o+i;d!=a&&!0!==s&&(e(t).css({left:"-"+d+"px",transition:"300ms ease-out"}),s=!0,n++,e(t).attr("rel",n),setTimeout(function(){s=!1},300))}),e(o).find("div.carouselPrev").on("click",function(){var o=Math.abs(parseInt(e(t).css("left"))),a=o-i;a<0||!0===s||(e(t).css({left:"-"+a+"px",transition:"300ms ease-out"}),s=!0,n--,e(t).attr("rel",n),setTimeout(function(){s=!1},300))})}(t)}),e(".sizes a span, .categories a span").each(function(o,t){e(t).append(''),e(t).parent().on("click",function(){return e(this).hasClass("checked")?(e(t).find(".y").removeClass("animate"),setTimeout(function(){e(t).find(".x").removeClass("animate")},50),e(this).removeClass("checked"),!1):(e(t).find(".x").addClass("animate"),setTimeout(function(){e(t).find(".y").addClass("animate")},100),e(this).addClass("checked"),!1)})}),e(".add_to_cart").click(function(){var o=e(this).parent(),t=o.offset();e(o).find("img").get(0).src,e(o).find(".product_name").get(0).innerHTML;e("body").append('
');var i=e("div.floating-cart");o.clone().appendTo(i),e(i).css({top:t.top+"px",left:t.left+"px"}).fadeIn("slow").addClass("moveToCart"),setTimeout(function(){e("body").addClass("MakeFloatingCart")},800)})})},init:function(){Themeoo.initTransparentHeader(),Themeoo.initTooltip(),Themeoo.initBackToTop(),Themeoo.initFormPlaceHolder(),Themeoo.initMobileMenu(),Themeoo.staticVariables(),Themeoo.dynamicVariables(),Themeoo.initStickyHeader(),Themeoo.initTransparentHeader(),Themeoo.initFixSticky(),Themeoo.initContentProduct()}},e(t).ready(function(){Themeoo.init(),ThemeooCache.$window.resize(Themeoo.initTransparentHeader).resize(),e(o).scroll(function(){Themeoo.showBackToTop()}).scroll(),new Plyr(".player");var t=e(".grid-container");e(".lazy").lazy({effect:"fadeIn",effectTime:2e3,threshold:0,afterLoad:function(e){t.length>0&&t.imagesLoaded(function(){t.masonry({itemSelector:".post-grid-wrap",percentPosition:!0,fitWidth:!0})})}})})}(jQuery,window,document);