/* ─── CATALOG — minimal, спокойный зелёный ─────────────────────────────────── */
:root {
  --catalog-accent: #3d8f63;
  --catalog-accent-text: #fff;
  --catalog-bg: #f4f4f4;
  --catalog-surface: #fff;
  --catalog-muted: #888;
}

.catalog-page-outer {
  background: var(--catalog-bg);
  width: 100%;
}

.catalog-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 15px 72px;
}

.catalog-page-head {
  margin-bottom: 28px;
}

.catalog-page-head h1 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 991px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────── */
.catalog-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 991px) {
  .catalog-sidebar {
    position: static;
  }
}

.catalog-sidebar-block {
  background: var(--catalog-surface);
  border-radius: 20px;
  padding: 20px;
}

.catalog-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

.catalog-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-cat-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  border-radius: 12px;
  line-height: 1.35;
}

.catalog-cat-link.is-child {
  padding-left: 22px;
  font-size: 13px;
  color: #666;
}

.catalog-cat-link:hover {
  background: #f5f5f5;
}

.catalog-cat-link.is-active {
  background: #f0f0f0;
  color: #111;
  font-weight: 600;
}

.catalog-filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.catalog-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--catalog-accent);
}

.catalog-reset-filters {
  font-size: 13px;
  color: var(--catalog-muted);
  margin-top: 2px;
}

.catalog-reset-filters:hover {
  color: #111;
}

/* ─── TOOLBAR ─────────────────────────────────────────────────────────────── */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.catalog-count {
  font-size: 14px;
  color: var(--catalog-muted);
}

.catalog-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort-select {
  appearance: none;
  background: var(--catalog-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: none;
  border-radius: 14px;
  padding: 10px 36px 10px 16px;
  font-size: 13px;
  font-family: inherit;
  color: #333;
  cursor: pointer;
}

.catalog-sort-select:focus {
  outline: 2px solid var(--catalog-accent);
  outline-offset: 2px;
}

.catalog-view-toggle {
  display: flex;
  background: var(--catalog-surface);
  border-radius: 14px;
  padding: 4px;
  gap: 2px;
}

.catalog-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  color: #bbb;
  background: transparent;
  border-radius: 10px;
}

.catalog-view-btn.is-active {
  color: #111;
  background: #f0f0f0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── EMPTY ───────────────────────────────────────────────────────────────── */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--catalog-muted);
  background: var(--catalog-surface);
  border-radius: 20px;
}

.catalog-empty p {
  margin-bottom: 16px;
}

.catalog-empty .btn-primary {
  display: inline-flex;
  background: var(--catalog-accent);
  color: var(--catalog-accent-text);
}

.catalog-empty .btn-primary:hover {
  filter: brightness(0.95);
}
