@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --qf-navy-950: #081a29;
  --qf-navy-900: #0f172a;
  --qf-navy: #12304a;
  --qf-slate: #334155;
  --qf-action: #0369a1;
  --qf-action-dark: #075985;
  --qf-ice: #56b4d3;
  --qf-ice-pale: #d8eef7;
  --qf-white: #ffffff;
  --qf-mist: #f8fafc;
  --qf-white-product: #e9eef2;
  --qf-ink: #1e293b;
  --qf-muted: #475569;
  --qf-line: #e2e8f0;
  --qf-line-strong: #cbd5e1;
  --qf-radius: 2px;
  --qf-content: 1360px;
  --qf-reading: 760px;
  --qf-gutter: clamp(20px, 3vw, 48px);
  --qf-section: clamp(72px, 7vw, 104px);
  --qf-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--qf-white);
  color: var(--qf-ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--qf-action);
  outline-offset: 3px;
}

.qf-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100001;
  padding: 12px 18px;
  background: var(--qf-navy-950);
  color: var(--qf-white);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.qf-skip-link:focus {
  color: var(--qf-white);
  transform: translateY(0);
}

.qf-main {
  isolation: isolate;
}

.qf-main.wp-block-group-is-layout-flow > * + * {
  margin-block-start: 0;
}

[id] {
  scroll-margin-top: 96px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.container {
  width: min(var(--qf-content), 100% - (var(--qf-gutter) * 2));
  margin-inline: auto;
}

.container--reading {
  width: min(var(--qf-reading), 100% - (var(--qf-gutter) * 2));
  margin-inline: auto;
}

.review-note {
  position: relative;
  z-index: 70;
  border-bottom: 1px solid #c6e6f2;
  background: var(--qf-ice-pale);
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.review-note p {
  padding: 9px var(--qf-gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--qf-line);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--qf-navy-900);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-light {
  font-weight: 400;
}

.main-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(19px, 2vw, 32px);
}

.nav-link {
  position: relative;
  padding: 28px 0 25px;
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--qf-action);
  content: "";
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-contact {
  padding: 9px 15px;
  border: 1px solid var(--qf-line-strong);
}

.nav-contact::after {
  display: none;
}

.nav-contact:hover {
  border-color: var(--qf-action);
  color: var(--qf-action);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--qf-line);
  border-radius: var(--qf-radius);
  background: var(--qf-white);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--qf-navy-900);
  content: "";
}

.eyebrow {
  color: var(--qf-action);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--qf-radius);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--qf-action);
  color: var(--qf-white);
}

.button--primary:hover {
  background: var(--qf-action-dark);
}

.button--secondary {
  border-color: var(--qf-line-strong);
  background: var(--qf-white);
  color: var(--qf-navy-900);
}

.button--secondary:hover {
  border-color: var(--qf-navy-900);
}

.button--on-dark {
  border-color: rgba(255, 255, 255, 0.62);
  background: transparent;
  color: var(--qf-white);
}

.button--on-dark:hover {
  border-color: var(--qf-white);
  background: rgba(255, 255, 255, 0.06);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--qf-action);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-mist);
}

.hero-grid {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
  padding-block: 62px 66px;
}

.hero-copy {
  max-width: 610px;
}

.hero h1 {
  max-width: 100%;
  margin-top: 18px;
  font-size: clamp(3rem, 4.2vw, 4.25rem);
  line-height: 1.03;
  text-wrap: pretty;
}

