/*
* Vision3D - Single Product Page Styles
*/

/* Product Header */
.product-header {
    background-color: var(--primary-dark-blue);
    color: var(--text-light);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right center, rgba(0, 255, 255, 0.2) 0%, rgba(0, 51, 102, 0) 70%);
}

.product-header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.product-header-info {
    flex: 1;
}

.product-category {
    display: inline-block;
    background-color: var(--primary-light-blue);
    color: var(--primary-white);
    font-size: var(--font-size-small);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
}

.product-header h1 {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.product-description {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
}

.product-header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-header-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Product Navigation */
.product-navigation {
    background-color: var(--primary-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 80px;
    z-index: var(--z-index-sticky);
}

.product-nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}

.product-nav-links li {
    flex: 0 0 auto;
}

.product-nav-links a {
    display: block;
    padding: 20px;
    color: var(--secondary-dark-gray);
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.product-nav-links a:hover,
.product-nav-links a.active {
    color: var(--primary-dark-blue);
    box-shadow: inset 0 -3px 0 var(--accent-cyan);
}

/* Product Overview */
.product-overview {
    padding: var(--spacing-xl) 0;
}

.product-overview-content {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.product-overview-text {
    flex: 1;
}

.product-overview-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.product-overview-video {
    flex: 1;
}

.video-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-container img {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 51, 102, 0.8);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.play-button i {
    color: var(--accent-cyan);
    font-size: 30px;
}

.play-button:hover {
    background-color: var(--primary-dark-blue);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--secondary-dark-gray);
    font-style: italic;
}

.video-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    font-size: 18px;
}

/* Product Features */
.product-features {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.feature-card {
    background-color: var(--primary-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-dark-blue);
    color: var(--accent-cyan);
    font-size: 36px;
    border-radius: var(--border-radius-circle);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.feature-title {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark-blue);
}

.feature-description {
    color: var(--secondary-dark-gray);
}

/* Product Specifications */
.product-specifications {
    padding: var(--spacing-xl) 0;
}

.specifications-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--primary-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.specifications-table th,
.specifications-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--secondary-light-gray);
}

.specifications-table th {
    width: 40%;
    background-color: rgba(0, 51, 102, 0.05);
    font-weight: 600;
    color: var(--primary-dark-blue);
}

.specifications-table tr:last-child th,
.specifications-table tr:last-child td {
    border-bottom: none;
}

.specifications-note {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--secondary-dark-gray);
}

.specifications-note a {
    color: var(--primary-light-blue);
    font-weight: 600;
}

/* Product Applications */
.product-applications {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-light-gray);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.application-card {
    background-color: var(--primary-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.application-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.application-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-dark-blue);
    color: var(--accent-cyan);
    font-size: 30px;
    border-radius: var(--border-radius-circle);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.application-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark-blue);
}

.application-card p {
    color: var(--secondary-dark-gray);
}

/* Case Study Highlight */
.case-study-highlight {
    padding: var(--spacing-xl) 0;
}

.case-study-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    background-color: var(--primary-dark-blue);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    color: var(--text-light);
}

.case-study-image {
    flex: 1;
    max-width: 40%;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-study-text {
    flex: 1;
    padding: var(--spacing-lg);
}

.case-study-label {
    display: inline-block;
    background-color: var(--accent-cyan);
    color: var(--primary-dark-blue);
    font-size: var(--font-size-small);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
}

.case-study-text h2 {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.case-study-text p {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.case-study-text blockquote {
    border-left: 3px solid var(--accent-cyan);
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.quote-author {
    text-align: right;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

/* Related Products */
.related-products {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-light-gray);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

/* Product FAQ */
.product-faq {
    padding: var(--spacing-xl) 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--primary-white);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-item.active .faq-question {
    background-color: var(--primary-dark-blue);
    color: var(--text-light);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: var(--font-size-h5);
    flex: 1;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-light-blue);
    color: var(--primary-white);
    border-radius: var(--border-radius-circle);
    transition: all var(--transition-fast);
}

.faq-item.active .faq-toggle {
    background-color: var(--accent-cyan);
    color: var(--primary-dark-blue);
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding-bottom: var(--spacing-md);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-header-content {
        flex-direction: column;
    }
    
    .product-header-info {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .product-actions {
        justify-content: center;
    }
    
    .product-overview-content {
        flex-direction: column;
    }
    
    .product-overview-text {
        margin-bottom: var(--spacing-lg);
    }
    
    .case-study-content {
        flex-direction: column;
    }
    
    .case-study-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-header {
        padding: 100px 0 50px;
    }
    
    .product-header h1 {
        font-size: 36px;
    }
    
    .product-nav-links {
        justify-content: flex-start;
    }
    
    .product-nav-links a {
        padding: 15px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .product-header h1 {
        font-size: 30px;
    }
    
    .specifications-table th,
    .specifications-table td {
        padding: 10px;
    }
}