/* Каталог */
.catalog-hero {
  background: var(--grad-hero);
  padding: 56px 0 48px;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.catalog-hero::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: var(--pink-200);
  border-radius: 50%;
  top: -150px;
  right: -100px;
  filter: blur(60px);
  opacity: 0.6;
}
.catalog-hero__inner { position: relative; }
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumbs a { transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--pink-500); }
.breadcrumbs span { color: var(--ink-300); }
.breadcrumbs strong { color: var(--ink-900); font-weight: 700; }

.catalog-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.catalog-meta { color: var(--ink-500); font-size: 16px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.filters {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: 24px;
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.filters__group { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ink-100); }
.filters__group:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filters__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 14px;
}
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-700);
  transition: all var(--t-fast);
}
.filter-list label:hover { background: var(--pink-50); color: var(--pink-600); }
.filter-list input[type="radio"], .filter-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pink-500);
}
.filter-list label.checked, .filter-list label:has(input:checked) {
  background: var(--ink-900);
  color: var(--white);
}
.filter-list label .count {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.65;
  font-weight: 600;
}
.filter-list label.checked .count { opacity: 0.7; }

.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--ink-100);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  width: 0;
}
.price-inputs input:focus { border-color: var(--pink-300); }

/* Catalog main */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
}
.catalog-toolbar__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search-input {
  background: var(--ink-50);
  border: 2px solid transparent;
  padding: 10px 16px 10px 38px;
  border-radius: var(--r-full);
  font-size: 14px;
  width: 280px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7da3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
}
.search-input:focus { background-color: var(--white); border-color: var(--pink-300); }
.sort-select {
  background: var(--ink-50);
  border: 2px solid transparent;
  padding: 10px 38px 10px 16px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7da3' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.catalog-toolbar__right { color: var(--ink-500); font-size: 14px; }
.catalog-toolbar__right strong { color: var(--ink-900); }

.mobile-filter-btn { display: none; }

@media (max-width: 1000px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: 320px;
    max-width: 100%;
    border-radius: 0;
    z-index: 200;
    transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease);
    max-height: 100vh;
  }
  .filters.open { transform: translateX(0); box-shadow: -16px 0 48px rgba(0,0,0,0.2); }
  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ink-900);
    color: var(--white);
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 14px;
  }
  .filters__close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink-100);
    margin-bottom: 16px;
  }
  .search-input { width: 100%; max-width: 240px; }
}
.filters__close { display: none; }
@media (max-width: 1000px) { .filters__close { display: flex; } }
@media (max-width: 540px) {
  .search-input { width: 100%; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .catalog-toolbar__left { flex-direction: column; }
}
