.product-detail {
    padding: 140px 0 60px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 50px;
    align-items: start;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    min-height: 430px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
}

.main-image img {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    border-radius: 12px;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.thumbnail-button {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    line-height: 0;
}

.thumbnail-button:focus-visible {
    outline: 3px solid rgba(0, 50, 255, 0.35);
    outline-offset: 3px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    padding: 3px;
    object-fit: contain;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #f24a11;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    box-shadow: 0 0 0 3px rgba(242, 74, 17, 0.1);
}

.detail-info h1 {
    margin-bottom: 18px;
    font-size: 2.5rem;
    line-height: 1.16;
    background: linear-gradient(135deg, #f24a11, #0032ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.series-label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 13px;
    color: #1a5f7a;
    background: #edf7fb;
    border: 1px solid #cfe7f1;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.detail-info .description {
    margin-bottom: 26px;
    color: #555;
    font-size: 1.08rem;
    line-height: 1.8;
}

.description-lead {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.specifications-section {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.specifications,
.model-comparison {
    width: 100%;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
}

.specifications h2,
.model-comparison h2 {
    margin-bottom: 20px;
    color: #1a5f7a;
    font-size: 1.3rem;
}

.specifications ol {
    margin: 0;
    padding-left: 24px;
    color: #666;
}

.specifications li {
    padding: 10px 4px 10px 8px;
    border-bottom: 1px solid #e8edf2;
    line-height: 1.6;
}

.specifications li:last-child {
    border-bottom: 0;
}

.model-comparison {
    overflow-x: auto;
}

.model-comparison table {
    min-width: 860px;
}

.model-comparison--wide table {
    min-width: 1180px;
}

.model-comparison .row-label {
    min-width: 185px;
    text-align: left;
    font-weight: 600;
}

.model-comparison .shared-value {
    text-align: left;
}

.model-comparison--laminar .row-label,
.model-comparison--laminar .shared-value,
.model-comparison--laminar td[colspan] {
    text-align: center;
}

.model-comparison--laminar .shared-value--stacked {
    text-align: left;
}
/* PCR has five model columns: retain the existing type size while using tighter horizontal spacing on desktop. */
.model-comparison--pcr {
    overflow-x: visible;
    padding: 24px 18px;
}

.model-comparison--pcr table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.model-comparison--pcr .row-label {
    width: 20%;
    min-width: 0;
}

.model-comparison--pcr th,
.model-comparison--pcr td {
    padding-left: 6px;
    padding-right: 6px;
    white-space: nowrap;
}

.model-comparison--pcr td:nth-child(2) {
    min-width: 0;
}

@media (max-width: 960px) {
    .model-comparison--pcr {
        overflow-x: auto;
        padding: 20px;
    }

    .model-comparison--pcr table {
        width: auto;
        min-width: 1120px;
        table-layout: auto;
    }

    .model-comparison--pcr .row-label {
        width: auto;
        min-width: 185px;
    }

    .model-comparison--pcr th,
    .model-comparison--pcr td {
        padding-left: 15px;
        padding-right: 15px;
    }

    .model-comparison--pcr td:nth-child(2) {
        min-width: 160px;
    }
}
.contact-btn {
    display: inline-block;
    align-self: center;
    padding: 15px 40px;
    color: #fff;
    background: linear-gradient(135deg, #f24a11, #0032ff);
    border-radius: 30px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(242, 74, 17, 0.3);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: #1a5f7a;
    font-weight: 500;
    text-decoration: none;
}

.back-link:hover {
    color: #ff6b35;
}

@media (max-width: 768px) {
    .product-detail {
        padding-top: 110px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-image {
        min-height: 330px;
        padding: 20px;
    }

    .main-image img {
        max-height: 330px;
    }

    .detail-info h1 {
        font-size: 2rem;
    }

    .specifications-section {
        margin-top: 36px;
    }

    .specifications,
    .model-comparison {
        padding: 20px;
    }
}
