.product-page [hidden] { display: none !important; }
.product-page :is(.product-lead, .spec-group, .enquiry-layout > *, .packing-layout > *, .installation-layout > *) { min-width: 0; }
.product-page .gallery-view-tabs button,
.product-page .faq-list summary,
.product-page .detail-mobile-action .pill { min-height: 44px; }
.product-page .product-gallery.is-scene .gallery-slide img { object-fit: contain; }
.product-page .choice-card img { object-fit: contain; }
.product-page .overview-figure .figure-zoom { height: auto; }
.product-page .overview-figure .figure-zoom > img { height: auto; object-fit: contain; }

@media (max-width: 768px) {
    .product-page #configuration .detail-image-card .figure-zoom {
        height: auto;
    }

    .product-page #configuration .detail-image-card .figure-zoom > img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}
.product-page :is(.model-chapter, .detail-section) figcaption { display: none; }
.product-page .gallery-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
.product-page :is(.detail-anchor, #ymg-enquiry) {
    scroll-margin-top: calc(var(--detail-header) + var(--detail-nav) + 22px);
}
.product-page .comparison-table:not(.packing-table) :is(th, td) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
.product-page .comparison-table [role="cell"] { min-width: 0; }
.product-page .comparison-table [data-label="Value"]::before { content: none; }
.product-page .comparison-table tr > :nth-child(2):last-child { grid-column: 1 / -1; }
.product-page .comparison-table td:empty::before { content: none; }
.product-page .enquiry-layout :is(input, select, textarea) { max-width: 100%; min-width: 0; }
.product-page .overview-figure .figure-zoom,
.product-page .model-chapter .detail-image-card .figure-zoom { width: 100%; }
.product-page .model-chapter .technical-image-pair { margin-top: 28px; }
.product-page .model-chapter .spec-group:last-child { margin-bottom: 0; }

.product-page .packing-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 5vw, 68px);
    margin-block-end: 30px;
}
.product-page .packing-intro .section-heading { margin-block-end: 18px; }
.product-page .packing-intro-copy > p { max-width: 600px; margin: 0; font-size: 13px; line-height: 1.7; }
.product-page .packing-media { display: grid; gap: 14px; }
.product-page :is(.packing-media, .installation-drawings, .construction-grid) figure { margin: 0; min-width: 0; }
.product-page .packing-media .figure-zoom { height: auto; background: #fff; padding: 12px; }
.product-page .packing-media img { display: block; height: auto; max-height: 240px; object-fit: contain; }
.product-page .packing-media figure:only-child { width: 100%; }
.product-page .packing-table { table-layout: auto; background: #fff; font-size: 13px; }
.product-page .packing-table :is(thead th:first-child, tbody th) { width: auto; }
.product-page .packing-table :is(th, td) {
    overflow-wrap: normal;
    word-break: normal;
    padding: 15px clamp(10px, 1.4vw, 20px);
}
.product-page .packing-table thead th { font-size: 12px; }
.product-page .packing-table tbody :is(th, td) { font-size: 13px; white-space: nowrap; }
.product-page .packing-table td { font-variant-numeric: tabular-nums; }

.product-page .installation-layout { display: block; }
.product-page .installation-drawings { min-width: 0; }
.product-page .dimension-views {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(14px, 2.8vw, 28px);
}
.product-page .installation-drawings .figure-zoom {
    height: 100%;
    min-height: 0;
    padding: clamp(8px, 1.25vw, 16px);
    border: 1px solid #e0e5e7;
    background: #fff;
}
.product-page .installation-drawings img {
    display: block;
    height: auto;
    max-height: min(740px, 88vw);
    margin-inline: auto;
    object-fit: contain;
    border-radius: 0;
}
.product-page .dimension-views img { max-height: 580px; }
.product-page .installation-layout > .installation-copy:not(:empty) {
    margin-top: clamp(20px, 3vw, 36px);
    max-width: 820px;
}
.product-page .installation-pair figure:only-child { width: min(100%, 480px); grid-column: 1 / -1; }
.product-page .installation-pair .figure-zoom { height: auto; }
.product-page .installation-pair img { display: block; height: auto; max-height: 420px; object-fit: contain; }

.product-page #construction .construction-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(18px, 3vw, 36px);
}
.product-page #construction .construction-photos { margin-top: clamp(18px, 3vw, 32px); }
.product-page #construction .figure-zoom {
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 1;
}
.product-page #construction .figure-zoom > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}
.product-page #construction .detail-image-card > h3 { margin-top: 16px; }

.product-page .choice-title { overflow-wrap: anywhere; }
.product-page .colour-options .choice-card:not(:has(img)) .colour-title { margin-top: 16px; }
.product-page .colour-options:has(.choice-card:not(:has(img))) { align-items: start; }
.product-page .related-grid > a:only-child { display: block; }
.product-page .related-grid > a:nth-child(2):last-child { display: block; }
.product-page .related-section #related-updates { margin-top: 32px; }
.product-page .related-section #related-updates > h3 { margin-bottom: 16px; }
.product-page .ggd-ac-watt { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; }
.product-page .ggd-ac-watt select { min-height: 44px; }
.product-page :is(.spec-group, .configuration-summary, .installation-copy) a:focus-visible { outline: 2px solid #9b7b00; outline-offset: 2px; }
@media (max-width: 850px) {
    .product-page .config-step-copy { display: block; }
    .product-page .packing-intro { grid-template-columns: minmax(0, 1fr); }
    .product-page .packing-media { width: min(100%, 480px); }
    .product-page .packing-table { display: block; border: 0; overflow: visible; border-radius: 0; background: transparent; }
    .product-page .packing-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .product-page .packing-table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .product-page .packing-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        margin: 0;
        border: 1px solid #dce1e3;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }
    .product-page .packing-table tbody th {
        grid-column: 1 / -1;
        padding: 12px 14px;
        background: #eef2f3;
        white-space: normal;
    }
    .product-page .packing-table tbody td {
        padding: 10px 14px 12px;
        border: 0;
        border-top: 1px solid #e0e5e7;
        line-height: 1.6;
    }
    .product-page .packing-table tbody td + td { border-left: 0; }
    .product-page .packing-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #56636d;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.4;
        white-space: normal;
    }
    .product-page .packing-table tbody td.packing-wide-value { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
    .product-page .packing-table tbody { grid-template-columns: minmax(0, 1fr); }
    .product-page .packing-media { width: min(100%, 330px); }
    .product-page .packing-media img { max-height: 160px; }
    .product-page .dimension-views { grid-template-columns: minmax(0, 1fr); }
    .product-page .installation-drawings img { max-height: 550px; }
    .product-page .comparison-table:not(.packing-table) tbody tr { grid-template-columns: minmax(0, 1fr); }
    .product-page .comparison-table:not(.packing-table) td + td { border-left: 0; border-top: 1px solid #e1e6e8; }
}
