/* Branding is enabled only above 1024 CSS pixels, including browser zoom.
   Keep the central 1000px opening aligned with the 2000x1400 creative.
   Keep this size on wider screens as well. */
.branding-link { display: none; }
@media (min-width: 1025px) {
  .site-shell { max-width: 1000px; position: relative; z-index: 1; }
  /* The page sits above this link; only the surrounding branding is clickable. */
  .branding-link { display: block; position: fixed; inset: 0; z-index: 0; }
  .branding-link:focus-visible { outline: 3px solid #c3002d; outline-offset: -4px; }
  .side-label {
    display: flex;
    width: max(0px, calc((100% - 1000px) / 2));
    max-width: 180px;
    padding-inline: 0;
    overflow: hidden;
    align-items: center;
  }
  .side-label.left { left: max(0px, calc(50% - 700px)); }
  .side-label.right { right: max(0px, calc(50% - 700px)); }
  .side-label > * { flex-shrink: 0; }
  body.has-branding {
    background: #dedede;
    isolation: isolate;
    padding-top: 100px;
  }
  body.has-branding::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #dedede url('./Branding_2026-1602e1783606.png') center top / 2000px auto no-repeat;
  }
  .has-branding .side-label { display: none; }
}
@media (max-width: 1024px) {
  .side-label { display: none; }
  body.has-branding { background: white; padding-top: 0; }
  .site-shell { max-width: 100%; }
}

/* Match the fixed filter bar to the narrower page, not the old 1280px shell. */
.reference-hero__button { width: max-content; white-space: nowrap; }
.reference-hero__button > span { flex-shrink: 0; }
.home-products > .recipient-tabs { width: min(100%, 1000px); }
@media (min-width: 761px) {
  .catalog-results,
  .gift-grid:has(> .gift-card--compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .category-tile {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: auto;
    min-height: 120px;
  }
  .category-tile__caption { top: auto; bottom: 12px; right: 12px; gap: 8px; }
  .category-tile__label { font-size: 26px; }
  .category-tile__arrow { width: 28px; height: 28px; flex-shrink: 0; font-size: 20px; }
  .home-products > .recipient-tabs.is-stuck { padding-inline: 32px; gap: 10px; }
  .home-products .recipient-tabs button.recipient-card { padding: 10px; gap: 8px; }
  .recipient-card__label { font-size: 20px; min-width: 0; }
}

/* Center incomplete rows of E cards while keeping equal card widths. */
.content-module__products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.content-module__products > .gift-card {
  flex: 0 1 calc((100% - 16px) / 2);
}
@media (max-width: 760px) {
  .content-module__products > .gift-card { flex-basis: 100%; }
}
