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("
")}else if(t(".woocommerce-message").length){t(".woocommerce-message").hide();var o=jQuery(".woocommerce-message").html();t(".et_pb_db_checkout_coupon").append(" ")}}),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("'+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(i