.page {
    padding-top: 120px;
}

:root {
    --bg: #f2f2f2;
    --text: #2d2d2d;
    --blue: #2b6d94;
    --green: #79b93c;
    --line: #8e8e8e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--ap-font);
    color: var(--ap-text);
    background-color: #ffffff;
    /* Base text metrics migrated from the legacy Porto theme.css `body`
       (font-size:14px; line-height:26px) so product-page text keeps identical
       metrics once the legacy stylesheets are removed. The shared .ap-root
       header/footer set their own font-size/line-height and are unaffected. */
    font-size: 14px;
    line-height: 26px;
}

/* Product content uses the AirPurete design system (Open Sans) for every heading,
   overriding the legacy Porto `h1..h6 { Playfair Display, serif }` base rule.
   Scoped to .page so it never touches the shared .ap-root header/footer/CTA. */
.page h1,
.page h2,
.page h3,
.page h4,
.page h5,
.page h6 { font-family: var(--ap-font); }

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 28px 0;
}

/* theme.css: base font-size steps down on small screens */
@media (max-width: 575px) {
    body { font-size: 13px; }
}


.top--stacked {
    flex-direction: column;
    align-items: flex-start;
}

.product-subtitle {
    margin: 1px 0 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 300;
    color: #666;
}


/* theme.css `html` base: horizontal-overflow guard + matching font rendering */
html {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.title {
    margin: 0;
    font-family: var(--ap-font);
    font-size: 54px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--ap-primary);
}

.green-line {
    height: 4px;
    background: var(--green);
    margin: 8px 0 16px;
}

.intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
    justify-content: space-between; /* Ensures the two columns push to the edges */
    width: 100%; /* Guarantees the grid spans the full container width */
    text-align: justify;
}

/*For image*/
.product-box {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 220px;
    padding-top: 30px;
}

/*For image*/
.product-box img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
}

.intro-text {
    font-size: 17px;
    line-height: 1.75;
    margin: 0 0 1.1em;
    text-align: left;
}

.bar {
    margin: 14px 0 10px;
    background: var(--blue);
    color: #fff;
    padding: 7px 10px 6px;
    font-family: var(--ap-font);
    font-size: 16px;
    /* font-weight + line-height migrated from theme-elements.css bare `h2` rule, which
       .bar currently inherits (it sets neither). Preserves the exact header metrics
       once the legacy stylesheets are removed. */
    font-weight: 300;
    line-height: 42px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Tighten only the gap between a section heading*/
.bar:has(+ .filter-selection-wrapper) {
    margin-bottom: 4px;
}

.features {
    margin: 0;
    padding-left: 26px;
}

.features li {
    margin: 6px 0;
    line-height: 1.45;
    font-size: 16px;
}

.features li::marker {
    color: var(--green);
    font-size: 1.2em;
}

.applications {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 40px;
    margin-top: 4px;
    margin-bottom: 10px;
    padding: 0px 10px 0px 25px;
}

.app {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    font-size: 16px;
}

.icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
    border: 1.5px solid #707070;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 700;
    background: rgba(255,255,255,0.35);
    flex-shrink: 0;
}

.spec-area {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
    padding: 0px 10px 0px 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
}

table th,
table td {
    border-bottom: 1px solid var(--line);
    padding: 7px 8px;
    text-align: left;
    vertical-align: middle;
}

table th {
    width: 70%;
    font-weight: 500;
}

table td {
    width: 70%;
}

.purchase-here-wrap .ap-btn {
    display: block;
    width: 30%;
    padding: 10px;
    font-size: 15px;
}

.purchase-here-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 4px;
    width: 100%;
}

.purchase-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 4px;
}

.purchase-buttons-row .purchase-here-wrap {
    margin-top: 0;
    margin-bottom: 0;
    width: auto;
}

.purchase-buttons-row .purchase-here-wrap .ap-btn {
    width: auto;
    white-space: nowrap;
}

.diagram-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 10px 10px 10px 10px;
}

.diagram-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    padding: 50px 5px 5px 5px;

}

@media (max-width: 900px) {
    .title {
        font-size: 40px;
    }

    .logo {
        font-size: 40px;
    }

    .intro {
        grid-template-columns: 1fr;
    }

    .applications {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-area {
        grid-template-columns: 1fr;
    }

    .diagram-wrap {
        justify-content: center;
        padding-top: 12px;
    }
}

@media (max-width: 600px) {
    .page {
        padding: 18px 16px 0;
    }

    .top {
        flex-direction: column;
    }

    .title {
        font-size: 32px;
    }

    .logo {
        font-size: 34px;
    }

    .applications {
        grid-template-columns: 1fr;
    }
}

/* Shared breadcrumb on product pages */
.page > .ap-breadcrumb { margin-bottom: 14px; }

/* Filter Selection Chart (commercial products) */
.filter-selection-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
}

.filter-selection-table {
    width: 100%;
    /* Size columns to their content*/
    table-layout: auto;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}

/* Product Range table */
.filter-selection-table:has(thead th[style*="width"]) {
    table-layout: fixed;
}

/* Keep the sub-column headers */
.filter-selection-table thead tr:nth-child(2) th {
    white-space: nowrap;
}

.filter-selection-table th,
.filter-selection-table td {
    border: 1px solid #d4d4d4;
    padding: 7px 8px;
    vertical-align: middle;
    text-align: center;
}

.filter-selection-table thead th {
    background: #246b89;
    color: #fff;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
}

.filter-selection-table thead tr:first-child th {
    padding-top: 10px;
    padding-bottom: 10px;
}

.filter-selection-table tbody td {
    background: #fff;
    text-align: center;
}

/* Visually-hidden helper for accessible table captions (no visual change) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .filter-selection-table {
        min-width: 900px;
    }
}
