.ajax_load .top_wrapper {
  margin-right: 1px;
}
.ajax_load .top_wrapper .catalog_block .catalog_item > div {
  padding-left: 25px;
  padding-right: 25px;
}
.ajax_load .top_wrapper .catalog_item .footer_button {
  margin-left: -25px;
  margin-right: -25px;
}

.catalog_block_template .catalog_block.owl-carousel .owl-stage-outer {
  margin: 0px -1px 0px 0px;
  padding: 0px 1px 0px 0px;
}
.catalog_block_template .catalog_block.owl-carousel .owl-stage-outer .owl-item:hover {
  z-index: 2;
}
.catalog_block_template .catalog_block.owl-carousel .catalog_item:hover .inner_wrap {
  box-shadow: inset 0px 0px 0px 1px #ececec;
  box-shadow: inset 0px 0px 0px 1px var(--stroke_black);
  height: 100%;
}
.ordered-block .catalog_block_template .catalog_block .TYPE_2 .cost.prices .more-item-info > .svg {
  top: -2px;
}
.catalog_block_template .catalog_block.owl-carousel .catalog_item:hover .inner_wrap.TYPE_2 .footer_button {
  margin-top: 0;
}

@media (min-width: 1200px) {
  .wrapper1 .right_block.wide_Y .ajax_load .top_wrapper .col-lg-3:not(.custom-line),
  .col-lg-5_2.custom-line {
    width: 20%;
  }
  .right_block.wide_Y .ajax_load .top_wrapper .col-lg-4:not(.custom-line),
  #main .catalog_page .section-content-wrapper.with-leftblock .col-lg-3:not(.custom-line),
  #main .catalog_in_content .section-content-wrapper.with-leftblock .col-lg-3:not(.custom-line) {
    width: 25%;
  }

  #main .right_block.wide_Y.catalog_page .section-content-wrapper.with-leftblock .col-lg-4:not(.custom-line),
  #main .catalog_in_content .section-content-wrapper.with-leftblock .col-lg-4:not(.custom-line) {
    width: 33.33%;
  }
}

@media (min-width: 1200px) and (max-width: 1499px) {
  .wrapper1.header-v28 .right_block.wide_Y .ajax_load .top_wrapper .col-lg-3:not(.custom-line) {
    width: 25%;
  }
  .wrapper1.header-v28 .controls-linecount {
    display: none;
  }
}

@media (max-width: 600px) {
  .wrapper1.front_page .compact-catalog-slider .catalog_block.items {
    width: auto;
    padding-left: 16px;
    margin: 0 -16px -20px !important;
    padding-bottom: 20px;
  }
  .wrapper1.front_page .compact-catalog-slider .catalog_block.items .item-parent {
    flex-shrink: 0;
    margin: 0;
    width: 172px;
  }
  .wrapper1.front_page .compact-catalog-slider .catalog_block.items .item-parent:last-of-type {
    padding-right: 16px;
    width: calc(172px + 16px);
  }

  .wrapper1.front_page .compact-catalog-slider .catalog_block.items:not(.has-bottom-nav) .bottom_nav.mobile_slider * {
    display: none;
  }

  .wrapper1.front_page .compact-catalog-slider ~ .bottom_nav:not(.mobile_slider) {
    display: none;
  }
}

/* Стили для баннера скидки в списке товаров */
.discount-banner-wrapper {
    margin: 7px 0 0 0;
    display: inline-flex;
}

.discount-label-wrapper{
    margin: 7px 0 0 0;
    display: inline-flex;
}
.discount-banner {
    display: flex;
    align-items: center;
    max-width: fit-content;
    height: 26px;
}
.discount-percent {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c00;
    color: white;
    padding: 0 8px;
    font-weight: bold;
    font-size: 13px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}
.discount-text {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 0 8px;
    font-size: 12px;
    height: 100%;
    border: 1px solid #ddd;
    border-left: none;
    color: #333;
    border-radius: 0 3px 3px 0;
}

/* Стили для баннера скидки в списке товаров */
.discount-banner-wrapper {
    margin: 7px 0 0 0;
    display: inline-flex;
}

.discount-banner {
    display: flex;
    align-items: center;
    height: 26px;
    max-width: fit-content;
}

.discount-percent {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c00;
    color: white;
    padding: 0 8px;
    font-weight: bold;
    font-size: 13px;
    height: 100%;
    border-radius: 3px;
    margin-right: 7px;
}

/* Стили для ссылки "подробнее" */
.discount-more-info {
    color: #5d8dc9;
    font-size: 12px;
    text-decoration: dotted underline;
    cursor: help;
    position: relative;
}

.discount-more-info:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(51, 51, 51, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal; /* Разрешаем перенос текста */
    max-width: 250px; /* Устанавливаем максимальную ширину */
    min-width:200px;
    text-align: center; /* Выравниваем текст по центру */
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
