/**
 * Product catalog — shop-like single + archives
 */

.hpq--catalog .hpq-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  opacity: 0.92;
}

.hpq--catalog .hpq-crumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hpq-cat-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--hpq-white);
  border: 1px solid var(--hpq-border);
  border-radius: var(--hpq-radius);
}

.hpq-cat-filters__row,
.hpq-cat-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.hpq-cat-children {
  margin-bottom: 1.25rem;
}

.hpq-cat-filters__label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hpq-teal-deep);
  margin-inline-end: 0.35rem;
}

.hpq-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--hpq-border);
  background: var(--hpq-bg);
  color: var(--hpq-ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.hpq-cat-chip:hover,
.hpq-cat-chip:focus-visible,
.hpq-cat-chip.is-active {
  border-color: var(--hpq-teal);
  background: rgba(84, 162, 158, 0.12);
  color: var(--hpq-teal-deep);
}

.hpq-cat-chip__count {
  font-size: 0.75rem;
  opacity: 0.75;
}

.hpq-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
}

.hpq-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--hpq-white);
  border: 1px solid var(--hpq-border);
  border-radius: var(--hpq-radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.05);
}

.hpq-cat-card__link {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}

.hpq-cat-card__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.hpq-cat-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--hpq-ink);
}

.hpq-cat-card__meta {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--hpq-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}

.hpq-cat-card__meta a {
  color: var(--hpq-teal-deep);
}

.hpq-cat-card__excerpt {
  margin: 0.65rem 0 0.9rem;
  color: var(--hpq-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
}

.hpq-cat-card__cta {
  align-self: flex-start;
  font-weight: 700;
  color: var(--hpq-teal-deep);
  text-decoration: none;
}

.hpq-cat-card__cta:hover,
.hpq-cat-card__cta:focus-visible {
  text-decoration: underline;
}

.hpq-cat-pager {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Theme CSS may be omitted on catalog; hide WP pagination heading. */
.hpq-section .hpq-cat-pager .screen-reader-text,
.hpq-cat-pager .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.hpq-cat-pager .navigation.pagination,
.hpq-cat-pager .pagination,
.hpq-cat-pager .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: 100%;
}

.hpq-cat-pager a.page-numbers,
.hpq-cat-pager span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--hpq-ink);
  background: var(--hpq-white);
  border: 1px solid var(--hpq-border);
  border-radius: 8px;
}

.hpq-cat-pager a.page-numbers:hover,
.hpq-cat-pager a.page-numbers:focus-visible {
  border-color: var(--hpq-teal);
  color: var(--hpq-teal-deep);
}

.hpq-cat-pager span.page-numbers.current {
  background: var(--hpq-teal-deep);
  border-color: var(--hpq-teal-deep);
  color: #fff;
}

.hpq-cat-empty {
  color: var(--hpq-muted);
}

.hpq-product-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.hpq-product-path {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hpq-border);
  border-radius: var(--hpq-radius);
  background: var(--hpq-white);
  color: inherit;
  text-decoration: none;
}

.hpq-product-path span {
  font-size: 0.8rem;
  color: var(--hpq-muted);
}

.hpq-product-path strong {
  font-size: 0.98rem;
  color: var(--hpq-teal-deep);
}

.hpq-product-specs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.hpq-product-specs li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hpq-border);
  font-size: 0.92rem;
}

.hpq-product-specs span {
  color: var(--hpq-muted);
}

.hpq-product-copy {
  font-size: 1.02rem;
}

.hpq-product-copy h2 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.25rem;
}

.hpq-product-sizes {
  margin-top: 1.75rem;
}

.hpq-product-related {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hpq-product-paths {
    grid-template-columns: 1fr;
  }
}
