/* ===== УСИЛЕННЫЙ CSS ДЛЯ ВСЕХ ТИПОВ ЦЕН ===== */

/* 1. Убираем все зачеркивания */
.t-store__card__price_old *,
.t-store__card__price-value,
.t-store__card__price-currency,
.t-store__card__price-item *,
.js-store-prod-price-old-val[translate="no"],
.js-store-price-wrapper *,
.js-store-prod-price *,
.js-store-prod-price-old *,
.t-store__prod-popup__price-wrapper *,
.t-store__prod-popup__price *,
.t-store__prod-popup__price_old *,
.t-store__prod-popup__price-value,
.t-store__prod-popup__price-currency,
.t-store__prod__price-portion,
.t-store__prod__price-portion-slash,
.js-store-prod-price-old-val,
.js-product-price.js-store-prod-price-val {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    text-decoration-line: none !important;
}

/* 2. Перекрываем inline-стили */
[style*="line-through"],
[style*="text-decoration"],
[style*="strikethrough"],
.js-store-prod-price[style*="color"],
.js-store-prod-price-old[style*="color"],
.js-product-price.js-store-prod-price-val[style*="color"],
.js-store-prod-price-old-val[style*="color"] {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    text-decoration-line: none !important;
}

/* 3. Розничные цены (красные) - старые цены */
.t-store__card__price_old .js-store-prod-price-old-val,
.t-store__card__price_old .t-store__card__price-value,
.js-store-prod-price-old-val {
    color: #ff4a4a !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    display: inline-block !important;
}

/* 3. Розничные цены (красные) - старые цены */

.t-store__prod-popup__price_old .t-store__prod-popup__price-value,
.js-store-prod-price-old .t-store__prod-popup__price-value {
    color: #ff4a4a !important;
    font-weight: 600 !important;
    font-size: 26px !important;
    display: inline-block !important;
}

.t-store__card__price_old .t-store__card__price-currency,
.t-store__card__price_old .t-store__prod__price-portion,
.t-store__card__price_old .t-store__prod__price-portion-slash,
.js-store-prod-price-old .t-store__prod-popup__price-currency,
.js-store-prod-price-old .t-store__prod__price-portion,
.js-store-prod-price-old .t-store__prod__price-portion-slash {
    color: #ff4a4a !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    height: 28px !important;
}

/* 4. Оптовые цены (зеленые) - текущие цены */
.js-store-prod-price .js-product-price.js-store-prod-price-val,
.t-store__card__price:not(.t-store__card__price_old) .t-store__card__price-value,
.js-store-prod-price .t-store__prod-popup__price-value {
    color: #27ae60 !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    display: inline-block !important;
}

.js-store-prod-price .t-store__prod-popup__price-currency,
.js-store-prod-price .t-store__prod__price-portion,
.t-store__card__price:not(.t-store__card__price_old) .t-store__card__price-currency,
.t-store__card__price:not(.t-store__card__price_old) .t-store__prod__price-portion {
    color: #27ae60 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    height: 28px !important;
}

/* 5. Подписи для цен - УВЕЛИЧЕНЫ ОТСТУПЫ */
.t-store__card__price_old,
.t-store__card__price:not(.t-store__card__price_old),
.js-store-prod-price-old,
.js-store-prod-price {
    position: relative !important;
    display: flex !important;
    gap: 1px !important;
    align-items: center !important;
    min-height: 28px !important;
    padding-left: 70px !important; /* УВЕЛИЧЕНО С 55px */
    box-sizing: border-box !important;
}

.t-store__card__price_old::before,
.js-store-prod-price-old::before {
    content: "Розница:" !important;
    color: #ff4a4a !important;
    background: white !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    border: 1px solid #ffcccc !important;
    white-space: nowrap !important;
}

.t-store__card__price:not(.t-store__card__price_old)::before,
.js-store-prod-price::before {
    content: "Опт:" !important;
    color: #27ae60 !important;
    background: white !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    border: 1px solid #a3e9c4 !important;
    white-space: nowrap !important;
}

