/* Product Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.product-hero {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 30px;
}

.main-image {
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail-gallery img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-gallery img:hover {
    opacity: 1;
    border-color: #007bff;
}

/* 3D Model Viewer Section */
.model-viewer-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.model-viewer-section h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.model-viewer {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #f0f2f5, #e9ecef);
    border-radius: 8px;
    margin-bottom: 20px;
    --poster-color: transparent;
    --ar-placement-offset: 0m 0m 0m;
    --progress-bar-color: #007bff;
    --progress-mask: #ffffff;
}

.ar-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ar-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.model-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.control-btn, .screenshot-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.control-btn:hover, .screenshot-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
}

.control-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.screenshot-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.screenshot-btn:hover {
    background: #218838;
}

.ar-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Product Details */
.product-details {
    padding: 60px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.description-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.description-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 30px 0 15px 0;
}

.description-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    font-size: 1rem;
    color: #555;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.application-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.application-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.application-item p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Specifications Card */
.specifications-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}

.specifications-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
}

.spec-value {
    color: #666;
    font-weight: 500;
}

.cta-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Industries Section */
.industries-section {
    background: #f8f9fa;
    padding: 60px 40px;
    border-radius: 12px;
    margin: 40px 0;
}

.industries-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.industries-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Related Products */
.related-products {
    padding: 60px 0;
    border-top: 1px solid #e0e0e0;
}

.related-products h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.related-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.related-item h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.related-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-container {
        padding: 0 15px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-title {
        font-size: 2rem;
    }

    .model-viewer {
        height: 300px;
    }

    .model-controls {
        justify-content: center;
    }

    .control-btn, .screenshot-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-section {
        margin-top: 25px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.8rem;
    }

    .model-viewer-section {
        padding: 20px;
    }

    .model-viewer {
        height: 250px;
    }

    .specifications-card {
        padding: 20px;
    }

    .industries-section {
        padding: 40px 20px;
    }
}