/* ------------------------------------------------------------------------
   P3 — shop / category / search.

   Almost nothing lives here on purpose: .grid, .card, .sizes-bar, .toolbar,
   .chip, .count, .page-head, .page-title and .empty are all source primitives
   already shipped site-wide in ap-tokens.css. This file carries ONLY the rules
   the catalog route adds on top (source-cdp/app.css 150-151, 876) plus the
   inert pager.

   ⚠️ Loaded AFTER ap-chrome.css, so the base `.search-local { display: none }`
   would otherwise beat ap-chrome's `@media (max-width: 900px) .search-local
   { display: flex }` on source order alone (identical 0,1,0 specificity). The
   mobile rule is therefore repeated at the bottom of this file. That one
   duplicated declaration is deliberate — the alternative is editing a file
   this phase does not own.
   --------------------------------------------------------------------- */

/* Source: app.css:151 — the catalog body sits tight under the page head. */
.catalog { padding-top: 22px; }

/* Source: app.css:150 — the in-page filter is a MOBILE affordance; on desktop
   the sticky header's own search box is the one on screen. */
.search-local { display: none; }
.search-local button[type="submit"] { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* A card hidden by the live filter. Kept out of layout entirely so the grid
   reflows the way the source's replaceChildren() does. */
.grid .card[hidden] { display: none !important; }

/* Long-form category copy (term description). Renders nothing today — the
   source has no category copy and we do not author any. */
.ap-cat-copy { margin-top: 18px; max-width: 760px; }

/* ---------- Pagination ----------
   The source paginates nothing (25 products, all drawn). This is inert at the
   shipped catalog size; it exists so growth cannot silently truncate the grid.
   Styled in the chip language so it cannot look foreign if it ever appears. */
.pager {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  justify-content: center; margin-top: 34px;
}
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: #b8c2d8; letter-spacing: 0.01em;
  font-family: var(--mono);
}
.pager a.page-numbers:hover { border-color: var(--accent); color: #fff; }
.pager .page-numbers.current {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700;
}
.pager .page-numbers.dots { border-color: transparent; background: none; }

/* Repeat of ap-chrome.css:203-204 — see the header note. */
@media (max-width: 900px) {
  .top .search { display: none; }
  .search-local { display: flex; width: 100%; }
}
