/* ========================================
   PRODUCT DETAILS PAGE - Modern Blue Design
   ======================================== */

/* Product Header Section */
.product-header-section {
    padding: 2rem 0 1rem;
    background: #F9FAFB;
    border-bottom: 2px solid #E5E7EB;
}

.breadcrumb-nav-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6B7280;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #0066FF;
}

.breadcrumb-separator {
    color: #D1D5DB;
}

.breadcrumb-current-product {
    color: #0066FF;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ========================================
   PRODUCT MAIN SECTION
   ======================================== */

.product-main-section {
    padding: 4rem 0;
    background: #FFFFFF;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PRODUCT GALLERY
   ======================================== */

.product-gallery-section {
    position: relative;
}

.gallery-main-view {
    position: relative;
    background: #F9FAFB;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #E5E7EB;
    padding: 2rem;
    transition: all 0.3s;
}

.gallery-main-view:hover {
    border-color: #0066FF;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.12);
}

.image-zoom-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 12px;
}

.main-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
}

.zoom-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(0, 102, 255, 0.95);
    color: #FFFFFF;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-main-view:hover .zoom-hint {
    opacity: 1;
}

.featured-badge-product {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    color: #FFFFFF;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
    animation: badgeFloat 3s infinite ease-in-out;
    z-index: 10;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   PRODUCT INFO
   ======================================== */

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.meta-tag-category,
.meta-tag-model {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
}

.meta-tag-category {
    background: #E6F2FF;
    color: #0066FF;
}

.meta-tag-model {
    background: #F3F4F6;
    color: #374151;
}

.product-title-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.3;
    margin: 0;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.product-stats-bar {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.stat-item-product {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #6B7280;
    font-weight: 600;
}

.stat-item-product svg {
    color: #0066FF;
}

.product-description-short {
    padding: 2rem;
    background: linear-gradient(135deg, #E6F2FF 0%, #F9FAFB 100%);
    border-radius: 16px;
    border-left: 4px solid #0066FF;
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

.description-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.description-heading::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #0066FF, #00B8FF);
    border-radius: 2px;
}

.product-description-short p {
    font-size: 1rem;
    color: #374151;
    line-height: 1.8;
    margin: 0;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

.btn-download-datasheet,
.btn-contact-sales {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-download-datasheet {
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.25);
}

.btn-download-datasheet::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-download-datasheet:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
}

.btn-download-datasheet:hover::before {
    opacity: 1;
}

.btn-contact-sales {
    background: #FFFFFF;
    color: #0066FF;
    border: 2px solid #0066FF;
}

.btn-contact-sales:hover {
    background: #0066FF;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
}

/* ========================================
   PRODUCT DETAILS TABS
   ======================================== */

.product-details-tabs-section {
    padding: 5rem 0;
    background: #F9FAFB;
}

.tabs-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid #E5E7EB;
    overflow-x: auto;
    animation: fadeIn 0.8s ease-out;
}

.tab-btn-product {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6B7280;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn-product svg {
    transition: transform 0.3s;
}

.tab-btn-product:hover {
    color: #0066FF;
    background: rgba(0, 102, 255, 0.05);
}

.tab-btn-product:hover svg {
    transform: scale(1.1);
}

.tab-btn-product.active {
    color: #0066FF;
    border-bottom-color: #0066FF;
    background: rgba(0, 102, 255, 0.08);
}

.tabs-content-wrapper {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.08);
    min-height: 400px;
}

.tab-content-product {
    display: none;
    animation: tabFadeIn 0.5s ease-out;
}

.tab-content-product.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Content */
.features-content {
    max-width: 900px;
}

.rich-text-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.rich-text-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-text-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.rich-text-content p {
    margin-bottom: 1rem;
}

.rich-text-content ul,
.rich-text-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.rich-text-content li {
    margin-bottom: 0.5rem;
}

/* Specifications Grid */
.specifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    border-left: 4px solid #0066FF;
    transition: all 0.3s;
}

.spec-item:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
    transform: translateX(4px);
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.spec-label svg {
    color: #0066FF;
}

.spec-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

/* Topology Content */
.topology-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.topology-placeholder {
    text-align: center;
    max-width: 600px;
}

.topology-placeholder svg {
    color: #0066FF;
    margin-bottom: 2rem;
}

.topology-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.topology-placeholder p {
    font-size: 1rem;
    color: #6B7280;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state svg {
    color: #D1D5DB;
    margin-bottom: 1.5rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: #6B7280;
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */

.related-products-section {
    padding: 5rem 0;
    background: #FFFFFF;
}

.section-header-related {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title-related {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.section-title-related svg {
    color: #0066FF;
}

.section-subtitle-related {
    font-size: 1.125rem;
    color: #6B7280;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.related-product-card {
    animation: productSlideIn 0.5s ease-out calc(var(--card-index) * 0.1s) backwards;
}

@keyframes productSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.related-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-product-card {
    background: #F9FAFB;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    border: 2px solid transparent;
}

.related-product-card:hover {
    background: #FFFFFF;
    border-color: #0066FF;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.15);
    transform: translateY(-8px);
}

.related-product-image {
    position: relative;
    padding-top: 75%;
    background: #FFFFFF;
    overflow: hidden;
}

.related-product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.4s;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.1);
}

.related-product-info {
    padding: 1.5rem;
}

.related-product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.related-product-card:hover .related-product-title {
    color: #0066FF;
}

.related-product-model {
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .product-layout {
        gap: 3rem;
    }
    
    .specifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-title-main {
        font-size: 2rem;
    }
    
    .tabs-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-main-section {
        padding: 3rem 0;
    }
    
    .product-title-main {
        font-size: 1.75rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-download-datasheet,
    .btn-contact-sales {
        width: 100%;
    }
    
    .tabs-content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .section-title-related {
        font-size: 2rem;
        flex-direction: column;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .specifications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .product-header-section {
        padding: 1.5rem 0 0.75rem;
    }
    
    .breadcrumb-nav-product {
        font-size: 0.875rem;
    }
    
    .product-title-main {
        font-size: 1.5rem;
    }
    
    .product-meta-tags {
        flex-direction: column;
    }
    
    .meta-tag-category,
    .meta-tag-model {
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn-product {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .section-title-related {
        font-size: 1.75rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .product-header-section,
    .product-actions,
    .tabs-navigation,
    .related-products-section {
        display: none;
    }
    
    .tab-content-product {
        display: block !important;
    }
    
    .tabs-content-wrapper {
        box-shadow: none;
        border: 1px solid #E5E7EB;
    }
}