/* ============================================================
   МОТО ТОП — catalog.css
   Page-specific styles for /gumi/ hub + generated facet pages
   (razmeri / razpolozhenie / prednaznachenie / proizvoditeli).
   Extends site/css/base.css tokens only — never edits base.css.
   ============================================================ */

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
}
.breadcrumb__sep {
  color: var(--muted);
  opacity: 0.6;
}

/* ---------- hub hero / facet page head ---------- */
.catalog-hero .section-head,
.facet-page .section-head {
  margin-bottom: 2rem;
}
.facet-page h1 .mono {
  font-family: var(--font-mono);
  text-transform: none;
}

/* ---------- filter bar ---------- */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
@media (max-width: 980px) {
  .filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-bar__reset {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}
.filter-group label,
.filter-group__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.filter-select {
  width: 100%;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-bar__reset {
  white-space: nowrap;
}

/* ---------- result count / empty state ---------- */
.filter-bar__count {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.filter-bar__count strong {
  color: var(--text);
  font-family: var(--font-mono);
}
.filter-bar__count [data-total] {
  font-family: var(--font-mono);
}
.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 1.5rem;
}
.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ---------- product grid / card ---------- */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
}
.product-card__photo {
  background: var(--paper);
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card__body {
  flex: 1;
}
.product-card__model {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 0.2rem;
}
.product-card__size {
  display: inline-block;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.product-card__size:hover {
  color: var(--accent-2);
}
.product-card__index {
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}
.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.product-card__chips .chip {
  cursor: default;
}
.product-card__brand {
  font-size: 0.85rem;
  margin: 0 0 0.25rem;
}
.product-card__brand a {
  color: var(--muted);
}
.product-card__brand a:hover {
  color: var(--accent);
}

/* ---------- qty stepper + add button ---------- */
.product-card__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper__btn {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: none;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.qty-stepper__btn:hover {
  color: var(--accent);
}
.qty-stepper__input {
  width: 2.6rem;
  height: 2.5rem;
  border: none;
  border-inline: 1px solid var(--line);
  text-align: center;
  background: var(--bg-2);
  font-family: var(--font-mono);
  padding: 0;
  -moz-appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-card__add {
  flex: 1;
  padding-inline: 1rem;
  font-size: 0.88rem;
}
.product-card__add.is-added {
  background: var(--ok);
  border-color: var(--ok);
  color: var(--ink);
}

/* ---------- related facets ---------- */
.related-facets {
  margin-top: var(--space-section);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.related-facets h2 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.related-facets__group {
  margin-bottom: 1.25rem;
}
.related-facets__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.related-facets__all {
  margin-top: 1.5rem;
}
