/* Shared route geometry. Keep this layer last on every route. */
body:not(.woocommerce-checkout):has(.ds-site-header.is-scrolled) > .wp-site-blocks {
  padding-top: 3.75rem !important;
}

.ds-site-header.is-scrolled .ds-header-inner {
  min-height: 3.75rem !important;
}

/* Keep the About hero attached to the header while the page is scrolled. */
body:has(.ds-about-page) > .wp-site-blocks > header.wp-block-template-part.ds-nav-hidden {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ds-site-footer,
body.blog .ds-site-footer,
body.ds-collections-page .ds-site-footer,
body:has(.ds-about-page) .ds-site-footer {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  transform: none !important;
}

.ds-site-footer::before,
body.home .ds-site-footer::before,
body.blog .ds-site-footer::before,
body:has(.ds-about-page) .ds-site-footer::before {
  top: 0 !important;
  display: block !important;
  content: "" !important;
}

@media (min-width: 1025px) {
  .ds-site-footer,
  body.blog .ds-site-footer,
  body.ds-collections-page .ds-site-footer,
  body:has(.ds-about-page) .ds-site-footer {
    padding-top: 2.5rem !important;
  }

  .ds-footer-grid {
    transform: none !important;
  }

  .ds-footer-bottom {
    margin-top: 2.75rem !important;
  }
}

@media (min-width: 550px) and (max-width: 1024px) {
  .ds-site-footer,
  body.blog .ds-site-footer,
  body.ds-collections-page .ds-site-footer,
  body:has(.ds-about-page) .ds-site-footer {
    padding-top: 3.75rem !important;
  }
}

@media (max-width: 549px) {
  .ds-site-footer,
  body.blog .ds-site-footer,
  body.ds-collections-page .ds-site-footer,
  body:has(.ds-about-page) .ds-site-footer {
    padding-top: 3.75rem !important;
  }
}
