jQuery(window).on("load",function(){jQuery(".product-images").each(function(){!jQuery(this).find("img").length&&jQuery(this).find(".onsale").length&&jQuery(this).css("min-height","45px")})}),jQuery(document).ready(function(){var e,t,i,a,o,n;for(jQuery("body").on("click",".add_to_cart_button.ajax_add_to_cart:not(.disabled), .add_to_cart_button.ajax_variation_add_to_cart:not(.disabled)",function(){var e=jQuery(this).closest(".product, li, .swiper-slide"),t=e.find(".cart-loading"),i=!!e.hasClass("post-card")&&e.find(".fusion-image-wrapper");i&&i.addClass("hover"),t.find("i").removeClass("awb-icon-check-square-o").addClass("awb-icon-spinner"),t.fadeIn(),setTimeout(function(){t.find("i").hide().removeClass("awb-icon-spinner").addClass("awb-icon-check-square-o").fadeIn(),t.closest(".fusion-clean-product-image-wrapper, li").addClass("fusion-item-in-cart"),i&&i.removeClass("hover")},2e3)}).on("click",".add_to_cart_button.ajax_variation_add_to_cart:not(.disabled)",function(e){var t=jQuery(this),i=t.closest("form.cart"),a=i.find('input:not([name="product_id"]), select, button, textarea').serializeArray()||0,o=-1!==i.attr("action").indexOf("?")?i.attr("action")+"&wc-ajax=get_refreshed_fragments":i.attr("action")+"?wc-ajax=get_refreshed_fragments";e.preventDefault(),t.hasClass("disabled_ajax_add_to_cart")?i.trigger("submit"):(jQuery(document.body).trigger("adding_to_cart",[t,a]),jQuery.ajax({type:"POST",url:o,data:a,success:function(e){e.error&&e.product_url?window.location=e.product_url:jQuery(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,t])}}))}),jQuery("body").on("should_send_ajax_request.adding_to_cart",function(e,t){return!jQuery(t).hasClass("disabled")}),jQuery("body").on("mouseenter mouseleave",".products .product, .fusion-woo-slider .swiper-slide, .post-card.product",function(e){var t=jQuery(this).find(".cart-loading");t.find("i").hasClass("awb-icon-check-square-o")&&("mouseenter"===e.type?t.fadeIn():t.fadeOut())}),e=avadaWooCommerceVars.title_style_type.split(" "),t="","",i="title-heading-left",a=0;a h2").each(function(){jQuery(this).replaceWith(function(){return'
'+jQuery(this).html()+"
'})}),jQuery(".woocommerce.single-product .upsells.products > h2").each(function(){jQuery(this).replaceWith(function(){return'

'+jQuery(this).html()+'

'})}),jQuery(".products-6 li, .products-5 li, .products-4 li, .products-3 li, .products-2 li").removeClass("last"),jQuery("body").on("click",".fusion-quick-view",function(e){var t,i=jQuery(".fusion-woocommerce-quick-view-overlay"),a=jQuery(".fusion-woocommerce-quick-view-container"),r=a.find(".fusion-wqv-preview-image"),s=a.find(".fusion-wqv-content"),d=a.find(".fusion-wqv-close"),u=a.find(".fusion-wqv-loader"),c=jQuery(this).data("product-id"),l=jQuery(this).closest(".product"),f=l.length?l:jQuery(this).closest(".fusion-carousel-item"),h=f.find(".wp-post-image"),p=f.find(".onsale"),y=f.find(".fusion-out-of-stock"),m=f.find(".product-title").length?f.find(".product-title"):f.find(".fusion-rollover-title"),g=f.find(".fusion-price-rating").length?f.find(".fusion-price-rating"):f.find(".price").first(),w=parseInt(h.height(),10)/parseInt(h.width(),10),v={},j=!1,_=!0,Q="";e.preventDefault(),jQuery("body").addClass("fusion-wqv-open"),jQuery(".fusion-wqv-open").on("keydown",function(e){27===e.keyCode&&jQuery(".fusion-wqv-close button").trigger("click")}),void 0!==c&&(0===m.length&&void 0!==jQuery(this).data("product-title")&&(m=jQuery("

"+jQuery(this).data("product-title")+"

")),s.empty(),u.find(".entry-title, .star-rating, .price").empty(),jQuery(".fusion-footer-parallax").length&&(jQuery("#main").css("z-index","auto"),"fixed"===jQuery(".fusion-footer-parallax").css("position")&&(jQuery(".fusion-footer-parallax").css("z-index","-1"),jQuery("#sliders-container").find('.tfs-slider[data-parallax="1"]').length&&jQuery("#sliders-container").css("z-index","auto"))),a.stop().fadeIn("200"),r.fadeIn("200").html(h.clone()),i.stop().fadeIn("400"),(p.length||y.length)&&(r.prepend('
'),y.length&&(a.addClass("outofstock"),r.find(".fusion-woo-badges-wrapper").append(y.clone())),p.length&&r.find(".fusion-woo-badges-wrapper").append(p.clone())),f.find("> span, > a, > div").fadeTo("200","0"),f.addClass("fusion-faded-out"),0===h.length?void 0!==(h=jQuery(e.currentTarget)).data("image-height")?(w=parseInt(h.data("image-height"),10)/parseInt(h.data("image-width"),10),v.startWidth=h.data("image-width"),v.startHeight=h.data("image-height")):(_=!1,v.startWidth=400,v.startHeight=400):(v.startWidth=h.width(),v.startHeight=h.height()),v.startTop=h.offset().top-jQuery(window).scrollTop(),v.startLeft=h.offset().left,v.endWidth=400,1.77<1/w&&(v.endWidth=500),1.77jQuery(window).width()-v.endWidth&&(v.finalWidth=Math.round(jQuery(window).width()-20)),v.finalLeft=Math.round((jQuery(window).width()-v.finalWidth)/2),a.css({top:v.startTop,left:v.startLeft,width:v.startWidth,height:v.startHeight,"background-color":avadaWooCommerceVars.shop_page_bg_color}),r.css({"max-width":v.startWidth>v.endWidth?"100%":v.endWidth,"max-height":v.startWidth>v.endWidth?"auto":v.endHeight}),r.find("img").removeAttr("style"),setTimeout(function(){a.animate({top:v.endTop+"px",left:v.endLeft+"px",width:v.endWidth+"px",height:v.endHeight+"px"},800,"easeInOutCubic",function(){v.startWidth>v.endWidth&&r.css({"max-width":v.endWidth,"max-height":v.endHeight})})},200),setTimeout(function(){a.animate({left:v.finalLeft+"px",width:v.finalWidth+"px"},600,"easeInOutCubic",function(){jQuery(this).addClass("complete"),jQuery(this).css("top",""),jQuery(this).css("left","")})},1e3),setTimeout(function(){d.fadeIn("300"),40>avadaWooCommerceVars.shop_page_bg_color_lightness&&d.find("button").addClass("light"),j=!0,a.hasClass("fusion-quick-view-loaded")||(m.length&&(u.find(".entry-title").html(m.text()),parseFloat(avadaWooCommerceVars.post_title_font_size)",a.addClass("fusion-quick-view-loaded"),o=setInterval(function(){j&&(a.addClass("fusion-animate-content fusion-quick-view-loaded"),a.find(".fusion-wqv-content").show(),setTimeout(function(){s.html(e),!_&&s.find(".woocommerce-product-gallery .wp-post-image").length&&(r.fadeIn("200").html(s.find(".woocommerce-product-gallery .wp-post-image").first().clone()),v.endHeight=r.find("img").height(),a.animate({height:v.endHeight+"px"},800,"easeInOutCubic")),s.find(".woocommerce-product-gallery").css("width",v.endWidth+"px"),s.find(".product").not(".bundled_product").css("max-height",v.endHeight+"px"),"undefined"!=typeof productBackgroundColor&&(a.css("background-color",productBackgroundColor),40>productBackgroundColorLightness&&d.find("button").addClass("light")),"undefined"!=typeof productQuickViewSingleURL&&a.find(".woocommerce-review-link").length&&(Q=a.find(".woocommerce-review-link").prop("hash"),a.find(".woocommerce-review-link").prop("href",productQuickViewSingleURL+Q).addClass("avada-noscroll")),u.stop().fadeTo("300","0"),a.find(".entry-summary").animate({opacity:"1"},500,"easeInOutCubic",function(){jQuery(this).scrollTop(0)}),a.find(".entry-summary").children().animate({"padding-top":"0"},500,"easeInOutCubic")},400),setTimeout(function(){(t=a.find(".fusion-button-view-details")).css("top",t.height()),t.animate({opacity:"1",top:"0"},200,"easeInOutCubic")},700),setTimeout(function(){a.removeClass("fusion-animate-content"),jQuery("body").trigger("quick-view-displayed")},900),setTimeout(function(){fusionInitPostFlexSlider(),jQuery(window).trigger("AddAvadaSelect"),"undefined"!=typeof wc_add_to_cart_variation_params&&jQuery(".variations_form").each(function(){jQuery(this).wc_variation_form()}),avadaAddQuantityBoxes()},400),n=setInterval(function(){10>Math.abs(a.find(".flex-active-slide").width()-a.find(".fusion-wqv-preview-image").width())&&(a.find(".fusion-wqv-preview-image").fadeOut("400"),clearInterval(n))},500),clearInterval(o))},25)}))}),jQuery(".fusion-wqv-close button").on("click",function(){var e=jQuery(this).closest(".fusion-woocommerce-quick-view-container");e.removeClass("fusion-quick-view-loaded"),clearInterval(o),clearInterval(n),jQuery(".fusion-wqv-open").off("keydown"),jQuery("body").removeClass("fusion-wqv-open"),jQuery(".fusion-woocommerce-quick-view-overlay").fadeOut("400"),e.stop().animate({width:e.width()/2,height:e.height()/2,opacity:"0"},300,"easeInOutCubic",function(){jQuery(this).hide(),jQuery(this).removeAttr("style"),jQuery(this).removeClass("complete"),jQuery(this).find(".fusion-wqv-preview-image").removeAttr("style"),jQuery(this).find(".entry-title").removeAttr("style"),jQuery(".fusion-footer-parallax").length&&(jQuery("#main").css("z-index",""),jQuery(".fusion-footer-parallax").css("z-index",""),jQuery("#sliders-container").css("z-index",""))}),e.find(".fusion-wqv-close").fadeOut("300"),jQuery(".fusion-faded-out").find("> span, > a, > div").fadeTo("300","1",function(){jQuery(this).css("opacity","")}),jQuery(".fusion-faded-out").removeClass("fusion-faded-out")}),jQuery(document).on("click",".fusion-woocommerce-quick-view-overlay",function(e){jQuery(".fusion-wqv-close button").trigger("click")}),jQuery(document).on("change",".fusion-post-card-cart .qty",function(e){void 0!==this.value&&jQuery(e.target).closest(".fusion-post-card-cart").find(".ajax_add_to_cart").attr("data-quantity",this.value)}),jQuery(window).on("resize",function(e){var t=jQuery(".fusion-woocommerce-quick-view-container"),i=t.find(".woocommerce-product-gallery").width(),a=jQuery(window).width();jQuery("body").hasClass("fusion-wqv-open")&&(t.width()