/* Header is a normal layout row; only the main/footer frame scrolls. */
html,
body {
  height: 100%;
  overflow: hidden;
  scroll-behavior: auto;
}
body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 0;
  --scroll-header-height: 100px;
}
#page-scroll {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: auto;
  outline: none;
  scroll-padding-top: 24px;
}
#page-scroll>.scroll-content {
  min-height: 100%;
}
body.smooth-ready #page-scroll { overflow: hidden; }
body.home-centered #page-scroll { scroll-padding-top: calc(var(--scroll-header-height) + 24px); }
#page-scroll>.scrollbar-track-y { z-index: 60; width: 8px; background: #1A1A1A08; }
.scrollbar-thumb { background: #1A1A1A66 !important; border-radius: 4px !important; }
#page-scroll>.scrollbar-track-x { display: none !important; }
.smooth-horizontal { display: block; min-width: 0; overflow: hidden; }
.smooth-horizontal>.scroll-content { display: flex; gap: 10px; width: max-content; padding-bottom: 7px; }
.filter-row.smooth-horizontal>.scroll-content { gap: 20px; }
.smooth-horizontal>.scrollbar-track-y { display: none !important; }
.smooth-horizontal>.scrollbar-track-x { height: 4px; background: #1A1A1A08; }
.smooth-horizontal .scrollbar-thumb-x { height: 4px; }
.smooth-dialog-ready { overflow: hidden; }
.dialog-scroll { height: calc(85svh - 180px); max-height: 650px; min-height: 180px; overflow: auto; }
.dialog-scroll>.scroll-content { padding-right: 15px; }
.dialog-scroll>.scrollbar-track-y { width: 5px; background: #1A1A1A08; }
.dialog-scroll>.scrollbar-track-x { display: none !important; }
body.smooth-ready .mobile-cart-bar { z-index: 45; }
@media(max-width:760px) {
  body { --scroll-header-height: 82px; }
  .filter-row.smooth-horizontal>.scroll-content { gap: 20px; }
  .dialog-scroll { height: calc(85svh - 160px); }
}
@media print {
  html, body { display: block; height: auto; overflow: visible; }
  #page-scroll { position: static; height: auto; overflow: visible; flex: none; }
  #page-scroll>.scroll-content { transform: none !important; }
  .scrollbar-track { display: none !important; }
}
