/* Product detail: the overview is split, rich content uses the full row. */
.product-detail-page [hidden] { display: none !important; }
.product-detail-page .products-rebuild { background: #fff; padding-top: 40px; }
.product-detail-page .pd-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    scroll-margin-top: 145px;
}
.product-detail-page .pd-overview > * { min-width: 0; }
.pd-gallery { min-width: 0; }
.pd-gallery-stage {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    touch-action: pan-y;
}
.pd-gallery-stage .pd-gallery-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pd-gallery-error { color: #576477; padding: 20px; line-height: 1.8; text-align: center; }
.pd-gallery :focus-visible, .pd-gallery:focus-visible, .pd-summary a:focus-visible, .pd-section-nav a:focus-visible {
    outline: 2px solid #b84e00; outline-offset: 3px;
}
.pd-summary h2, .pd-details > h2 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.35; margin: 0 0 24px; color: #172438; }
.pd-summary .pd-subtitle { font-size: 18px; line-height: 1.8; margin: 0 0 16px; color: #243447; }
.pd-summary .pd-lead { font-size: 17px; line-height: 1.95; color: #526175; margin: 0; }
.pd-summary p:empty { display: none; }
.pd-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 32px; }
.pd-consult { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 6px; background: #b84e00; color: #fff; font-weight: 600; white-space: nowrap; }
.pd-consult:hover { background: #963f00; color: #fff; }
.pd-actions .pd-details-link { color: #37485e; text-underline-offset: 5px; text-decoration: underline; }
.pd-summary .pd-consult-note { font-size: 14px; line-height: 1.8; color: #667487; margin-top: 18px; }
.pd-section-nav { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 48px; padding: 18px 0; border-top: 1px solid #e3e9f0; border-bottom: 1px solid #e3e9f0; }
.pd-section-nav a { color: #334155; font-weight: 600; }
.pd-section-nav a:hover { color: #b84e00; }
.pd-details { padding-top: 40px; scroll-margin-top: 145px; }
.product-detail-page .pd-details .pc-detail-content { border: 0; padding: 0; }
.pd-details .pc-table-scroll { scroll-margin-top: 145px; }
@media (max-width: 992px) {
    .product-detail-page .pd-overview { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .pd-gallery { width: 100%; max-width: 720px; margin-inline: auto; }
    .pd-gallery-stage { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
    .product-detail-page .products-rebuild { padding-top: 24px; }
    .pd-gallery-stage { aspect-ratio: 4 / 3; }
    .pd-summary .pd-lead { font-size: 15px; }
    .pd-summary h2, .pd-details > h2 { margin-bottom: 16px; }
    .pd-actions { gap: 16px; margin-top: 24px; }
    .pd-section-nav { margin-top: 32px; gap: 16px 24px; font-size: 14px; }
    .pd-details { padding-top: 28px; }
}

.product-detail-page .pc-detail-card {
    height: auto;
    align-items: start;
    /* Long articles may never meet a viewport-percentage reveal threshold. */
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.product-detail-page .pc-detail-card > * {
    min-width: 0;
    max-width: 100%;
}

.product-detail-page .pc-detail-card .pc-media {
    width: 100%;
    height: auto;
    align-self: stretch;
}

.product-detail-page .pc-detail-card .pc-content {
    width: 100%;
    align-self: center;
    padding: clamp(20px, 2.5vw, 40px);
}

.product-detail-page .pc-detail-card .pc-content h2 {
    font-size: clamp(22px, 2.1vw, 34px);
    overflow-wrap: anywhere;
    text-wrap: balance;
    line-height: 1.4;
    margin-bottom: 16px;
}

.product-detail-page .pc-detail-card .pc-content > p {
    font-size: 15px;
    line-height: 1.9;
}

.product-detail-page .pc-content > p:empty {
    display: none;
}

.product-detail-page .pc-detail-content {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: clamp(20px, 3vw, 48px);
    border-top: 1px solid #e3e9f0;
    font-family: sans-serif;
    font-size: 16px;
    line-height: normal;
    color: #000;
    overflow-wrap: break-word;
}

.product-detail-page .pc-detail-content > * {
    max-width: 100%;
}

.product-detail-page .pc-detail-content:empty {
    display: none;
}

.product-detail-page .pc-detail-content p {
    margin: 5px 0;
}

/* Match UEditor's inline image flow and formatting, isolated from site resets. */
.product-detail-page .pc-detail-content img {
    display: inline;
    vertical-align: baseline;
}
.product-detail-page .pc-detail-content :is(strong, b) {
    font-weight: bolder;
}
.product-detail-page .pc-detail-content :is(h1, h2, h3, h4, h5, h6) {
    font-size: revert;
    font-weight: revert;
    margin-block: revert;
    line-height: normal;
}
.product-detail-page .pc-detail-content :is(ul, ol) {
    margin-block: 1em;
    padding-inline-start: 40px;
    list-style: revert;
}
.product-detail-page .pc-detail-content li {
    list-style: inherit;
}

.product-detail-page .pc-detail-content :is(img, video, iframe) {
    max-width: 100% !important;
}

.product-detail-page .pc-detail-content :is(img, video) {
    height: auto !important;
}

.product-detail-page .pc-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-top: 28px;
    margin-bottom: 28px;
    border: 1px solid #dce4ed;
    border-radius: 8px;
}

.product-detail-page .pc-table-scroll:focus-visible {
    outline: 2px solid #ec6a00;
    outline-offset: 3px;
}

.product-detail-page .pc-detail-content table {
    width: 100% !important;
    min-width: 640px;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 14px;
}

.product-detail-page .pc-detail-content :is(col, td, th) {
    width: auto !important;
}

.product-detail-page .pc-detail-content :is(td, th) {
    padding: 12px 16px;
    border: 1px solid #e3e9f0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.product-detail-page .pc-detail-content tr:first-child {
    background: #edf3f8;
    color: #1f2937;
    font-weight: 600;
    text-align: center;
}

.product-detail-page .pc-detail-content tr:nth-child(2n + 3) {
    background: #f8fafc;
}

.product-detail-page .page-banner {
    height: auto;
    aspect-ratio: auto;
    margin-top: 70px;
}

.product-detail-page .product-detail-banner-shell {
    height: auto;
    min-height: 360px;
    padding-top: 36px;
    padding-bottom: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.product-detail-page .page-banner-content h1 {
    overflow-wrap: anywhere;
    text-wrap: balance;
    font-size: clamp(26px, 2.7vw, 44px);
    line-height: 1.3;
}

.product-detail-page .product-detail-banner-visual {
    align-self: center;
    height: auto;
    min-width: 0;
    padding-top: 0;
}

.product-detail-page .product-detail-banner-card {
    height: auto;
    padding: 20px;
    border-radius: 18px;
}

.product-detail-page .product-detail-banner-card img {
    height: auto;
    max-height: 300px;
}

@media (max-width: 992px) {
    .product-detail-page .pc-detail-card {
        grid-template-columns: minmax(0, 1fr);
    }
    .product-detail-page .pc-detail-card .pc-media {
        max-height: 440px;
        aspect-ratio: 16 / 10;
    }
    .product-detail-page .product-detail-banner-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 32px 24px;
    }
    .product-detail-page .product-detail-banner-visual {
        width: 100%;
        justify-content: center;
    }
    .product-detail-page .product-detail-banner-card {
        max-width: 480px;
        transform: none;
    }
}

@media (max-width: 600px) {
    .product-detail-page .pc-detail-content {
        padding: 22px 18px;
    }
    .product-detail-page .pc-detail-card .pc-media {
        padding: 14px;
    }
    .product-detail-page .product-detail-banner-shell {
        padding: 28px 20px;
    }
    .product-detail-page .product-detail-banner-card img {
        max-height: 200px;
    }
}
