.catalog-list__item {
  padding: 32px 0px;
  height: 100%;
  border-top: 1px solid var(--stroke_black);
  border-bottom: 1px solid var(--stroke_black);
}

.catalog-list__info-bottom {
  max-width: 300px;
}

.catalog-list__item .js-btn-state-wrapper {
  flex: 1;
}

/*info*/
.catalog-list__info-tech {
  margin: 8px 0px 0px;
}

.sku-props--list .sku-props__inner:first-child .sku-props__item {
  margin-top: 0px;
}

@media (min-width: 992px) {
  .catalog-list__info-bottom {
    flex-basis: 300px;
  }
}

@media (max-width: 1300px) and (min-width: 992px) {
  .catalog-list__item .catalog-list__info {
    flex-direction: column;
    padding: 0px 0px 0px 40px;
  }
  .catalog-list__item .catalog-list__info-top {
    padding: 0px;
  }
  .catalog-list__info-bottom {
    padding: 25px 0px 0px 0px;
    flex-basis: auto;
  }
}

@media (max-width: 991px) {
  .catalog-list__item .catalog-list__info {
    flex-direction: column;
    padding: 0px 0px 0px 40px;
  }
  .catalog-list__item .catalog-list__info-top {
    padding: 0px;
  }
  .catalog-list__item .catalog-list__info-bottom {
    padding: 25px 0px 0px 0px;
  }
}
@media (min-width: 601px) {
  .catalog-list__item .image-list {
    width: 240px;
    flex-basis: 240px;
  }
  .catalog-list__item .image-list .sticker {
    top: 12px;
    left: 12px;
  }

  .catalog-list__info-top {
    flex: 1;
    padding: 0px 32px;
  }
  .catalog-list__info-bottom > div:first-of-type {
    margin-top: 0px;
  }
  .catalog-list__info-bottom-btns {
    margin-top: 14px;
  }
  .catalog-list__info-bottom-btns .js-replace-icons {
    margin-top: 12px;
  }

  .catalog-list:has(.banners-slider) .catalog-list__wrapper:first-child .catalog-list__item {
    border-bottom: 0px;
  }
}
@media (max-width: 600px) {
  .grid-list.grid-list--compact.list {
    grid-gap: var(--theme-items-gap);
  }
  .grid-list.grid-list--compact .catalog-list__item {
    /* padding: 16px 16px 12px; */
    border: 1px solid var(--stroke_black);
    border-radius: var(--theme-outer-border-radius);
  }
  .catalog-list__item .catalog-list__info {
    padding: 0px;
  }
  .catalog-list__item .catalog-list__inner {
    flex-direction: column;
  }
  .catalog-list__item .block-with-icon,
  .catalog-list__item .info-buttons {
    display: none;
  }
  .catalog-list__item .catalog-list__info-bottom {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .catalog-list__info-bottom > div {
    margin: 5px 0px 0px;
  }
  .catalog-list__info-bottom .btn {
    font-size: 0.875rem;
    line-height: calc(1em + 3px);
    padding: 9px 15px 11px;
  }

  .catalog-list__item .catalog-list__info {
    margin-top: 12px;
    justify-content: space-between;
  }
  .catalog-list__item .catalog-list__info-text {
    font-size: 0.8em;
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    display: -moz-box;
    -moz-box-orient: vertical;
    -moz-line-clamp: 4;
    overflow: hidden;
  }
  .grid-list:not(.grid-list--compact) .catalog-list__info-text {
    display: none;
  }
  .catalog-list__info-bottom .btn .counter {
    width: 100%;
  }
}
/*
 * ===================================================================
 * Стили для всплывающего тултипа (подсказки) у статуса
 * ===================================================================
 */

/* Контейнер-родитель. Работает для обоих видов каталога */
.catalog-block__item .status-with-tooltip,
.catalog-list__item .status-with-tooltip {
    position: relative;
    cursor: pointer;
}

/* Стили самого тултипа */
.catalog-block__item .status-tooltip,
.catalog-list__item .status-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background-color: var(--grey_bg);
    color: var(--white_text_black);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

/* Треугольная стрелочка внизу тултипа */
.catalog-block__item .status-tooltip::after,
.catalog-list__item .status-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--grey_bg) transparent transparent transparent;
}

/* Класс для отображения тултипа */
.catalog-block__item .status-tooltip.is-visible,
.catalog-list__item .status-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}


/*
 * ===================================================================
 * АДАПТИРОВАННЫЕ СТИЛИ ДЛЯ БЛОКА ЦЕН (ШАБЛОН catalog-list)
 * ===================================================================
 */

/* --- ОБЩИЕ ПРАВИЛА, РАБОТАЮЩИЕ ВЕЗДЕ --- */

/* 1. Центрируем родительский контейнер цены. */
.catalog-list__item .js-popup-price {
    display: flex;
    justify-content: left;
    /* Дополнительно убираем ограничение по ширине из старых стилей, 
       чтобы рамка могла занять всю доступную ей область */
    max-width: none; 
}

