/* Blank white gaps on mobile:
   homepage sections used content-visibility:auto with a fixed
   contain-intrinsic-size of 900px. Sections whose real height is far
   from 900px rendered as empty space on reload / after a tap.
   Product cards keep their own content-visibility (320px matches). */
.am-section,
.am-section--alt,
.am-recent {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}

/* Fixed bottom app bar was covering the last ~59px of the footer.
   --am-bn-h is the theme's own bar-height variable (0 on desktop). */
body {
  padding-bottom: var(--am-bn-h, 0px) !important;
}

/* Product cards everywhere (sliders, ad rails, related) also used
   content-visibility:auto with a guessed height, which showed as blank
   boxes and shifting bars while scrolling - worst inside the PWA. */
html body .am-pcard,
html body .amad-item,
html body .amad-item .am-pcard,
html body .am-productgrid > .am-pcard,
html body .shx-rail .am-pcard {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}
