/* Catalog page */
#catalog-ajax-root {
  line-height: 0;
}

#catalog-ajax-root > * {
  line-height: normal;
}

.catalog {
  background-color: var(--color-bg-accent);
  height: 100%;
}
@media (min-width: 1550px) {
  .background-texture .catalog {
    background: none;
  }

  .background-texture .catalog .container {
    background-color: var(--color-bg-accent);
    border-radius: 12px;
    margin: 20px auto;
  }
}
.sidebar__wrapper {
  margin: 0 0 2rem;
  background: var(--color-bg);
  border-radius: 10px;
  padding: 3rem 3rem 1rem 3rem;
}

.banners-background {
  width: 100%;
  background: linear-gradient(
      to right,
      var(--color-accent) 0,
      var(--secondary-background-color) 100%
    )
    no-repeat;
}

.settings__container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.settings__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings__sort {
  width: auto;
  font-size: 1.5rem;
  min-width: 21rem;
}
@media (max-width: 1200px) {
  .settings__wrapper {
    justify-content: flex-start;
  }
  .settings__sort {
    min-width: auto;
  }
}

.settings__sort select {
  background-color: var(--color-bg);
}

.show-more-container {
  width: 100%;
  text-align: center;
}

/* show-more: full grid row */
.c-goods--grid-3 > .show-more-container {
  grid-column-start: 1;
  grid-column-end: -1;
  margin-bottom: 1.5rem;
}

@media (max-width: 632px) {
  .c-goods--grid-3 > .show-more-container {
    margin-bottom: 1rem;
  }
}

.search-catalog .daily-wrapper {
  display: none;
}

.catalog-menu__container .settings__sort select {
  height: 30px;
}

.sidebar {
  width: 100%;
  -ms-flex: 0 0 25%;
  flex: 0 0 25%;
  max-width: 25%;
  position: relative;
  min-height: 1px;
  padding-right: 10px;
  padding-left: 10px;
}

.catalog__main {
  display: flex;
  flex-direction: column;
  -ms-flex: 0 0 75%;
  flex: 0 0 75%;
  max-width: 75%;
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 10px;
  padding-left: 10px;
  margin-bottom: 10rem;
}

/* catalog block order: seo description after products */
.catalog__main > .subcategories { order: 1; }
.catalog__main > .catalog__settings { order: 2; }
.catalog__main > .js-catalog-sidebar-mobile { order: 3; }
.catalog__main > .catalog__goods { order: 4; }
.catalog__main > .catalog__description:not(.description__seo) { order: 5; }
.catalog__main > .catalog__description.description__seo { order: 6; }
.catalog__main > .js-filter-banner-target { order: 7; }

