/* Classic desktop header: white logo, search and action row. */
header .logo{display:none!important}

@media (min-width:851px){
  /* Clip horizontal overflow without creating a scroll ancestor for sticky navigation. */
  html,body{overflow-x:clip}
  .top{
    height:80px;
    padding:0 clamp(22px,4vw,64px);
    gap:14px;
    box-shadow:none;
    border-bottom:1px solid #e4e7eb;
    z-index:46;
  }
  .top>b{
    min-width:170px;
    font-size:24px;
    letter-spacing:-1px;
    position:relative;
    z-index:48;
  }
  .topActions{
    gap:5px;
    position:relative;
    z-index:48;
  }
  .topIconBtn{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    border:0;
    border-radius:8px;
    background:transparent;
  }
  .topIconBtn:hover{background:#f1f3f5}
  .topIconBtn svg{width:26px;height:26px}
  .topActions #searchBtn{display:none}
  .cartCount{right:-4px;top:-5px;min-width:18px;height:18px;font-size:10px;border-width:1px}

  /* Search lives visually inside the white header, but the header itself scrolls away. */
  body>header{
    position:absolute!important;
    top:0!important;
    left:clamp(205px,22vw,335px)!important;
    right:clamp(155px,18vw,250px)!important;
    height:80px!important;
    min-height:0!important;
    padding:16px 0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    z-index:47!important;
    display:flex!important;
    justify-content:stretch!important;
    align-items:center!important;
  }
  body>header>.logo{display:none!important}
  body>header form{
    width:100%!important;
    max-width:none!important;
    flex:1 1 auto!important;
    margin:0!important;
  }
  body>header form input{
    min-height:46px;
    height:46px;
    padding:8px 13px;
    font-size:14px;
    border-radius:24px 0 0 24px;
    border:1px solid #f3f4f6;
    background:#f3f4f6;
  }
  body>header form button{
    min-height:46px;
    height:46px;
    padding:8px 18px;
    border-radius:0 24px 24px 0;
    font-size:14px;
  }

  /* Only the category strip follows the user while scrolling. */
  body>nav:not(.mobileBottomNav){
    position:sticky;
    top:0;
    z-index:50;
    min-height:58px;
    padding:12px clamp(18px,4vw,56px);
    gap:clamp(24px,3vw,44px);
    border-top:0;
    border-bottom:1px solid #dfe3e6;
    background:rgba(255,255,255,.97);
    box-shadow:none;
    backdrop-filter:saturate(1.3) blur(10px);
    -webkit-backdrop-filter:saturate(1.3) blur(10px);
    font-size:16px;
    justify-content:center;
    align-items:center;
  }
  body>nav:not(.mobileBottomNav)>a{
    position:relative;
    padding:4px 1px 7px;
    transition:color .15s ease;
  }
  body>nav:not(.mobileBottomNav)>a::after{
    content:"";
    position:absolute;
    left:50%;
    right:50%;
    bottom:0;
    height:3px;
    border-radius:3px;
    background:#f5c928;
    transition:left .16s ease,right .16s ease;
  }
  body>nav:not(.mobileBottomNav)>a:hover{color:#111315}
  body>nav:not(.mobileBottomNav)>a:hover::after{left:0;right:0}

  /* The panel follows the measured lower edge of the sticky navigation. */
  #megaCatalog{
    position:fixed;
    top:var(--mega-top,101px);
    left:0;
    right:0;
    width:auto;
    max-width:none;
    max-height:calc(100dvh - var(--mega-top,101px) - 12px);
    overflow:auto;
    overscroll-behavior:contain;
    z-index:49;
    display:none;
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:stretch;
    align-content:start;
    gap:16px;
    padding:20px clamp(24px,4vw,64px) 24px;
    border:0;
    border-top:1px solid #e3e6e8;
    border-radius:0 0 20px 20px;
    background:#f5f6f7;
    box-shadow:0 22px 55px rgba(22,27,31,.20);
  }
  #megaCatalog.open{display:grid}
  #megaCatalog .megaHeading{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:0 0 2px;
  }
  #megaCatalog .megaHeading>div{display:flex;align-items:baseline;gap:16px}
  #megaCatalog .megaHeading h2{font-size:22px;margin:0;line-height:1.25}
  #megaCatalog .megaHeading span{font-size:13px;color:#6a7179}
  #megaCatalog .megaClose{width:40px;height:40px;padding:0;border:1px solid #dfe3e7;border-radius:50%;background:#fff;color:#252b31;font-size:26px;line-height:1}
  #megaCatalog .megaGroup{
    display:flex;
    flex-direction:column;
    min-width:0;
    margin:0;
    padding:16px;
    border:1px solid #e1e5e8;
    border-radius:16px;
    background:#fff;
    box-shadow:0 2px 5px #20242a04;
  }
  #megaCatalog .megaGroup::after{content:none}
  #megaCatalog .megaGroup a{margin:0;color:#424a52;text-decoration:none;font-weight:400}
  #megaCatalog .megaGroup a:hover{color:#111}
  #megaCatalog a:focus-visible,#megaCatalog button:focus-visible{outline:3px solid #d5a900;outline-offset:3px}
  #megaCatalog .megaCardHead{
    display:grid;
    grid-template-columns:minmax(0,1fr) 104px;
    align-items:center;
    gap:8px;
    min-height:112px;
    padding:0 0 12px;
  }
  #megaCatalog .megaCardTitle h3{margin:0 0 8px;font-size:16px;line-height:1.3;overflow-wrap:anywhere;color:#20252b}
  #megaCatalog .megaCardTitle small{font-size:12px;color:#7a8289}
  #megaCatalog .megaPhoto{display:flex;align-items:center;justify-content:center;width:104px;height:104px;overflow:hidden}
  #megaCatalog .megaPhoto img{display:block;width:100%;height:100%;object-fit:contain}
  #megaCatalog .megaLinks{display:grid;grid-template-rows:repeat(4,40px);gap:2px;padding:12px 0;border-top:1px solid #edf0f2}
  #megaCatalog .megaLinks a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;font-size:12px;line-height:1.3}
  #megaCatalog .megaLinks a span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #megaCatalog .megaLinks a small{flex-shrink:0;color:#9299a0;font-size:11px}
  #megaCatalog .megaGroup .megaCardMore{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding:12px 0 0;border-top:1px solid #edf0f2;font-size:12px;font-weight:700}
  #megaCatalog .megaSubgroup .megaCardHead{min-height:122px}
  #megaCatalog .megaFooter{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:16px 28px;padding:12px 0 0;border-top:1px solid #dfe4e8}
  #megaCatalog .megaFooter a{font-size:13px;font-weight:700;padding:6px 0}
  #megaBackdrop{z-index:48;background:rgba(26,31,37,.24)}


}

