/*==================================================
  DETAILED PAGE - EXTRA INFO GRID (ПОСЛЕ КАРУСЕЛИ)
==================================================*/
.narinyan-lot-extra-info {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .05);
}

.narinyan-lot-extra-info h3 {
    margin: 0 0 24px 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Сетка для элементов, аналогичная легенде аукциона */
.narinyan-lot-extra-grid {
    display: grid;
    /* Автоматические колонки: минимум 260px, на десктопе выстроится в 3-4 ряда */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

/* Элемент списка (плашка) */
.narinyan-lot-extra-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f7f8fa;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}

/* Легкий интерактив при наведении на плашку */
.narinyan-lot-extra-item:hover {
    background: #fff;
    border-color: rgba(0,0,0,.08);
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
    transform: translateY(-1px);
}

/* Стилизация SVG иконки-галочки */
.narinyan-lot-extra-item svg {
    width: 18px;
    height: 18px;
    color: #22c55e; /* Красивый зеленый цвет */
    flex-shrink: 0;
}

.narinyan-lot-extra-item span {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

/*==================================================
  RESPONSIVE (Адаптивность для мобильных)
==================================================*/
@media (max-width: 900px) {
    .narinyan-lot-extra-info {
        margin-top: 30px;
        padding: 24px;
        border-radius: 24px;
    }
    
    .narinyan-lot-extra-info h3 {
        font-size: 19px;
        margin-bottom: 18px;
    }
    
    .narinyan-lot-extra-grid {
        /* На планшетах делаем элементы чуть компактнее */
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .narinyan-lot-extra-grid {
        /* На мобильных телефонах всё строго в одну колонку */
        grid-template-columns: 1fr;
    }
    
    .narinyan-lot-extra-item {
        padding: 12px 14px;
    }
}

/*==================================================
  DETAILED PAGE - CHINA SPECIFICATIONS CARDS
==================================================*/
.narinyan-china-specs {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Карточка отдельной технической категории */
.china-spec-category {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.china-spec-category h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

/* Двухколоночная сетка параметров внутри карточки */
.china-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}

/* Строка параметра */
.china-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.china-spec-label {
    color: #4b5563;
    font-weight: 500;
}

.china-spec-value {
    font-weight: 600;
    color: #111827;
    text-align: right;
}

/* Красивые статусы-бейджи для YES / OPT */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-badge.yes {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.opt {
    background: #fff3e0;
    color: #ef6c00;
}

.status-yes-text {
    color: #2e7d32;
    font-weight: 600;
}

.status-text-val {
    color: #1f2937;
}

/*==================================================
  RESPONSIVE FOR CHINA SPECIFICATIONS
==================================================*/
@media (max-width: 768px) {
    .china-spec-grid {
        /* На мобильных экранах перестраиваем сетку параметров в одну колонку */
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .china-spec-category {
        padding: 16px;
        border-radius: 16px;
    }
    
    .china-spec-category h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

/* Новая сетка детальной страницы лота */
.narinyan-lot-top {
    display: flex !important;
    gap: 30px !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
}
.narinyan-lot-left-column {
    flex: 1 1 640px !important;
    max-width: 640px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.narinyan-lot-info {
    flex: 1 1 450px !important;
}

/* Стилизация главного окна просмотра */
.narinyan-lot-main-image-wrap {
    position: relative !important;
    width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    background: #f7f7f7 !important;
}
.narinyan-lot-main-image-wrap img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
    cursor: pointer !important;
}

/* Двухрядная сетка миниатюр под фото (по 4 штуки в ряд) */
.narinyan-lot-thumb-carousel {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important; /* Разрешаем перенос картинок на второй ряд */
    padding-bottom: 6px !important;
    max-height: 230px !important; /* Увеличили высоту, так как сами миниатюры стали крупнее */
    overflow-y: auto !important;  /* Вертикальный скролл включится, если фото больше 8 штук */
}

/* Стилизация полосы вертикальной прокрутки */
.narinyan-lot-thumb-carousel::-webkit-scrollbar {
    width: 5px !important;
}
.narinyan-lot-thumb-carousel::-webkit-scrollbar-thumb {
    background-color: #e0e0e0 !important;
    border-radius: 10px !important;
}

/* Новые крупные размеры миниатюр для сетки 4х2 в блоке 606px */
.narinyan-thumb-item {
    flex: 0 0 145px !important; /* 4 штуки с отступами займут ровно 606px */
    height: 105px !important;   /* Пропорциональная высота для сохранения геометрии фото */
    border-radius: 8px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    opacity: 0.6 !important;
}
.narinyan-thumb-item:hover, .narinyan-thumb-item.active {
    border-color: #1e88e5 !important; /* Синяя рамка активного кадра */
    opacity: 1 !important;
}
.narinyan-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
