/* Server-rendered category pages; shared catalog styling stays in products.css. */
.ssr-category-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.ssr-category-page main { flex: 1; }
.ssr-category-page .products-layout--full { grid-template-columns: minmax(0, 1fr); }
.ssr-category-page .filter-pill,
.ssr-category-page .products-category-link,
.ssr-category-page .products-category-group__summary,
.ssr-category-page .catalog-pagination__btn { text-decoration: none; }
.ssr-category-page .products-category-link { display: block; box-sizing: border-box; }
.ssr-category-page .catalog-card__media { aspect-ratio: 4 / 3; }
.ssr-category-page .catalog-card__media > a { display: block; height: 100%; }
.ssr-category-page #product-catalog-grid .catalog-card__media img { opacity: 1; object-fit: cover; }
.ssr-category-page .catalog-card__body h3 a { color: inherit; text-decoration: none; }
.ssr-category-page a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.category-result-count { margin: 0 0 1rem; color: var(--color-muted); }
.category-pagination-gap { padding: 0.5rem; }
.category-description,
.category-faqs {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid rgba(44, 62, 80, 0.1);
  border-radius: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.category-description > div > :first-child { margin-top: 0; }
.category-description img { max-width: 100%; height: auto; }
.category-description > div { overflow-x: auto; }
.category-faqs h2 { margin-top: 0; }
.category-faqs details + details { border-top: 1px solid #e8ecef; }
.category-faqs summary { padding: 1rem 0; cursor: pointer; font-weight: 600; }
.category-faqs details p { margin-top: 0; }
.category-inquiry { margin-top: 2rem; padding: 1.5rem; text-align: center; }
.category-inquiry p { font-weight: 600; }

/* Comfortable, centered pagination for both pointer and touch navigation. */
.ssr-category-page .catalog-pagination {
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(44, 62, 80, 0.1);
}
.ssr-category-page .catalog-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border: 1px solid #dce2e8;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(35, 49, 66, 0.03);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.ssr-category-page .catalog-pagination__btn:hover {
  background: #eaf0f6;
  border-color: #a9b8c9;
  color: #233142;
}
.ssr-category-page .catalog-pagination__btn.is-active {
  background: #233142;
  border-color: #233142;
  color: #fff;
  box-shadow: 0 3px 8px rgba(35, 49, 66, 0.16);
}
.ssr-category-page .catalog-pagination__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.ssr-category-page .category-pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 44px;
  padding: 0;
  color: var(--color-muted);
}
@media (max-width: 599px) {
  .ssr-category-page .catalog-pagination { gap: 0.375rem; margin-top: 1.5rem; }
  .ssr-category-page .catalog-pagination__btn { padding: 0 0.7rem; }
}
