/* One content boundary for Popular and the existing map, at every viewport. */
.home-showcase-page .popular__inner,
.home-showcase-page .location-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin-inline: auto;
  padding-left: max(var(--container-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-gutter), env(safe-area-inset-right, 0px));
}
.home-showcase-page .home-showcase { margin-top: var(--home-showcase-offset, 0px); padding-top: calc(.75rem + 5px); padding-bottom: clamp(.45rem, 1vw, .8rem); }
.home-showcase-page .showcase-frame {
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  max-height: calc(100vh - var(--home-measured-header-height, var(--header-height)) - 24px);
  max-height: calc(100svh - var(--home-measured-header-height, var(--header-height)) - 24px);
}
.home-showcase-page .home-popular { padding-top: clamp(.55rem, 1.2vw, .9rem); padding-bottom: clamp(1.2rem, 2.5vw, 2rem); }
.home-showcase-page .home-location { padding-top: 0; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.home-showcase-page .location-heading { margin-bottom: 1rem; }
.popular__controls button {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  color: #33383d;
  background: rgba(169, 175, 182, .36);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 14px rgba(40,45,50,.10);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}
.popular__controls button[hidden] { display: none; }
.popular__controls button svg { display: block; width: 20px; height: 20px; pointer-events: none; }
.popular__controls button:hover { background: rgba(150,158,166,.5); }
.popular__controls button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
@media(max-width:48rem) {
  .home-showcase-page .home-showcase { padding-top: calc(.6rem + 5px); padding-bottom: .5rem; }
  .home-showcase-page .home-popular { padding-top: .55rem; padding-bottom: 1.3rem; }
}


/* v1.9.79 — keep Popular cards on the same 3:4 mobile media geometry as Products. */
@media (max-width: 48rem) {
  .home-showcase-page .popular-grid .product-card__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }
  .home-showcase-page .popular-grid .product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-showcase-page .popular__controls button {
    width: 2.15rem;
    height: 2.15rem;
  }
  .home-showcase-page .popular__controls button svg {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 48.001rem) {
  .home-showcase-page .popular__controls button {
    width: 2.4rem;
    height: 2.4rem;
  }
  .home-showcase-page .popular__controls button svg {
    width: 18px;
    height: 18px;
  }
}


/* v1.9.105 — mobile only: showcase outer edges match Popular grid/content edges. */
@media (max-width: 48rem) {
  .home-showcase-page .home-showcase__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-left: max(var(--container-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--container-gutter), env(safe-area-inset-right, 0px));
  }
}
/* Public home: showcase and Popular share the exact same outer content boundary. */
.home-showcase-page .home-showcase__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin-inline: auto;
  padding-left: max(var(--container-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-gutter), env(safe-area-inset-right, 0px));
}
/* Public home Popular heading: two pixels smaller while retaining responsive sizing. */
.home-showcase-page .popular__header h2 {
  font-size: calc(clamp(1.8rem, 2.4vw, 2.7rem) - 10px);
}

/* Public home Popular title stays left-aligned while controls keep their own grid column. */
.home-showcase-page .popular__header {
  justify-items: stretch;
  text-align: left;
  transform: none;
}
.home-showcase-page .popular__header > div:first-child { min-width: 0; text-align: left; }
.home-showcase-page .popular__controls { position: static; justify-self: end; }
