var stickyTop=$(".filterWrap").offset().top;$(window).on("scroll resize",function(){if($("body").hasClass("desktop")){$(window).scrollTop()+115>=stickyTop&&$("body").hasClass("desktop")?$(".filterWrap").addClass("j-active").removeClass("j-filterTop"):$(".filterWrap").removeClass("j-active").addClass("j-filterTop");var a=$(window).scrollTop();a=$(".catFilters").offset().top-a;var b=$(".catFilters").height(),c=$(".filterWrap").height();b=b-c-180;c=a- -b+80;a<=-b?$(".filterWrap").css("top",+c):$(".filterWrap").removeAttr("style")}});
$(window).on("resize",function(){});$(function(){});var gi_itemwidth;
function resetitemwidth(){li_windowWidth=$(window).width();$(".j-itemwidth").hasClass("j-active")||0>=$(".j-itemwidth").length||(1300<li_windowWidth?($(".viewFilter.four").addClass("j-active"),gi_itemwidth=4):800<li_windowWidth?($(".viewFilter.three").addClass("j-active"),gi_itemwidth=3):400<li_windowWidth?($(".viewFilter.two").addClass("j-active"),gi_itemwidth=2):($(".viewFilter.one").addClass("j-active"),gi_itemwidth=1),setTimeout(function(){var a=$.param({a:"sessionfilter",k:peppercategory.config.datakey,
t:"ITEMWIDTH",v:gi_itemwidth}),b={};b[peppercategory.config.actionparameter]=a;b[peppercategory.config.classparameter]=peppercategory.config.categoryclass;$.getJSON("/_ps/category",b)},1E3))}
$(function(){$(document).on("click","."+peppercategory.config.pagesizeclass+" a",function(){peppercategory.update("setpagesize",$(this).data("value"))});peppercategory.preupdate=function(){peppercategory.currentcontent=$("."+peppercategory.config.itemsclass).html();peppercategory.activefiltergroup=$(".filterContent:visible").parents(".filterGroup").data("attribute")};peppercategory.postupdate=function(a){1<a.currentpage&&$("."+peppercategory.config.itemsclass).prepend(peppercategory.currentcontent);
$('.filterGroup[data-attribute="'+peppercategory.activefiltergroup+'"] .filterContent').show();go_sitejs.addproductimpressions(a.impressions);peppercategory.activefilters=Object.keys(a.activefilters)};$(document).on("click",".filterGroupLabel",function(){$(this).hasClass("j-opened")?$(this).removeClass("j-opened"):$(this).addClass("j-opened");$(".filterGroupLabel").not(this).removeClass("j-opened").siblings(".filterContent").slideUp();$(this).siblings(".filterContent").slideToggle()})});