!function(e){woodmartThemeModule.menuStickyOffsets=function(){var o=e(".wd-sticky-nav"),t=e(".wd-close-side");function n(e,n=!0){e.addClass("wd-opened"),o.addClass("wd-opened"),t.trigger("wdCloseSideAction",["show","click","wd-location-sticky-nav"]),n&&o.on("mouseout",function(){d(),o.off("mouseout")})}function d(){e(".wd-header-sticky-nav").removeClass("wd-opened"),o.removeClass("wd-opened"),t.trigger("wdCloseSideAction",["hide","click","wd-location-sticky-nav"])}e(".wd-sticky-nav .wd-nav-sticky.wd-nav-vertical").each(function(){var o=e(this);o.on("mouseenter mousemove",function(){o.hasClass("wd-offsets-calculated")||(o.find("> .menu-item-has-children").each(function(){var o=e(this);o.find("> .wd-dropdown.wd-design-full-height").length||(t(o),o.find("> .wd-dropdown").length&&o.find(".menu-item.menu-item-has-children").each(function(){t(e(this))}))}),o.addClass("wd-offsets-calculated"))}),void 0!==woodmart_settings.clear_menu_offsets_on_resize&&"yes"!==woodmart_settings.clear_menu_offsets_on_resize||setTimeout(function(){woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){o.removeClass("wd-offsets-calculated"),o.find(" > .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3);var t=function(e){var o=e.find(" > .wd-dropdown"),t=o.innerHeight(),n=o.offset().top-woodmartThemeModule.$window.scrollTop(),d=woodmartThemeModule.$window.height(),s=0;o.attr("style",""),t&&n&&n+t>=d&&(s=n+t-d,o.css({top:-s}))}}),woodmartThemeModule.$document.on("click",".wd-header-sticky-nav",function(o){o.preventDefault();var t=e(this);n(t,t.hasClass("wd-close-menu-mouseout"))}),woodmartThemeModule.$document.on("mouseenter mousemove",".wd-header-sticky-nav.wd-event-hover",function(){n(e(this))}),woodmartThemeModule.$document.on("click touchstart",".wd-close-side.wd-location-sticky-nav",function(){d()})},window.addEventListener("wdEventStarted",function(){setTimeout(function(){woodmartThemeModule.menuStickyOffsets()},100)})}(jQuery);
!function(e){woodmartThemeModule.menuOverlay=function(){var d=".wd-header-nav.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-hover, .wd-header-cats.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-hover, .wd-sticky-nav:not(.wd-opened), .wd-header-cats.wd-with-overlay.wd-event-hover, .wd-header-my-account.wd-with-overlay, .wd-header-cart.wd-with-overlay, .wd-header-search.wd-display-dropdown.wd-with-overlay",o="",t=e(".wd-close-side");woodmartThemeModule.$document.on("mouseleave",d,function(){e(this).parents(".wd-header-cats.wd-with-overlay.wd-event-click.wd-opened").length||t.trigger("wdCloseSideAction",["hide","hover","wd-location-header-sticky wd-location-header wd-location-header-cats wd-location-sticky-nav"])}),woodmartThemeModule.$document.on("mouseenter mousemove",d,function(){var d=e(this);if(!(t.hasClass("wd-close-side-opened")||woodmartThemeModule.$window.width()<768)){var o=d.parents(".whb-header").length,a=d.parents(".whb-clone").length,n=d.hasClass("wd-sticky-nav"),w=d.parents(".wd-header-cats").length,i="";o?(i=d.parents(".whb-sticked").length?"wd-location-header-sticky":"wd-location-header",w&&(i+=" wd-location-header-cats")):a?i="wd-location-header-sticky":n&&(i="wd-location-sticky-nav"),t.trigger("wdCloseSideAction",["show","hover",i])}}),woodmartThemeModule.$document.on("click",".wd-header-nav.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-click, .wd-header-cats.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-click, .wd-header-cats.wd-with-overlay.wd-event-click, .wd-search-form.wd-with-overlay .wd-search-cat",function(d){var o=e(this);o.parents(".wd-header-cats.wd-with-overlay.wd-event-click.wd-opened").length||o.parents(".wd-header-cats.wd-with-overlay.wd-event-hover").length||setTimeout(function(){var e=o.hasClass("wd-opened")?"show":"hide";t.trigger("wdCloseSideAction",[e,"click"])})}),woodmartThemeModule.$document.on("click touchstart",".wd-close-side.wd-location-header",function(){e(this).removeClass("wd-location-header wd-close-side-opened")}),t.on("wdCloseSideAction",function(e,d,a,n="wd-location-header"){"hover"===a&&"click"===o||(o="click"===a&&"hide"===d?"":a,"show"===d?t.addClass("wd-close-side-opened").addClass(n):t.removeClass("wd-close-side-opened").removeClass(n))})},["wdEventStarted","wdUpdatedHeader"].forEach(e=>{window.addEventListener(e,function(){woodmartThemeModule.menuOverlay()})})}(jQuery);
!function(e){woodmartThemeModule.menuOffsets=function(){e(".wd-header-main-nav ul.menu > li, .wd-header-secondary-nav ul.menu > li, .widget_nav_mega_menu ul.menu:not(.wd-nav-vertical) > li, .wd-header-main-nav .wd-dropdown.wd-design-aside ul > li").each(function(){var d=e(this);function s(){d.hasClass("wd-offsets-calculated")||d.parents(".wd-design-aside").length||(d.find(" > .menu-item-has-children").each(function(){!function(d){var s,o,n,a=d.find(" > .wd-dropdown-menu"),t=a.outerWidth(),w=a.offset();if(a.attr("style",""),t&&w)if(a.hasClass("wd-design-full-width")||a.hasClass("wd-design-aside"))o=woodmartThemeModule.$window.width(),woodmartThemeModule.$body.hasClass("rtl")?(n=o-w.left-t)+t>=o&&(s=n+t-o,a.css({right:-s})):w.left+t>=o&&(s=w.left+t-o,a.css({left:-s}));else if(a.hasClass("wd-design-sized")||a.hasClass("wd-design-full-height")){o=woodmart_settings.site_width,(woodmartThemeModule.$window.width()<o||!o||d.parents(".whb-header").hasClass("whb-full-width"))&&(o=woodmartThemeModule.$window.width()),n=o-w.left-t;var i,l=15,r=(woodmartThemeModule.$window.width()-o)/2,m=e(".wd-sticky-nav");woodmartThemeModule.$body.hasClass("wd-sticky-nav-enabled")&&m.length&&(l-=m.width()/2),woodmartThemeModule.$body.hasClass("rtl")?(i=r+n)+t>=o&&(s=i+t-o,a.css({right:-s-l})):(i=w.left-r)+t>=o&&(s=i+t-o,a.css({left:-s-l}))}}(e(this))}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour"),d.addClass("wd-offsets-calculated"))}d.hasClass("menu-item")&&(d=e(this).parent()),d.on("mouseenter mousemove",function(){s()}),woodmartThemeModule.$window.on("wdHeaderBuilderStickyChanged",s),"yes"===woodmart_settings.clear_menu_offsets_on_resize&&setTimeout(function(){woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){d.removeClass("wd-offsets-calculated"),d.find(" > .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3)})},woodmartThemeModule.menuDropdownAside=function(){e(".wd-nav .wd-design-aside, .wd-header-cats.wd-open-dropdown .wd-nav").each(function(){var d=e(this).find(".menu-item");if(d.length){var s=d.first();s.hasClass("menu-item-has-children")||s.parents(".wd-sub-menu-wrapp").addClass("wd-empty-item"),s.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"),d.on("mouseover",function(){var d=e(this),s=d.parents(".wd-sub-menu-wrapp");d.hasClass("wd-opened")||(d.hasClass("item-level-1")&&(d.hasClass("menu-item-has-children")?s.removeClass("wd-empty-item"):s.addClass("wd-empty-item")),d.siblings().removeClass("wd-opened").find(".wd-dropdown").removeClass("wd-opened"),d.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"))})}})},window.addEventListener("wdEventStarted",function(){setTimeout(function(){woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()},100)}),window.addEventListener("wdUpdatedHeader",function(){e(".whb-header .wd-offsets-calculated").removeClass("wd-offsets-calculated"),e(".whb-header .menu-item.wd-opened, .whb-header .wd-dropdown.wd-opened").removeClass("wd-opened"),e(".whb-header .wd-dropdown-menu").attr("style",""),woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()})}(jQuery);
!function(e){woodmartThemeModule.menuSetUp=function(){var n=e(".wd-nav, .wd-header-cats, .wd-search-cat"),d="wd-opened";if(e(".mobile-nav").find("ul.wd-nav-mobile").find(" > li").has(".wd-dropdown-menu").addClass("menu-item-has-children"),woodmartThemeModule.$document.on("click",".wd-nav .wd-event-click > a, .wd-header-cats.wd-event-click > span, .wd-search-cat-btn",function(n){n.preventDefault();var t=e(this);t.parent().siblings().hasClass(d)&&t.parent().siblings().removeClass(d),t.parent().toggleClass(d)}),woodmartThemeModule.$document.on("click",function(t){var o=t.target;if(!(!(e("."+d).length>0)||e(o).is(".wd-event-hover")||e(o).parents().is(".wd-event-hover")||e(o).parents().is("."+d)||e(o).is("."+d)||e(o).is(".wd-sticky-nav")||o.closest(".wd-cookies-popup")||o.closest(".wd-fb-holder")||0!==e(".mfp-ready").length||0!==e(".pswp--open").length)){if(n.find(".wd-event-click."+d).removeClass(d),n.hasClass("wd-event-click")&&n.removeClass(d),e(o).closest(".wd-with-overlay").length)return;e(".wd-close-side").trigger("wdCloseSideAction",["hide","click"])}}),"yes"===woodmart_settings.menu_item_hover_to_click_on_responsive){function t(){woodmartThemeModule.$window.width()<=1024?n.find(" > .menu-item-has-children.wd-event-hover").each(function(){e(this).data("original-event","hover").removeClass("wd-event-hover").addClass("wd-event-click")}):n.find(" > .wd-event-click").each(function(){var n=e(this);"hover"===n.data("original-event")&&n.removeClass("wd-event-click").addClass("wd-event-hover")})}t(),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){t()},300))}},["wdEventStarted","wdUpdatedHeader"].forEach(e=>{window.addEventListener(e,function(){woodmartThemeModule.menuSetUp()})})}(jQuery);
!function(e){woodmartThemeModule.headerBuilder=function(){var s,l=e(".whb-header"),d=e(".wd-hb"),o=e(".whb-sticky-row"),a="",r=woodmartThemeModule.$window,t=!1,h=300,n="",w=l.hasClass("whb-hide-on-scroll");if(o.each(function(){var s=e(this);if(s[0].offsetHeight>10)return a=s,!1}),l.hasClass("whb-sticky-real")||l.hasClass("whb-scroll-slide")){var i=e("#wpadminbar"),c=l.find(".whb-main-header")[0].offsetHeight,f=i.length>0?i[0].offsetHeight:0;if(l.hasClass("whb-sticky-real")){if(0===a.length||a[0].offsetHeight<10||"undefined"!=typeof elementorFrontend&&elementorFrontend.isEditMode())return;l.addClass("whb-sticky-prepared"),h=Math.ceil(a.offset().top)-f}l.hasClass("whb-scroll-slide")&&(h=c+f)}if(l.hasClass("whb-sticky-clone")){var b=[];b.cloneClass=l.find(".whb-general-header").attr("class"),w&&(b.wrapperClasses="whb-hide-on-scroll"),e(".whb-clone").length&&e(".whb-clone").remove(),n=(n=(n=(n=(n=woodmart_settings.whb_header_clone).replace(/<%([^%>]+)?%>|{{([^{}]+)}}/g,function(s){var d=s.slice(2,-2);return l.find(d).length?e("<div>").append(l.find(d).first().clone()).html():void 0!==b[d]?b[d]:""})).replace(/<link[^>]*>/g,"")).replace("whb-col-1","")).replace("dropdowns-loading",""),l.after(n),(l=l.parent().find(".whb-clone")).find(".whb-row").removeClass("whb-flex-equal-sides").addClass("whb-flex-flex-middle"),window.dispatchEvent(new CustomEvent("wdHeaderBuilderCloneCreated"))}function u(){l.hasClass("whb-boxed")&&(e(".wd-offsets-calculated .wd-dropdown-menu").attr("style",""),e(".wd-offsets-calculated").removeClass("wd-offsets-calculated"),woodmartThemeModule.$window.trigger("wdHeaderBuilderStickyChanged"))}r.on("scroll",function(){var o=h,a=woodmartThemeModule.$window.scrollTop(),r=woodmartThemeModule.$window.height(),n=woodmartThemeModule.$document.height();d.length>0&&d.hasClass("wd-display")&&(o+=d[0].offsetHeight),!e(".wd-hb-close").length&&l.hasClass("whb-scroll-stick")&&(o=h),a>o?t||(t=!0,l.addClass("whb-sticked"),u()):t&&(t=!1,l.removeClass("whb-sticked"),u());var i=100;l.hasClass("whb-scroll-stick")&&(i=500),w&&(s-a>0&&a>o?(l.addClass("whb-scroll-up"),l.removeClass("whb-scroll-down")):a-s>0&&a+r!==n&&a>o+i?(l.addClass("whb-scroll-down"),l.removeClass("whb-scroll-up")):a<=o?(l.removeClass("whb-scroll-down"),l.removeClass("whb-scroll-up")):a+r>=n-5&&(l.addClass("whb-scroll-up"),l.removeClass("whb-scroll-down"))),s=a}),woodmartThemeModule.$document.trigger("wdHeaderBuilderInited")},["wdEventStarted","wdUpdatedHeader"].forEach(e=>{window.addEventListener(e,function(){woodmartThemeModule.headerBuilder()})})}(jQuery);
!function(e){woodmartThemeModule.mobileSearchIcon=function(){woodmartThemeModule.$body.on("click",".wd-header-search-mobile:not(.wd-display-full-screen, .wd-display-full-screen-2)",function(d){d.preventDefault();var o=e(".mobile-nav");o.hasClass("wd-opened")||(e(this).addClass("wd-opened"),o.addClass("wd-opened"),e(".wd-close-side").addClass("wd-close-side-opened"),e(".mobile-nav .searchform").find('input[type="text"]').trigger("focus"))})},e(document).ready(function(){woodmartThemeModule.mobileSearchIcon()})}(jQuery);
(function(){var t,i;t=window.jQuery,i=t(window),t.fn.stick_in_parent=function(o){var s,n,e,c,r,l,a,p,u,f,d,h;for(null==o&&(o={}),h=o.sticky_class,l=o.inner_scrolling,d=o.recalc_every,f=o.parent,u=o.offset_top,p=o.spacer,e=o.bottoming,null==u&&(u=0),null==f&&(f=void 0),null==l&&(l=!0),null==h&&(h="is_stuck"),s=t(document),null==e&&(e=!0),c=function(o,n,c,r,a,k,g,m){var v,y,_,b,w,C,I,x,z,M,T;if(!o.data("sticky_kit")){if(o.data("sticky_kit",!0),w=s.height(),I=o.parent(),null!=f&&(I=I.closest(f)),!I.length)throw"failed to find stick parent";if(_=!1,v=!1,null!=p?p&&o.closest(p):t("<div />"),(x=function(){var t,i,n;if(!m)return w=s.height(),t=parseInt(I.css("border-top-width"),10),i=parseInt(I.css("padding-top"),10),parseInt(I.css("padding-bottom"),10),c=I.offset().top+t+i,r=I.height(),_&&(_=!1,v=!1,o.css({position:"",top:"",width:"",bottom:""}).removeClass(h),n=!0),a=o.offset().top-(parseInt(o.css("margin-top"),10)||0)-u,k=o.outerHeight(!0),o.css("float"),n?T():void 0})(),k!==r)return b=void 0,C=u,M=d,T=function(){var t,n,p,f,g,y;m||(p=!1,null!=M&&(M-=1)<=0&&(M=d,x(),p=!0),p||s.height()===w||(x(),p=!0),f=i.scrollTop(),null!=b&&(n=f-b),b=f,_?(e&&(g=f+k+C>r+c,v&&!g&&(v=!1,o.css({position:"sticky",bottom:"",top:C}).trigger("sticky_kit:unbottom"))),f<a&&(_=!1,C=u,t={position:"",width:"",top:""},o.css(t).removeClass(h).trigger("sticky_kit:unstick")),l&&(y=i.height(),k+u>y&&(v||(C-=n,C=Math.max(y-k,C),C=Math.min(u,C),_&&o.css({top:C+"px"}))))):f>a&&(_=!0,t={position:"sticky",top:C},o.css(t).addClass(h),o.trigger("sticky_kit:stick")),_&&e&&(null==g&&(g=f+k+C>r+c),!v&&g&&(v=!0,"static"===I.css("position")&&I.css({position:"relative"}))))},z=function(){return x(),T()},y=function(){if(m=!0,i.off("touchmove",T),i.off("scroll",T),i.off("resize",z),t(document.body).off("sticky_kit:recalc",z),o.off("sticky_kit:detach",y),o.removeData("sticky_kit"),o.css({position:"",bottom:"",top:"",width:""}),I.position("position",""),_)return o.removeClass(h)},i.on("touchmove",T),i.on("scroll",T),i.on("resize",z),t(document.body).on("sticky_kit:recalc",z),o.on("sticky_kit:detach",y),setTimeout(T,0)}},r=0,a=this.length;r<a;r++)n=this[r],c(t(n));return this}}).call(this);
!function(t){woodmartThemeModule.$document.on("wdElementorColumnReady pjax:complete wdShopPageInit",function(){woodmartThemeModule.stickyColumn()}),woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&elementorFrontend.hooks.addAction("frontend/element_ready/container",function(t){var e=t.data("model-cid");void 0!==elementorFrontend.config.elements.data[e]&&(elementorFrontend.config.elements.data[e].attributes.container_sticky?t.addClass("wd-sticky-container-lg"):t.removeClass("wd-sticky-container-lg"),elementorFrontend.config.elements.data[e].attributes.container_sticky_tablet?t.addClass("wd-sticky-container-md-sm"):t.removeClass("wd-sticky-container-md-sm"),elementorFrontend.config.elements.data[e].attributes.container_sticky_mobile?t.addClass("wd-sticky-container-sm"):t.removeClass("wd-sticky-container-sm"))})}),woodmartThemeModule.stickyColumn=function(){t(".woodmart-sticky-column").each(function(){for(var e=t(this),n=150,o=e.attr("class").split(" "),i=0;i<o.length;i++)if(o[i].indexOf("wd_sticky_offset_")>=0){var s=o[i].split("_");n=parseInt(s[3])}e.find(" > .vc_column-inner > .wpb_wrapper").trigger("sticky_kit:detach"),e.find(" > .vc_column-inner > .wpb_wrapper").stick_in_parent({offset_top:n})}),t(".wd-elementor-sticky-column").each(function(){for(var e=t(this),n=150,o=e.attr("class").split(" "),i=0;i<o.length;i++)if(o[i].indexOf("wd_sticky_offset_")>=0){var s=o[i].split("_");n=parseInt(s[3])}var a=e.find(" > .elementor-widget-wrap");a.length<=0&&(a=e.find("> .elementor-widget-wrap")),a.stick_in_parent({offset_top:n})}),t(':is(.wp-block-wd-column, .wp-block-wd-off-sidebar, .wp-block-wd-off-content)[class*="wd-sticky-on-"]').each(function(){for(var e=t(this),n=150,o=e.attr("class").split(" "),i=0;i<o.length;i++)if(o[i].indexOf("wd_sticky_offset_")>=0){var s=o[i].split("_");n=parseInt(s[3])}function a(){var t=woodmartThemeModule.$window.width();e.trigger("sticky_kit:detach"),!e.hasClass("wd-sticky-on-lg")&&t>1024||!e.hasClass("wd-sticky-on-md-sm")&&t<=1024&&t>768||!e.hasClass("wd-sticky-on-sm")&&t<=768||e.stick_in_parent({offset_top:n})}a(),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){a()},300))}),t('[class*="wd-sticky-container-"]').each(function(){var e=t(this);function n(){var t=woodmartThemeModule.$window.width();if(e.trigger("sticky_kit:detach"),!(!e.hasClass("wd-sticky-container-lg")&&t>1024||!e.hasClass("wd-sticky-container-md-sm")&&t<=1024&&t>768||!e.hasClass("wd-sticky-container-sm")&&t<=768)){var n=window.getComputedStyle(e[0]),o=parseInt(n.getPropertyValue("--wd-sticky-offset"),10);e.stick_in_parent({offset_top:o})}}n(),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){n()},300))})},t(document).ready(function(){woodmartThemeModule.stickyColumn()})}(jQuery);