/* ==========================================================================
   1. ОБЩИЕ СТИЛИ РАЗДЕЛА (Базовые настройки)
   ========================================================================== */
.th-container {
    width: 100%; /* Контент идет на всю ширину контентной области */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.th-main-title {
    font-size: 28px;
    color: #1a2634;
    margin-bottom: 15px;
}

.th-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 30px;
    max-width: 100%; /* Растягиваем описание на всю ширину */
}


/* ==========================================================================
   2. КОМПОНЕНТ: СЕТКА БАЗОВЫХ КАРТОЧЕК (С возможностью клика)
   ========================================================================== */
.th-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.th-card {
    position: relative !important;
    z-index: 1 !important;
    transition: all 0.3s ease-in-out !important;
    display: block !important;
    text-decoration: none !important;
    
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
}

/* Если карточка — это просто блок DIV (некликабельная), будет обычная стрелка */
div.th-card {
    cursor: default !important;
}

/* Если карточка — это ссылка A (кликабельная), принудительно ставим ПАЛЕЦ */
a.th-card {
    cursor: pointer !important;
}

/* Эффект наведения для всех карточек */
.th-card:hover {
    border-color: #f17321 !important;
    box-shadow: 0 12px 24px rgba(26, 38, 52, 0.1) !important;
    transform: translateY(-4px) !important;
    background-color: #ffffff !important;
    z-index: 10 !important; 
}

/* Если наводим на ссылку, заголовок становится оранжевым */
a.th-card:hover .th-card-title {
    color: #f17321 !important;
}

/* Заголовок внутри карточки */
.th-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a2634;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

/* Текст в карточке */
.th-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Очистка сторонних стилей темы */
.th-card *::before,
.th-card *::after {
    content: none !important;
}

/* Базовый каркас для кастомных наклеек в стиле Novoshop */
.badge-custom {
    display: inline-block;
    padding: 3px 8px;          /* Внутренние отступы (высота и ширина баджа) */
    font-size: 11px;           /* Размер шрифта (как у стандартных наклеек) */
    font-weight: 500;          /* Полужирное начертание для читаемости */
    line-height: 1.2;          /* Высота строки */
    text-transform: uppercase; /* Все буквы заглавные (как в стоке) */
    border-radius: 6px;        /* Легкое скругление углов */
    margin: 2px 0;             /* Отступы между наклейками, если их несколько */
    text-align: center;
    vertical-align: middle;
}

/* ==========================================================================
   СТИЛЬ: Минималистичный список преимуществ с акцентной линией (без карточек)
   ========================================================================== */
.th-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 24px;
}

.th-feature-item {
    padding-left: 16px;
    border-left: 2px solid #f17321; /* Тонкая фирменная линия-акцент */
}

.th-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2634;
    margin-bottom: 6px;
}

.th-feature-text {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
}

/* ==========================================================================
   СТИЛЬ: Мягкие карточки с фоном и верхней акцентной линией
   ========================================================================== */
.th-soft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.th-soft-card {
    background-color: #f7f9fa;
    border-radius: 8px;
    padding: 24px;
    border-top: 3px solid #f17321; /* Акцентная линия сверху в цвет бренда */
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.th-soft-card:hover {
    background-color: #f0f3f6;
    transform: translateY(-2px);
}

.th-soft-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2634;
    margin-bottom: 8px;
}

.th-soft-text {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
}

/* ==========================================================================
   СТИЛЬ: Секция Topline (список с текстовым описанием и фото справа)
   ========================================================================== */

/* Базовые стили заголовка и описания */
.th-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2634;
    margin-bottom: 20px;
}

.th-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 50px;
}

/* Контейнер топ-лайн секции */
.th-topline-section {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Строка списка (разделение текста и фото) */
.th-topline-item {
    border-top: 1px solid #e5e7eb;
    padding: 32px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    transition: all 0.5s ease-in-out;
    box-sizing: border-box;
}

.th-topline-item:last-child {
    border-bottom: 1px solid #e5e7eb;
}

/* Ховер-эффект для всей строки */
.th-topline-item:hover {
    border-top-color: #f17321;
    padding-left: 12px;
    background-color: #fbfbfb;
}

.th-topline-item:last-child:hover {
    border-bottom-color: #f17321;
}

/* Левый блок с текстовым контентом */
.th-topline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.th-topline-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9ca3af;
    font-weight: 600;
    margin: 0;
    transition: color 0.5s ease-in-out;
}

.th-topline-item:hover .th-topline-tag {
    color: #f17321;
}

.th-topline-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2634;
    margin: 0;
}

.th-topline-text {
    font-size: 15px;
    line-height: 1.75;
    color: #4a4a4a;
    margin: 0;
}

/* Правый блок — контейнер для фотографии */
.th-topline-img-wrap {
    flex: 0 0 200px;
    max-width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* Стили изображения */
.th-topline-img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Эффект зума картинки при наведении */
.th-topline-item:hover .th-topline-img {
    transform: scale(1.08);
}

/* Адаптивность для мобильных экранов */
@media (max-width: 768px) {
    .th-topline-item {
        flex-direction: column;
        gap: 24px;
        padding: 24px 0;
    }
    
    .th-topline-item:hover {
        padding-left: 4px;
    }
    
    .th-topline-title {
        font-size: 20px;
    }
    
    .th-topline-img-wrap {
        flex: 0 0 auto;
        max-width: 100%;
        height: 180px;
        align-self: center;
    }
}

/* Сильно приглушаем строку со старым артикулом */
div[data-feature-code="old_sku"] .product-feature__name-box,
div[data-feature-code="old_sku"] .product-feature__value {
    color: #c0c0c0 !important; /* Очень светлый, ненавязчивый серый */
    font-size: 0.85em !important; /* Делаем текст еще мельче */
}