/* D18-1: product teasers inherit the active Theme/Divi tokens and container width. */
.kleer-public .kleer-product-layout {
  --kleer-layout-gap: var(--kleer-os-spacing-5, 24px);
  position: relative;
  container: kleer-products / inline-size;
  min-width: 0;
  max-width: 100%;
  margin-block: clamp(24px, 4vw, 48px);
}
.kleer-public .kleer-layout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 20px;
}
.kleer-public .kleer-layout-heading h2 { margin: 0; }
.kleer-public .kleer-layout-items { min-width: 0; gap: var(--kleer-layout-gap); }
.kleer-public .kleer-layout-grid .kleer-layout-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.kleer-public .kleer-layout-card {
  position: relative;
  min-width: 0;
  box-shadow: var(--kleer-shadow, none);
  transition: border-color 160ms ease;
}
.kleer-public .kleer-layout-card:focus-within { border-color: var(--kleer-primary); }
.kleer-public .kleer-layout-card .kleer-layout-copy {
  padding: var(--kleer-os-spacing-5, 24px);
  gap: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Only the content container fills a row. Category, title and text never expand. */
.kleer-public .kleer-layout-card .kleer-card-family,
.kleer-public .kleer-layout-card .kleer-layout-summary,
.kleer-public .kleer-layout-copy > h2,
.kleer-public .kleer-layout-copy > h3 { flex: 0 0 auto; }
.kleer-public .kleer-layout-copy > h2,
.kleer-public .kleer-layout-copy > h3 {
  margin: 0 0 10px;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.kleer-public .kleer-layout-copy > h3 {
  font-size: calc(1.25em * var(--kleer-font-heading-scale, 1));
  line-height: var(--kleer-heading-line-height, 1.25);
  letter-spacing: -.015em;
}
.kleer-public .kleer-layout-card .kleer-layout-summary {
  margin: 0 0 20px;
  font-size: 1em;
  line-height: var(--kleer-line-height, 1.6);
  text-wrap: pretty;
}
.kleer-public .kleer-layout-card .kleer-card-actions {
  margin-block-start: auto;
  padding-block-start: 0;
}
.kleer-public .kleer-layout-card .kleer-card-actions .kleer-button {
  max-width: 100%;
  min-height: var(--kleer-button-height, 48px);
  font-size: 1em;
}
.kleer-public .kleer-layout-card figure {
  background: var(--kleer-site-soft, var(--kleer-background));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
}
.kleer-public .kleer-layout-card .kleer-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 8 / 5;
  max-height: 16rem;
  min-width: 0;
  border-radius: 0;
}
.kleer-public .kleer-layout-card .kleer-product-image {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  aspect-ratio: auto;
}
.kleer-public .kleer-layout-card figcaption {
  padding: 10px 20px;
  margin: 0;
  font-size: .875em;
  line-height: 1.5;
}
/* Native controls remain native inputs/selects, with one shared 48px geometry. */
.kleer-public .kleer-product-layout .kleer-filters {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 24px;
}
.kleer-public .kleer-product-layout .kleer-filters label {
  flex: 2 1 18rem;
  min-width: min(100%, 15rem);
  margin: 0;
  gap: 8px;
  font-size: 1em;
  line-height: 1.4;
}
.kleer-public .kleer-product-layout .kleer-filters label:nth-of-type(2) { flex: 1 1 14rem; }
.kleer-public .kleer-product-layout .kleer-filters input[type=search],
.kleer-public .kleer-product-layout .kleer-filters select,
.kleer-public .kleer-product-layout .kleer-filters .kleer-button {
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  height: max(48px, 3em);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--kleer-border);
  border-radius: var(--kleer-site-button-radius, var(--kleer-radius-button, var(--kleer-radius)));
  background-color: var(--kleer-surface);
  color: var(--kleer-text);
  font-family: inherit;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.4;
}
.kleer-public .kleer-product-layout .kleer-filters input[type=search] { appearance: none; }
.kleer-public .kleer-product-layout .kleer-filters select {
  appearance: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.kleer-public .kleer-product-layout .kleer-filters .kleer-button {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: max(48px, 3em);
  height: auto;
  padding-inline: 20px;
  font-weight: 600;
}
.kleer-public .kleer-product-layout .kleer-button { transition: background-color 160ms ease, border-color 160ms ease; }
.kleer-public .kleer-product-layout :focus-visible { outline: 3px solid var(--kleer-accent); outline-offset: 4px; }
/* A feature is a generous introduction; split rows keep a quieter balanced rhythm. */
.kleer-public .kleer-layout-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.kleer-public .kleer-layout-wide .kleer-layout-copy { justify-content: center; padding: clamp(24px, 3.5cqi, 40px); }
.kleer-public .kleer-layout-wide .kleer-layout-summary { max-width: 54ch; }
.kleer-public .kleer-layout-wide .kleer-card-actions { margin-block-start: 0; }
.kleer-public .kleer-layout-wide .kleer-image-wrap { max-height: 28rem; aspect-ratio: 3 / 2; flex: 1 1 auto; }
.kleer-public .kleer-layout-wide[data-image-position=right] > figure { grid-column: 2; grid-row: 1; }
.kleer-public .kleer-layout-wide[data-image-position=right] > .kleer-layout-copy { grid-column: 1; grid-row: 1; }
.kleer-public .kleer-layout-wide.kleer-card-text-only { grid-template-columns: minmax(0, 1fr); }
.kleer-public .kleer-layout-feature .kleer-layout-items,
.kleer-public .kleer-layout-split .kleer-layout-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.kleer-public .kleer-layout-split .kleer-layout-wide h2 {
  max-width: 30ch;
  font-size: calc(clamp(24px, 2.7cqi, 32px) * var(--kleer-font-heading-scale, 1));
}
.kleer-public .kleer-layout-feature .kleer-layout-wide {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  border-block-start: 3px solid var(--kleer-primary);
}
.kleer-public .kleer-layout-feature .kleer-layout-wide .kleer-layout-copy { padding: clamp(28px, 4.5cqi, 56px); background: var(--kleer-primary); background-image: linear-gradient(135deg, transparent, color-mix(in srgb, var(--kleer-secondary) 18%, transparent)); color: var(--kleer-on-primary); }
.kleer-public .kleer-layout-feature .kleer-layout-copy h2,
.kleer-public .kleer-layout-feature .kleer-layout-copy .kleer-card-family { color: inherit; }
.kleer-public .kleer-layout-feature .kleer-layout-wide .kleer-image-wrap { aspect-ratio: 5 / 4; max-height: 32rem; }
.kleer-public .kleer-layout-feature .kleer-layout-wide h2 {
  max-width: 22ch;
  font-size: calc(clamp(28px, 3.6cqi, 46px) * var(--kleer-font-heading-scale, 1));
  line-height: var(--kleer-heading-line-height, 1.15);
  letter-spacing: -.025em;
}
.kleer-public .kleer-layout-feature .kleer-layout-wide .kleer-layout-summary { font-size: 1.0625em; max-width: 44ch; }
.kleer-public .kleer-layout-feature .kleer-layout-wide.kleer-card-text-only { grid-template-columns: minmax(0, 1fr); }
/* No autoplay: the native scroll track and its controls remain independently usable. */
.kleer-public .kleer-layout-slider .kleer-layout-items {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 24px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 3px;
  padding: 4px 3px 16px;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  max-width: 100%;
  align-items: stretch;
}
.kleer-public .kleer-layout-slider .kleer-layout-card { scroll-snap-align: start; }
.kleer-public .kleer-slider-controls { display: flex; gap: 8px; flex-shrink: 0; }
.kleer-public .kleer-slider-controls[hidden] { display: none; }
.kleer-public .kleer-slider-controls .kleer-button { min-width: 48px; min-height: 48px; padding: 10px; }
.kleer-public .kleer-slider-controls .kleer-button:disabled { opacity: .45; cursor: default; }
.kleer-public .kleer-layout-status:not(.kleer-public-sr-only) { border-inline-start: 3px solid var(--kleer-primary); padding: 12px 16px; margin-block: 16px; }
.kleer-public [data-kleer-layout][aria-busy=true] [data-layout-results] { opacity: .65; }
@container kleer-products (min-width: 40rem) {
  .kleer-public .kleer-layout-grid .kleer-layout-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kleer-public .kleer-layout-slider .kleer-layout-items { grid-auto-columns: calc((100% - var(--kleer-layout-gap)) / 2); }
}
@container kleer-products (min-width: 64rem) {
  .kleer-public .kleer-layout-grid .kleer-layout-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kleer-public .kleer-layout-slider .kleer-layout-items { grid-auto-columns: calc((100% - 2 * var(--kleer-layout-gap)) / 3); }
}
@container kleer-products (max-width: 39.999rem) {
  .kleer-public .kleer-product-layout .kleer-filters { align-items: stretch; flex-direction: column; }
  .kleer-public .kleer-product-layout .kleer-filters label,
  .kleer-public .kleer-product-layout .kleer-filters label:nth-of-type(2),
  .kleer-public .kleer-product-layout .kleer-filters .kleer-button { flex: 0 0 auto; width: 100%; min-width: 0; }
  .kleer-public .kleer-layout-wide,
  .kleer-public .kleer-layout-feature .kleer-layout-wide { grid-template-columns: minmax(0, 1fr); }
  .kleer-public .kleer-layout-wide[data-image-position=right] > figure,
  .kleer-public .kleer-layout-wide[data-image-position=right] > .kleer-layout-copy { grid-column: auto; grid-row: auto; }
  .kleer-public .kleer-layout-wide .kleer-layout-copy,
  .kleer-public .kleer-layout-feature .kleer-layout-wide .kleer-layout-copy { padding: 24px; }
  .kleer-public .kleer-layout-wide .kleer-image-wrap { max-height: 18rem; aspect-ratio: 8 / 5; }
  .kleer-public .kleer-layout-feature .kleer-layout-wide .kleer-image-wrap { max-height: 20rem; aspect-ratio: 4 / 3; }
}
@media (hover: hover) {
  .kleer-public .kleer-layout-card:hover { border-color: var(--kleer-primary); }
  .kleer-public .kleer-product-layout .kleer-button:not(:disabled):hover { border-color: var(--kleer-primary); }
  .kleer-public .kleer-product-layout .kleer-button-primary:not(.kleer-cta):hover { background: var(--kleer-primary); color: var(--kleer-on-primary); }
}
@media (prefers-reduced-motion: reduce) {
  .kleer-public .kleer-layout-slider .kleer-layout-items { scroll-behavior: auto; scroll-snap-type: none; }
  .kleer-public .kleer-layout-card,
  .kleer-public .kleer-product-layout .kleer-button { transition: none; }
}
@media (forced-colors: active) {
  .kleer-public .kleer-product-layout .kleer-filters select { appearance: auto; background-image: none; }
}
