/**
 * FCNC Product V2 Styles
 * Шаблон карточки товара V2 для A/B тестирования
 * 
 * Дизайн основан на стилях страниц производителей
 * Цветовая палитра: #667eea, #764ba2, градиенты
 * 
 * @version 2.0.0
 */

/* ============================================
   КОНТЕЙНЕР
   ============================================ */

.fcnc-product-v2 {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

.fcnc-v2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================ */

.fcnc-v2-breadcrumbs {
    margin-bottom: 30px;
}

.fcnc-v2-breadcrumbs .woocommerce-breadcrumb {
    font-size: 14px;
    color: #666;
}

.fcnc-v2-breadcrumbs .woocommerce-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fcnc-v2-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ============================================
   HERO СЕКЦИЯ
   ============================================ */

.fcnc-v2-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    position: relative;
}

/* Декоративные элементы */
.fcnc-v2-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.fcnc-v2-hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.fcnc-v2-hero-left {
    color: #fff;
}

.fcnc-v2-title {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #fff;
    line-height: 1.3;
}

.fcnc-v2-price-block {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fcnc-v2-price-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

.fcnc-v2-price-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Trust badges */
.fcnc-v2-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fcnc-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
}

.fcnc-v2-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.fcnc-v2-badge i {
    font-size: 16px;
}

/* Фото товара */
.fcnc-v2-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fcnc-v2-photo {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.fcnc-v2-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcnc-v2-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
    font-size: 80px;
}

/* ============================================
   ИНФОРМАЦИОННЫЙ БЛОК
   ============================================ */

.fcnc-v2-info-block {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.fcnc-v2-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffc107;
    color: #fff;
    border-radius: 8px;
    font-size: 20px;
}

.fcnc-v2-info-text {
    flex: 1;
    color: #856404;
    font-size: 15px;
    line-height: 1.7;
}

.fcnc-v2-info-text strong {
    font-weight: 600;
}

/* ============================================
   CTA КНОПКА
   ============================================ */

.fcnc-v2-cta-section {
    margin-bottom: 50px;
    text-align: center;
}

.fcnc-v2-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fcnc-v2-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.fcnc-v2-cta-button i {
    font-size: 20px;
}

/* ============================================
   СЕКЦИИ (ТАБЛИЦА ЦЕН, ВКЛАДКИ)
   ============================================ */

.fcnc-v2-price-table-section,
.fcnc-v2-tabs-section,
.fcnc-v2-related-section {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

.fcnc-v2-section-header {
    margin-bottom: 30px;
    text-align: center;
}

.fcnc-v2-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.fcnc-v2-section-title i {
    color: #667eea;
    font-size: 30px;
}

.fcnc-v2-section-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.fcnc-v2-no-prices {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* ============================================
   ВКЛАДКИ
   ============================================ */

.fcnc-v2-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.fcnc-v2-tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.fcnc-v2-tab-button::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.fcnc-v2-tab-button:hover {
    color: #667eea;
    background: #f8f9fa;
}

.fcnc-v2-tab-button.active {
    color: #667eea;
    background: #f8f9fa;
}

.fcnc-v2-tab-button.active::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fcnc-v2-tab-pane {
    display: none;
    animation: fcncFadeIn 0.4s ease;
}

.fcnc-v2-tab-pane.active {
    display: block;
}

@keyframes fcncFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fcnc-v2-description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* ============================================
   ДРУГИЕ ЧПУ-УСЛУГИ
   ============================================ */

.fcnc-v2-related-section .fcnc-v2-section-title {
    justify-content: flex-start;
    margin-bottom: 30px;
}

.fcnc-v2-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.fcnc-v2-related-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fcnc-v2-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.fcnc-v2-related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fcnc-v2-related-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.fcnc-v2-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fcnc-v2-related-card:hover .fcnc-v2-related-image img {
    transform: scale(1.08);
}

.fcnc-v2-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
    font-size: 60px;
}

.fcnc-v2-related-content {
    padding: 24px;
}

.fcnc-v2-related-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.fcnc-v2-related-card:hover .fcnc-v2-related-title {
    color: #667eea;
}

.fcnc-v2-related-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 16px;
}

.fcnc-v2-related-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fcnc-v2-related-card:hover .fcnc-v2-related-button {
    transform: translateX(4px);
}

.fcnc-v2-no-related {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 968px) {
    .fcnc-v2-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fcnc-v2-hero-right {
        order: -1;
    }

    .fcnc-v2-photo {
        height: 280px;
    }

    .fcnc-v2-title {
        font-size: 28px;
    }

    .fcnc-v2-price-value {
        font-size: 26px;
    }

    .fcnc-v2-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fcnc-product-v2 {
        padding: 20px 0;
    }

    .fcnc-v2-container {
        padding: 0 15px;
    }

    .fcnc-v2-hero {
        padding: 30px;
    }

    .fcnc-v2-title {
        font-size: 24px;
    }

    .fcnc-v2-price-block {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .fcnc-v2-price-value {
        font-size: 24px;
    }

    .fcnc-v2-trust-badges {
        flex-direction: column;
    }

    .fcnc-v2-badge {
        justify-content: center;
    }

    .fcnc-v2-photo {
        height: 240px;
    }

    .fcnc-v2-cta-button {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 16px 24px;
    }

    .fcnc-v2-price-table-section,
    .fcnc-v2-tabs-section,
    .fcnc-v2-related-section {
        padding: 24px;
    }

    .fcnc-v2-section-title {
        font-size: 22px;
        flex-direction: column;
        text-align: center;
    }

    .fcnc-v2-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }

    .fcnc-v2-tab-button {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid #e0e0e0;
    }

    .fcnc-v2-tab-button::after {
        display: none;
    }

    .fcnc-v2-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fcnc-v2-hero {
        padding: 20px;
    }

    .fcnc-v2-title {
        font-size: 20px;
    }

    .fcnc-v2-info-block {
        flex-direction: column;
        padding: 20px;
    }

    .fcnc-v2-section-title {
        font-size: 18px;
    }
}

