/* product-page.css - ВСЕ СТИЛИ ДЛЯ СТРАНИЦ ТОВАРОВ */

/* === ОСНОВНЫЕ СТИЛИ === */
.product-page {
    padding: 30px 0 60px;
    background: #f8f9fa;
}

/* Блок хлебных крошек */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumbs span {
    color: #666;
}

/* Заголовок товара */
.product-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f8ff;
}

.product-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
}

.rating-text {
    color: #666;
    margin-left: 10px;
    font-size: 0.9rem;
}

.product-code {
    background: #f0f8ff;
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid #3498db;
}

/* Основной контейнер товара */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Галерея товара */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: #3498db;
    transform: scale(1.05);
}

/* Блок цены */
.price-block {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #27ae60;
    margin-bottom: 25px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #27ae60;
    line-height: 1;
}

.old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin: 5px 0;
}

.discount {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Доступность */
.availability {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #c3e6cb;
}

/* Особенности */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.feature {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 150px;
}

.feature i {
    color: #3498db;
}

/* Кнопки заказа */
.order-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.whatsapp-order-btn {
    background: linear-gradient(to right, #25D366, #128C7E);
    color: white;
    padding: 18px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.whatsapp-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.phone-order-btn {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    padding: 18px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.phone-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.back-to-shop {
    color: #3498db;
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border: 1px solid #3498db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.back-to-shop:hover {
    background: #3498db;
    color: white;
}

/* Характеристики */
.specifications {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f0f8ff;
    margin: 30px 0;
}

.specifications h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specifications table {
    width: 100%;
    border-collapse: collapse;
}

.specifications tr {
    border-bottom: 1px solid #eee;
}

.specifications tr:last-child {
    border-bottom: none;
}

.specifications td {
    padding: 12px 0;
    vertical-align: top;
}

.specifications td:first-child {
    color: #666;
    width: 40%;
    font-weight: 500;
}

.specifications td:last-child {
    color: #333;
    font-weight: 600;
}

/* Детальное описание */
.product-description-detailed {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    border: 2px solid #f0f8ff;
}

.product-description-detailed h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.description-content h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.description-content h4 {
    color: #2c3e50;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.description-content p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.description-content ul,
.description-content ol {
    margin: 15px 0 15px 20px;
}

.description-content li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #444;
}

/* Уведомления и предупреждения */
.notice {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.notice h4 {
    color: #0d47a1;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning i {
    color: #f39c12;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Блок установки */
.installation-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    border: 2px solid #f0f8ff;
}

.installation-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.installation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.install-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 2px solid #f0f8ff;
    transition: all 0.3s;
}

.install-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.install-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.install-card h4 {
    color: #2c3e50;
    margin: 15px 0 10px;
}

.install-card p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.installation-cta {
    text-align: center;
    margin-top: 40px;
}

.install-cta-btn {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.install-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

/* SEO контент */
.seo-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    border: 2px solid #f0f8ff;
}

.seo-content h2 {
    color: #2c3e50;
    margin-bottom: 25px;
}

.seo-content h3 {
    color: #2c3e50;
    margin: 30px 0 20px;
    font-size: 1.5rem;
}

.seo-content ul {
    margin: 20px 0 20px 20px;
}

.seo-content li {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #444;
}

/* FAQ */
.faq {
    margin-top: 30px;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item h4 {
    background: #f8f9fa;
    margin: 0;
    padding: 20px;
    font-size: 1.1rem;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h4:after {
    content: '+';
    font-size: 1.5rem;
    color: #3498db;
}

.faq-item p {
    padding: 20px;
    margin: 0;
    border-top: 1px solid #e9ecef;
    display: none;
}

/* Похожие товары */
.related-products {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    border: 2px solid #f0f8ff;
}

.related-products h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.related-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 20px;
}

.related-item h5 {
    margin: 15px 0 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.related-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.related-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Таблицы цен (для Hyundai, Nissan) */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.price-table th {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: left;
}

.price-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.price-table tr:last-child td {
    border-bottom: none;
    background: #f8f9fa;
    font-weight: bold;
    color: #27ae60;
}

.small-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Бэйджи для б/у товаров (Geely) */
.used-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.condition-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.condition-badge {
    background: #d4edda;
    color: #155724;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c3e6cb;
}

.condition-badge i {
    color: #28a745;
}

/* Адаптивность */
@media (max-width: 992px) {
    .product-container {
        gap: 30px;
    }
    
    .current-price {
        font-size: 2.2rem;
    }
    
    .product-description-detailed,
    .installation-section,
    .seo-content,
    .related-products {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-header h1 {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .product-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature {
        min-width: 100%;
    }
    
    .product-description-detailed,
    .installation-section,
    .seo-content,
    .related-products {
        padding: 25px 20px;
    }
    
    .installation-cards,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .product-header h1 {
        font-size: 1.6rem;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .price-block {
        padding: 20px;
    }
    
    .whatsapp-order-btn,
    .phone-order-btn {
        padding: 15px;
        font-size: 1rem;
    }
}