/* CLER: каталог — сетка 4×2 с существующими фотографиями категорий. */
.catalog_page .cler-catalog-intro {
  max-width: 760px;
  margin: 0 0 20px;
  color: #5b6b5c;
  font-size: 15px;
  line-height: 1.55;
}
.catalog_page .cler-catalog-search {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin: 0 0 24px;
}
.catalog_page .cler-catalog-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd9c8;
  border-radius: 8px;
  background: #fff;
  color: #203f27;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.catalog_page .cler-catalog-search input[type="search"]:focus {
  border-color: #536f41;
  outline: none;
  box-shadow: 0 0 0 2px #536f4126;
}
.catalog_page .cler-catalog-search button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #7d2334;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.catalog_page .cler-catalog-search button:hover {
  background: #651b2a;
}

@media (min-width: 1200px) {
  .catalog_page .catalog_section_list.type_sections_5 .item_block {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .catalog_page .catalog_section_list.type_sections_5 .item_block {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}
@media (max-width: 767px) {
  .catalog_page .catalog_section_list.type_sections_5 .item_block {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
  .catalog_page .cler-catalog-search {
    flex-direction: column;
  }
  .catalog_page .cler-catalog-search button {
    width: 100%;
  }
}
@media (max-width: 479px) {
  .catalog_page .catalog_section_list.type_sections_5 .item_block {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Пустой блок «Ранее вы смотрели» не показываем. */
.viewed-wrapper:not(:has(.has-item)) { display: none !important; }
