/* ==========================================================================
   Category / catalogue page
   ========================================================================== */

/* ---------- Category hero banner ---------- */
.cathero {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 244px;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #14100d;
}

.cathero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: -2;
}

.cathero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(5, 4, 4, 0.9) 0%,
    rgba(5, 4, 4, 0.74) 30%,
    rgba(5, 4, 4, 0.3) 58%,
    rgba(5, 4, 4, 0) 80%);
}

.cathero__body {
  padding: 26px 40px 26px 50px;
  color: #fff;
  max-width: 620px;
}

.cathero__kicker {
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc95c;
  margin-bottom: 8px;
}

.cathero__title {
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.cathero__text {
  font-size: var(--fs-15);
  color: #e6e3df;
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: 20px;
}

/* ---------- Sub-category circle strip ---------- */
.subcats {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  padding: 24px 0 22px;
}

.subcats .circle__ring { font-size: 27px; }

/* ---------- Catalogue layout ---------- */
.catalog {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 8px;
}

/* ---------- Filter sidebar ---------- */
.filters {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  position: sticky;
  top: 96px;
}

.filters__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  font-size: var(--fs-14);
  font-weight: 600;
}

.filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.filters__head h2 {
  font-size: var(--fs-16);
  font-weight: 700;
}

.filters__clear {
  font-size: var(--fs-12);
  color: var(--info-blue);
}

.filters__clear:hover { text-decoration: underline; }

.fgroup {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.fgroup:last-child { border-bottom: 0; }

.fgroup__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-14);
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--text-primary);
}

.fgroup__head svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
  color: var(--text-muted);
}

.fgroup.is-collapsed .fgroup__head svg { transform: rotate(-90deg); }
.fgroup.is-collapsed .fgroup__body { display: none; }

.fgroup__body { display: grid; gap: 1px; }

.fgroup__more {
  font-size: var(--fs-12);
  color: var(--info-blue);
  margin-top: 8px;
  display: inline-block;
}

.fgroup__more:hover { text-decoration: underline; }

/* price range */
.range {
  padding-top: 2px;
}

.range__label {
  font-size: var(--fs-13);
  color: var(--text-body);
  margin-bottom: 12px;
}

.range__track {
  position: relative;
  height: 22px;
  margin-bottom: 12px;
}

.range__rail,
.range__fill {
  position: absolute;
  top: 9px;
  height: 4px;
  border-radius: var(--r-pill);
}

.range__rail {
  left: 0;
  right: 0;
  background: var(--line-strong);
}

.range__fill { background: var(--brand-yellow); }

.range__track input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: none;
  pointer-events: none;
}

.range__track input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: var(--r-pill);
  background: var(--brand-yellow);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
  cursor: grab;
}

.range__track input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: var(--r-pill);
  background: var(--brand-yellow);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
}

.range__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.range__field {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 5px 8px;
  font-size: var(--fs-12);
  color: var(--text-muted);
}

.range__field input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  font-size: var(--fs-12);
  color: var(--text-primary);
  background: none;
}

.range__field input:focus { outline: none; }

/* rating rows */
.frating { display: grid; gap: 2px; }

.frating .check .stars svg { width: 14px; height: 14px; }

/* ---------- Catalogue header ---------- */
.catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: 16px;
}

.catalog__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.catalog__sub {
  font-size: var(--fs-13);
  color: var(--text-muted);
  margin-top: 3px;
}

.catalog__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-13);
  color: var(--text-muted);
  white-space: nowrap;
}

.sortby {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sortby select {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface)
    no-repeat right 9px center/11px 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  padding: 7px 30px 7px 11px;
  font-size: var(--fs-13);
  color: var(--text-primary);
  cursor: pointer;
}