.hero-lede {
  max-width: 580px;
  margin-top: 24px;
  color: var(--qf-muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-copy .button-row {
  margin-top: 32px;
}

.hero-gallery {
  display: grid;
  min-height: 474px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 14px;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--qf-line);
  background-color: var(--qf-white);
  box-shadow: var(--qf-shadow);
}

.hero-photo--black {
  grid-column: 1 / 9;
  grid-row: 1 / 8;
  background-image: url("../images/industrial-chiller.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-photo--white {
  grid-column: 5 / 13;
  grid-row: 6 / 13;
  background: var(--qf-white-product);
  background-image: url("../images/cold-plunge.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.photo-label {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.photo-finish {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 2;
  color: var(--qf-slate);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  max-width: 58%;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.machine {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: 48%;
  border: 1px solid var(--qf-line-strong);
  background: #ffffff;
  box-shadow: 0 13px 24px rgba(15, 23, 42, 0.12);
  transform: translate(-50%, -46%) skewY(-2deg);
}

.hero-photo .machine,
.category-media .machine,
.about-placeholder .machine {
  display: none;
}

.machine--black {
  border-color: #0b1420;
  background: #111923;
}

.machine::before {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(71, 85, 105, 0.26);
  content: "";
}

.machine::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 29%;
  height: 34%;
  border: 1px solid rgba(71, 85, 105, 0.34);
  background: rgba(216, 238, 247, 0.24);
  content: "";
}

.machine-fan {
  position: absolute;
  top: 48%;
  left: 40%;
  width: 17%;
  aspect-ratio: 1;
  border: 1px solid rgba(86, 180, 211, 0.65);
  border-radius: 50%;
}

.machine-fan::before,
.machine-fan::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  height: 1px;
  background: rgba(86, 180, 211, 0.7);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.machine-fan::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.machine-panel {
  position: absolute;
  top: 18%;
  right: 9%;
  width: 18%;
  height: 46%;
  border: 1px solid rgba(86, 180, 211, 0.65);
  background: rgba(216, 238, 247, 0.2);
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--qf-line);
}

.hero-rail-item {
  display: flex;
  min-height: 82px;
  padding: 15px 26px;
  align-items: center;
  gap: 15px;
  border-right: 1px solid var(--qf-line);
}

.hero-rail-item:last-child {
  border-right: 0;
}

.rail-index {
  color: var(--qf-action);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-rail strong {
  display: block;
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.hero-rail span {
  color: var(--qf-muted);
  font-size: 14px;
}

.section {
  padding-block: var(--qf-section);
}

.section--mist {
  background: var(--qf-mist);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 38px;
}

.section-head-copy {
  max-width: 780px;
}

.section-head h2 {
  max-width: 20ch;
  margin-top: 14px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-head p {
  max-width: 590px;
  margin-top: 16px;
  color: var(--qf-muted);
}

.section-head .text-link {
  flex: 0 0 auto;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.range-card {
  min-width: 0;
  border: 1px solid var(--qf-line);
  background: var(--qf-white);
  color: var(--qf-navy-900);
  text-decoration: none;
}

.range-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--qf-white-product);
  background-image: url("../images/industrial-chiller.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.range-media--black {
  background: var(--qf-mist);
  background-image: url("../images/cold-plunge.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.range-media .product-ph {
  display: none;
}

.range-body {
  padding: 13px 14px 15px;
}

.range-body strong {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.range-body span {
  display: block;
  margin-top: 5px;
  color: var(--qf-muted);
  font-size: 12px;
  line-height: 1.35;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.category-card {
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid var(--qf-line);
  background: var(--qf-white);
}

.category-card:nth-child(even) {
  background: #fbfcfd;
}

.category-copy {
  display: flex;
  padding: 38px 32px;
  flex-direction: column;
  align-items: flex-start;
}

.category-number {
  color: var(--qf-action);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.category-card h3 {
  margin-top: 17px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.category-card p {
  margin-top: 15px;
  color: var(--qf-muted);
}

.category-card .text-link {
  margin-top: auto;
}

.category-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-left: 1px solid var(--qf-line);
  background: var(--qf-white-product);
  background-image: url("../images/industrial-chiller.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.category-card:first-child .category-media {
  background: var(--qf-mist);
  background-image: url("../images/industrial-chiller.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.category-card:nth-child(2) .category-media {
  background-image: url("../images/cold-plunge.svg");
}

.category-media .machine {
  width: 84%;
  height: 42%;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.application-card {
  overflow: hidden;
  border: 1px solid var(--qf-line);
  background: var(--qf-white);
}

.application-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #edf1f3;
  background-image: url("../images/industrial-chiller.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.application-card:nth-child(3n + 2) .application-image {
  background-color: #e7ecef;
  background-image: url("../images/cold-plunge.svg");
}

.application-card:nth-child(3n) .application-image {
  background-color: #f2f5f6;
  background-image: url("../images/hero-system.svg");
}

.application-image::before {
  content: none;
}

.application-image::after {
  content: none;
}

.application-body {
  padding: 19px 20px 21px;
}

.application-body h3 {
  font-size: 19px;
}

.application-body p {
  margin-top: 8px;
  color: var(--qf-muted);
  font-size: 15px;
  line-height: 1.5;
}

.application-body .text-link {
  margin-top: 10px;
  font-size: 13px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--qf-line);
  border-left: 1px solid var(--qf-line);
}

.why-item {
  min-height: 220px;
  padding: 27px 25px;
  border-right: 1px solid var(--qf-line);
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-white);
}

.why-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #c9e6f0;
  background: var(--qf-ice-pale);
  color: var(--qf-action);
}

.why-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.why-item h3 {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.35;
}

.why-item p {
  margin-top: 10px;
  color: var(--qf-muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: stretch;
  gap: clamp(40px, 6vw, 96px);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.about-copy p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--qf-muted);
}

.about-copy .button {
  align-self: flex-start;
  margin-top: 28px;
}

.about-gallery {
  display: grid;
  min-height: 390px;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-placeholder {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--qf-line);
  background: var(--qf-mist);
  background-image: url("../images/industrial-chiller.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.about-placeholder:nth-child(2) {
  margin-top: 42px;
  background: var(--qf-white-product);
  background-image: url("../images/cold-plunge.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.about-placeholder::before {
  content: none;
}

.about-placeholder .machine {
  width: 84%;
  height: 37%;
}

.cta-band {
  padding-block: 68px;
  background: var(--qf-navy-900);
  color: var(--qf-white);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}

.cta-grid h2 {
  max-width: 720px;
  color: var(--qf-white);
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta-grid p {
  max-width: 660px;
  margin-top: 14px;
  color: #cbd5e1;
}

.site-footer {
  padding: 62px 0 22px;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.65fr) repeat(3, minmax(140px, 0.7fr));
  gap: 48px;
}

.footer-intro {
  max-width: 340px;
  margin-top: 19px;
  color: var(--qf-muted);
  font-size: 15px;
}

.footer-column h3 {
  color: var(--qf-navy-900);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.footer-links a {
  color: var(--qf-muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--qf-action);
}

.footer-bottom {
  display: flex;
  margin-top: 54px;
  padding-top: 20px;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--qf-line);
  color: var(--qf-muted);
  font-size: 12px;
}

/* Product page */
.page-hero {
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-mist);
}

.page-hero-inner {
  display: grid;
  min-height: 250px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: 64px;
  padding-block: 48px 44px;
}

.breadcrumb {
  margin-bottom: 17px;
  color: var(--qf-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.page-hero p {
  max-width: 610px;
  justify-self: end;
  color: var(--qf-muted);
  font-size: 18px;
}

.catalog {
  padding-block: 42px var(--qf-section);
}

.catalog-toolbar {
  position: sticky;
  top: 80px;
  z-index: 30;
  display: flex;
  min-height: 68px;
  margin-bottom: 25px;
  padding: 10px 0;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--qf-line);
  background: rgba(255, 255, 255, 0.98);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--qf-line-strong);
  border-radius: var(--qf-radius);
  background: var(--qf-white);
  color: var(--qf-navy-900);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.filter-button:hover {
  border-color: var(--qf-action);
}

.filter-button.is-active {
  border-color: var(--qf-action);
  background: var(--qf-action);
  color: var(--qf-white);
}

.product-search {
  width: min(250px, 100%);
  min-height: 44px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--qf-line-strong);
  border-radius: var(--qf-radius);
  background: var(--qf-white);
  color: var(--qf-ink);
  font-size: 14px;
}

.product-search::placeholder {
  color: #64748b;
}

.catalog-meta {
  display: flex;
  margin-bottom: 15px;
  justify-content: space-between;
  gap: 20px;
  color: var(--qf-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 352px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--qf-line);
  border-radius: var(--qf-radius);
  background: var(--qf-white);
  transition: border-color 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: var(--qf-line-strong);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-white-product);
}

.product-media.is-black {
  background: var(--qf-mist);
}

.product-media .product-ph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: 48%;
  border: 1px solid var(--qf-line-strong);
  background: var(--qf-white);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  transform: translate(-50%, -40%) skewY(-2deg);
}

.product-media.is-black .product-ph {
  border-color: #111923;
  background: #111923;
}

.product-ph::before {
  position: absolute;
  top: 22%;
  right: 17%;
  width: 21%;
  height: 43%;
  border: 1px solid rgba(86, 180, 211, 0.72);
  background: rgba(216, 238, 247, 0.2);
  content: "";
}

.product-ph::after {
  position: absolute;
  top: 45%;
  left: 36%;
  width: 22%;
  aspect-ratio: 1;
  border: 1px solid rgba(86, 180, 211, 0.68);
  border-radius: 50%;
  content: "";
}

.finish-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 6px;
  border: 1px solid rgba(18, 48, 74, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: var(--qf-navy);
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.placeholder-label {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  color: var(--qf-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.product-body {
  display: flex;
  flex: 1;
  padding: 13px 12px 12px;
  flex-direction: column;
}

.product-name {
  display: -webkit-box;
  min-height: 39px;
  overflow: hidden;
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-model {
  margin-top: 5px;
  color: var(--qf-action);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-summary {
  display: -webkit-box;
  min-height: 40px;
  margin-top: 9px;
  overflow: hidden;
  color: var(--qf-muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-body .button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 9px 8px;
  border-color: var(--qf-line-strong);
  background: var(--qf-white);
  color: var(--qf-navy-900);
  font-size: 11px;
}

.product-card:hover .product-body .button {
  border-color: var(--qf-action);
  background: var(--qf-action);
  color: var(--qf-white);
}

.catalog-empty {
  display: none;
  padding: 60px 20px;
  border: 1px solid var(--qf-line);
  color: var(--qf-muted);
  text-align: center;
}

.catalog-empty-state {
  display: grid;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  justify-items: start;
  border: 1px solid var(--qf-line);
  background: var(--qf-mist);
}

.catalog-empty-state h2 {
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.catalog-empty-state > p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--qf-muted);
}

.catalog-empty-state .wp-element-button {
  display: inline-flex;
  min-height: 46px;
  margin-top: 26px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border-radius: var(--qf-radius);
  background: var(--qf-action);
  color: var(--qf-white);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.catalog-empty-state .wp-element-button:hover {
  background: var(--qf-action-dark);
  color: var(--qf-white);
}

.qf-field__help {
  margin-bottom: 8px;
  color: var(--qf-muted);
  font-size: 14px;
  line-height: 1.45;
}

.post-matrix {
  padding-block: var(--qf-section);
  border-top: 1px solid var(--qf-line);
  background: var(--qf-mist);
}

.post-matrix .application-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-matrix .section-head {
  align-items: end;
}

.post-matrix .section-head p {
  max-width: 500px;
}

.product-applications {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 34px;
}

.application-group-title {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  gap: 11px;
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.application-group-title::before {
  width: 7px;
  height: 7px;
  background: var(--qf-ice);
  content: "";
}

.application-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.application-mini-grid .application-card:last-child {
  grid-column: 1 / -1;
}

.application-mini-grid .application-image {
  aspect-ratio: 16 / 8;
}

.application-mini-grid .application-body {
  padding: 14px 15px;
}

.application-mini-grid h3 {
  font-size: 15px;
}

.application-mini-grid p {
  font-size: 12px;
}

@media (max-width: 1279px) {
  .header-inner {
    gap: 24px;
  }

  .main-nav {
    gap: 17px;
  }

  .nav-link {
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .range-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-gallery {
    width: min(760px, 100%);
    min-height: 480px;
    margin-inline: auto;
  }

  .hero-rail {
    grid-template-columns: 1fr;
  }

  .hero-rail-item {
    border-right: 0;
    border-bottom: 1px solid var(--qf-line);
  }

  .hero-rail-item:last-child {
    border-bottom: 0;
  }

  .category-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 350px;
  }

  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-hero p {
    justify-self: start;
  }

  .catalog-toolbar {
    top: 80px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-applications {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  :root {
    --qf-gutter: 20px;
  }

  body {
    font-size: 17px;
  }

  .review-note {
    font-size: 9px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero-grid {
    gap: 38px;
    padding-block: 42px 46px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 18px;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-gallery {
    min-height: 340px;
  }

  .hero-photo .photo-finish {
    display: none;
  }

  .hero-photo--black {
    grid-column: 1 / 10;
    grid-row: 1 / 8;
  }

  .hero-photo--white {
    grid-column: 3 / 13;
    grid-row: 6 / 13;
  }

  .section-head {
    display: block;
    margin-bottom: 28px;
  }

  .section-head .text-link {
    margin-top: 12px;
  }

  .range-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-media {
    min-height: 260px;
    order: -1;
    border-bottom: 1px solid var(--qf-line);
    border-left: 0;
  }

  .category-copy {
    min-height: 280px;
    padding: 27px 24px;
  }

  .application-grid,
  .post-matrix .application-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item {
    min-height: 0;
    padding: 24px;
  }

  .about-gallery {
    min-height: 310px;
  }

  .about-placeholder:nth-child(2) {
    margin-top: 24px;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .cta-grid .button-row {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .page-hero-inner {
    min-height: 220px;
    padding-block: 36px 32px;
  }

  .catalog {
    padding-top: 26px;
  }

  .catalog-toolbar {
    position: static;
    display: block;
    padding: 0 0 16px;
  }

  .filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-button:first-child {
    grid-column: 1 / -1;
  }

  .filter-button {
    width: 100%;
  }

  .product-search {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
  }

  .catalog-meta {
    margin-top: 18px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .product-media {
    aspect-ratio: auto;
    min-height: 196px;
    border-right: 1px solid var(--qf-line);
    border-bottom: 0;
  }

  .product-body {
    padding: 14px;
  }

  .product-name {
    min-height: 0;
    font-size: 15px;
  }

  .product-summary {
    min-height: 0;
  }

  .product-body .button {
    min-height: 44px;
    margin-top: 14px;
  }

  .application-mini-grid {
    grid-template-columns: 1fr;
  }

  .application-mini-grid .application-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .hero-gallery {
    min-height: 290px;
  }

  .photo-label {
    font-size: 8px;
  }

  .photo-finish {
    font-size: 8px;
  }

  .range-grid {
    grid-template-columns: 1fr;
  }

  .range-media {
    aspect-ratio: 16 / 9;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-placeholder {
    min-height: 210px;
  }

  .about-placeholder:nth-child(2) {
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-column,
  .footer-column:last-child {
    grid-column: auto;
  }

  .product-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .product-media {
    min-height: 188px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress block-theme integration */
.qf-container.container {
  width: min(var(--qf-content), 100% - (var(--qf-gutter) * 2));
}

.qf-brand__name,
.qf-nav .wp-block-navigation-item__content,
.qf-form button,
.qf-button,
.wp-element-button {
  font-family: "DM Sans", sans-serif;
}

.qf-brand__name {
  font-weight: 600;
}

.qf-nav .wp-block-navigation-item__content {
  color: var(--qf-navy-900);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.qf-nav .wp-block-navigation-item__content:hover {
  color: var(--qf-action);
}

.qf-page-hero {
  min-height: 250px;
  padding-block: 48px 44px;
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-mist);
}

.qf-page-hero__inner {
  display: grid;
  width: min(var(--qf-content), 100% - (var(--qf-gutter) * 2));
  max-width: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: end;
  gap: 64px;
  margin-inline: auto;
}

.qf-page-hero h1 {
  max-width: none;
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.qf-page-hero::before {
  content: none;
}

.qf-page-hero .wp-block-post-excerpt {
  max-width: 610px;
  margin: 0;
  justify-self: end;
  color: var(--qf-muted);
  font-size: 18px;
}

.qf-page-hero .wp-block-post-excerpt p,
.qf-page-hero .wp-block-post-excerpt__excerpt {
  margin: 0;
  color: var(--qf-muted);
}

.qf-page-body {
  padding-block: 0 var(--qf-section);
}

.qf-page-content > * + * {
  margin-block-start: 0;
}

/* Product filter controls rendered by the catalog shortcode. */
.catalog-toolbar {
  flex-wrap: wrap;
}

.catalog-toolbar form,
.qf-catalog-toolbar {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 16px;
}

.filter-button[aria-current="page"] {
  border-color: var(--qf-action);
  background: var(--qf-action);
  color: var(--qf-white);
}

.filter-search-button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--qf-action);
  border-radius: var(--qf-radius);
  background: var(--qf-action);
  color: var(--qf-white);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.filter-search-button:hover {
  border-color: var(--qf-action-dark);
  background: var(--qf-action-dark);
}

/* Native Query Loop product catalogue. */
.wp-block-post-template.product-grid,
.product-grid {
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-block-post-template.product-grid > li {
  display: flex;
  min-width: 0;
  margin: 0;
}

.wp-block-post-template.product-grid .product-card {
  width: 100%;
}

.product-card > .wp-block-post-featured-image {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-white-product);
}

.product-card:nth-child(odd) > .wp-block-post-featured-image {
  background: var(--qf-mist);
}

.product-card > .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.product-card .wp-block-post-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.product-card .wp-block-post-title a {
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.product-card .wp-block-post-title a:hover {
  color: var(--qf-action);
}

.product-card .wp-block-post-meta,
.product-card .wp-block-post-terms {
  margin-top: 5px;
  color: var(--qf-action);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.product-card .wp-block-post-excerpt {
  margin-top: 9px;
}

.product-card .wp-block-post-excerpt p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--qf-muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card .wp-block-read-more {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 9px 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--qf-line-strong);
  border-radius: var(--qf-radius);
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.product-card:hover .wp-block-read-more {
  border-color: var(--qf-action);
  background: var(--qf-action);
  color: var(--qf-white);
}

.qf-product-placeholder {
  cursor: default;
}

.qf-product-placeholder .product-media {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-white-product);
}

.qf-product-placeholder:nth-child(odd) .product-media {
  background: var(--qf-mist);
}

.qf-product-placeholder .product-name {
  min-height: 39px;
}

.qf-product-placeholder .product-model {
  color: var(--qf-action);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.qf-product-placeholder .button {
  pointer-events: none;
}

.hero-rail-title {
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.hero-rail-note {
  color: var(--qf-muted);
  font-size: 14px;
  line-height: 1.45;
}

.range-body h3 {
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.range-body p {
  margin-top: 5px;
  color: var(--qf-muted);
  font-size: 12px;
  line-height: 1.35;
}

.range-link,
.text-link {
  margin: 0;
}

.range-link a,
.text-link a {
  color: var(--qf-action);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.range-link a:hover,
.text-link a:hover {
  color: var(--qf-action-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.catalog-meta p {
  margin: 0;
}

.wp-block-button.button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  padding: 0;
  align-items: stretch;
  border: 0;
  background: transparent;
  transform: none;
}

.wp-block-button.button .wp-block-button__link {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--qf-radius);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.wp-block-button.button--primary .wp-block-button__link {
  background: var(--qf-action);
  color: var(--qf-white);
}

.wp-block-button.button--primary .wp-block-button__link:hover {
  background: var(--qf-action-dark);
  color: var(--qf-white);
  transform: translateY(-1px);
}

.wp-block-button.button--secondary .wp-block-button__link {
  border-color: var(--qf-line-strong);
  background: var(--qf-white);
  color: var(--qf-navy-900);
}

.wp-block-button.button--secondary .wp-block-button__link:hover {
  border-color: var(--qf-navy-900);
  color: var(--qf-navy-900);
  transform: translateY(-1px);
}

.wp-block-button.button--on-dark .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.62);
  background: transparent;
  color: var(--qf-white);
}

.wp-block-button.button--on-dark .wp-block-button__link:hover {
  border-color: var(--qf-white);
  background: rgba(255, 255, 255, 0.06);
  color: var(--qf-white);
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  .qf-page-hero__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qf-page-hero .wp-block-post-excerpt {
    justify-self: start;
  }

  .catalog-toolbar form,
  .qf-catalog-toolbar {
    flex-wrap: wrap;
  }

  .product-search {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .qf-page-hero {
    min-height: 220px;
    padding-block: 36px 32px;
  }

  .qf-page-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }

  .catalog-toolbar form,
  .qf-catalog-toolbar {
    display: block;
    width: 100%;
    margin-left: 0;
  }

  .filter-search-button {
    width: 100%;
    margin-top: 10px;
  }

  .product-card > .wp-block-post-featured-image {
    width: 128px;
    min-height: 196px;
    aspect-ratio: auto;
    border-right: 1px solid var(--qf-line);
    border-bottom: 0;
  }

  .product-card:has(> .wp-block-post-featured-image) {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .product-card:has(> .wp-block-post-featured-image) .product-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }
}

/* Product detail template */
.qf-product-detail-hero {
  padding-block: clamp(52px, 6vw, 84px);
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-mist);
}

.qf-product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(42px, 6vw, 88px);
}

.qf-product-detail-copy h1 {
  max-width: 15ch;
  margin-top: 14px;
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.qf-product-detail-copy .wp-block-post-excerpt {
  max-width: 620px;
  margin-top: 18px;
  color: var(--qf-muted);
  font-size: 18px;
}

.qf-product-detail-copy .wp-block-post-excerpt__excerpt {
  margin: 0;
}

.qf-product-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
  padding-block: 20px;
  border-top: 1px solid var(--qf-line);
  border-bottom: 1px solid var(--qf-line);
}

.qf-product-detail-facts .eyebrow {
  margin: 0;
}

.qf-product-detail-value {
  margin-top: 7px;
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.qf-product-detail-copy .button-row {
  margin-top: 27px;
}

.qf-product-detail-media {
  display: grid;
  min-height: 430px;
  margin: 0;
  place-items: center;
  border: 1px solid var(--qf-line);
  background: var(--qf-white-product);
}

.qf-product-detail-media img {
  width: 100%;
  height: 100%;
  padding: 24px;
  object-fit: contain;
}

.qf-product-detail-body {
  padding-block: var(--qf-section);
}

.qf-product-detail-body .wp-block-post-content {
  color: var(--qf-ink);
}

.qf-product-detail-body .wp-block-post-content h2 {
  margin-top: 48px;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.qf-product-detail-body .wp-block-post-content h3 {
  margin-top: 32px;
}

.qf-product-detail-body .wp-block-post-content p,
.qf-product-detail-body .wp-block-post-content li {
  color: var(--qf-muted);
}

@media (max-width: 1023px) {
  .qf-product-detail-grid {
    grid-template-columns: 1fr;
  }

  .qf-product-detail-media {
    min-height: 340px;
    order: -1;
  }
}

@media (max-width: 767px) {
  .qf-product-detail-facts {
    grid-template-columns: 1fr;
  }

  .qf-product-detail-media {
    min-height: 280px;
  }
}

/* Reference-inspired product catalogue */
.product-catalog-hero {
  padding-block: clamp(64px, 7vw, 96px);
  border-bottom: 1px solid var(--qf-line);
  background: var(--qf-mist);
}

.product-catalog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.product-catalog-hero h1 {
  max-width: 15ch;
  margin-top: 15px;
  font-size: clamp(2.8rem, 4.4vw, 4.5rem);
  text-wrap: pretty;
}

.product-catalog-hero__lede {
  max-width: 680px;
  margin-top: 22px;
  color: var(--qf-muted);
  font-size: 19px;
  line-height: 1.55;
}

.product-catalog-hero__copy .button-row {
  margin-top: 28px;
}

.product-catalog-hero__note {
  max-width: 640px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--qf-line);
  color: var(--qf-muted);
  font-size: 14px;
}

.product-catalog-hero__panel {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--qf-line);
  background: var(--qf-white);
}

.product-catalog-hero__panel h2 {
  margin-top: 12px;
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
}

.product-selection-list {
  display: grid;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.product-selection-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--qf-line);
}

.product-selection-list strong {
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.product-selection-list span {
  color: var(--qf-muted);
  font-size: 13px;
}

.product-trust-bar {
  padding-block: 18px;
  background: var(--qf-action);
  color: var(--qf-white);
}

.product-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.product-trust-grid p {
  position: relative;
  margin: 0;
  padding: 2px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.product-trust-grid p::before {
  margin-right: 9px;
  content: "✓";
}

.product-trust-grid p:first-child {
  padding-left: 0;
}

.product-trust-grid p:last-child {
  padding-right: 0;
  border-right: 0;
}

.catalog-filter-rows {
  display: grid;
  flex: 1;
  gap: 7px;
}

.catalog-filter-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.catalog-filter-label {
  flex: 0 0 92px;
  color: var(--qf-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-count {
  color: var(--qf-navy-900);
  font-weight: 600;
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-card {
  min-height: 410px;
}

.product-card > .product-category {
  margin: 0;
  padding: 9px 12px 8px;
  border-bottom: 1px solid var(--qf-line);
  color: var(--qf-action);
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-card > .product-category a {
  color: inherit;
  text-decoration: none;
}

.product-card .product-summary {
  min-height: 52px;
  -webkit-line-clamp: 3;
}

.qf-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: auto;
  padding-top: 16px;
}

.qf-product-actions .button,
.qf-product-actions .qf-product-details {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--qf-line-strong);
  border-radius: var(--qf-radius);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.qf-product-actions .qf-product-inquiry {
  border-color: var(--qf-action);
  background: var(--qf-action);
  color: var(--qf-white);
}

.qf-product-actions .qf-product-inquiry:hover {
  border-color: var(--qf-action-dark);
  background: var(--qf-action-dark);
  color: var(--qf-white);
}

.qf-product-actions .qf-product-details {
  gap: 6px;
  background: var(--qf-white);
  color: var(--qf-action);
}

.qf-product-actions .qf-product-details:hover {
  border-color: var(--qf-action);
  color: var(--qf-action-dark);
}

.qf-product-detail-copy .qf-product-actions {
  max-width: 420px;
  padding-top: 27px;
}

.qf-product-data-sections {
  margin-top: 58px;
  padding-top: 10px;
  border-top: 1px solid var(--qf-line);
}

.qf-product-data-sections h2 {
  scroll-margin-top: 110px;
}

.qf-product-data-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  border: 1px solid var(--qf-line);
}

.qf-product-data-table th,
.qf-product-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--qf-line);
  text-align: left;
  vertical-align: top;
}

.qf-product-data-table tr:last-child th,
.qf-product-data-table tr:last-child td {
  border-bottom: 0;
}

.qf-product-data-table th {
  width: 36%;
  background: var(--qf-mist);
  color: var(--qf-navy-900);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.qf-product-data-table td {
  color: var(--qf-muted);
  font-size: 14px;
}

.qf-product-data-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.qf-product-data-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-top: 1px solid var(--qf-line);
}

.qf-product-data-list li::before {
  position: absolute;
  top: 1.15em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--qf-action);
  content: "";
}

.qf-data-empty {
  color: var(--qf-muted);
}

@media (max-width: 1279px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-trust-grid p:nth-child(2) {
    border-right: 0;
  }

  .product-trust-grid p:nth-child(n + 3) {
    margin-top: 12px;
  }
}

@media (max-width: 1023px) {
  .product-catalog-hero__grid {
    grid-template-columns: 1fr;
  }

  .product-catalog-hero h1 {
    max-width: 18ch;
  }

  .catalog-filter-rows {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-catalog-hero {
    padding-block: 48px;
  }

  .product-catalog-hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .product-catalog-hero__lede {
    font-size: 17px;
  }

  .product-catalog-hero__panel {
    padding: 24px;
  }

  .product-trust-bar {
    padding-block: 12px;
  }

  .product-trust-grid {
    grid-template-columns: 1fr;
  }

  .product-trust-grid p,
  .product-trust-grid p:first-child,
  .product-trust-grid p:last-child {
    margin: 0;
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .product-trust-grid p:last-child {
    border-bottom: 0;
  }

  .catalog-filter-row {
    display: block;
  }

  .catalog-filter-label {
    display: block;
    margin-bottom: 7px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .product-card > .product-category {
    grid-column: 1 / -1;
  }

  .qf-product-actions {
    grid-template-columns: 1fr 1fr;
  }

  .qf-product-data-table th {
    width: 42%;
  }
}

/*
 * Keep catalogue filtering available while the visitor scrolls through
 * products. The offsets follow the sticky site header and WordPress admin bar.
 * The controls stay compact on phones so the fixed area does not cover the
 * product grid.
 */
.qf-product-catalog-main {
  --qf-catalog-header-offset: 76px;
  --qf-catalog-admin-offset: 0px;
}

body.admin-bar .qf-product-catalog-main {
  --qf-catalog-admin-offset: 32px;
}

.qf-product-catalog-main .catalog-toolbar {
  position: sticky;
  top: calc(
    var(--qf-catalog-header-offset) +
    var(--qf-catalog-admin-offset) +
    1px
  );
  z-index: 50;
  padding: 10px 12px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(16, 48, 94, 0.12);
}

@media (max-width: 782px) {
  body.admin-bar .qf-product-catalog-main {
    --qf-catalog-admin-offset: 46px;
  }
}

@media (max-width: 767px) {
  .qf-product-catalog-main .catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-inline: 0;
    padding: 8px;
  }

  .qf-product-catalog-main .catalog-filter-rows {
    display: grid;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .qf-product-catalog-main .catalog-filter-row {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: 7px;
  }

  .qf-product-catalog-main .catalog-filter-label {
    display: block;
    flex: 0 0 72px;
    margin: 0;
  }

  .qf-product-catalog-main .filter-group {
    flex-wrap: nowrap;
  }

  .qf-product-catalog-main .filter-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .qf-product-catalog-main .catalog-toolbar form {
    display: grid;
    width: 100%;
    margin: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .qf-product-catalog-main .product-search {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
}

@media (max-width: 700px) {
  .qf-product-catalog-main {
    --qf-catalog-header-offset: 68px;
  }
}
