/* ============================================
   Product Detail Page - Professional B2B Style
   Inspired by Alibaba/Made-in-China patterns
   ============================================ */

/* --- Breadcrumb --- */
.product-breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.product-breadcrumb ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #6c757d;
}

.product-breadcrumb a {
    color: #0d6efd;
    text-decoration: none;
}

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

.product-breadcrumb .separator {
    color: #adb5bd;
}

.product-breadcrumb .current {
    color: #212529;
    font-weight: 500;
}

/* --- Main Product Section --- */
.product-detail-section {
    padding: 40px 0 60px;
    background: #fff;
}

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

.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* --- Product Image --- */
.product-image-gallery {
    position: sticky;
    top: 20px;
}

.product-image-main {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
}

.product-image-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-image-main:hover img {
    transform: scale(1.02);
}

.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.iso {
    background: #0d6efd;
    color: #fff;
}

.badge.export {
    background: #198754;
    color: #fff;
}

.badge.hot {
    background: #dc3545;
    color: #fff;
}

.badge.new {
    background: #fd7e14;
    color: #fff;
}

/* --- Product Info Panel --- */
.product-info-panel {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 8px;
    line-height: 1.3;
}

.product-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 16px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #495057;
}

.product-meta-item i {
    color: #0d6efd;
    font-size: 14px;
}

.product-meta-item strong {
    color: #212529;
}

/* --- Price/Quote Section --- */
.product-price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #dee2e6;
}

.price-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 4px;
}

.price-note {
    font-size: 13px;
    color: #6c757d;
}

/* --- Quick Specs --- */
.quick-specs {
    margin-bottom: 24px;
}

.quick-specs-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
}

.quick-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.quick-spec-label {
    color: #6c757d;
}

.quick-spec-value {
    font-weight: 600;
    color: #212529;
}

/* --- CTA Buttons --- */
.product-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cta-row {
    display: flex;
    gap: 12px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-cta-primary {
    background: #0d6efd;
    color: #fff;
}

.btn-cta-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

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

.btn-cta-whatsapp:hover {
    background: #1da851;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-cta-secondary {
    background: #fff;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.btn-cta-secondary:hover {
    background: #0d6efd;
    color: #fff;
}

.btn-cta-outline {
    background: transparent;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-cta-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* --- Trust Badges --- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
}

.trust-badge i {
    color: #198754;
    font-size: 16px;
}

/* --- Content Sections --- */
.product-content-sections {
    margin-top: 48px;
}

.content-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.content-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #0d6efd;
    display: inline-block;
}

/* --- Specs Table --- */
.specs-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

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

.specs-table thead {
    background: #0d6efd;
    color: #fff;
}

.specs-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.specs-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.specs-table tbody tr:hover {
    background: #e9ecef;
}

.specs-table .spec-name {
    font-weight: 500;
    color: #212529;
}

.specs-table .spec-value {
    font-weight: 600;
    color: #0d6efd;
}

/* --- Applications Grid --- */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.application-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.application-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #0d6efd;
}

.application-card .app-icon {
    width: 48px;
    height: 48px;
    background: #0d6efd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.application-card .app-icon i {
    font-size: 24px;
    color: #fff;
}

.application-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px;
}

.application-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* --- Advantages List --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.advantage-item i {
    color: #198754;
    font-size: 20px;
    margin-top: 2px;
}

.advantage-item span {
    font-size: 15px;
    color: #212529;
    line-height: 1.5;
}

/* --- FAQ Section --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #212529;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    transition: transform 0.3s;
    color: #0d6efd;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 16px 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
}

/* --- Related Products --- */
.related-products {
    margin-top: 60px;
    padding: 48px 0;
    background: #f8f9fa;
}

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

.related-title {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 24px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.related-card-image {
    height: 160px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
}

.related-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-card-info {
    padding: 16px;
}

.related-card-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 4px;
}

.related-card-info p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

/* --- Floating CTA Bar (Mobile) --- */
.floating-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    gap: 12px;
}

.floating-cta-bar a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-image-gallery {
        position: static;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 22px;
    }
    
    .quick-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-row {
        flex-direction: column;
    }
    
    .btn-cta {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .floating-cta-bar {
        display: flex;
    }
    
    .product-detail-section {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
