/* Product Detail Page Styles - Dark Theme */

/* Global image fix */
.product-detail img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Model tabs for multi-model product pages */
.model-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.model-tab { 
    padding: 15px 30px; 
    background: rgba(255,255,255,0.05); 
    border: 2px solid rgba(255, 107, 44, 0.3); 
    border-radius: 10px; 
    cursor: pointer; 
    transition: all 0.3s; 
    color: var(--text-secondary);
}
.model-tab:hover { border-color: var(--accent); }
.model-tab.active { 
    background: linear-gradient(135deg, #ff6b2c 0%, #ff8c5a 100%); 
    color: white; 
    border-color: #ff6b2c; 
}
.model-content { display: none; }
.model-content.active { display: block; }

/* Ensure hidden model content doesn't affect layout */
.model-content:not(.active) {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}

/* Fix for product-content with embedded images */
.product-content .product-applications img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-content .product-applications {
    overflow: hidden;
}

.breadcrumb {
    padding: 80px 0 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

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

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 30px 0 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    max-width: 600px;
    border: 1px solid rgba(255, 107, 44, 0.1);
}

.main-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    display: block;
}

.image-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.image-placeholder i {
    font-size: 80px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.thumb-images {
    display: flex;
    gap: 10px;
}

.thumb {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 107, 44, 0.1);
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb:hover {
    border-color: var(--accent);
}

.thumb.active {
    border-color: var(--accent);
    border-width: 2px;
}

.product-content h1 {
    color: var(--accent);
    font-size: 32px;
    margin-bottom: 5px;
}

.product-content h2 {
    font-size: 18px;
    font-weight: normal;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.product-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 107, 44, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent);
    border: 1px solid rgba(255, 107, 44, 0.2);
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.product-specs th,
.product-specs td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 107, 44, 0.1);
}

.product-specs th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-primary);
}

.product-specs td {
    color: var(--text-secondary);
}

.product-specs tr:hover {
    background: var(--bg-card);
}

.product-applications {
    margin-bottom: 30px;
}

.product-applications h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.product-applications ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-applications li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.product-applications i {
    color: #25d366;
}

.product-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

@media (max-width: 768px) {
    .product-main {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px 0 !important;
    }
    
    .product-gallery {
        position: static !important;
    }
    
    .main-image {
        width: 100% !important;
    }
    
    .main-image img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .thumb-images {
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto !important;
        padding-bottom: 10px !important;
    }
    
    .thumb {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        flex-shrink: 0 !important;
    }
    
    .thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .product-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }
    
    .product-content h2 {
        font-size: 16px !important;
    }
    
    .product-tags {
        gap: 8px !important;
    }
    
    .tag {
        font-size: 11px !important;
        padding: 4px 12px !important;
    }
    
    .product-specs {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .product-specs table {
        min-width: 600px !important;
        font-size: 13px !important;
    }
    
    .product-specs th,
    .product-specs td {
        padding: 10px 12px !important;
    }
    
    .product-applications ul {
        grid-template-columns: 1fr !important;
    }
    
    .product-cta {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .product-cta .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 20px !important;
    }
    
    .breadcrumb {
        padding: 80px 0 15px !important;
        font-size: 12px !important;
        word-wrap: break-word !important;
    }
}

/* Product Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid rgba(255, 107, 44, 0.1);
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: var(--accent);
}

/* Product Scenarios */
.product-scenarios {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 107, 44, 0.1);
}

.product-scenarios h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.scenario-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 44, 0.1);
    transition: all 0.3s;
}

.scenario-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scenario-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scenario-item p {
    padding: 15px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scenario-item img {
        height: 180px;
    }
    
    .product-thumbnails {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .thumbnail {
        min-width: 60px;
        width: 60px;
        height: 60px;
    }
}