@media (min-width:851px) and (max-width:1050px){
  body>header{left:185px!important;right:160px!important}
  .top>b{font-size:21px;min-width:140px}
  body>nav:not(.mobileBottomNav){gap:14px;font-size:14px}
  #megaCatalog{grid-template-columns:repeat(3,minmax(0,1fr));padding-left:24px;padding-right:24px}
}




#filterControls{background:#fff;border:1px solid #e4e7eb;border-radius:20px;padding:24px;margin:0 0 24px;box-shadow:0 6px 24px #18222f05}
#filterControls .filterPanelIntro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}
#filterControls .filterPanelIntro h3{font-size:22px;margin:0 0 5px;font-weight:750}
#filterControls .filterPanelIntro p{margin:0;color:#777e87;font-size:14px}
#filterControls .filterPanelMark{font-size:10px;letter-spacing:2px;color:#9298a0}
#filterControls .filterSection{border-top:1px solid #edf0f2;padding-top:18px;margin-top:18px}
#filterControls .filterSection h4{font-size:14px;margin:0 0 12px;font-weight:700}
#filterControls .filterGrid,#filterControls .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;margin:0;align-items:end}
#filterControls .filterField{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0;background:none;border:0;padding:0}
#filterControls .filterField>span,#filterControls .filterField>label{font-size:12px;color:#6f7680;font-weight:500}
#filterControls select,#filterControls input[type=number]{width:100%;min-width:0;height:46px;border:1px solid #dfe3e8;border-radius:10px;padding:10px 12px;background:#fafbfc;color:#20242a;font:inherit;font-size:14px;box-sizing:border-box}
#filterControls select:focus,#filterControls input:focus{outline:2px solid #e0bb24;outline-offset:2px;background:#fff}
#filterControls #categoryShortcuts{display:flex;grid-column:auto;width:auto}
#filterControls #extraSpecFilters:not(:empty){margin-top:14px}
#filterControls .stockOnly{display:flex;gap:9px;align-items:center;border:0;background:none;padding:12px 0;font-size:14px;min-height:46px}
#filterControls .stockOnly input{accent-color:#d5b32d;width:18px;height:18px}
#filterControls #filterActions{grid-column:2/-1;display:flex;justify-content:flex-end;gap:10px;margin:0}
#filterActions button{min-height:44px;border-radius:10px;padding:10px 22px}
#filterControls .riderFit{display:grid;grid-template-columns:170px auto 1fr;gap:16px;align-items:end;padding:16px;margin-top:18px;border-radius:12px;background:#fffbed;border:1px solid #f0e7bf}
#filterControls .riderFit p{margin:0;align-self:center;font-size:12px;color:#79735f;line-height:1.5}
#filterControls .riderFit button{min-height:46px;border-radius:10px}
#filterControls [hidden]{display:none!important}
@media(max-width:850px){#filterControls{border:0;padding:14px 4px;box-shadow:none;margin:0}#filterControls .filterGrid,#filterControls .filters{grid-template-columns:repeat(2,minmax(0,1fr))}#filterControls .filterSelection .filterField:first-child{grid-column:1/-1}#filterControls .filterPanelMark{display:none}#filterControls .filterPanelIntro h3{font-size:19px}#filterControls .riderFit{grid-template-columns:1fr 1fr}#filterControls .riderFit p{grid-column:1/-1}#filterDialogFooter #filterActions{display:flex;gap:10px;width:100%}#filterDialogFooter #filterActions button{flex:1}}
@media(max-width:420px){#filterControls .filterGrid,#filterControls .filters{grid-template-columns:1fr}#filterControls .filterField{grid-column:auto}}


/* 2026-10 catalog card cleanup: consistent previews, centered labels, no count/arrow noise. */
@media(min-width:851px){
  #megaCatalog .megaGroup{color:#20252b}
  #megaCatalog .megaGroup a,
  #megaCatalog .megaGroup a:hover,
  #megaCatalog .megaGroup a:focus-visible{color:#20252b}
  #megaCatalog .megaCardHead{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    min-height:176px;
    padding:2px 0 12px;
    text-align:center;
  }
  #megaCatalog .megaCardTitle{display:block;width:100%;text-align:center}
  #megaCatalog .megaCardTitle h3{margin:0;font-size:16px;line-height:1.3;color:#20252b;text-align:center}
  #megaCatalog .megaPhoto{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:122px;
    min-height:122px;
    overflow:hidden;
  }
  #megaCatalog .megaPhoto img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
  #megaCatalog .megaLinks{grid-template-rows:repeat(4,40px)}
  #megaCatalog .megaLinks a{justify-content:center;text-align:center;color:#4b545d}
  #megaCatalog .megaLinks a:hover,
  #megaCatalog .megaLinks a:focus-visible{color:#20252b;background:#fff8dc;border-radius:8px}
  #megaCatalog .megaGroup .megaCardMore{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#20252b;
    font-weight:800;
  }
  #megaCatalog .megaGroup .megaCardMore:hover,
  #megaCatalog .megaGroup .megaCardMore:focus-visible{color:#20252b;background:#fff8dc}
}

