.atlas-density { display: none; }
@media (min-width: 1280px) {
  .atlas-density { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
  .atlas-density button { display: grid; place-items: center; width: 44px; height: 42px; padding: 5px; border: 1px solid #d9dde3; border-radius: 8px; background: #fff; color: #7c8490; cursor: pointer; }
  .atlas-density button[aria-pressed="true"] { border-color: #e30613; background: #fff5f5; color: #303945; }
  .atlas-density button:hover { border-color: #e30613; }
  .atlas-density button:focus-visible { outline: 2px solid #e30613; outline-offset: 3px; }
  body .catalog-results[data-catalog-columns="4"] ul.products,
  body.woocommerce .atlas-search-page.catalog-results[data-catalog-columns="4"] .atlas-search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body .catalog-results[data-catalog-columns="5"] ul.products,
  body.woocommerce .atlas-search-page.catalog-results[data-catalog-columns="5"] .atlas-search-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body .catalog-results[data-catalog-columns="5"] .atlas-product-card { zoom: var(--atlas-card-scale, .8); }
}

.catalog-page {
  padding-top: 22px;
  background: #fff;
}

.catalog-breadcrumbs {
  margin-bottom: 18px;
  color: var(--atlas-muted, #697386);
  font-size: .82rem;
}

.catalog-breadcrumbs .woocommerce-breadcrumb { margin: 0; }
.catalog-breadcrumbs a { text-decoration: none; }
.catalog-breadcrumbs a:hover { color: var(--atlas-red, #e30613); }

.catalog-intro {
  position: relative;
  display: flex;
  height: 206px;
  min-height: 206px;
  box-sizing: border-box;
  align-items: center;
  overflow: hidden;
  padding: 20px clamp(28px,3.2vw,48px);
  border-radius: 18px;
  background: linear-gradient(118deg,#f3f1ee,#e4e0da);
}

.catalog-intro--boilers { min-height: 230px; }
.catalog-intro__copy { position: relative; z-index: 2; max-width: 640px; }
.catalog-intro--boilers .catalog-intro__copy { max-width: 520px; }
.catalog-intro--boilers h1,
.catalog-intro--boilers p { max-width: 500px; }
.catalog-intro__eyebrow,
.catalog-toolbar > div > span,
.catalog-quick-selection > div > span {
  color: var(--atlas-red, #e30613);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.catalog-intro h1 { max-width: 760px; margin: 5px 0 7px; font-size: clamp(1.65rem,2.35vw,2.05rem); line-height: 1.08; }
.catalog-intro p { max-width: 620px; margin: 0 0 12px; color: #505866; font-size: clamp(.86rem,1vw,.94rem); line-height: 1.4; }
.catalog-intro__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.catalog-intro--boilers::after { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(245,242,238,.34) 0%,rgba(245,242,238,.1) 36%,rgba(245,242,238,0) 58%); content: ""; }
.catalog-intro a.button--primary { background: var(--atlas-red, #e30613); color: #fff; }
.catalog-intro a.button--primary:hover { background: var(--atlas-red-dark, #ba0711); }
.catalog-intro a.catalog-intro__cta {
  display: inline-grid;
  width: auto;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 22px;
  place-items: center;
  border: 1px solid var(--atlas-red, #e30613);
  border-radius: 7px;
  background: var(--atlas-red, #e30613);
  color: #fff;
  font-size: .9rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
}
.catalog-intro a.catalog-intro__cta:hover {
  border-color: #bd0711;
  background: #bd0711;
  color: #fff;
}

.catalog-categories {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 10px;
  margin-top: 24px;
}

.catalog-category {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: flex-end;
  overflow: hidden;
  padding: 14px;
  border: 1px solid #e8eaee;
  border-radius: 13px;
  background: #f5f5f3;
  text-decoration: none;
  transition: border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.catalog-category::after { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(255,255,255,.98),rgba(255,255,255,.08) 75%); content: ""; }
.catalog-category img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.catalog-category span { position: relative; z-index: 1; font-size: .88rem; font-weight: 700; line-height: 1.25; }
.catalog-category:hover { border-color: #cfd3da; box-shadow: 0 8px 20px rgba(15,23,42,.07); transform: translateY(-2px); }
.catalog-category:hover img { transform: scale(1.03); }
.catalog-category.is-active { border-color: var(--atlas-red, #e30613); box-shadow: inset 0 -3px var(--atlas-red, #e30613); }

.catalog-quick-selection {
  position: relative;
  display: grid;
  grid-template-columns: minmax(185px,220px) minmax(0,1fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  isolation: isolate;
  margin-top: 24px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(207,196,184,.62);
  border-radius: 18px;
  background: linear-gradient(135deg,#fffefc 0%,#faf7f2 58%,#f4efe8 100%);
  box-shadow: 0 18px 42px rgba(31,24,18,.075),0 3px 10px rgba(31,24,18,.035),inset 0 1px 0 rgba(255,255,255,.96);
  color: var(--atlas-ink, #111827);
}
.catalog-quick-selection::before {
  position: absolute;
  z-index: -1;
  top: -170px;
  left: -110px;
  width: 410px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(227,6,19,.055) 0%,rgba(227,6,19,0) 70%);
  content: "";
  pointer-events: none;
}
.catalog-quick-selection::after {
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -190px;
  width: 430px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,255,255,.92) 0%,rgba(255,255,255,0) 70%);
  content: "";
  pointer-events: none;
}
.catalog-quick-selection__heading { position: relative; padding-left: 15px; }
.catalog-quick-selection__heading::before { position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg,#e30613,#f07179); content: ""; }
.catalog-quick-selection h2 { max-width: 190px; margin: 0; font-size: clamp(1.15rem,1.45vw,1.35rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.18; }
.catalog-quick-selection__links { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-top: 0; }
.catalog-quick-selection__links a {
  display: flex;
  container-name: quick-card;
  container-type: inline-size;
  height: 164px;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 7px 8px 10px;
  border: 1px solid rgba(205,208,214,.82);
  border-radius: 12px;
  background: linear-gradient(180deg,rgba(255,255,255,.99),rgba(255,255,255,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,1);
  color: var(--atlas-ink, #111827);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease,border-color 180ms ease,box-shadow 180ms ease,transform 180ms ease;
}
.catalog-quick-selection__links a:hover,
.catalog-quick-selection__links a:focus-visible {
  border-color: #ee9da4;
  background: #fff;
  box-shadow: 0 12px 26px rgba(31,24,18,.105),inset 0 1px 0 #fff;
  transform: translateY(-3px);
}
.catalog-quick-selection__links a:focus-visible { outline: 2px solid rgba(227,6,19,.16); outline-offset: 2px; }
.catalog-quick-selection__links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-quick-selection__media { display: grid; width: 100%; height: 126px; flex: 0 0 auto; box-sizing: border-box; place-items: center; overflow: hidden; border-radius: 8px; background: #fff; }
.catalog-quick-selection__links .catalog-quick-selection__media img { display: block; width: 100% !important; height: 126px !important; max-width: 100%; max-height: 126px; margin: auto; object-fit: contain; object-position: 50% 50%; transform: scale(var(--quick-image-scale,1)); transform-origin: 50% 50%; }
.catalog-quick-selection__links a:hover .catalog-quick-selection__media img,
.catalog-quick-selection__links a:focus-visible .catalog-quick-selection__media img { transform: scale(var(--quick-image-scale,1)); }
.catalog-quick-selection__link--body-slim { --quick-image-scale: 1.35; }

.catalog-discovery {
  display: grid;
  grid-template-columns: minmax(250px,280px) minmax(0,1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}
.catalog-selection-cta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid #f0d5d7;
  border-left: 5px solid var(--atlas-red,#e30613);
  border-radius: 14px;
  background: linear-gradient(145deg,#fff 0%,#fff8f8 100%);
  box-shadow: 0 10px 28px rgba(31,24,18,.055);
}
.catalog-selection-cta__eyebrow { color: var(--atlas-red,#e30613); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.catalog-selection-cta strong { margin: 6px 0 15px; font-size: 1.02rem; line-height: 1.25; }
.catalog-selection-cta .button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; align-self: flex-start; padding-inline: 18px; }
.catalog-selection-cta .button span { transition: transform .18s ease; }
.catalog-selection-cta .button:hover span { transform: translateX(3px); }
.catalog-discovery .catalog-quick-selection {
  display: block;
  margin: 0;
  padding: 10px;
}
.catalog-discovery .catalog-quick-selection__links { gap: 5px; }
.catalog-discovery .catalog-quick-selection__links a { height: 142px; padding: 4px 5px 7px; border-color: transparent; }
.catalog-discovery .catalog-quick-selection__media { height: 108px; }
.catalog-discovery .catalog-quick-selection__links .catalog-quick-selection__media img { height: 108px !important; max-height: 108px; }
.catalog-discovery + .catalog-results { margin-top: 30px; }
.catalog-quick-selection__link--body-flat { --quick-image-scale: 1.35; }
.catalog-quick-selection__link--body-round { --quick-image-scale: 1.28; }
.catalog-quick-selection__link--body-horizontal { --quick-image-scale: 1.50; }
.catalog-quick-selection__link--heating-dry { --quick-image-scale: 1.30; }
.catalog-quick-selection__link--heating-wet { --quick-image-scale: 1.34; }
.catalog-quick-selection__label { display: block; max-width: 100%; font-size: .76rem; line-height: 1.15; }

@container quick-card (max-width:135px) {
  .catalog-quick-selection__link--body-slim .catalog-quick-selection__media,
  .catalog-quick-selection__link--body-flat .catalog-quick-selection__media { --quick-image-scale: 1.16; }
  .catalog-quick-selection__link--body-round .catalog-quick-selection__media { --quick-image-scale: 1.12; }
  .catalog-quick-selection__link--body-horizontal .catalog-quick-selection__media { --quick-image-scale: 1.40; }
  .catalog-quick-selection__link--heating-dry .catalog-quick-selection__media { --quick-image-scale: 1.05; }
  .catalog-quick-selection__link--heating-wet .catalog-quick-selection__media { --quick-image-scale: 1.08; }
}

@container quick-card (max-width:115px) {
  .catalog-quick-selection__link--body-slim .catalog-quick-selection__media,
  .catalog-quick-selection__link--body-flat .catalog-quick-selection__media { --quick-image-scale: 1.05; }
  .catalog-quick-selection__link--body-round .catalog-quick-selection__media { --quick-image-scale: 1.02; }
  .catalog-quick-selection__link--body-horizontal .catalog-quick-selection__media { --quick-image-scale: 1.30; }
  .catalog-quick-selection__link--heating-dry .catalog-quick-selection__media { --quick-image-scale: .90; }
  .catalog-quick-selection__link--heating-wet .catalog-quick-selection__media { --quick-image-scale: .92; }
}

.catalog-results { margin-top: clamp(42px,6vw,76px); }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.catalog-toolbar h2 { margin: 4px 0 0; font-size: clamp(1.7rem,3vw,2.6rem); }
.catalog-toolbar__controls { display: flex; align-items: center; gap: 18px; color: #667085; font-size: .85rem; }
.catalog-toolbar__controls .woocommerce-result-count { margin: 0; }
.woocommerce .catalog-toolbar__controls .woocommerce-ordering { margin: 0; }
.catalog-toolbar__controls select { min-height: 42px; padding: 0 36px 0 12px; border: 1px solid #dde1e7; border-radius: 9px; background: #fff; color: #222; font: inherit; }

.atlas-sort {
  position: relative;
  z-index: 20;
  width: 326px;
  max-width: 100%;
  color: #252b36;
}

.atlas-sort__trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px 0 14px;
  border: 1px solid #d9dee6;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.atlas-sort__trigger::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform .16s ease;
}

.atlas-sort--open .atlas-sort__trigger {
  border-color: var(--atlas-red, #e30613);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .08);
}

.atlas-sort--open .atlas-sort__trigger::after {
  transform: translateY(-25%) rotate(225deg);
}

.atlas-sort__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .15);
}

.atlas-sort__menu[hidden] {
  display: none;
}

.atlas-sort__option {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #252b36;
  font: inherit;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.atlas-sort__option:hover,
.atlas-sort__option:focus-visible {
  outline: none;
  background: #f5f6f8;
}

.atlas-sort__option[aria-selected="true"] {
  background: #fff0f1;
  color: var(--atlas-red, #e30613);
  font-weight: 700;
}

.atlas-sort__option[aria-selected="true"]::after {
  margin-left: 12px;
  color: var(--atlas-red, #e30613);
  content: "✓";
  font-size: .85rem;
}

.catalog-results .atlas-catalog-layout { grid-template-columns: minmax(230px,270px) minmax(0,1fr); }
.catalog-results .atlas-filter-panel__body { border-radius: 14px; }
.catalog-results ul.products,
.atlas-product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.catalog-results ul.products::before,
.catalog-results ul.products::after { display: none; }
.catalog-results ul.products li.product.atlas-product-card,
.atlas-product-card { position: relative; display: flex; width: auto; min-width: 0; min-height: 450px; flex-direction: column; float: none; padding: 18px; margin: 0; border: 1px solid #e7e9ed; border-radius: 14px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.atlas-product-comparison .atlas-product-card--recommended-replacement::before { position: absolute; top: 54px; left: 18px; z-index: 3; padding: 6px 9px; border: 1px solid rgba(227,6,19,.18); border-radius: 999px; background: rgba(255,244,244,.96); color: var(--atlas-red, #e30613); content: "Рекомендована заміна"; font-size: .68rem; font-weight: 750; line-height: 1; box-shadow: 0 4px 12px rgba(157,23,32,.08); }
.atlas-product-card:hover { z-index: 2; box-shadow: 0 10px 28px rgba(15,23,42,.13); transform: translateY(-3px); }
.atlas-product-card__main { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.atlas-product-card__favorite { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e6e8ec; border-radius: 50%; background: rgba(255,255,255,.94); color: #667085; text-decoration: none; }
.atlas-product-card__favorite svg { width: 19px; height: 19px; }
.atlas-product-card__image { display: grid; width: 100%; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; padding: 8px; }
.atlas-product-card__image img { display: block; width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.atlas-product-card__category { min-height: 18px; margin-top: 8px; color: #747d8d; font-size: .74rem; }
.atlas-product-card__category a { text-decoration: none; }
.atlas-product-card__title { display: block; margin-top: 6px; font-size: .96rem; line-height: 1.4; }
.atlas-product-card__price { margin-top: auto; padding-top: 15px; font-size: 1.18rem; font-weight: 750; }
.atlas-product-card__stock,
.atlas-product-card__pending { margin-top: 6px; color: #159447; font-size: .78rem; font-weight: 650; }
.atlas-product-card__stock.is-unavailable { color: #8a8f99; }
.atlas-product-card__action { margin-top: 12px; }
.atlas-product-card__action .button { width: 100%; min-height: 42px; text-align: center; }
.atlas-product-card--preview { opacity: .96; }

.atlas-catalog-preview { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #eee0c8; border-radius: 10px; background: #fff9ee; color: #686055; font-size: .84rem; }
.atlas-catalog-preview strong { color: #2c2925; }

@media (min-width:1200px) {
  .catalog-results:not(:has(.atlas-filter-panel)) .atlas-product-grid,
  .catalog-results:not(:has(.atlas-filter-panel)) ul.products { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width:1050px) {
  .catalog-categories { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .catalog-quick-selection { grid-template-columns: 170px minmax(0,1fr); gap: 14px; }
  .catalog-quick-selection__links { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .catalog-quick-selection__links a { height: 154px; }
  .catalog-quick-selection__media { height: 116px; }
  .catalog-quick-selection__links .catalog-quick-selection__media img { height: 116px !important; max-height: 116px; }
  .catalog-results ul.products,.atlas-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:767px) {
  .catalog-page { padding-top: 12px; }
  .catalog-breadcrumbs { margin-bottom: 10px; font-size: .67rem; }
  .catalog-intro,.catalog-intro--boilers { height: auto; min-height: 260px; padding: 23px 20px; border-radius: 10px; }
  .catalog-intro--boilers { align-items: flex-start; }
  .catalog-intro h1 { max-width: 84%; font-size: 1.7rem; }
  .catalog-intro p { max-width: 88%; font-size: .87rem; line-height: 1.45; }
  .catalog-intro__eyebrow { font-size: .62rem; }
  .catalog-intro--boilers::after { background: linear-gradient(90deg,rgba(245,242,238,.96),rgba(245,242,238,.73) 56%,rgba(245,242,238,.02)); }
  .catalog-intro__image { object-position: 61% center; }
  .catalog-categories { display: flex; width: calc(100% - 24px); gap: 7px; margin-top: 12px; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x proximity; }
  .catalog-category { min-width: 126px; min-height: 82px; padding: 9px; scroll-snap-align: start; }
  .catalog-category span { font-size: .68rem; }
  .catalog-quick-selection { display: block; width: calc(100% - 24px); margin-top: 16px; padding: 17px 0 16px 18px; border-radius: 10px; }
  .catalog-quick-selection h2 { padding-right: 18px; font-size: 1.13rem; }
  .catalog-quick-selection__links { display: flex; gap: 8px; margin-top: 14px; padding: 2px 18px 12px 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .catalog-quick-selection__links::-webkit-scrollbar { display: none; }
  .catalog-quick-selection__links a { width: 142px; height: 150px; flex: 0 0 142px; padding: 7px 7px 9px; font-size: .72rem; scroll-snap-align: start; }
  .catalog-quick-selection__media { height: 113px; }
  .catalog-quick-selection__links .catalog-quick-selection__media img { height: 113px !important; max-height: 113px; }
  .catalog-results { width: calc(100% - 24px); margin-top: 34px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; margin-bottom: 14px; }
  .catalog-toolbar h2 { font-size: 1.55rem; }
  .catalog-toolbar__controls { width: 100%; align-items: flex-start; flex-direction: column; gap: 8px; }
  .catalog-toolbar__controls form,.catalog-toolbar__controls select,.catalog-toolbar__controls .atlas-sort { width: 100%; }
  .catalog-results ul.products,.atlas-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .catalog-results ul.products li.product.atlas-product-card,.atlas-product-card { min-height: 330px; padding: 9px; border-radius: 8px; }
  .atlas-product-comparison .atlas-product-card--recommended-replacement::before { top: 40px; left: 9px; padding: 5px 7px; font-size: .57rem; }
  .atlas-product-card__favorite { top: 7px; right: 7px; width: 27px; height: 27px; }
  .atlas-product-card__favorite svg { width: 15px; height: 15px; }
  .atlas-product-card__category { font-size: .59rem; }
  .atlas-product-card__title { font-size: .75rem; }
  .atlas-product-card__price { font-size: .95rem; }
  .atlas-product-card__stock,.atlas-product-card__pending { font-size: .63rem; }
  .atlas-catalog-preview { align-items: flex-start; flex-direction: column; gap: 2px; font-size: .7rem; }
}

@media (max-width:390px) {
  .catalog-results ul.products,.atlas-product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1050px) {
  .catalog-discovery { grid-template-columns: 210px minmax(0,1fr); gap: 14px; }
  .catalog-discovery .catalog-quick-selection__links { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .catalog-discovery { width: calc(100% - 24px); grid-template-columns: 1fr; gap: 10px; }
  .catalog-selection-cta { padding: 14px 16px; }
  .catalog-selection-cta strong { margin: 4px 0 12px; }
  .catalog-selection-cta .button { width: auto; min-width: 156px; }
  .catalog-discovery .catalog-quick-selection { overflow-x: auto; padding: 9px 7px; }
  .catalog-discovery .catalog-quick-selection__links { display: flex; width: max-content; gap: 4px; }
  .catalog-discovery .catalog-quick-selection__links a { width: 142px; height: 132px; flex: 0 0 142px; }
  .catalog-discovery .catalog-quick-selection__media,
  .catalog-discovery .catalog-quick-selection__links .catalog-quick-selection__media img { height: 98px !important; max-height: 98px; }
  .catalog-discovery + .catalog-results { margin-top: 26px; }
}

/* Catalogue uses the same global container width as the home page. */

.catalog-results {
  padding-bottom: 12px;
}

.catalog-toolbar {
  padding-bottom: 4px;
  border-bottom: 1px solid #eceef1;
}

.catalog-toolbar__controls {
  margin-left: auto;
}

.catalog-results .atlas-catalog-layout {
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: 24px;
}

.catalog-results .atlas-filter-panel {
  position: relative;
  top: auto;
}

.catalog-results .atlas-filter-panel__body {
  max-height: none;
  overflow: visible;
  border-color: #dde1e7;
  border-radius: 10px;
  box-shadow: none;
}

.catalog-results .atlas-filter-panel__heading {
  padding: 17px 16px;
}

.catalog-results .atlas-filter-panel__heading h2 {
  font-size: 1.05rem;
}

.catalog-results .atlas-filter-panel__heading a {
  font-size: .78rem;
  text-decoration: none;
}

.catalog-results .atlas-filter summary {
  padding: 15px 38px 15px 16px;
  font-size: .9rem;
}

.catalog-results .atlas-filter__choice {
  padding-inline: 16px;
  font-size: .84rem;
}

.catalog-results .atlas-range__inputs input {
  padding-right: 27px;
  font-size: .8rem;
}

.catalog-results ul.products,
.atlas-product-grid {
  gap: 10px;
}

.catalog-results ul.products li.product.atlas-product-card,
.atlas-product-card {
  min-height: 500px;
  padding: 16px;
  border-color: #dfe3e8;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.catalog-results ul.products li.product.atlas-product-card:hover,
.atlas-product-grid .atlas-product-card:hover,
.atlas-product-card:hover {
  z-index: 2;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .13);
  transform: translateY(-3px);
}

.atlas-product-card__availability {
  position: absolute;
  top: 17px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #159447;
  font-size: .72rem;
  font-weight: 600;
}

.atlas-product-card__availability > span {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  background: transparent;
  flex: 0 0 auto;
}

.atlas-product-card__availability > span::after {
  position: absolute;
  top: 2px;
  left: 3.5px;
  width: 3px;
  height: 5px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.atlas-product-card__availability.is-unavailable {
  color: #7d8490;
}

.atlas-product-card__availability.is-unavailable > span {
  background: #7d8490;
  border: 0;
}

.atlas-product-card__availability.is-unavailable > span::after {
  display: none;
}

.atlas-product-card__sku-top {
  position: absolute;
  top: 17px;
  right: 14px;
  z-index: 2;
  color: #70798a;
  font-size: .68rem;
}

.atlas-product-card__sku-inline {
  display: none;
}

.atlas-product-card__favorite {
  top: 38px;
  right: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #27303d;
  cursor: pointer;
}

.atlas-product-card__favorite svg {
  stroke-width: 1.25;
}

.atlas-product-card__favorite:focus-visible,
.atlas-product-card__favorite.is-active {
  outline: none;
  background: #fff2f2;
  color: var(--atlas-red, #e30613);
}

.atlas-product-card__compare {
  position: absolute;
  top: 72px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #27303d;
  cursor: pointer;
}

.atlas-product-card__compare svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.2;
}

.atlas-product-card__compare:focus-visible,
.atlas-product-card__compare.is-active {
  outline: none;
  background: #fff2f2;
  color: var(--atlas-red, #e30613);
}

@media (hover: hover) and (pointer: fine) {
  .atlas-product-card__favorite:hover,
  .atlas-product-card__compare:hover {
    background: #fff2f2;
    color: var(--atlas-red, #e30613);
  }
}

.atlas-product-card__image {
  position: relative;
  height: 258px;
  aspect-ratio: auto;
  margin: 20px 0 0;
  padding: 0;
  background: linear-gradient(180deg, #fafbfb 0%, #fff 100%);
}

.product-card-gallery--catalog {
  margin-top: 20px;
}

.product-card-gallery--catalog .atlas-product-card__image {
  margin-top: 0;
}

.atlas-product-card > .atlas-product-card__main {
  height: auto;
  min-height: 0;
  flex: 1;
}

.atlas-product-card__image img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
  max-width: 100%;
  max-height: 100%;
  mix-blend-mode: multiply;
}

/*
 * Boiler catalog images use a normalized square canvas with the product
 * aligned close to its top and bottom edges. Fill the taller media viewport
 * by cropping only the unused white canvas at the left and right.
 */
.term-boilery .atlas-product-card__image img,
.term-storage-water-heaters .atlas-product-card__image img {
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .term-boilery .atlas-product-card__image,
  :is(.term-storage-water-heaters, .woocommerce-shop) .atlas-product-card__image {
    height: 330px;
  }
}

.atlas-product-card__category {
  margin-top: 4px;
  color: #7d8490;
  font-size: .7rem;
}

.atlas-product-card__title {
  display: -webkit-box;
  min-height: 2.84em;
  max-height: 2.84em;
  overflow: hidden;
  margin-top: 5px;
  color: #111318;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.42;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.atlas-product-card__specs {
  display: flex;
  min-height: 20px;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  color: #70798a;
  font-size: .69rem;
}

.atlas-product-card__specs span + span::before {
  margin-right: 5px;
  color: #bdc2ca;
  content: "·";
}

.atlas-product-card__price {
  padding-top: 18px;
  color: #111318;
  font-size: 1.32rem;
  font-weight: 780;
  letter-spacing: -.02em;
}

.atlas-product-card__price del {
  margin-right: 5px;
  color: #9299a4;
  font-size: .75em;
  font-weight: 500;
}

.atlas-product-card__price ins {
  text-decoration: none;
}

.atlas-product-card__price del ~ ins {
  color: var(--atlas-red, #e30613);
}

.atlas-product-card__action {
  margin-top: 13px;
}

.atlas-product-card__action .button,
.woocommerce .atlas-product-card__action .button {
  display: grid !important;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 !important;
  place-items: center;
  border: 1px solid var(--atlas-red, #e30613);
  border-radius: 7px;
  background: var(--atlas-red, #e30613);
  color: #fff;
  font-size: .9rem;
  font-weight: 720;
  line-height: 1 !important;
  text-decoration: none;
}

.atlas-product-card__action .button:hover,
.woocommerce .atlas-product-card__action .button:hover {
  border-color: #bd0711;
  background: #bd0711;
  color: #fff;
}


.catalog-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 48px;
  margin-bottom: 58px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid #e1e4e9;
  border-radius: 12px;
  background: #fafafa;
}

.catalog-guide__copy > span {
  color: var(--atlas-red, #e30613);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-guide h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.catalog-guide p {
  max-width: 760px;
  margin: 0;
  color: #5f6877;
  font-size: .9rem;
  line-height: 1.7;
}

.catalog-guide__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-guide__links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e0e3e8;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}

.catalog-guide__links a:last-child {
  border-bottom: 0;
}

.catalog-guide__links a:hover {
  color: var(--atlas-red, #e30613);
}

@media (min-width: 1400px) {
  .catalog-results ul.products,
  .atlas-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .catalog-toolbar {
    padding-bottom: 12px;
  }

  .catalog-toolbar__controls {
    margin-left: 0;
  }

  .catalog-results .atlas-filter-panel__mobile-toggle {
    min-height: 48px;
    border: 1px solid #d9dde4;
    border-radius: 8px;
    background: #fff;
    color: #171b22;
  }

  .catalog-results ul.products li.product.atlas-product-card,
  .atlas-product-card {
    min-height: 390px;
    padding: 10px;
  }

  .atlas-product-card__availability {
    top: 11px;
    left: 10px;
    gap: 5px;
    font-size: .61rem;
  }

  .atlas-product-card__availability > span {
    width: 9px;
    height: 9px;
  }

  .atlas-product-card__availability > span::after {
    top: 1px;
    left: 2.5px;
    width: 2px;
    height: 4px;
    border-width: 0 1.3px 1.3px 0;
  }

  .atlas-product-card__compare {
    top: 41px;
    right: 10px;
    width: 27px;
    height: 27px;
  }

  .atlas-product-card__sku-top {
    display: none;
  }

  .atlas-product-card__sku-inline {
    display: inline;
  }

  .atlas-product-card__favorite {
    top: 12px;
  }

  .atlas-product-card__compare svg {
    width: 15px;
    height: 15px;
  }

  .atlas-product-card__image {
    height: 174px;
    margin-top: 18px;
    padding: 0;
    background: #fff;
  }

  .product-card-gallery--catalog {
    margin-top: 18px;
  }

  .product-card-gallery--catalog .atlas-product-card__image {
    margin-top: 0;
  }

  .product-card-gallery--catalog .product-card-gallery__arrow {
    display: none;
  }

  .product-card-gallery--catalog .product-card-gallery__counter {
    display: none;
  }

  .atlas-product-card__image img {
    inset: 6px;
    width: calc(100% - 12px) !important;
    height: calc(100% - 12px) !important;
    max-height: 100%;
  }

  .term-boilery .atlas-product-card__image img,
  :is(.term-storage-water-heaters, .woocommerce-shop) .atlas-product-card__image img {
    inset: 0;
    width: 100% !important;
    height: 100% !important;
  }

  .atlas-product-card__title {
    min-height: 2.84em;
    max-height: 2.84em;
    font-size: .76rem;
  }

  .atlas-product-card__specs {
    min-height: 17px;
    margin-top: 7px;
    font-size: .59rem;
  }

  .atlas-product-card__price {
    padding-top: 12px;
    font-size: 1.05rem;
  }

  .atlas-product-card__action .button,
  .woocommerce .atlas-product-card__action .button {
    height: 40px;
    min-height: 40px;
    padding-inline: 6px !important;
    font-size: .76rem;
  }

  .catalog-guide {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
    margin-bottom: 36px;
    padding: 22px 18px;
  }

  .catalog-guide p {
    font-size: .8rem;
  }

}

@media (max-width: 390px) {
  .atlas-product-card__image {
    height: 160px;
  }
}

/* Keep navigation and unoccupied catalogue cells on the page background. */
.catalog-results { --atlas-product-shadow-hover: 0 10px 28px rgba(15,23,42,.13); }
body.woocommerce .catalog-results .atlas-catalog-products,
body.woocommerce .catalog-results .atlas-catalog-products ul.products {
 background:transparent !important;
}
body.woocommerce .catalog-results .atlas-catalog-products ul.products > li.product {
 box-shadow:var(--atlas-product-shadow) !important;
}
body.woocommerce .catalog-results .atlas-catalog-products ul.products > li.product:is(:hover,:focus-within) {
 box-shadow:var(--atlas-product-shadow-hover) !important;
}

.catalog-results ul.products > li.atlas-catalog-archive-heading {
 grid-column:1 / -1; width:100%; box-sizing:border-box; list-style:none;
 margin:24px 0 12px !important; padding:22px 16px 4px;
 border-top:1px solid #dce1e7; background:transparent; box-shadow:none;
}
.catalog-results ul.products > li.atlas-catalog-archive-heading:first-child { margin-top:0 !important; }
.atlas-catalog-archive-heading h2 { margin:0 0 6px; font-size:20px; line-height:1.3; }
.atlas-catalog-archive-heading p { margin:0; font-size:13px; line-height:1.5; color:#697586; }

/* Five-column typography: compensate for the proportional card zoom. */
@media (min-width:1280px) {
 body .catalog-results[data-catalog-columns="5"] .atlas-product-card__title {
  --atlas-title-lines:3;
  font-size:calc(15px / var(--atlas-card-scale,.8)) !important;
  font-weight:600; color:#092341; line-height:1.35;
  min-height:2.7em; max-height:4.05em; -webkit-line-clamp:3; line-clamp:3;
 }
 body .catalog-results[data-catalog-columns="5"] .atlas-product-card--compact-title-row .atlas-product-card__title { min-height:1.35em; }
 body .catalog-results[data-catalog-columns="5"] :is(.atlas-product-card__catalog-summary,.atlas-product-card__catalog-summary-value,.atlas-product-card__catalog-summary-mobile-value) {
  font-size:calc(12px / var(--atlas-card-scale,.8)) !important; color:#627086;
 }
 body .catalog-results[data-catalog-columns="5"] :is(.atlas-product-card__sku,.atlas-product-card__category) {font-size:calc(11px / var(--atlas-card-scale,.8)) !important}
 body .catalog-results[data-catalog-columns="5"] .atlas-product-card__catalog-price-value {font-size:calc(22px / var(--atlas-card-scale,.8)) !important}
 body .catalog-results[data-catalog-columns="5"] .atlas-product-status {font-size:calc(13px / var(--atlas-card-scale,.8)) !important}
 body .catalog-results[data-catalog-columns="5"] .atlas-product-card__image {height:303px !important}
}

/* Show every gallery image in full inside catalogue cards. Product-page
 * galleries are intentionally outside this selector. */
body .catalog-results .product-card-gallery--catalog .atlas-product-card__image img {
  inset: 10px;
  width: calc(100% - 20px) !important;
  height: calc(100% - 20px) !important;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 767px) {
  body .catalog-results .product-card-gallery--catalog .atlas-product-card__image img {
    inset: 6px;
    width: calc(100% - 12px) !important;
    height: calc(100% - 12px) !important;
  }
}

@media (max-width: 767px) {
  body .product-card-gallery--catalog .atlas-product-card__image img {
    inset: 6px;
    width: calc(100% - 12px) !important;
    height: calc(100% - 12px) !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
}
@media (max-width: 767px) {
  body.woocommerce ul.products li.product .product-card-gallery--catalog .atlas-product-card__image img {
    inset: 6px !important;
    width: calc(100% - 12px) !important;
    height: calc(100% - 12px) !important;
    max-height: calc(100% - 12px) !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
}
@media (max-width: 767px) {
  body.woocommerce ul.products li.product .product-card-gallery--catalog .atlas-product-card__image img { scale: 1.12 !important; }
}

/* The cartridge packaging has wide white margins in the supplied photograph. */
body .product-card-gallery--catalog .atlas-product-card__image img:is([src*="PSE2005ECO-05-box"], [src*="/4981-"]) {
  scale: 1.45 !important;
  transform-origin: center;
}

/* Horizontal D400S packaging: compensate for the padded catalogue sources. */
body .product-card-gallery--catalog .atlas-product-card__image img:is([src*="/2403-"], [src*="/2411-"], [src*="/2419-"]),
body.woocommerce ul.products li.product .product-card-gallery--catalog .atlas-product-card__image img:is([src*="/2403-"], [src*="/2411-"], [src*="/2419-"]) {
  scale: 1.6 !important;
  transform-origin: center;
}
@media (max-width: 767px) {
  body.woocommerce ul.products li.product .product-card-gallery--catalog .atlas-product-card__image img:is([src*="PSE2005ECO-05-box"], [src*="/4981-"]) {
    scale: 1.25 !important;
  }
}

/* Atlantic catalog: status and details action share an exact bottom baseline. */
html body .catalog-results .atlas-product-card:has(.atlas-product-status){--atlas-status-bottom:18px}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__catalog-price-value--status{position:absolute!important;top:auto!important;bottom:var(--atlas-status-bottom)!important;left:16px;width:calc(100% - 84px)!important;height:44px!important;min-height:44px!important;display:flex!important;align-items:center!important}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-status{height:44px!important;min-height:44px!important;box-sizing:border-box}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action{bottom:var(--atlas-status-bottom)!important;right:16px!important;height:44px!important;width:44px!important}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button){width:44px!important;min-width:44px!important;max-width:none!important;height:44px!important;font-size:0!important;gap:0!important;transition:width .18s ease,gap .18s ease!important}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button)::after{content:'Переглянути';font-size:14px;display:none}
@media(min-width:768px) and (hover:hover) and (pointer:fine){
 html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button):is(:hover,:focus-visible){width:148px!important;gap:8px!important;z-index:5}
 html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button):is(:hover,:focus-visible)::after{display:block}
 html body .catalog-results .atlas-product-card:has(.atlas-product-card__action .button:not(.add_to_cart_button):is(:hover,:focus-visible)) .atlas-product-card__catalog-price-value--status{visibility:hidden}
}
@media(max-width:767px){
 html body .catalog-results .atlas-product-card:has(.atlas-product-status){--atlas-status-bottom:14px}
 html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__catalog-price-value--status{left:10px;width:calc(100% - 68px)!important}
 html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action{right:10px!important}
}

/* Keep room for the shared status/action row and use the native button label. */
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__main{padding-bottom:58px!important;box-sizing:border-box}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button)::after{content:none!important;display:none!important}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button){transition:width .18s ease,gap .18s ease,font-size .18s ease,background-color .18s ease!important}
@media(min-width:768px) and (hover:hover) and (pointer:fine){
 html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__catalog-price-value--status{width:calc(100% - 174px)!important;visibility:visible!important}
 html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-status{padding:5px!important;font-size:11px!important}
 html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button):is(:hover,:focus-visible){width:132px!important;font-size:14px!important;gap:7px!important}
}

/* Match the approved compact availability badge and solid view button. */
@media(min-width:768px){
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__catalog-price-value--status{width:120px!important;max-width:calc(100% - 148px)!important;align-items:center!important}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-status{width:auto!important;height:32px!important;min-height:32px!important;padding:6px!important;font-size:12px!important;line-height:18px!important;font-weight:600!important;white-space:nowrap!important;border-radius:6px!important}
}
@media(min-width:768px) and (hover:hover) and (pointer:fine){
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button):not(.added):is(:hover,:focus-visible){width:100px!important;min-width:100px!important;max-width:100px!important;height:44px!important;min-height:44px!important;padding:0 10px!important;gap:0!important;font-size:12px!important;font-weight:700!important;line-height:1.2!important;border:1px solid #c4002f!important;border-radius:6px!important;background:#c4002f!important;color:#fff!important;justify-content:center!important;box-shadow:none!important}
html body .catalog-results .atlas-product-card:has(.atlas-product-status) .atlas-product-card__action .button:not(.add_to_cart_button):not(.added):is(:hover,:focus-visible)::before{display:none!important}
}