/* 2. Центрируем саму строку с ценой (цифры). */
.catalog-list__item .price__row {
    display: flex;
    justify-content: center;
}


/* --- СТИЛИ ДЛЯ СЛУЧАЯ, КОГДА ЦЕНЫ ДВЕ --- */

/* 3. Задаем ширину контейнеру двух цен. */
.catalog-list__item .prices.prices--with-table {
    width: 100%; /* Займет всю ширину родителя .catalog-list__info-bottom */
    max-width: 224px; /* Ограничиваем максимальную ширину для единообразия */
}

/* 4. Создаем общую рамку и задаем порядок. */
.catalog-list__item .prices__table.flexbox--direction-column {
    display: flex;
    flex-direction: row-reverse;
    border: 1px solid var(--stroke_black);
    border-radius: 8px;
    overflow: hidden;
    gap: 0;
    width: 100%;
}

/* 5. Делаем ячейки равной ширины. */
.catalog-list__item .prices__table .price {
    flex: 1;
    padding: 8px 16px;
    text-align: center;
    border: none;
    white-space: nowrap;
}

/* 6. Рисуем разделитель. */
.catalog-list__item .prices__table .price:first-child {
    border-left: 1px solid var(--stroke_black);
}


/* --- НОВЫЕ СТИЛИ ДЛЯ СЛУЧАЯ, КОГДА ЦЕНА ТОЛЬКО ОДНА --- */

/* 7. Стилизуем одиночную цену, чтобы она была похожа на ячейку с двумя ценами. */
/* :not(.prices--with-table) - этот селектор сработает, ТОЛЬКО если у .prices нет класса .prices--with-table */
.catalog-list__item .prices:not(.prices--with-table) .price {
    border: 1px solid var(--stroke_black);
    border-radius: 8px;
    padding: 8px 16px;
    white-space: nowrap;
    text-align: center;
    min-width: 160px; /* Задаем минимальную ширину, чтобы выглядело аккуратно */
    
    /* Добавляем свойство, чтобы одиночная цена не растягивалась на всю ширину */
    display: inline-block; 
}

.catalog-list__item .price__new-val {
    font-weight: 650;
}





/*
 * ===================================================================
 * ФИНАЛЬНЫЕ УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ ТУЛТИПА (НОВЫЙ ДИЗАЙН v2)
 * ===================================================================
 */

/* 1. Блок с оптовой ценой (.price) становится базой для позиционирования иконки */
.amigo-tooltip-host {
    position: relative !important;
}

/* 2. Иконка (?) - оранжевый круг, белый знак вопроса */
.amigo-tooltip-trigger {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #6bc0ec; /* <<< Рамка оранжевая */
    background-color: #6bc0ec;  /* <<< ИЗМЕНЕНО: Фон круга оранжевый */
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #fff;              /* <<< ИЗМЕНЕНО: Знак вопроса белый */
    cursor: pointer;
    z-index: 5;
}

/* --- Остальные стили для .amigo-tooltip-content остаются БЕЗ ИЗМЕНЕНИЙ --- */

.amigo-tooltip-content.is-calculating {
    visibility: hidden;
    display: block !important;
}

.amigo-tooltip-content {
    position: absolute;
    padding: 12px 16px;
     background-color: var(--grey_bg);
    /* Темный фон */
    color: var(--white_text_black);
    border: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 10000;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s;
}

.amigo-tooltip-content.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.amigo-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.amigo-tooltip-content a {
    color: #6bc0ec;
}


/*
 * ===================================================================
 * ПЕРЕНОС СТАТУСА НАЛИЧИЯ В НАЧАЛО (CATALOG_LIST, ДЕСКТОП)
 * ===================================================================
 */

/* Применяем стили только для экранов шире 767px (планшеты и десктопы) */
@media (min-width: 768px) {

    /* 
     * Находим родительский элемент блока со статусом
     * и с помощью свойства 'order' ставим его на первое место.
     * По умолчанию у всех элементов order: 0. Значение -1 поставит его левее всех.
    */
    .catalog-list__item .js-popup-info > .line-block__item.status-with-tooltip,
    .catalog-list__item .js-popup-info > .line-block__item:has(.status-container) {
        order: -1;
    }
}



.status-delivery-wrapper .js-replace-status {
    color: #fe620d !important;
}

/* 2. Находим контейнер иконки */
.status-delivery-wrapper .status__svg-icon {
    position: relative; /* База для позиционирования */
}

/* 3. СКРЫВАЕМ ОРИГИНАЛЬНУЮ ЗЕЛЕНУЮ ИКОНКУ */
.status-delivery-wrapper .status__svg-icon svg {
    visibility: hidden;
}

/* 
 * 4. ВСТАВЛЯЕМ НОВУЮ ОРАНЖЕВУЮ ИКОНКУ КАК ФОН ПСЕВДО-ЭЛЕМЕНТА.
 * Убедитесь, что путь к вашему файлу custom_status_icons.svg верный!
*/
.status-delivery-wrapper .status__svg-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/custom_status_icons.svg');
    background-repeat: no-repeat;
    background-position: center center;
   
}


