.catalog-page {
  background: #ffffff;
}

.catalog-section {
  padding: 30px 0 84px;
}

.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: #8a94a3;
  font-size: 14px;
  line-height: 1.5;
}

.catalog-breadcrumb a {
  color: inherit;
  transition: color 160ms ease;
}

.catalog-breadcrumb a:hover {
  color: #111827;
}

.catalog-title {
  margin: 0 0 34px;
  color: #06122b;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 110px;
  min-width: 0;
}

.catalog-sidebar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.catalog-sidebar-toggle {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #111827;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease;
}

.catalog-sidebar-toggle:hover {
  background: #f2f4f7;
}

.catalog-sidebar-toggle [data-lucide] {
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
}

.catalog-sidebar.is-collapsed .catalog-sidebar-toggle [data-lucide] {
  transform: rotate(-90deg);
}

.catalog-sidebar.is-collapsed .catalog-sidebar-body {
  display: none;
}

.catalog-sidebar-body {
  display: grid;
  gap: 4px;
}

.catalog-all-link,
.catalog-fixed-link,
.catalog-category-link {
  min-width: 0;
  border-radius: 6px;
  display: grid;
  align-items: center;
  color: #111827;
  font-size: 16px;
  line-height: 1.32;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.catalog-all-link {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 8px;
  padding: 6px 8px;
}

.catalog-fixed-link {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 8px;
  padding: 5px 8px;
}

.catalog-category-link {
  grid-template-columns: minmax(0, 1fr);
  padding: 5px 8px;
}

.catalog-all-link:hover,
.catalog-fixed-link:hover,
.catalog-category-link:hover,
.catalog-all-link.active,
.catalog-fixed-link.active,
.catalog-category-link.active {
  color: #06122b;
  background: #f1f3f5;
}

.catalog-fixed-link.active,
.catalog-category-link.active {
  font-weight: 600;
}

.catalog-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-tree-item {
  margin: 0;
  padding: 0;
}

.catalog-tree-item.has-children > .catalog-category-link {
  position: relative;
  padding-left: 22px;
}

.catalog-tree-item.has-children > .catalog-category-link::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 4px solid currentColor;
  transform: translateY(-50%);
}

.catalog-tree-depth-2,
.catalog-tree-depth-3 {
  margin-left: 20px;
}

.catalog-tree-depth-2 .catalog-category-link,
.catalog-tree-depth-3 .catalog-category-link {
  grid-template-columns: minmax(0, 1fr);
  padding: 5px 8px;
  font-size: 16px;
}

.catalog-tree-item.is-active-branch > .catalog-tree {
  display: block;
}

.catalog-tree-depth-1 > .catalog-tree-item:not(.is-active-branch) > .catalog-tree,
.catalog-tree-depth-2 > .catalog-tree-item:not(.is-active-branch) > .catalog-tree {
  display: none;
}

.catalog-results {
  min-width: 0;
}

.catalog-result-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.catalog-result-heading h2 {
  margin: 0;
  color: #06122b;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.catalog-result-heading p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.catalog-card-grid,
.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 38px;
}

.catalog-pagination-page,
.catalog-pagination-arrow,
.catalog-pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.catalog-pagination-page {
  border-radius: 8px;
  padding: 0 10px;
  transition: color 160ms ease, background 160ms ease;
}

.catalog-pagination-page:hover {
  background: #f1f3f5;
  color: #06122b;
}

.catalog-pagination-page.active {
  min-width: 46px;
  color: #ffffff;
  background: #4f4f4f;
}

.catalog-pagination-arrow {
  border: 0;
  border-radius: 8px;
  background: transparent;
  transition: background 160ms ease, opacity 160ms ease;
}

.catalog-pagination-arrow:hover {
  background: #f1f3f5;
}

.catalog-pagination-arrow.disabled {
  opacity: 0.35;
}

.catalog-pagination-arrow [data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.catalog-pagination-dots {
  color: #111827;
  letter-spacing: 0;
}

.catalog-card,
.catalog-product-card {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.catalog-card:hover,
.catalog-product-card:hover {
  border-color: #d6dbe3;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.catalog-card a,
.catalog-product-card a {
  display: flex;
  min-height: 238px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 30px 24px;
  text-align: center;
  text-decoration: none;
}

.catalog-card-media,
.catalog-product-media {
  width: 138px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.catalog-product-media {
  width: 100%;
  max-width: 238px;
  height: 140px;
}

.catalog-card-media img,
.catalog-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-placeholder-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: #d0d5dd;
}

.catalog-placeholder-icon [data-lucide] {
  width: 74px;
  height: 74px;
  stroke-width: 1.35;
}

.catalog-card h2,
.catalog-card h3,
.catalog-product-body h3 {
  margin: 0;
  width: 100%;
  color: #06122b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.catalog-product-body {
  width: 100%;
  text-align: center;
}

.catalog-product-body p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.4;
}

.catalog-empty {
  margin: 0;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #667085;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .catalog-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
  }

  .catalog-card-grid,
  .catalog-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-section {
    padding: 26px 0 64px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .catalog-sidebar {
    position: static;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
  }

  .catalog-card-grid,
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .catalog-title {
    margin-bottom: 26px;
    font-size: 31px;
  }

  .catalog-card-grid,
  .catalog-product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card a,
  .catalog-product-card a {
    min-height: 214px;
    padding: 28px 22px;
  }

  .catalog-pagination {
    gap: 10px;
    margin-top: 30px;
  }

  .catalog-pagination-page.active {
    min-width: 40px;
  }
}
