/* ===== COLLEX v2 shop pages: Extend Art catalogue, shop hub, collector kits =====
   Loaded after /styles.css and /kit.css. Kit tokens and kit classes only. */

[hidden] { display: none !important; }

/* ---- catalogue: page head ---- */
.ea-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* ---- game chips ---- */
.cat-games { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 32px; }
.cat-games .chip { min-height: 44px; }
.chip:disabled { opacity: .4; cursor: default; }
.chip:disabled:hover { color: var(--muted); border-color: var(--line); }
.chip svg { width: 14px; height: 14px; }

/* ---- sticky toolbar ---- */
.ea-toolbar { position: sticky; top: var(--nav-h, 64px); z-index: 20; background: var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ea-toolbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.ea-toolbar__count { margin: 0; white-space: nowrap; }
.ea-toolbar__count .muted { font-weight: 500; }
.ea-toolbar__tools { display: flex; align-items: center; gap: 12px; }
.ea-search { position: relative; flex: 1 1 auto; max-width: 400px; }
.ea-search .input { height: 44px; padding-left: 40px; padding-right: 44px; font-size: 14px; }
.ea-search__icon { position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.ea-search__clear { position: absolute; right: 0; top: 0; width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer; }
.ea-search__clear:hover { color: var(--strong); }
.ea-search__clear svg { width: 16px; height: 16px; }
.cat-sort { display: flex; align-items: center; gap: 12px; }
.cat-sort .select { width: 160px; height: 44px; }
.cat-filters-btn { display: none; }
.input:focus-visible, .select:focus-visible, .btn:focus-visible, .chip:focus-visible,
.check input:focus-visible, .ea-search__clear:focus-visible, .tile:focus-visible, .crumb a:focus-visible {
  outline: 2px solid #fff; outline-offset: 3px; }
.ea-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; }

/* ---- rail + grid ---- */
.cat-body { padding-top: 40px; padding-bottom: 96px; }
.cat-facets { position: sticky; top: calc(var(--nav-h, 64px) + 88px); }
.cat-facets__head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; min-height: 44px; }
.cat-facets__title { margin: 0; }
.cat-results { min-width: 0; }
.ea-grid { row-gap: 40px; }
.ea-grid > .catalogue-skel { aspect-ratio: 3 / 5; }
.ea-grid .tile__media { aspect-ratio: 3 / 5; }
.ea-grid .tile__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-grid .tile:hover .tile__name { color: var(--strong); }
.cat-order { grid-column: span 2; padding: 40px; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 16px; }
.cat-order .t-small { max-width: 36ch; }
.cat-more { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 64px; }
.gallery__empty { padding: 64px 16px; }

/* ---- legend cross-sell (riftbound) sits in the wrap ---- */
.lo-xsell { padding: 0 0 24px; }

/* ---- mobile ---- */
@media (max-width: 900px) {
  .ea-head { gap: 16px; }
  .cat-games { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-right: -20px; padding-right: 20px; padding-bottom: 20px; }
  .cat-games::-webkit-scrollbar { display: none; }
  .cat-games .chip { flex: none; scroll-snap-align: start; }
  .ea-toolbar { position: static; }
  .ea-toolbar__in { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; min-height: 64px; }
  .ea-toolbar__count { order: 1; }
  .ea-toolbar__tools { order: 2; margin-left: auto; }
  .ea-search { order: 3; flex: 1 0 100%; max-width: none; }
  .cat-filters-btn { display: inline-flex; min-height: 44px; }
  .cat-sort .t-label { display: none; }
  .cat-sort .select { width: 120px; }
  .cat-body { padding-top: 24px; padding-bottom: 64px; }
  .ea-grid { row-gap: 32px; }
  .cat-order { padding: 24px; gap: 12px; }
  .cat-more { padding-top: 40px; }
}

/* ---- shop hub ---- */
.shop-hub__lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 56ch; margin: 0; padding: 0; }
.ea-lab, .ms-lab, .lo-lab { padding-top: 64px; padding-bottom: 0; }
.ea-lab__container, .ms-lab__container, .lo-lab__container { width: 100%; max-width: 1376px; margin: 0 auto; padding: 0 48px; }
.ea-lab .sec-head, .ms-lab .sec-head, .lo-lab .sec-head { margin-bottom: 32px; }
.shop-acc__tile { margin-bottom: 96px; }
@media (max-width: 900px) {
  .shop-hub__lede { font-size: 16px; }
  .ea-lab, .ms-lab, .lo-lab { padding-top: 48px; }
  .ea-lab__container, .ms-lab__container, .lo-lab__container { padding: 0 20px; }
  .shop-acc__tile { margin-bottom: 64px; }
}

/* ---- collector kits ---- */
.ea-kits { padding-bottom: 96px; }
.ea-kits__list { list-style: none; margin: 0 0 40px; padding: 0; }
.ea-kits__item { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.ea-kits__item .t-h3 { margin: 0; }
.ea-kits__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .ea-kits { padding-bottom: 64px; } }
