/* Product Detail Page Specific Styles */

/* Breadcrumb */
.breadcrumb-section {
    padding: 120px 0 20px;
    background-color: #f0f8ff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #4dabf7;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #0a2c5e;
}

.breadcrumb .separator {
    color: #ccc;
    font-size: 12px;
}

.breadcrumb .current {
    color: #666;
}

/* Product Detail Hero */
.product-detail-hero {
    padding: 40px 0 80px;
    background-color: #f0f8ff;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 80px;
}

.gallery-main {
    background: linear-gradient(145deg, #f8fafc 0%, #eef4ff 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13, 71, 161, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid rgba(77, 171, 247, 0.15);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: none; /* hidden by default, shown by JS only when distinct gallery images exist */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-thumbs.has-images {
    display: grid;
}

.gallery-thumbs .thumb {
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all 0.25s ease;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.gallery-thumbs .thumb:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(77, 171, 247, 0.18);
}

.gallery-thumbs .thumb.active {
    border-color: #4dabf7;
    box-shadow: 0 4px 14px rgba(77, 171, 247, 0.25);
}

/* Product Summary */
.product-summary {
    padding-top: 20px;
}

.product-category-badge {
    display: inline-block;
    background-color: #e6f2ff;
    color: #4dabf7;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-summary h1 {
    color: #0a2c5e;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-tagline {
    color: #666;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.product-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
}

.highlight-item i {
    color: #4dabf7;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-actions .btn {
    padding: 14px 30px;
    font-size: 15px;
}

.product-actions .btn-outline {
    background: transparent;
    border: 2px solid #4dabf7;
    color: #4dabf7;
}

.product-actions .btn-outline:hover {
    background: #4dabf7;
    color: white;
}

/* Product Overview */
.product-overview {
    padding: 90px 0;
    background-color: white;
}

.overview-content {
    max-width: 1000px;
    margin: 0 auto;
}

.overview-text {
    margin-bottom: 50px;
}

.overview-text p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.overview-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.overview-feature-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.overview-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e6f2ff, #cce0ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-icon i {
    font-size: 24px;
    color: #4dabf7;
}

.overview-feature-card h4 {
    color: #0a2c5e;
    font-size: 17px;
    margin-bottom: 10px;
}

.overview-feature-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

/* Technical Specifications */
.specifications {
    padding: 90px 0;
    background-color: #f0f8ff;
}

.specs-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background-color: #fafbfc;
}

.spec-label {
    padding: 16px 30px;
    font-weight: 600;
    color: #0a2c5e;
    font-size: 15px;
    width: 40%;
    white-space: nowrap;
}

.spec-value {
    padding: 16px 30px;
    color: #555;
    font-size: 15px;
}

/* Key Features */
.key-features {
    padding: 90px 0;
    background-color: white;
}

.features-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-image {
    background-color: #f0f8ff;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-content h3 {
    color: #0a2c5e;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.feature-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-points li {
    color: #555;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-points li i {
    color: #4dabf7;
    font-size: 14px;
}

/* Applications */
.applications {
    padding: 90px 0;
    background-color: #f0f8ff;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.app-card {
    background-color: white;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #4dabf7, #339af0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.app-icon i {
    font-size: 26px;
    color: white;
}

.app-card h4 {
    color: #0a2c5e;
    font-size: 18px;
    margin-bottom: 10px;
}

.app-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

/* After-Sales Support */
.after-sales {
    padding: 90px 0;
    background-color: white;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.support-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.support-card i {
    font-size: 36px;
    color: #4dabf7;
    margin-bottom: 18px;
    display: block;
}

.support-card h4 {
    color: #0a2c5e;
    font-size: 17px;
    margin-bottom: 10px;
}

.support-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

/* Related Products */
.related-products {
    padding: 90px 0;
    background-color: #f0f8ff;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.related-img {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f8fafc;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-card h4 {
    color: #0a2c5e;
    font-size: 17px;
    padding: 16px 20px 8px;
    text-align: center;
}

.related-link {
    display: block;
    color: #4dabf7;
    font-size: 14px;
    font-weight: 600;
    padding: 0 20px 20px;
    text-align: center;
    transition: gap 0.3s;
}

.related-link i {
    font-size: 12px;
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.related-card:hover .related-link i {
    margin-left: 10px;
}

/* CTA Contact */
.cta-contact {
    background: linear-gradient(135deg, #0a2c5e, #1a3a6e);
    padding: 80px 0;
}

.cta-contact .contact-info h3,
.cta-contact .contact-info h4,
.cta-contact .contact-info p {
    color: white;
}

.cta-contact .contact-info > p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-contact .contact-detail p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-contact .contact-detail i {
    color: #4dabf7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    color: white;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info > p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-detail i {
    font-size: 20px;
    color: #4dabf7;
    margin-top: 4px;
    width: 24px;
}

.contact-detail h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-detail p {
    font-size: 15px;
    margin-bottom: 0;
}

.contact-form {
    background-color: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    color: #0a2c5e;
    font-size: 22px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4dabf7;
    background-color: white;
}

.form-group input[readonly] {
    background-color: #e9ecef;
    color: #495057;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
    background-color: #4dabf7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form .btn:hover {
    background-color: #339af0;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
        max-width: 520px;
        margin: 0 auto;
    }

    .gallery-thumbs.has-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .overview-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .feature-row.reverse .feature-content {
        direction: ltr;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-summary h1 {
        font-size: 26px;
    }

    .product-detail-hero {
        padding: 30px 0 60px;
    }

    .product-overview,
    .specifications,
    .key-features,
    .applications,
    .after-sales,
    .related-products {
        padding: 60px 0;
    }

    .overview-features-grid {
        grid-template-columns: 1fr;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .spec-label {
        padding: 12px 15px;
        font-size: 13px;
        width: 45%;
    }

    .spec-value {
        padding: 12px 15px;
        font-size: 13px;
    }

    .feature-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .breadcrumb-section {
        padding: 110px 0 15px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        text-align: center;
    }
}