.t-store__card__price_old::before,
.t-store__card__price:not(.t-store__card__price_old)::before,
.js-store-prod-price::before,
.js-store-prod-price-old::before {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-align: center !important;
    min-width: 50px !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

.t-store__card__price:not(.t-store__card__price_old) {
    padding-left: 55px !important; /* УВЕЛИЧЕНО С 30px */
}

.js-store-prod-price,
.js-store-prod-price-old {
    padding-left: 70px !important; /* УВЕЛИЧЕНО С 30px */
    gap: 2px !important; /* УВЕЛИЧЕНО С 0 */
}

/* 6. Контейнеры */
.t-store__card__price-wrapper,
.js-store-price-wrapper {
    display: flex !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* 7. Убираем псевдоэлементы Tilda */
.t-store__card__price_old::after,
.t-store__card__price::after,
.js-store-prod-price-old::after,
.js-store-prod-price::after {
    display: none !important;
    content: none !important;
}

/* 8. Сбрасываем inline-стили для правильных классов */
.js-store-prod-price.t-store__prod-popup__price.t-name.t-name_md,
.js-store-prod-price-old.t-store__prod-popup__price_old.t-name.t-name_md {
    font-weight: 600 !important;
    font-size: inherit !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.js-store-prod-price.t-store__prod-popup__price.t-name.t-name_md {
    color: inherit !important;
}

.js-store-prod-price-old.t-store__prod-popup__price_old.t-name.t-name_md {
    color: inherit !important;
}

/* 9. Исправляем отображение значений цен */
.js-store-prod-price-old .t-store__prod-popup__price-value,
.js-store-prod-price .t-store__prod-popup__price-value {
    margin-right: 2px !important;
}

.t-store__prod-popup__price-currency {
    margin-right: 4px !important;
}

/* 10. Мобильная адаптация */
@media (max-width: 960px) {
    .t-store__card__price-wrapper,
    .js-store-price-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1px !important;
    }
    
    .t-store__card__price_old,
    .t-store__card__price:not(.t-store__card__price_old),
    .js-store-prod-price,
    .js-store-prod-price-old {
        padding-left: 70px !important;
        flex-wrap: wrap !important;
        gap: 1px !important;
    }
    
    .t-store__card__price_old::before,
    .t-store__card__price:not(.t-store__card__price_old)::before,
    .js-store-prod-price::before,
    .js-store-prod-price-old::before {
        font-size: 10px !important;
        min-width: 45px !important;
        padding: 2px 4px !important;
    }
    
    .t-store__card__price:not(.t-store__card__price_old) {
        padding-left: 50px !important;
    }
}

/* ЯДЕРНЫЙ ВАРИАНТ ДЛЯ ВСЕХ ТИПОВ ЦЕН */

/* 1. Для карточек товаров на странице */
body .t-store .t-store__card__price_old .t-store__prod__price-portion-slash,
body .t-store .t-store__card__price_old .t-store__prod__price-portion,
body .t-store .t-store__card__price:not(.t-store__card__price_old) .t-store__prod__price-portion-slash,
body .t-store .t-store__card__price:not(.t-store__card__price_old) .t-store__prod__price-portion,

/* 2. Для попапов товаров */
body .t-store .js-store-prod-price-old .t-store__prod__price-portion-slash,
body .t-store .js-store-prod-price-old .t-store__prod__price-portion,
body .t-store .js-store-prod-price .t-store__prod__price-portion-slash,
body .t-store .js-store-prod-price .t-store__prod__price-portion {
    
    /* Полностью удаляем из потока */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    
    /* Убираем возможность взаимодействия */
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    
    /* Убираем из доступности */
    aria-hidden: "true" !important;
}

/* Изменение отступов у контейнера товара */
.t-store__prod-snippet__container {
    padding-top: 30px !important;    /* Было 120px */
    padding-bottom: 30px !important; /* Было 120px */
}

/* Для мобильных устройств уменьшить отступы в каталоге*/
@media (max-width: 960px) {
    .t-store__grid-cont .t-store__card-list {
        row-gap: 20px !important;
    }
}
