/* Homepage presentation: existing banner, menus and brand assets are shared. */
.home-gift-guide:has(> .store-market) {
  --store-market-height: 0px;
  padding-top: 0;
}

.home-gift-guide > .store-market {
  display: none;
}

.home-gift-guide .collage-header,
.home-gift-guide .collage-header.is-scrolled {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-gift-guide .collage-header.is-scrolled {
  background: rgba(17, 23, 43, .68);
  border-bottom-color: #ffffff20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-gift-guide.collage-home:has(> .store-market) .collage-header {
  top: var(--store-market-height);
}

.home-gift-guide :is(#piezas, #ocasiones) {
  scroll-margin-top: var(--store-market-height, 0px);
}

.home-gift-guide .collage-header :is(.collage-logo, .collage-mobile-logo, .collage-tool, .collage-occasions a),
.home-gift-guide .collage-header .collage-mobile-menu-slot .neb-menu-toggle {
  color: #fff;
}

.home-gift-guide .collage-header .collage-occasions a {
  text-shadow: 0 1px 10px #0006;
}

.home-gift-guide .collage-header .collage-language-slot .neb-language-toggle,
.home-gift-guide .collage-header .collage-language-slot .neb-language-toggle:hover {
  color: #fff !important;
}

.home-gift-guide .collage-header .gift-brand-image {
  filter: none;
}

.home-gift-guide .collage-header .collage-mobile-menu-slot .neb-menu-toggle span {
  background: currentColor;
}

.home-gift-guide .collage-header :focus-visible {
  outline-color: #fff;
}

/* Keep the stellar mobile header sticky when the regional strip is absent. */
@media screen and (max-width: 900px) {
  @supports (overflow-x: clip) {
    html:has(> body.wiz[data-editor-appearance="unified"]):not(:has(> body > .store-market)),
    body.wiz[data-editor-appearance="unified"]:not(:has(> .store-market)) {
      overflow-x: clip !important;
    }
  }
}

/* Three footer rows: official brand, navigation, then the developer credit. */
.home-gift-guide .gift-footer[data-home-footer="centered"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 96px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.home-gift-guide .gift-footer[data-home-footer="centered"] .gift-footer-brand {
  align-self: center;
  justify-self: center;
}

.home-gift-guide .gift-footer[data-home-footer="centered"] .gift-footer-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: 100%;
}

.home-gift-guide .gift-footer[data-home-footer="centered"] .gift-footer-navigation a {
  justify-content: center;
  min-height: 32px;
  font: 400 10px/1.6 var(--sans);
  text-align: center;
}

.home-gift-guide .gift-footer[data-home-footer="centered"] .foot-credit {
  align-self: center;
  justify-content: center;
  min-height: 32px;
  margin: 0;
  font: 400 10px/1.6 var(--sans);
}

@media (max-width: 760px) {
  .home-gift-guide .gift-footer[data-home-footer="centered"] .gift-footer-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    max-width: 560px;
  }

  .home-gift-guide .gift-footer[data-home-footer="centered"] .gift-footer-navigation a {
    min-height: 40px;
  }
}
