(function(e){"use strict";e(document).ready(function(){e(".widget_product_search .search-field").find("input[type='text']").each(function(){e(this).val()||e(this).attr("placeholder","Search and Press Enter")}),e(".product-layout-list").parents("ul.products").addClass("products-list"),e(".single_variation_wrap").addClass("clearfix"),e(".woocommerce-variation-add-to-cart").addClass("clearfix"),e(".cart-total-wrap").on("click",function(){e(".widget-cart-sidebar").toggleClass("open"),e(this).toggleClass("cart-open"),e(".site-overlay").toggleClass("open")}),e(".site-overlay").on("click",function(){e(this).removeClass("open"),e(this).parents("#page").find(".widget-cart-sidebar").removeClass("open")}),e(".woocommerce-tab-heading").on("click",function(){e(this).toggleClass("open"),e(this).parent().find(".woocommerce-tab-content").slideToggle("")}),e(".add_to_cart_button").on("click",function(){e("body").addClass("body-overflow"),e("#pxl-cart-sidebar").addClass("active")}),e("#pxl-cart-sidebar .pxl-popup--overlay").on("click",function(){e("body").removeClass("body-overflow"),e("#pxl-cart-sidebar").removeClass("active")}),e("#pxl-cart-sidebar").on("click",".pxl-item--close",function(){e("body").removeClass("body-overflow"),e("#pxl-cart-sidebar").removeClass("active")}),e(".site-menu-right .h-btn-cart, .mobile-menu-cart .h-btn-cart").on("click",function(t){t.preventDefault(),e(this).parents("#pxl-header-wrap").find(".widget_shopping_cart").toggleClass("open"),e(".pxl-hidden-sidebar").removeClass("open"),e(".pxl-search-popup").removeClass("open")}),e('.woocommerce-add-to-cart a.button:not(".no-animate")').append("<i>+</i>"),e(".woocommerce-add-to-cart a.button").on("click",function(){e(this).parents(".woocommerce-product-inner").addClass("cart-added")}),e(".woocommerce-archive-layout .layout-grid").on("click",function(){e(this).addClass("active"),e(this).parent().find(".layout-list").removeClass("active"),e(this).parents(".site-main").find("ul.products").addClass("pxl-products-grid").removeClass("pxl-products-list")}),e(".woocommerce-archive-layout .layout-list").on("click",function(){e(this).addClass("active"),e(this).parent().find(".layout-grid").removeClass("active"),e(this).parents(".site-main").find("ul.products").addClass("pxl-products-list").removeClass("pxl-products-grid")}),e(".woocommerce-archive-layout .layout-list.active").parents(".site-main").find("ul.products").addClass("pxl-products-list").removeClass("pxl-products-grid")})})(jQuery)