/* Sticky footer: on short pages (e.g. order success) pin footer to viewport bottom */
html {
  height: 100%;
}
html body {
  min-height: 100%;
  min-height: 100dvh;
}
html body .page-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex !important;
  flex-direction: column !important;
}
/* Main content grows; footer stays at bottom */
html body .page-wrapper > .page-main,
html body .page-wrapper > main.page-main,
html body .page-main {
  flex: 1 0 auto !important;
}
html body .page-wrapper > .page-footer,
html body .page-footer {
  margin-top: auto !important;
  flex: 0 0 auto !important;
}
/* Avoid Porto absolute/extra gaps pushing footer mid-page */
html body.checkout-onepage-success .page-main,
html body.checkout-onepage-success .columns,
html body.checkout-onepage-success .column.main {
  min-height: 0 !important;
}

/* === gzs-fix46-home-section-gap === */
/* Gap after bestsellers grid before "Iz promo materiala" — beat fix35 margin:0 !important */
/* Half of previous strong gap (~96+48 → ~48+24 via CMS; CSS as soft backup) */
html body .gzs-featured .topseller-section.gzs-home-best,
html body .gzs-featured .gzs-home-best,
html body .gzs-featured .topseller-section.gzs-home-promo,
html body .gzs-featured .gzs-home-promo {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
html body .gzs-featured .gzs-home-best + .gzs-section__head,
html body .gzs-featured .topseller-section.gzs-home-best + .gzs-section__head,
html body .gzs-featured .gzs-home-promo + .gzs-home-promo-gap + .gzs-section__head,
html body .gzs-featured .gzs-section__head[style*="margin-top"],
html body .gzs-container.gzs-featured > .gzs-section__head[style*="margin-top"] {
  margin: 48px 0 16px 0 !important;
  padding-top: 4px !important;
}
html body .gzs-featured .gzs-home-promo-gap {
  height: 24px !important;
}
@media (max-width: 767px) {
  html body .gzs-featured .gzs-home-best + .gzs-section__head,
  html body .gzs-featured .topseller-section.gzs-home-best + .gzs-section__head,
  html body .gzs-featured .gzs-section__head[style*="margin-top"],
  html body .gzs-container.gzs-featured > .gzs-section__head[style*="margin-top"] {
    margin: 36px 0 16px 0 !important;
    padding-top: 4px !important;
  }
  html body .gzs-featured .gzs-home-promo-gap {
    height: 16px !important;
  }
}

