!function($){function toggleNavMobile(){$(".js-close-nav").click((function(){removeFixed(),$(".js-header_main__nav").removeClass("is-active")})),$(window).resize((function(){$("body").hasClass("is-fixed")&&$(window).width()>849&&($(".js-header_main__nav").removeClass("is-active"),removeFixed())})),$(".js-open-nav").click((function(){var top;0===$(".js-header_main__nav.is-active").length&&($(".js-header_main__nav").addClass("is-active"),top=$(window).scrollTop(),$("body").data("top",top).addClass("is-fixed").css("top",-top))}))}function removeFixed(){$("body").removeClass("is-fixed");var top=$("body").data("top");$(window).scrollTop(top),$("#header").hasClass("has-sticky")&&top>$("#header").height()&&($("#header").css("height",$("#header").height()),$("#header .header-wrapper").addClass("stuck"))}function toggleDropdownContent(){0!==$(".js-toggle-dropdown-content").length&&$(".js-toggle-dropdown-content").click((function(){$(this).hasClass("is-active")?$(this).removeClass("is-active"):($(this).parent().parent().find(".js-toggle-dropdown-content").removeClass("is-active"),$(this).addClass("is-active"))}))}function backToTop(){0!==$(".js-back-to-top").length&&$(".js-back-to-top").click((function(){$("html, body").animate({scrollTop:0},400)}))}jQuery(document).ready((function($){toggleNavMobile(),toggleDropdownContent(),backToTop(),$(document).on("click",".nav-cell",(function(e){var index=$(e.currentTarget).index();$(".nav-cell").removeClass("active"),$(this).addClass("active"),$(".product-lightbox .product-gallery .slider").flickity("select",index)})),$(".header-search > a").on("click",(function(e){$(this).parent().find('input[type="search"]').focus()}));$(".product-gallery-slider").flickity({cellAlign:"center",wrapAround:!0,autoPlay:!1,prevNextButtons:!0,adaptiveHeight:!1,imagesLoaded:!0,lazyLoad:!0,dragThreshold:15,pageDots:!1});$(".woocommerce-checkout-review-order #terms").length&&$(".woocommerce-checkout-review-order #terms").prop("checked",!0),$(".uoymedia-check-list .three_dots").on("click",(function(){$(this).toggleClass("white-space-normal",500)}))}))}(jQuery);