/* Progressive catalogue navigation adds only a loading affordance.
   Existing product tile grids, buttons, form styles and mobile breakpoints
   are intentionally unchanged. */
.catalog-progressive-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[data-progressive-list][aria-busy="true"] .storefront-game-grid {
  opacity: .62;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-progressive-list] .storefront-game-grid {
    transition: opacity .16s ease;
  }
}

/* The link is a progressive enhancement: native page links remain visible,
   and the load-more affordance is only revealed by catalog-progressive.js. */
.catalog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 22px 0 12px;
}
.catalog-load-more[hidden] { display: none !important; }
.catalog-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid #3886fa;
  border-radius: 10px;
  background: #176bf2;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.catalog-load-more:hover,
.catalog-load-more:focus-visible {
  background: #3484ff;
  border-color: #78b2ff;
  color: #fff;
}
.catalog-load-more:focus-visible {
  border-color: #97c7ff;
}
.catalog-load-more[aria-busy="true"] {
  opacity: .7;
  pointer-events: none;
  cursor: progress;
}
@media (max-width: 420px) {
  
  .catalog-load-more { width: 100%; }
}

/* Stage 6C1: API suggestions are intentionally separate from full SSR tiles.
   Normal flow avoids overlays obscuring the next fields on mobile. */
.catalog-filters .catalog-live-suggestions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: -4px 0 4px;
  padding: 5px;
  border: 1px solid rgba(141, 169, 212, .25);
  border-radius: 10px;
  background: #101a2a;
  box-shadow: none;
}
.catalog-live-suggestions[hidden] { display: none !important; }
.catalog-live-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  color: #eaf1ff;
  font-size: 13px;
  text-decoration: none;
}
.catalog-live-suggestion:hover,
.catalog-live-suggestion:focus-visible {
  background: rgba(84, 137, 234, .16);
  color: #fff;
}
.catalog-live-suggestion:focus-visible {
  border-color: #79aeff;
}
.catalog-live-suggestion-title {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-live-suggestion-price {
  flex: 0 0 auto;
  font-size: 12px;
  color: #a9c5ff;
  white-space: nowrap;
}
.catalog-live-suggestions-note {
  margin: 0;
  padding: 10px;
  color: #c1ccde;
  font-size: 12px;
  line-height: 1.5;
}



/* CATALOG-INFINITE-SLOW-NET-01:
   The tiny nonce-authorized head bootstrap marks a listing while deferred
   JS loads. The load-event fallback restores SSR paging if JS is unavailable;
   no-JS never adds this class. Prevent the slow-connection pager flash. */
html.catalog-paging-pending [data-progressive-list] :is(.premium-collection-pagination, .pagination-nav.simple-pagination) {
  display: none !important;
}
/* Keep SSR Prev/Next links in markup for no-JS and search crawlers.
   Once the IntersectionObserver enhancement activates, pagination remains
   hidden during loading, HTTP errors, manual retries and completion. */
[data-progressive-list].catalog-infinite-enabled :is(.premium-collection-pagination, .pagination-nav.simple-pagination) {
  display: none !important;
}
[data-progressive-list].catalog-infinite-enabled .catalog-load-more {
  display: none !important;
}
[data-progressive-list].catalog-infinite-enabled .catalog-load-more-wrap {
  min-height: 44px;
  margin: 18px 0 14px;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}
.catalog-infinite-feedback[hidden] {
  display: none !important;
}
.catalog-infinite-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  color: #b9cce6;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.catalog-infinite-feedback[data-state="loading"]::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid #46658c;
  border-top-color: #8cbbff;
  border-radius: 10px;
  animation: catalog-infinite-spin .8s linear infinite;
}
@keyframes catalog-infinite-spin {
  to { transform: rotate(360deg); }
}
[data-progressive-list].catalog-infinite-error .catalog-load-more {
  display: inline-flex !important;
  min-height: 44px;
  background: #15355b;
  border-color: #608fcb;
}
.catalog-infinite-feedback[data-state="error"] { color: #ffccab; }
[data-progressive-list].catalog-infinite-paused .catalog-load-more {
  display: inline-flex !important;
  min-height: 44px;
  background: #15355b;
  border-color: #608fcb;
}
.catalog-infinite-feedback[data-state="paused"] { color: #c3d9f9; }
@media (prefers-reduced-motion: reduce) {
  .catalog-infinite-feedback[data-state="loading"]::before {
    animation: none;
  }
}


/* UIUX-GAME-INFINITE-05: collapse the loading sentinel after the final batch. */
[data-progressive-list].catalog-infinite-enabled.catalog-infinite-complete .catalog-load-more-wrap {
  display: none !important;
}
