.product-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.product-title-row::before {
  content: "";
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.product-active-type {
  padding-left: 20px;
  border-left: 2px solid #cbd8e6;
  font-size: 1.2rem;
}

.product-active-type[hidden] {
  display: none;
}

.product-intro {
  max-width: 750px;
  margin: 10px 0 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  padding-top: 0;
}

.product-catalogue {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding-block: 12px 64px;
}

.product-results {
  min-width: 0;
}

.product-filter-panel {
  position: sticky;
  top: calc(var(--compact-header-height) + 16px);
  max-height: calc(100dvh - var(--compact-header-height) - 32px);
  overflow-y: auto;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  scrollbar-width: thin;
  box-shadow: 0 2px 5px #1735530a;
}

.product-filter-panel h2 {
  margin: 0 8px 22px;
  font-size: 1.05rem;
}

.product-filter-disclosure > summary {
  display: none;
}

.product-filters {
  display: grid;
  gap: 22px;
}

.product-filters fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-filters legend {
  width: 100%;
  padding: 0 8px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 650;
}

.product-filter-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.85rem;
  line-height: 1.5;
  cursor: pointer;
}

.product-filter-choice:has(:checked) {
  background: var(--link-fill, #8bc7481f);
  font-weight: 650;
}

.product-filter-choice:hover {
  background: var(--link-fill, #8bc7481f);
}

.product-filter-choice input {
  appearance: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--slate);
  border-radius: 50%;
  background: var(--paper);
}

.product-filter-choice input:checked {
  border: 5px solid var(--accent);
}

.product-filter-choice input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.product-filter-status {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 0.88rem;
}

.product-results-heading {
  margin-bottom: 18px;
}

.product-results-heading h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.product-results-heading .product-filter-status {
  margin: 0;
}

.product-category-options {
  min-width: 0;
  margin: 0;
}

.product-category-options label {
  display: block;
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 650;
}

.product-filters [hidden] {
  display: none;
}

[data-advice-heat-pumps][hidden],
[data-advice-general][hidden],
.product-support-card[hidden],
.product-card[hidden],
[data-product-empty][hidden] {
  display: none;
}

.product-card {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 2px 5px #1735530a;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 6px 20px #17355312;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  padding: 14px 18px 0;
  color: var(--slate);
  font-size: 0.75rem;
  line-height: 1.4;
}

.product-card-meta > span:first-child {
  color: var(--navy);
  font-weight: 650;
  font-size: 0.9rem;
}

.product-card-meta > span:last-child {
  padding: 3px 9px;
  border-radius: 20px;
  background: #edf1f6;
}

.product-card-wide {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
}

.product-card-wide .product-card-meta {
  grid-column: 1 / -1;
}

.product-card-wide .product-card-art {
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.product-card-wide .product-photo {
  height: 150px;
}

.product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.product-card-art {
  padding: 14px 16px 12px;
  border-bottom: 0;
  background: #fff;
  color: #0a263e;
}

.product-photo {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.product-card-art h2 {
  margin: 10px 0 0;
  font-size: 1.17rem;
  line-height: 1.25;
  color: #0a263e;
}

.product-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 18px 16px;
  flex: 1;
}

.product-card-price {
  display: grid;
  gap: 4px;
  margin-top: auto;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-card-price strong {
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.product-card-price small {
  color: var(--slate);
  font-size: 0.78rem;
}

.product-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #afd164;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.product-card:is(:hover, :focus-visible) .product-card-cta {
  background: #a2cb4c;
}

.product-card-cta .icon {
  width: 18px;
  height: 18px;
}

.product-card-benefits,
.product-inclusions {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  line-height: 1.4;
}

.product-card-benefits li,
.product-inclusions li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-card-benefits .icon,
.product-inclusions .icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #83b72f;
  stroke-width: 3;
}

.product-card-wide .product-card-copy {
  padding-top: 16px;
}

.product-support {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.product-support-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 5px #1735530a;
}

.product-support-card > div {
  min-width: 0;
  flex: 1;
}

.product-support-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.product-support-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: #e9f2d7;
  color: #6d9e25;
}

.product-support-icon .icon {
  width: 28px;
  height: 28px;
}

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

.product-support-card p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.product-support-card .product-installation-note {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.75rem;
  font-style: italic;
}

.product-support-card.product-advice {
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #f6faee;
}

.product-advice-content {
  padding: 22px;
}

.product-advice-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-advice-heading h2 {
  margin: 0;
}

.product-advice p {
  margin: 16px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.product-advice-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid #d5e4bf;
  border-radius: 0 0 17px 17px;
  background: #eaf3dc;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease;
}

.product-advice-button:hover {
  background: #dcebc6;
}

.product-advice-button:focus-visible {
  outline: 2px solid #527c1b;
  outline-offset: -4px;
}

.product-advice-button .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

@media (max-width: 1150px) {
  .product-support {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .product-title-row {
    gap: 10px;
  }

  .product-title-row::before {
    width: 24px;
  }

  .product-active-type {
    padding-left: 10px;
    font-size: 1rem;
  }

  .product-support-card {
    padding: 18px;
    gap: 12px;
  }

  .product-advice-content {
    padding: 18px;
  }

  .product-advice-heading {
    gap: 12px;
  }

  .product-advice-button {
    padding: 16px 18px;
  }

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

.product-card-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--slate);
}

@media (max-width: 900px) {
  .product-catalogue {
    display: block;
  }

  .product-filter-panel {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-bottom: 20px;
  }

  .product-filter-panel h2 {
    display: none;
  }

  .product-filter-disclosure > summary {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    min-height: 56px;
    padding: 12px 40px 12px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 650;
  }

  .product-filter-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .product-filter-disclosure > summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 22px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .product-filter-disclosure[open] > summary::after {
    transform: translateY(4px) rotate(225deg);
  }

  [data-filter-selection] {
    color: var(--slate);
    font-size: 0.76rem;
    font-weight: 400;
  }

  .product-filter-body {
    position: relative;
    max-height: calc(
      100dvh - var(--compact-header-height) - var(--contact-dock-space, 68px) - 120px
    );
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 24px #00000018;
  }

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

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

.card-stack > .product-card {
  top: calc(
    var(--compact-header-height) + var(--product-filter-height, 0px) + 12px +
      var(--stack-level, 0) * 8px
  );
  scroll-margin-top: calc(var(--header-height) + var(--product-filter-height, 0px) + 48px);
}

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