/* Dynamic product catalog: keeps html-v2's visual language and handles CMS content. */
.cms-products, .cms-product-detail { overflow-wrap: anywhere; }
.cms-products .breadcrumb, .cms-product-detail .breadcrumb { display:flex; flex-wrap:wrap; gap:8px; }
.cms-products .breadcrumb > span, .cms-product-detail .breadcrumb > span { min-width:0; }
.cms-products .breadcrumb span span::after, .cms-product-detail .breadcrumb span span::after { display:none; }
.cms-products .inner-kicker, .cms-product-detail .inner-kicker { font-size:12px; line-height:1.6; }
.cms-products .catalog-card-body p, .cms-item-body p { font-size:17px; line-height:1.7; }
.cms-category .section-hero > .inner-container { min-height:360px; }
.cms-category .section-hero-copy { width:75%; }
.cms-category-nav { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 28px; }
.cms-category-nav a { display:inline-flex; align-items:center; min-height:44px; padding:10px 16px; color:#31525e; background:#fff; border:1px solid #cbdedc; border-radius:4px; font-size:15px; font-weight:650; line-height:1.4; text-decoration:none; }
.cms-category-nav a:hover { border-color:#008d8b; color:#00716f; }
.cms-category-nav a.is-active { color:#fff; background:#007d7a; border-color:#007d7a; }
.cms-product-search { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; margin:0 0 36px; padding:22px 24px; background:#f0f7f6; border:1px solid #dce9e7; border-radius:8px; }
.cms-product-search > div { flex:1; min-width:180px; }
.cms-product-search label { display:block; margin-bottom:8px; color:#31525e; font-size:14px; font-weight:650; }
.cms-product-search input { width:100%; height:48px; padding:0 16px; border:1px solid #b9cfcc; border-radius:4px; background:#fff; color:var(--ink); font:inherit; font-size:16px; }
.cms-product-search .button { min-height:48px; }
.cms-clear-search { align-self:center; padding:12px; color:#006b68; font-size:15px; text-decoration:underline; }
.cms-results-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:36px 0 22px; }
.cms-results-heading h2 { margin:0; font-size:28px; line-height:1.3; }
.cms-results-heading p { margin:0; color:var(--muted); font-size:15px; }
.cms-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.cms-item-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid #d9e5e2; border-radius:8px; background:#fff; transition:box-shadow .2s,border-color .2s; }
.cms-item-card:hover { border-color:#91c5c0; box-shadow:0 12px 32px rgb(17 62 69 / 8%); }
/* Match the square branded artwork so the complete frame fills the card. */
.cms-item-media { position:relative; display:block; flex-shrink:0; aspect-ratio:1/1; overflow:hidden; background:#fff; }
.cms-item-media img { display:block; width:100%; height:100%; object-fit:contain; }
.cms-item-body { display:flex; flex-direction:column; flex:1; padding:24px; min-width:0; }
.cms-item-category { color:#007b78; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; line-height:1.6; }
.cms-item-body h3 { margin:10px 0 0; font-size:24px; line-height:1.3; letter-spacing:-.02em; }
.cms-item-body h3 a, .catalog-card-body h2 a { color:inherit; }
.cms-item-body h3 a:hover, .catalog-card-body h2 a:hover { color:#007b78; }
.cms-item-body p { margin:12px 0 20px; color:#56707a; }
.cms-item-body .cms-item-model { margin:10px 0 0; color:#36545f; font-size:14px; }
.cms-item-body .inline-link { margin-top:auto; padding-top:12px; }
.cms-image-placeholder { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:14px; width:100%; height:100%; min-height:150px; padding:24px; color:#54716f; font-size:16px; text-align:center; }
.cms-image-placeholder svg { width:56px; height:56px; opacity:.55; }
.cms-catalog-empty { max-width:850px; margin:24px auto 0; padding:56px 32px; background:#f3f8f7; border:1px dashed #b4cfcb; border-radius:8px; text-align:center; }
.cms-catalog-empty > svg { width:52px; height:52px; margin-bottom:18px; color:#008581; }
.cms-catalog-empty h3 { margin:0; font-size:28px; line-height:1.3; }
.cms-catalog-empty p { max-width:580px; margin:16px auto 24px; color:#54716f; font-size:17px; line-height:1.7; }
.cms-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-top:36px; }
.cms-pagination a, .cms-pagination span { display:inline-flex; justify-content:center; align-items:center; min-width:44px; min-height:44px; padding:8px 14px; border:1px solid #bdd6d2; border-radius:4px; font-size:16px; }
.cms-pagination span { color:#fff; background:#007d7a; border-color:#007d7a; }
.cms-pagination a:hover { background:#e7f5f2; color:#00635f; }
/* Keep product detail content compact without narrowing the shared header/footer. */
.cms-product-detail main { --max:1240px; }
.cms-product-detail .product-detail-hero--catalog { padding:24px 0 44px; color:#173b42; background:#f5f7f6; border-bottom:1px solid #dfe7e3; }
.cms-product-detail .product-detail-hero--catalog::before { display:none; }
.cms-product-detail .product-detail-hero > .inner-container { max-width:1240px; }
.cms-product-detail .product-detail-hero .breadcrumb { margin-bottom:32px; color:#657c7c; font-size:14px; line-height:1.7; }
.cms-product-detail .product-detail-hero .breadcrumb a:hover { color:#007d79; }
.cms-product-detail .product-hero-copy h1 { margin:18px 0 0; color:#183a40; font-size:clamp(34px,3vw,43px); line-height:1.18; letter-spacing:-.035em; text-wrap:pretty; }
.cms-product-detail .product-series-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:12px; margin:0; padding:0; border:0; font-size:13px; font-weight:650; letter-spacing:.035em; }
.cms-product-detail .product-series-row > a { display:inline-flex; align-items:center; min-height:32px; padding:5px 12px; border:1px solid #c7ded7; border-radius:3px; background:#e9f2ee; color:#17695e; }
.cms-product-detail .product-series-row > a:hover { border-color:#007d79; }
.cms-product-detail .product-series-row > span { color:#627c78; }
.cms-product-detail .product-hero-lead { margin:18px 0 0; max-width:none; color:#52696d; font-size:18px; line-height:1.75; }
.cms-product-detail .product-hero-gallery { width:100%; min-width:0; max-width:550px; justify-self:center; align-self:start; padding:0; border:0; border-radius:0; box-shadow:none; color:#244b54; background:transparent; }
.cms-product-detail .product-hero-gallery .gallery-accent { display:none; }
.cms-product-detail .product-hero-gallery .product-gallery-main { display:flex; align-items:center; justify-content:center; width:100%; height:auto; aspect-ratio:1/1; min-height:0; overflow:hidden; border:0; border-radius:0; background:transparent; }
.cms-product-detail .product-hero-gallery .product-gallery-main img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
/* The normalized square canvas fills the stage, with no layout jump during loading/switching. */
.cms-product-detail .product-hero-gallery .product-gallery-open { height:100%; }
.product-gallery-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; margin-top:14px; }
.cms-product-detail .product-hero-gallery .product-thumbs { display:flex; min-width:0; max-width:100%; overflow-x:auto; gap:10px; margin:0; padding:4px 3px 6px; scrollbar-width:thin; scrollbar-color:#9cbbb5 #edf4f2; scroll-snap-type:x proximity; overscroll-behavior-inline:contain; }
.cms-product-detail .product-hero-gallery .product-thumb { flex:0 0 72px; width:72px; height:72px; min-width:0; padding:4px; border:1px solid #d5e0dc; border-radius:4px; background:#fff; opacity:1; scroll-snap-align:start; }
.cms-product-detail .product-hero-gallery .product-thumb img { width:100%; height:100%; object-fit:contain; }
.cms-product-detail .product-hero-gallery .product-thumb:hover { border-color:#84bcb4; }
.cms-product-detail .product-hero-gallery .product-thumb.is-active { border:2px solid #007d7a; padding:3px; background:#fff; box-shadow:none; }
.product-gallery-open { display:flex; align-items:center; justify-content:center; width:100%; height:auto; padding:0; border:0; background:transparent; cursor:zoom-in; touch-action:pan-y pinch-zoom; }
.cms-product-detail .product-gallery-open:focus-visible { outline-offset:-4px; }
.product-gallery-open:disabled { cursor:default; }
.product-gallery-tools { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.product-gallery-count { color:#627b7c; font-size:14px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.product-gallery-actions { display:flex; gap:6px; }
.product-gallery-control { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:44px; height:44px; padding:10px; border:1px solid #cddfda; border-radius:6px; background:#fff; color:#17665f; cursor:pointer; transition:background .15s,border-color .15s; }
.product-gallery-control:hover { background:#eaf7f2; border-color:#6aa99f; }
.product-gallery-control:disabled { opacity:.4; cursor:default; }
.product-gallery-control svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cms-product-detail [hidden], .cms-products [data-product-image][hidden] { display:none!important; }
body.product-lightbox-open { overflow:hidden; }
.product-lightbox { width:min(1060px,calc(100vw - 40px)); max-width:none; max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:hidden; color:#244b54; border:1px solid #c5d8d2; border-radius:12px; background:#fff; box-shadow:0 24px 80px rgb(0 0 0 / 25%); }
.product-lightbox::backdrop { background:rgb(2 19 27 / 83%); }
.product-lightbox-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 18px; border-bottom:1px solid #e0eae7; }
.product-lightbox-header h2 { margin:0; color:#244b54; font-size:18px; line-height:1.4; }
.product-lightbox-stage { display:flex; align-items:center; justify-content:center; height:min(72dvh,820px); min-height:120px; padding:8px 16px; background:#f5f8f7; touch-action:pan-y pinch-zoom; }
.product-lightbox-stage img { display:block; width:100%; height:100%; object-fit:contain; }
.product-lightbox-footer { display:flex; align-items:center; justify-content:center; gap:24px; min-height:60px; padding:8px 18px; border-top:1px solid #e0eae7; font-size:15px; font-variant-numeric:tabular-nums; }
.product-lightbox .cms-image-placeholder { margin:0; }
@media(max-width:500px), (max-height:600px) {
  .product-lightbox { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:8px; }
  .product-lightbox-header { padding:8px 12px; }
  .product-lightbox-header h2 { font-size:16px; }
  .product-lightbox-stage { height:calc(100dvh - 150px); padding:4px; }
}
.cms-product-detail .product-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 28px; margin-top:26px; padding:22px 0; border-top:1px solid #d7e1dc; border-bottom:1px solid #d7e1dc; }
.cms-product-detail .product-metrics > div, .cms-product-detail .product-metrics > div + div { display:block; min-width:0; padding:0; border:0; }
.cms-product-detail .product-metrics span { color:#667c7a; font-size:13px; font-weight:500; letter-spacing:.02em; text-transform:none; }
.cms-product-detail .product-metrics strong { margin:6px 0 0; color:#234a4b; font-size:17px; font-weight:650; line-height:1.5; text-align:left; overflow-wrap:anywhere; }
.cms-product-detail .product-assurance-list li { font-size:16px; line-height:1.7; }
.cms-product-detail .product-assurance-list svg { flex-shrink:0; }
.cms-product-detail .product-hero-details .detail-actions { display:flex; flex-direction:row; flex-wrap:wrap; gap:12px; margin-top:28px; }
.cms-product-detail .product-hero-details .detail-actions .button { flex:1 1 190px; justify-content:center; min-height:52px; padding:14px 18px; border-radius:4px; font-size:16px; font-weight:650; }
.cms-product-detail .product-hero-details .button-orange { color:#fff; border-color:#087c75; background:#087c75; box-shadow:none; }
.cms-product-detail .product-hero-details .button-orange:hover { background:#05665f; border-color:#05665f; }
.cms-product-detail .product-hero-details .button-outline { background:transparent; color:#245653; border-color:#afc8c0; }
.cms-product-detail .product-hero-details .button-outline:hover { color:#006e65; background:#e8f2ed; border-color:#087c75; }
.product-inquiry-note { max-width:48ch; margin:16px 0 0; color:#6b7f7c; font-size:14px; line-height:1.65; }
.cms-detail-nav { position:sticky; top:var(--product-header-height,80px); z-index:20; background:#fff; border-bottom:1px solid #d9e7e4; box-shadow:0 3px 12px rgb(17 62 69 / 4%); }
.cms-detail-nav .inner-container { display:flex; gap:32px; overflow-x:auto; scrollbar-width:thin; }
.cms-detail-nav a { flex-shrink:0; display:block; padding:19px 0; color:#345761; font-size:16px; font-weight:650; border-bottom:3px solid transparent; }
.cms-detail-nav a:hover { border-color:#008582; color:#007572; }
.cms-product-detail section[id] { scroll-margin-top:170px; }
.cms-detail-content { max-width:1280px; }
.cms-richtext { margin-top:28px; min-width:0; max-width:100%; overflow-x:auto; color:#3e5a65; font-size:18px; line-height:1.85; }
.cms-richtext > :first-child { margin-top:0; }
.cms-richtext p, .cms-richtext ul, .cms-richtext ol { margin:0 0 22px; }
.cms-richtext ul, .cms-richtext ol { padding-left:26px; }
.cms-richtext h2, .cms-richtext h3, .cms-richtext h4 { margin:32px 0 16px; color:#163d4b; font-size:28px; line-height:1.35; }
.cms-richtext h3 { font-size:24px; }.cms-richtext h4 { font-size:21px; }
.cms-richtext img { max-width:100%; height:auto; border-radius:4px; }
.cms-richtext a { color:#007674; text-decoration:underline; text-underline-offset:3px; }
.cms-richtext blockquote { margin:24px 0; padding:18px 24px; background:#edf6f4; border-left:3px solid #008581; }
.cms-richtext table, .cms-spec-table { width:100%; border-collapse:collapse; color:#31545f; font-size:16px; line-height:1.7; }
.cms-richtext table td, .cms-richtext table th, .cms-spec-table th, .cms-spec-table td { padding:16px 20px; border:1px solid #d3e3df; text-align:left; vertical-align:top; }
.cms-richtext table th, .cms-spec-table th { color:#173e4a; background:#edf6f4; font-weight:650; }
.cms-spec-scroll { margin-top:30px; overflow-x:auto; border-radius:6px; }
.cms-spec-table th { width:32%; }.cms-spec-table td { background:#fff; }
.cms-rich-table-scroll { width:100%; max-width:100%; overflow-x:auto; margin:24px 0; }
.cms-rich-table-scroll table { min-width:640px; }
.cms-spec-content .cms-rich-table-scroll.is-compact table { min-width:0; table-layout:fixed; }
.cms-spec-content .cms-rich-table-scroll.is-compact :is(th,td) { overflow-wrap:anywhere; }
.cms-application-tags { display:flex; flex-wrap:wrap; gap:10px; padding:0; margin:28px 0; list-style:none; }
.cms-application-tags li { padding:10px 18px; border:1px solid #c1dad5; border-radius:4px; background:#edf7f4; color:#17645e; font-size:16px; }
.cms-downloads { display:grid; gap:12px; margin-top:30px; }
.cms-downloads > a { display:flex; align-items:center; gap:18px; min-height:82px; padding:20px 24px; border:1px solid #c8ded8; border-radius:6px; background:#fff; color:#254f59; font-size:18px; }
.cms-downloads > a:hover { border-color:#008581; background:#f8fcfb; }
.cms-downloads svg { width:28px; height:28px; flex-shrink:0; color:#008581; }
.cms-downloads .cms-document-action { margin-left:auto; font-size:14px; color:#52716b; white-space:nowrap; }
.cms-not-found { min-height:55vh; display:flex; align-items:center; }
.cms-not-found p:not(.inner-kicker) { margin:20px 0 28px; font-size:18px; line-height:1.7; color:var(--muted); }
.cms-products a:focus-visible, .cms-product-detail a:focus-visible, .cms-product-detail button:focus-visible, .cms-product-search input:focus-visible, .cms-product-search button:focus-visible, .cms-rich-table-scroll:focus-visible, .cms-spec-scroll:focus-visible { outline:3px solid #f29336; outline-offset:4px; }
@media(min-width:1600px) {
  /* Listing pages have 12 items per page; related products retain their three-column layout. */
  .cms-products .cms-product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(min-width:901px) {
  .cms-product-detail .product-hero-grid { grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); grid-template-areas:"gallery intro" "gallery details"; grid-template-rows:auto 1fr; column-gap:clamp(32px,4.5vw,72px); row-gap:0; }
  .cms-product-detail .product-hero-gallery { justify-self:start; }
}
@media(max-width:900px) {
  .cms-product-detail .product-hero-grid { row-gap:24px; }
  .cms-product-detail .product-hero-copy, .cms-product-detail .product-hero-details { width:100%; max-width:550px; justify-self:center; }
  .cms-product-detail .product-hero-lead { margin-top:0; }
  .cms-product-detail .product-detail-hero .breadcrumb > span:last-child { display:none; }
  .cms-product-detail .product-detail-hero .breadcrumb > span:nth-last-child(2)::after { display:none; }
}
@media(max-width:1100px) {
  .cms-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .cms-category .section-hero-copy { width:100%; }
  .cms-category .section-hero > .inner-container { min-height:0; }
  .cms-category-nav { flex-wrap:nowrap; overflow-x:auto; padding:4px 2px 10px; margin-bottom:20px; }
  .cms-category-nav a { flex-shrink:0; max-width:250px; font-size:14px; }
  .cms-product-search { padding:18px; gap:12px; margin-bottom:26px; }
  .cms-product-search > div { flex-basis:100%; }
  .cms-product-search .button { flex:1; }
  .cms-product-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
  .cms-item-body { padding:22px; }.cms-item-body h3 { font-size:24px; }
  .cms-catalog-empty { padding:36px 20px; }.cms-catalog-empty h3 { font-size:25px; }
  .cms-catalog-empty .button { width:100%; padding-inline:14px; }
  .cms-product-detail .product-detail-hero--catalog { padding:18px 0 32px; }
  .cms-product-detail .product-detail-hero .breadcrumb { margin-bottom:20px; font-size:13px; gap:6px; }
  .cms-product-detail .product-series-row { display:none; }
  .cms-product-detail .product-hero-copy h1 { margin:0; font-size:clamp(28px,7.7vw,36px); line-height:1.2; letter-spacing:-.025em; }
  .cms-product-detail .product-hero-gallery .product-gallery-main { min-height:0; }
  .cms-product-detail .product-hero-gallery .product-thumb { flex-basis:64px; width:64px; height:64px; }
  .product-gallery-footer { margin-top:10px; gap:10px; }
  .product-gallery-tools { flex-direction:column; gap:5px; }
  .product-gallery-count { font-size:13px; }
  .product-gallery-actions { gap:4px; }
  .cms-product-detail .product-metrics { gap:18px 22px; margin-top:22px; padding:20px 0; }
  .cms-product-detail .product-metrics strong { font-size:16px; }
  .cms-product-detail .product-hero-details .detail-actions { margin-top:22px; }
  .cms-product-detail .product-hero-details .detail-actions .button { flex-basis:100%; min-height:50px; font-size:16px; padding:13px 18px; }
  .cms-product-detail .product-hero-details .detail-actions svg { display:block; }
  .cms-detail-nav .inner-container { gap:24px; }
  .cms-detail-nav a { font-size:15px; padding:15px 0; }
  .cms-richtext { font-size:17px; line-height:1.8; }
  .cms-richtext table td, .cms-richtext table th, .cms-spec-table th, .cms-spec-table td { padding:12px 14px; font-size:15px; }
  .cms-spec-table th { width:38%; }
  .cms-downloads > a { flex-wrap:wrap; gap:12px; padding:20px; font-size:16px; }
  .cms-downloads > a > span:not(.cms-document-action) { flex:1; min-width:0; }
  .cms-downloads .cms-document-action { flex-basis:100%; padding-left:40px; margin:0; }
  .cms-products .catalog-card-body p { font-size:17px; }
}

/* Keep the product inquiry available below the gallery on small screens. */
.cms-mobile-quote { display:none; }
@media (max-width:700px) {
  .cms-product-detail:has(.cms-mobile-quote) { padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
  .cms-mobile-quote { display:block; position:fixed; z-index:90; inset:auto 0 0; padding:10px 20px calc(10px + env(safe-area-inset-bottom,0px)); border-top:1px solid #d5e4df; background:rgb(255 255 255 / 97%); box-shadow:0 -5px 24px rgb(20 61 69 / 7%); }
  .cms-mobile-quote .button { width:100%; min-height:50px; font-size:16px; }
  .product-lightbox-open .cms-mobile-quote { visibility:hidden; }
}
