/* =========================================
   СТРАНИЦА ПРОДУКТА (МОБИЛЬНАЯ АДАПТАЦИЯ)
========================================= */
.product-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch;
}

.product-gallery-col, .product-info-col {
    display: flex;
    flex-direction: column;
}

.product-block-gallery, .product-block-info {
    height: 100%;
    margin-bottom: 0 !important;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-block-gallery {
    padding: 25px;
    gap: 15px;
}

.product-block-info {
    padding: 35px;
    justify-content: space-between;
}

/* Главное изображение */
.main-image-container {
    border-radius: 8px;
    background: #1a1a1a;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
    width: 100%;
    min-height: 350px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: zoom-in;
}

#main-product-image {
    padding: 10px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Лента миниатюр (Скролл для множества картинок) */
.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch; /* Плавный свайп на iOS/Android */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.thumbnail {
    background: #1a1a1a;
    width: 80px;
    height: 60px;
    flex-shrink: 0; /* Миниатюры не будут сжиматься, если их много */
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    opacity: 1;
    border-color: #6D7D8C;
}

/* Тексты и цены */
.product-info-top {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-size: 28px;
}

.product-stats-modern {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-card-modern {
    cursor: pointer;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    min-width: 140px;
    transition: all 0.3s ease;
}

.product-price-section {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-actions-main .market_status_btn,
.product-actions-main .authorize_btn,
.product-actions-main .product-main-buy-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 18px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0;
}

/* Блок зависимостей */
.dependencies-block {
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.deps-title {
    font-size: 12px;
    color: #8a8a8a;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =========================================
   БЛОК ОПИСАНИЯ
========================================= */
.product-block-desc {
    border-radius: 12px;
    padding: 35px;
    margin-top: 30px;
}

.desc-title {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.desc-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 25px;
}

.product-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    letter-spacing: 0.2px;
}

/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ ТОВАРА
========================================= */
@media (max-width: 576px) {
    .main {
        padding: 20px 15px; /* Убрали 40px, которые съедали половину экрана */
    }
}

@media (max-width: 992px) {
    .product-content-grid {
        grid-template-columns: 1fr; /* Колонки перестраиваются одна под другую */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-block-gallery {
        padding: 15px;
        gap: 10px;
    }
    
    .product-block-info {
        padding: 15px;
    }

    .desc-title {
        font-size: 20px;
    }

    .product-block-desc {
        padding: 15px;
        margin-top: 20px;
    }
    
    .main-image-container {
        min-height: 250px;
        max-height: 300px;
    }
    
    .product-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .product-stats-modern {
        padding: 15px 0;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .stat-card-modern {
        min-width: 120px;
        padding: 10px;
    }

    .product-price-section {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .dependencies-block {
        padding: 15px;
        margin-top: 20px;
    }
    
    /* Уменьшаем миниатюры на телефоне, они будут плавно скроллиться свайпом */
    .thumbnail {
        width: 65px;
        height: 50px;
    }
    
    .product-actions-main .market_status_btn,
    .product-actions-main .authorize_btn,
    .product-actions-main .product-main-buy-btn {
        padding: 14px;
        font-size: 15px;
    }
}