jQuery(document).ready(function(t){t(document).on("touchstart click",".expand-readmore",function(e){e.preventDefault(),t(this).closest(".et_pb_module").addClass("visible-readmore")}),t(document).on("touchstart click",".reset_variations",function(e){t(".variable-items-wrapper").each(function(e,o){t(this).find("li").removeClass("active"),t(this).find("li").removeClass("active-variation")})}),t(document.body).on("click",".bc-link-whole-grid-card",function(e){if(!t(e.target).hasClass("ajax_add_to_cart")){var o=t(this).data("link-url");window.location.href=o}}),t(document.body).on("removed_from_cart",function(){t("[name='update_cart']").removeAttr("disabled"),t("[name='update_cart']").trigger("click")}),t(document.body).on("removed_from_cart",function(){t("body").removeClass("slidein-minicart-active")}),t(".menu-item .shop-cart").length&&(t(".menu-item .shop-cart").closest(".menu-item").addClass("opacityfull"),t(".menu-item .shop-cart").closest(".et_pb_section").addClass("section_with_cart")),t(document).on("touchstart click",".bodycommerce-minicart .close",function(e){t("body").removeClass("slidein-minicart-active"),t(".bodycommerce-minicart").removeClass("active"),t("body").removeClass("minicart-active")}),t(".et_pb_db_checkout_coupon").length&&t(".woocommerce-form-coupon-toggle").hide(),jQuery(document.body).on("checkout_error",function(){if(t(".bc-checkout-notices").length){var e=jQuery(".woocommerce-NoticeGroup").html();t(".bc-checkout-notices").append(e),setTimeout(function(){jQuery(".woocommerce-NoticeGroup").remove()},250)}}),jQuery(document.body).on("update_checkout",function(){if(t(".et_pb_db_checkout_coupon").length)if(t(".bc-coupon-message").remove(),t(".woocommerce-error").length){t(".woocommerce-error").hide();var e=jQuery(".woocommerce-error").html();t(".et_pb_db_checkout_coupon").append("
"+e+"
")}else if(t(".woocommerce-message").length){t(".woocommerce-message").hide();var o=jQuery(".woocommerce-message").html();t(".et_pb_db_checkout_coupon").append("
"+o+"
")}}),t("body").hasClass("archive"),t("li.product").each(function(e,o){if(t(this).find(".et_pb_db_price.change_to_variation_price").length>0){t(".cart").addClass("hide-price");var a=t(this).find(".et_pb_db_price.change_to_variation_price .price"),c=t(this).find(".et_pb_db_price.change_to_variation_price .bodycommerce-changes-variation-price"),i=t(this).find(".et_pb_db_atc .variations_form");i.on("show_variation",function(t,e){var o=jQuery("
").append(a.find(".bc-price-before").clone()).html(),i=jQuery("
").append(a.find(".bc-price-after").clone()).html();void 0!==e&&!0===e.is_purchasable&&""!==e.price_html?(a.hide(),c.html(o+e.price_html+i),c.show()):(a.show(),c.hide())}),i.on("reset_data",function(){a.show(),c.hide()})}}),t(".et_pb_db_price.change_to_variation_price").length>0&&(t(".cart").addClass("hide-price"),t(".variations_form").each(function(){var e=t(this).closest(".et_pb_section"),o=e.find(".et_pb_db_price.change_to_variation_price .price"),a=e.find(".et_pb_db_price.change_to_variation_price .bodycommerce-changes-variation-price"),c=e.find(".et_pb_db_atc .variations_form");t(this).on("show_variation",function(t,e){var c=jQuery("
").append(o.find(".bc-price-before").clone()).html(),i=jQuery("
").append(o.find(".bc-price-after").clone()).html();void 0!==e&&!0===e.is_purchasable&&""!==e.price_html?(o.hide(),a.html(c+e.price_html+i),a.show()):(o.show(),a.hide())}),c.on("reset_data",function(){o.show(),a.hide()})})),t(".bodycommerce-minicart-container::after").click(function(e){e.preventDefault(),t(".bodycommerce-minicart").toggleClass("active"),t(".CartClick").toggleClass("active")})}),jQuery(document).ready(function(t){function e(){t(".cart-link-span").each(function(e,o){var a=t(this).attr("data-url");t(this).wrapAll('')})}if(t(".et-cart-info").closest(".et_pb_column").length&&(t(".et-cart-info").closest(".et_pb_column").css("z-index","20"),t(".et-cart-info").closest(".et_pb_column").addClass("column-cart")),t(".cart-link .CartClick").each(function(e,o){t(this).closest(".et_pb_section").addClass("bc_minicart_section")}),jQuery(document.body).on("updated_wc_div",e),jQuery(document.body).on("updated_cart_totals",e),jQuery(document.body).on("added_to_cart",e),jQuery(document.body).on("updated_mini_cart",e),jQuery(document.body).on("removed_from_cart",e),t(".change_to_variation_stock").length){t("body").addClass("bodycommerce-changes-stock");var o=t(".change_to_variation_stock").closest(".product");setTimeout(function(){var e=o.find(".et_pb_db_atc .woocommerce-variation-availability").html();t(".change_variation_our_text").length?(o.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("in-stock")?(stocktext_val=t("#change_stock_instock").val(),stockhtml='

'+stocktext_val+"

"):o.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("out-of-stock")?(stocktext_val=t("#change_stock_outofstock").val(),stockhtml='

'+stocktext_val+"

"):o.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("available-on-backorder")?(stocktext_val=t("#change_stock_backorder").val(),stockhtml='

'+stocktext_val+"

"):stockhtml=stockhtml,o.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove()):(stockhtml=stockhtml,o.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove()),""!==e&&(o.find(".et_pb_db_atc .woocommerce-variation-availability").hide(),o.find(".et_db_stock_status .stock").hide(),o.find(".et_db_stock_status .bodycommerce-changes-variation-stock").append(e))},200),t(o.find(".et_pb_db_atc select")).on("change",function(e){setTimeout(function(){var e=o.find(".et_pb_db_atc select").closest(".et_pb_db_atc").find(".woocommerce-variation-availability").html();e=o.find(".et_pb_db_atc .woocommerce-variation-availability").html();console.log(e),t(".change_variation_our_text").length?(o.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("in-stock")?(stocktext_val=t("#change_stock_instock").val(),e='

'+stocktext_val+"

"):o.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("out-of-stock")?(stocktext_val=t("#change_stock_outofstock").val(),e='

'+stocktext_val+"

"):o.find(".et_pb_db_atc .woocommerce-variation-availability p").hasClass("available-on-backorder")?(stocktext_val=t("#change_stock_backorder").val(),e='

'+stocktext_val+"

"):e=e,o.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove()):(e=e,o.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove()),""==e?(o.find(".et_db_stock_status .bodycommerce-changes-variation-stock .out-of-stock").remove(),o.find(".et_db_stock_status .stock").show(),o.find(".et_db_stock_status .bodycommerce-changes-variation-stock .available-on-backorder").remove()):(o.find(".et_pb_db_atc select").closest(".et_pb_db_atc").find(".woocommerce-variation-availability").hide(),o.find(".et_db_stock_status .bodycommerce-changes-variation-stock .stock").remove(),o.find(".et_db_stock_status .stock").hide(),o.find(".et_db_stock_status .bodycommerce-changes-variation-stock").append(e))},200)})}t(".remove-cat-link .categories a").contents().unwrap(),t(".remove-tags-link .tags a").contents().unwrap(),t(".debodycommerce img").removeAttr("srcset"),t(".venobox").length&&t(".venobox").venobox({framewidth:"800px",titleattr:"data-title",numerationPosition:"bottom",numeratio:"true",titlePosition:"bottom"}),t(".woocommerce-product-gallery__image img").on("load",function(){var e=t(".woocommerce-product-gallery__image img");1==e.width()&&1==e.height()||t(".attachment-shop_thumbnail").trigger("click")}),t(window).on("load",function(){t(".woocommerce-product-gallery__image img.wp-post-image").on("load",function(){var e=t(this).attr("data-large_image");t(".woocommerce-product-gallery__image .large").css("background-image","url('"+e+"')")})});var a=0,c=0;t(".magnify").mousemove(function(e){if(a||c){var o=t(this).offset(),i=e.pageX-o.left,n=e.pageY-o.top;if(i0&&n>0?t(this).find(".large").fadeIn(100):t(this).find(".large").fadeOut(100),t(this).find(".large").is(":visible")){var s=-1*Math.round(i/t(this).find(".imagezoom").width()*a-t(this).find(".large").width()/2)+"px "+-1*Math.round(n/t(this).find(".imagezoom").height()*c-t(this).find(".large").height()/2)+"px",r=i-t(this).find(".large").width()/2,d=n-t(this).find(".large").height()/2;t(this).find(".large").css({left:r,top:d,backgroundPosition:s})}}else{var _=new Image;_.src=t(this).find(".imagezoom").attr("src"),a=_.width,c=_.height}}),t(".magnify").mouseleave(function(){t(this).find(".large").fadeOut(100)})});