/* Search: one rounded focus ring and suggestions above the sticky category strip. */
#search.smartSearchHost,#mobileSearch.smartSearchHost{
  gap:0;border-radius:24px;isolation:isolate;
}
#search.smartSearchHost:focus-within,#mobileSearch.smartSearchHost:focus-within{
  outline:2px solid #e0b52a;outline-offset:2px;
}
#search.smartSearchHost>input,#mobileSearch.smartSearchHost>input{
  flex:1 1 auto;width:1%;border-radius:24px 0 0 24px!important;
  outline:none;box-shadow:none;
}
#search.smartSearchHost>button,#mobileSearch.smartSearchHost>button{
  flex:0 0 auto;border-radius:0 24px 24px 0!important;
  transform:none!important;box-shadow:none!important;
}
#search.smartSearchHost>button:focus-visible,#mobileSearch.smartSearchHost>button:focus-visible{
  outline:2px solid #896800;outline-offset:-5px;
}
#search .smartSuggest,#mobileSearch .smartSuggest{
  top:calc(100% + 10px);color:#17191c;max-height:min(560px,60dvh);
  overflow:auto;overscroll-behavior:contain;
}
#search .smartSuggest a:hover,#search .smartSuggest a:focus-visible,
#mobileSearch .smartSuggest a:hover,#mobileSearch .smartSuggest a:focus-visible{
  background:#fff7db;
}
@media(min-width:851px){
  body>header:has(#search){z-index:60!important;overflow:visible!important}
}

@media(min-width:851px){body>nav:not(.mobileBottomNav)>a,body>nav:not(.mobileBottomNav)>.buyerNav>summary{font-size:inherit;white-space:nowrap}}