@media (max-width: 1200px) {
  .sidebar {
    width: 0;
    height: 0;
    position: absolute;
  }

  .catalog__main {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .catalog-menu {
    margin-bottom: 10px;
  }
}

.categories-open-btn {
  display: none;
}

@media (max-width: 1200px) {
  .categories-open-btn {
    display: block;
    padding: 0.5rem 1.5rem;
    height: 4.6rem;
    font-size: 1.5rem;
    font-weight: 400;
    background: var(--color-bg);
    color: var(--color-text);
    transition:
      border-color 0.25s,
      color 0.25s,
      background 0.25s;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    border-radius: 5px;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    border: 1px solid transparent;
    margin-right: 1rem;
  }

  .categories-open-btn:hover {
    color: var(--color-accent);
  }

  .categories-open-btn svg {
    margin: 0 0 0 1rem;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    fill: currentColor;
    fill-rule: evenodd;
    width: 1.1rem;
    height: 1.1rem;
  }
}

.catalog__goods {
  opacity: 0;
}

.catalog__goods_active {
  opacity: 1;
}

/* catalog page */
.catalog__wrapper {
  display: flex;
}

.catalog__main > .catalog__description.static-content:not(.description__seo) {
  margin-top: 6rem;
}

@media (max-width: 632px) {
  .catalog__main > .catalog__description.static-content:not(.description__seo) {
    margin-top: 4rem;
  }
}

.catalog__description {
  margin-bottom: 2.5rem;
  font-size: 1.4rem;
  background-color: var(--color-bg);
  border-radius: 10px;
  overflow: hidden;
  padding: 3rem;
  line-height: 1.4;
  color: var(--color-text);
}

.description__text img {
  height: auto !important;
}

.description__seo {
  margin-top: 20px;
}

.description__text iframe {
  display: block !important;
  max-width: 100% !important;
  margin: 10px 0 !important;
}

.catalog__settings {
  margin-bottom: 10px;
}

.settings {
  display: flex;
  justify-content: space-between;
}

.settings-search {
  width: 100%;
}

.settings-search .settings__container {
  width: 100%;
  justify-content: space-between;
}

.settings-search .compare {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.settings-search .compare .c-compare__link--text {
  margin-left: 5px;
}

.settings-search .compare:hover {
  color: var(--color-text);
}

.catalog__empty-goods {
  font-size: 1rem;
  margin-top: 30px;
  grid-column-end: -1;
  grid-column-start: 1;
}

.catalog .c-title {
  padding-top: 25px;
  line-height: 1.2;
}

.catalog.search-catalog .c-title--search-results {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-weight: 500;
}

.catalog.search-catalog .c-title--search-results .c-title__query-line {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
}

.catalog.search-catalog .c-title--search-results .c-title__search {
  font-weight: 500;
  color: var(--color-link, #2b6cb0);
}

.catalog.search-catalog .c-title--search-results .c-title__summary {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-muted, #666);
}

@media (min-width: 768px) {
  .catalog.search-catalog .c-title--search-results .c-title__query-line {
    font-size: 1.8rem;
  }

  .catalog.search-catalog .c-title--search-results .c-title__summary {
    font-size: 1.5rem;
  }
}

.catalog.search-catalog:has(#search-empty-block) {
  padding-bottom: 40px;
}

.catalog.search-catalog:has(#search-empty-block) .groups-wrapper {
  padding-top: calc(1.5rem + 56px);
  padding-bottom: 4rem;
}

.catalog.search-catalog:has(.goods-search),
.catalog.search-catalog:has(.search-products) {
  padding-bottom: 10rem;
}

.catalog.search-catalog:has(.goods-search) .goods-search {
  padding-bottom: 0;
}

.catalog.search-catalog:has(.search-products) .search-products {
  padding-bottom: 0;
}

@media (max-width: 382px) {
  .settings__sort span {
    display: none;
  }
}

/* search results: products as compact rows (like fast search / pages) */
.search-products {
  margin: 0 0 2.4rem;
}

.search-products__list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 10px;
}

.search-products__list.c-goods--grid-3,
.search-products__list.c-goods--list {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
}

.search-products > .show-more-container {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

.search-product-item {
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.search-product-item:last-child {
  border-bottom: none;
}

.search-product-item__row {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 1.2rem 1.6rem;
  transition: background-color 0.2s ease;
}

.search-product-item:hover .search-product-item__row {
  background-color: rgba(0, 0, 0, 0.02);
}

.search-product-item__image {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  margin-right: 1.6rem;
  overflow: hidden;
  background-color: #f7f7f7;
  border-radius: 8px;
  touch-action: pan-y;
}

.search-product-item__image .item-image-slider__container {
  width: 100%;
  height: 100%;
}

.search-product-item__image .item-image-slider__img {
  padding: 0;
}

.search-product-item__content {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.search-product-item__title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.3;
}

.search-product-item__title-link {
  color: var(--color-link, #2b6cb0);
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-product-item:hover .search-product-item__title-link {
  color: var(--accent-color, #cd4449);
}

.search-product-item__art {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-text-muted, #666);
}

.search-product-item__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.8rem 1.2rem;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.search-product-item__meta .card__available-wrapper {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.search-product-item__meta .card__available-wrapper .c-product__stock--span {
  overflow: visible;
}

.search-product-item__right {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.search-product-item__price-container {
  display: flex;
  align-items: center;
  margin-right: 1.2rem;
}

.search-product-item__price {
  margin: 0 1rem 0 0;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--main-text-color, #222);
}

.search-product-item__right:hover .search-product-item__price,
.search-product-item__right:focus .search-product-item__price {
  color: var(--main-text-color, #222);
}

.search-product-item__right:hover .search-product-item__old-price,
.search-product-item__right:focus .search-product-item__old-price {
  color: var(--color-text-muted, #999);
}

.search-product-item__old-price {
  position: relative;
  margin: 0 1rem 0 0;
  padding: 0 0.2rem;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--color-text-muted, #999);
  white-space: nowrap;
}

.search-product-item__old-price::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid currentColor;
}

.search-product-item__sale {
  margin: 0;
  padding: 0.2rem 0.6rem;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #fff;
  background: var(--accent-color, #cd4449);
  border-radius: 4px;
  white-space: nowrap;
}

.search-product-item__arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  color: #b5b5b5;
}

.search-product-item__arrow svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

.search-product-item:hover .search-product-item__arrow {
  color: var(--accent-color, #cd4449);
}

@media (max-width: 767px) {
  .search-product-item__row {
    padding: 1rem 1.2rem;
  }

  .search-product-item__image {
    width: 4.4rem;
    height: 4.4rem;
    margin-right: 1.2rem;
  }

  .search-product-item__title {
    font-size: 1.5rem;
  }

  .search-product-item__art,
  .search-product-item__meta .card__available-wrapper {
    font-size: 1.3rem;
  }

  .search-product-item__price {
    font-size: 1.4rem;
  }

  .search-product-item__old-price,
  .search-product-item__sale {
    display: none;
  }
}

/* search results: CMS pages block */
.search-pages {
  margin: 0 0 2.4rem;
}

.search-pages__list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 10px;
}

.search-page-item {
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.search-page-item:last-child {
  border-bottom: none;
}

.search-page-item__link {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.search-page-item__link:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.search-page-item__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  margin-right: 1.6rem;
  overflow: hidden;
  color: var(--color-link, #2b6cb0);
  background-color: #e8f1fb;
  border-radius: 8px;
}

.search-page-item__icon svg,
.search-page-item__icon .search-page-item__icon-svg,
.search-page-item__icon img {
  display: block;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  max-width: 2.4rem;
  max-height: 2.4rem;
  object-fit: contain;
}

.search-page-item__content {
  flex: 1 1 auto;
  min-width: 0;
}

.search-page-item__title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-link, #2b6cb0);
}

.search-page-item__description {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--color-text-muted, #666);
}

.search-page-item__url {
  display: block;
  font-size: 1.3rem;
  line-height: 1.3;
  color: #2e7d32;
}

.search-page-item__arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: 1.2rem;
  color: #b5b5b5;
}

.search-page-item__arrow svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

@media (max-width: 767px) {
  .search-page-item__link {
    padding: 1rem 1.2rem;
  }

  .search-page-item__icon {
    width: 4rem;
    height: 4rem;
    margin-right: 1.2rem;
  }

  .search-page-item__title {
    font-size: 1.5rem;
  }

  .search-page-item__description,
  .search-page-item__url {
    font-size: 1.3rem;
  }
}

