/* Products listing page. Route: /products/ — 网站规划.md §6.3 (lines 157–170).
   Only page-level adjustments live here: the shared classes stay in style.css. */

/* Filter bar: four selects that share the width they have, and stack below
   660px so a 375px screen never scrolls sideways (网站规划.md §19). */
.products-filter .filter-group { flex: 1 1 11rem; }

.products-filter select {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.products-filter .button { cursor: pointer; }

@media (max-width: 659px) {
  .products-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
  }

  .products-filter .filter-bar__actions { margin-left: 0; }
  .products-filter .button { justify-content: center; }
}

/* The count when it stands outside the bar, because no dimension has terms yet. */
.products-count { margin: 0 0 2.25rem; }

/* Cards: a little more air between rows than the shared grid default. */
.products-grid { gap: 3rem 2rem; }

/* Pagination: the shared stylesheet has none, so the page numbers are styled
   here, around the page-numbers markup paginate_links() returns. */
.products-pagination { margin-top: 3.5rem; }

.products-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.products-pagination .page-numbers a,
.products-pagination .page-numbers span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.6em 0.75em;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.products-pagination .page-numbers a:hover { border-color: var(--ink); }

.products-pagination .page-numbers .current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.products-pagination .page-numbers .dots {
  border-color: transparent;
  background: transparent;
  color: var(--graphite);
}

@media (max-width: 659px) {
  .products-pagination .page-numbers { gap: 0.35rem; }

  .products-pagination .page-numbers a,
  .products-pagination .page-numbers span.page-numbers {
    min-width: 2.4rem;
    padding: 0.5em 0.6em;
  }
}
