/* ========================================
 * SHARED DETAIL PAGE STYLES
 * ======================================== */

/* ===== PRODUCT SUPPORT SECTION ===== */
.product-support-section {
    background-color: #186396;
    padding: 4rem 0;
    width: 100%;
}

.product-support-section .support-header {
    max-width: 1320px;
    margin: 0 auto 3rem auto;
    padding: 0 10px;
    text-align: center;
}

.product-support-section .support-items {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 10px;
}

.support-header {
    text-align: center;
    margin-bottom: 3rem;
}

.support-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.support-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.support-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.support-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.support-item i {
    font-size: 1.5rem;
    color: white;
    width: 24px;
    text-align: center;
}

.support-content {
    display: flex;
    flex-direction: column;
}

.support-link {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.support-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== GALLERY SYSTEM ===== */
/* Gallery styles are now unified in gallery-shared.css */
/* This ensures consistent behavior across all page types */

/* ===== RELATED SECTION ===== */
.product-related-section {
    padding: 4rem 0;
    background: #fff;
}

.product-related-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-content-category {
    margin-bottom: 3rem;
}

.related-content-category:last-child {
    margin-bottom: 0;
}

.related-content-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #186396;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .support-items {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .support-item {
        padding: 1rem;
    }
    
    .product-detail-page .container {
        padding: 0 1rem;
    }
    
    .resources-list {
        gap: 1.5rem;
    }
    
    .product-hero {
        flex-direction: column;
        gap: 2rem;
    }
    
    .product-hero-image {
        order: -1;
    }
    
    .product-hero-info {
        text-align: center;
    }
    
    .product-hero-info li {
        text-align: left;
    }
    .hero-product-title {
        font-size: 2rem;
    }
    
    .hero-product-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    .gallery-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Mobile gallery main image - consolidated from product-details.css */
    body.single-products .main-image-container,
    body.single-parts .main-image-container,
    body.single-solutions .main-image-container {
        min-height: 400px !important;
        height: 400px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.single-products .main-image-wrapper,
    body.single-parts .main-image-wrapper,
    body.single-solutions .main-image-wrapper {
        min-height: 400px !important;
        height: 400px !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: none !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.single-products .main-gallery-image,
    body.single-parts .main-gallery-image,
    body.single-solutions .main-gallery-image {
        min-height: 400px !important;
        max-height: 400px !important;
        height: 400px !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        object-fit: cover !important;
        transform: none !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Mobile gallery thumbnails - consolidated from product-details.css */
    body.single-products .gallery-thumbnails,
    body.single-parts .gallery-thumbnails,
    body.single-solutions .gallery-thumbnails {
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding: 1rem 0 !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* ===== STICKY NAVIGATION ===== */
    /* Sticky navigation styles are now unified in sticky-nav.css */
    /* Mobile-specific overrides are handled in the unified system */
    
    .features-comparison {
        font-size: 0.9rem;
    }
    
    .features-comparison th {
        padding: 0.5rem;
    }
    
    .specs-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .accessories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    /* ===== GALLERY SYSTEM ===== */
    /* Gallery styles are now unified in gallery-shared.css */
    /* Mobile-specific overrides are handled in the unified system */

}

@media (max-width: 480px) {
    .hero-product-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-comparison {
        font-size: 0.8rem;
    }
    
    .product-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-detail-page .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

}

/* ===== STICKY NAVIGATION ===== */
.product-sticky-nav .nav-link {
    position: relative;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.product-sticky-nav .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-sticky-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #186396;
    transition: width 0.3s ease;
}

.nav-link:focus {
    outline: 0px;
    border-bottom: 1px solid #186396;
    transition: width 0.3s ease;
    border-radius: 0 !important;
}

.product-sticky-nav .nav-link:hover,
.product-sticky-nav .nav-link.active {
    color: #186396;
}

.product-sticky-nav .nav-link:hover::before,
.product-sticky-nav .nav-link.active::before {
    width: 100%;
}
