/* ЭКОЯР: каталог UX v1 — additive поверх unit/eco-new.
   Откат: убрать link из shop.tpl или вернуть бэкап _shturval/backup/catalog-ux-*/ */
html.eco-new {
  --eyc-green: #00753B;
  --eyc-green-dark: #0b5c32;
  --eyc-text: #1f2a24;
  --eyc-muted: #6b7a72;
  --eyc-line: #e6eee9;
  --eyc-bg: #f7faf8;
  --eyc-radius: 14px;
  --eyc-shadow: 0 8px 22px rgba(16, 40, 28, .08);
  --eyc-tap: 44px;
}

/* ===== Compare / wishlist всегда видны, тач ≥44px ===== */
html.eco-new .thumbnail .product-btn,
html.eco-new .media .product-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 3;
}
html.eco-new .thumbnail .product-btn button,
html.eco-new .thumbnail .product-btn a,
html.eco-new .media .product-btn button,
html.eco-new .media .product-btn a {
  min-width: var(--eyc-tap);
  min-height: var(--eyc-tap);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 2px 10px rgba(16, 40, 28, .12);
  margin: 0 0 6px;
}
html.eco-new .thumbnail .product-btn .icons,
html.eco-new .media .product-btn .icons {
  background: transparent !important;
}
html.eco-new .thumbnail .product-btn button:active,
html.eco-new .thumbnail .product-btn a:active {
  background: #eef6f1;
}

/* CTA корзины — удобнее на тач */
html.eco-new .thumbnail .addToCartList,
html.eco-new .media .addToCartList {
  min-height: var(--eyc-tap);
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-weight: 600;
}
@media (max-width: 767px) {
  html.eco-new .thumbnail .addToCartList {
    width: 100%;
    justify-content: center;
  }
  html.eco-new .thumbnail .d-flex.justify-content-between.align-items-end {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }
}

/* ===== Quick-info бейджи на карточке ===== */
html.eco-new .eyc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 4px;
}
html.eco-new .eyc-chip-meta {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef6f1;
  color: var(--eyc-green-dark);
  font: 600 12px/24px -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .01em;
}

/* ===== Тумбы подкатегорий: фото + подпись НИЖЕ ===== */
html.eco-new .catalog-block {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 22px;
}
html.eco-new .catalog-wrap {
  width: calc(25% - 12px);
  margin: 0 !important;
  padding: 0 !important;
  border-radius: var(--eyc-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--eyc-line);
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html.eco-new .catalog-wrap > a {
  display: flex !important;
  flex-direction: column;
  position: static !important;
  color: inherit !important;
  text-decoration: none !important;
  height: 100%;
}
html.eco-new .catalog-wrap .catalog-img {
  position: relative;
  aspect-ratio: 5 / 4 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  background: var(--eyc-bg);
  border: 0 !important;
  box-shadow: none !important;
}
html.eco-new .catalog-wrap .catalog-img::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, #e52421, #f39200, #ffd500, #3aaa35, #009fe3);
}
html.eco-new .catalog-wrap .catalog-img::after { display: none !important; content: none !important; }
html.eco-new .catalog-wrap .catalog-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center 40%;
  transform: none;
  transition: transform .25s ease;
}
html.eco-new .catalog-wrap .catalog-name,
html.eco-new .catalog-wrap h2.catalog-name,
html.eco-new .catalog-wrap > a .catalog-name {
  position: static !important;
  left: auto !important; right: auto !important; bottom: auto !important;
  z-index: auto;
  display: block;
  margin: 0 !important;
  padding: 12px 12px 14px !important;
  min-height: 3.2em;
  color: var(--eyc-text) !important;
  font: 700 13px/1.3 var(--ey-font-heading, "PT Serif", Georgia, serif) !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  text-align: center;
  text-shadow: none !important;
  background: #fff;
}
html.eco-new .catalog-wrap:hover {
  border-color: rgba(0, 117, 59, .35);
  box-shadow: var(--eyc-shadow);
  transform: translateY(-2px);
}
html.eco-new .catalog-wrap:hover .catalog-img img {
  transform: scale(1.05);
}

@media (max-width: 1199px) {
  html.eco-new .catalog-wrap { width: calc(33.333% - 11px); }
}
@media (max-width: 991px) {
  html.eco-new .catalog-wrap { width: calc(50% - 8px); }
}
@media (max-width: 767px) {
  html.eco-new .catalog-block {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
    flex-wrap: unset;
    scroll-snap-type: none;
    padding: 0;
    margin-bottom: 16px;
  }
  html.eco-new .catalog-wrap {
    flex: none;
    width: 100% !important;
    max-width: none !important;
  }
  html.eco-new .catalog-wrap .catalog-name {
    font-size: 13px !important;
    letter-spacing: .05em !important;
    padding: 10px 12px 12px !important;
  }
}


/* ===== Sticky toolbar ===== */
html.eco-new .eyc-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--eyc-line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(16, 40, 28, .06);
}
.eym-on html.eco-new .eyc-bar,
html.eco-new.eym-on .eyc-bar,
html.eym-on.eco-new .eyc-bar {
  top: 52px;
}
html.eco-new .eyc-bar-count {
  margin-left: auto;
  color: var(--eyc-muted);
  font: 600 13px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  white-space: nowrap;
}
html.eco-new .eyc-bar-count b { color: var(--eyc-text); }
html.eco-new .eyc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--eyc-tap);
  padding: 0 14px;
  border: 1px solid var(--eyc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--eyc-text) !important;
  font: 600 13.5px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
  text-decoration: none !important;
}
html.eco-new .eyc-btn:hover { border-color: rgba(0, 117, 59, .4); }
html.eco-new .eyc-btn-ai {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #e52421, #f39200, #ffd500, #3aaa35, #009fe3) border-box;
}
html.eco-new .eyc-btn-ai img {
  width: 22px; height: 22px; border-radius: 50%;
}
html.eco-new .eyc-btn-filters[data-n]:not([data-n="0"])::after {
  content: attr(data-n);
  min-width: 20px;
  height: 20px;
  margin-left: 2px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--eyc-green);
  color: #fff;
  font: 700 11px/20px -apple-system, Arial, sans-serif;
  text-align: center;
}

/* chips */
html.eco-new .eyc-chips {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}
html.eco-new .eyc-chips.on { display: flex; }
html.eco-new .eyc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px 0 12px;
  border-radius: 16px;
  background: #eef6f1;
  color: var(--eyc-text);
  font: 600 13px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  border: 0;
  cursor: pointer;
}
html.eco-new .eyc-chip i {
  font-style: normal;
  color: var(--eyc-muted);
  font-weight: 700;
}
html.eco-new .eyc-chip-clear {
  background: #fff;
  border: 1px solid var(--eyc-line);
  color: var(--eyc-muted);
}

/* прячем дублирующий filter-btn в старом filter-well на desktop — toolbar берёт роль */
@media (min-width: 768px) {
  html.eco-new.eyc-ready #filter-well .filter-btn,
  html.eco-new.eyc-ready .product-filter .col-sm-2.hidden-xs.hidden-md.hidden-lg {
    display: none !important;
  }
}

/* ===== Mobile bottom-sheet для #faset-filter ===== */
@media (max-width: 991px) {
  html.eco-new.eyc-ready #faset-filter {
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    top: auto !important;
    z-index: 10080 !important;
    width: 100% !important;
    max-height: min(86vh, 720px);
    margin: 0 !important;
    padding: 0 0 env(safe-area-inset-bottom) !important;
    border-radius: 18px 18px 0 0;
    background: #fff !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .22);
    transform: translateY(110%);
    transition: transform .26s cubic-bezier(.2, .8, .2, 1);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    opacity: 1 !important;
  }
  html.eco-new.eyc-ready.eyc-sheet-on #faset-filter,
  html.eco-new.eyc-ready #faset-filter.eyc-open {
    transform: translateY(0);
  }
  html.eco-new.eyc-ready #faset-filter .faset-filter-name {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 10px 12px 4px !important;
    text-align: center;
  }
  html.eco-new.eyc-ready #faset-filter .faset-filter-name::before {
    content: "";
    width: 42px; height: 4px;
    border-radius: 2px;
    background: #d5ddd8;
  }
  html.eco-new.eyc-ready #faset-filter .faset-filter-name .close {
    position: absolute;
    right: 10px; top: 10px;
    width: 40px; height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  html.eco-new.eyc-ready #faset-filter .faset-filter-block-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 14px 88px !important;
    max-height: none !important;
    height: auto !important;
  }
  html.eco-new.eyc-ready #faset-filter .filter-close,
  html.eco-new.eyc-ready #faset-filter #faset-filter-reset {
    position: static !important;
  }
  html.eco-new.eyc-sheet-foot {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #fff 70%, rgba(255,255,255,.85));
    border-top: 1px solid var(--eyc-line);
    z-index: 2;
  }
  html.eco-new.eyc-sheet-foot .eyc-btn { flex: 1; }
  html.eco-new.eyc-sheet-foot .eyc-btn-primary {
    background: var(--eyc-green);
    border-color: var(--eyc-green);
    color: #fff !important;
  }
  html.eco-new .eyc-ov {
    position: fixed;
    inset: 0;
    z-index: 10070;
    background: rgba(12, 28, 20, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
  }
  html.eco-new.eyc-sheet-on .eyc-ov {
    opacity: 1;
    visibility: visible;
  }
  html.eco-new.eyc-sheet-on,
  html.eco-new.eyc-sheet-on body {
    overflow: hidden;
  }
}

/* ===== Карточки: фото = главный сигнал (~60% карточки) =====
   Claude/Opus: убрать line-height/min-height unit, zoom поверх белых полей в JPG */
html.eco-new .thumbnail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
}
html.eco-new .thumbnail > .caption {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 10px 12px 14px !important;
}
html.eco-new .thumbnail .product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 2% !important;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ey-color-bg-sunk, #F3EFE7) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
html.eco-new .thumbnail .product-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  /* многие s.jpg с полями — слегка приближаем кадр */
  transform: none !important;
}
html.eco-new .thumbnail .product-name {
  font-size: 15px !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  height: auto !important;
  min-height: 2.6em;
  margin-bottom: 4px;
}




/* ===== Шапка: логотип без белой «пластыря» ===== */
html.eco-new header {
  background: var(--ey-color-bg-page, #FBFAF7) !important;
  border-bottom: 0;
}
html.eco-new header .container > .d-flex {
  gap: 14px;
  padding: 12px 0 10px;
  align-items: center !important;
}
html.eco-new header .logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
  flex: 0 0 auto;
}
html.eco-new header .logo a {
  display: block;
  line-height: 0;
  background: transparent !important;
}
html.eco-new header .logo img {
  display: block;
  height: 52px !important;
  width: auto !important;
  max-width: 200px;
  background: transparent !important;
  /* PNG с белым фоном → растворить на льне */
  mix-blend-mode: multiply;
}
html.eco-new header .category-btn {
  border-radius: 10px !important;
  box-shadow: none !important;
}
html.eco-new .header-search .input-group,
html.eco-new .header-search .search-container {
  border-radius: 999px !important;
  overflow: hidden;
}
html.eco-new .header-cart a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ey-color-bg-sunk, #F3EFE7);
}
html.eco-new .main-navbar {
  margin-top: 0 !important;
}

/* ===== Футер: компактный, 3 зоны ===== */
html.eco-new footer.footer {
  background: var(--ey-color-bg-deep, #EBE6DA) !important;
  background-image: none !important;
  padding: 28px 0 18px !important;
  margin-top: 32px;
  border-top: 1px solid var(--ey-color-border-default, #E2DCD0);
}
html.eco-new footer.footer .container {
  display: grid !important;
  grid-template-columns: minmax(200px, 1.1fr) minmax(280px, 2fr) minmax(160px, .9fr);
  gap: 20px 36px;
  align-items: start;
}
html.eco-new footer.footer .container > [class*="col-"] {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}
html.eco-new footer.footer .ey-foot-brand strong {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ey-color-text-primary, #1A1D1A);
  max-width: 28ch;
}
html.eco-new footer.footer .logo {
  margin: 0 0 10px !important;
  background: transparent !important;
  line-height: 0;
}
html.eco-new footer.footer .logo img {
  height: 38px !important;
  width: auto !important;
  mix-blend-mode: multiply;
}
html.eco-new footer.footer .h5 {
  font: 700 13px/1.3 var(--ey-font-heading, "PT Serif", Georgia, serif) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ey-color-text-primary, #1A1D1A) !important;
  margin: 0 0 10px !important;
}
html.eco-new footer.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
html.eco-new footer.footer ul li {
  margin: 0 0 5px;
  color: var(--ey-color-text-muted, #5E655E);
  font-size: 13px;
  line-height: 1.35;
}
html.eco-new footer.footer .ey-foot-brand ul li {
  margin-bottom: 4px;
}
html.eco-new footer.footer .ey-foot-links > ul {
  columns: 2;
  column-gap: 28px;
}
html.eco-new footer.footer .ey-foot-links > ul > li {
  break-inside: avoid;
  margin: 0 0 6px;
}
html.eco-new footer.footer a {
  color: var(--ey-color-text-muted, #5E655E) !important;
  text-decoration: none !important;
  text-transform: none !important;
}
html.eco-new footer.footer a:hover {
  color: var(--ey-color-action-primary, #006030) !important;
}
html.eco-new footer.footer .social-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px !important;
}
html.eco-new footer.footer .social-menu li {
  margin: 0 !important;
}
html.eco-new footer.footer .social-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--ey-color-border-default, #E2DCD0);
  font-size: 12px;
  font-weight: 600;
}
html.eco-new footer.footer .social-menu em {
  font-style: normal;
  font-size: 0;
  color: transparent;
}
html.eco-new footer.footer .social-menu .fa:before {
  font-size: 15px;
  color: var(--ey-color-text-primary, #1A1D1A);
}
html.eco-new footer.footer .ey-foot-copy {
  grid-column: 1 / -1;
  padding-top: 14px !important;
  margin-top: 4px;
  border-top: 1px solid rgba(26, 29, 26, .08);
  font-size: 12px;
  color: var(--ey-color-text-muted, #5E655E);
}
@media (max-width: 991px) {
  html.eco-new footer.footer .container {
    grid-template-columns: 1fr 1fr;
  }
  html.eco-new footer.footer .ey-foot-social {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  html.eco-new footer.footer .container {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  html.eco-new footer.footer .ey-foot-links > ul {
    columns: 1;
  }
  html.eco-new footer.footer .ey-foot-social {
    grid-column: auto;
  }
}

/* ===== Широкая сетка страницы каталога ===== */
html.eco-new .container.main-block-content,
html.eco-new .main-block-content.container {
  max-width: 1440px !important;
  width: 100%;
}
html.eco-new .main-block-content .d-flex.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html.eco-new .left-content {
  width: 260px !important;
  flex: 0 0 260px;
}
html.eco-new .center-block {
  width: calc(100% - 260px) !important;
  flex: 1 1 auto;
  max-width: none !important;
  padding-left: 20px !important;
}
html.eco-new .center-block .head-catalog {
  height: auto !important;
  overflow: visible !important;
}

/* Товары: CSS-grid 4 колонки (не зависит от залипшей session gridChange=2) */
html.eco-new .template-product-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
html.eco-new .template-product-list::after,
html.eco-new .template-product-list::before { display: none !important; }
html.eco-new .template-product-list .product-block-wrapper-fix,
html.eco-new .template-product-list .col-md-6,
html.eco-new .template-product-list .col-md-4,
html.eco-new .template-product-list .col-md-3,
html.eco-new .template-product-list .col-md-2,
html.eco-new .template-product-list .col-sm-3,
html.eco-new .template-product-list .col-xs-6 {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
html.eco-new .template-product-list .thumbnail {
  height: 100%;
  margin: 0 !important;
}
@media (max-width: 1199px) {
  html.eco-new .template-product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  html.eco-new .left-content { display: none; }
  html.eco-new .center-block { width: 100% !important; padding-left: 0 !important; }
  html.eco-new .template-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  html.eco-new .template-product-list { grid-template-columns: 1fr; }
}

/* ===== Верхние разделы (корни каталога) ===== */
html.eco-new .eyc-roots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
html.eco-new .eyc-root {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--eyc-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
html.eco-new .eyc-root:hover {
  border-color: rgba(0, 117, 59, .4);
  box-shadow: var(--eyc-shadow);
  transform: translateY(-2px);
}
html.eco-new .eyc-root.is-active {
  border-color: var(--eyc-green);
  box-shadow: 0 0 0 2px rgba(0, 117, 59, .15);
}
html.eco-new .eyc-root__media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f7faf8, #eef6f1 55%, #f3efe7);
  padding: 18%;
}
html.eco-new .eyc-root__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
html.eco-new .eyc-root__title {
  padding: 10px 8px 12px;
  text-align: center;
  font: 700 12px/1.25 var(--ey-font-heading, "PT Serif", Georgia, serif);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--eyc-text);
}
@media (max-width: 991px) {
  html.eco-new .eyc-roots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  html.eco-new .eyc-roots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 132px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  html.eco-new .eyc-root { scroll-snap-align: start; }
}

/* ===== Desktop mega: Категории ===== */
html.eco-new .eyc-mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 80;
  display: none;
  padding: 16px 0 20px;
  background: rgba(251, 250, 247, .98);
  border-bottom: 1px solid var(--eyc-line);
  box-shadow: 0 16px 40px rgba(16, 40, 28, .1);
  backdrop-filter: blur(8px);
}
html.eco-new header { position: relative; }
html.eco-new.eyc-mega-on .eyc-mega { display: block; }
html.eco-new .eyc-mega .container {
  max-width: 1440px;
}
html.eco-new .eyc-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
html.eco-new .eyc-mega-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--eyc-line);
  background: #fff;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .18s, box-shadow .18s;
}
html.eco-new .eyc-mega-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--eyc-shadow);
  border-color: rgba(0, 117, 59, .35);
}
html.eco-new .eyc-mega-card__img {
  aspect-ratio: 4 / 3;
  background: #eef6f1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16%;
}
html.eco-new .eyc-mega-card__img img {
  width: 72px; height: 72px; object-fit: contain;
}
html.eco-new .eyc-mega-card__t {
  padding: 12px 10px 14px;
  text-align: center;
  font: 700 12.5px/1.3 var(--ey-font-heading, "PT Serif", Georgia, serif);
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  html.eco-new .eyc-mega { display: none !important; }
}

/* kill old forced col-md-6 width hacks — grid handles it */
html.eco-new .product-block-wrapper-fix.col-md-6 {
  width: 100% !important;
}

/* v70.1 — сетка товаров: PHPShop кладёт карточки в .row */
html.eco-new .template-product-list {
  display: block !important;
}
html.eco-new .template-product-list > .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}
html.eco-new .template-product-list > .row > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}
@media (max-width: 1199px) {
  html.eco-new .template-product-list > .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  html.eco-new .template-product-list > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  html.eco-new .template-product-list > .row { grid-template-columns: 1fr; }
}

/* корни каталога — заметнее */
html.eco-new .eyc-roots {
  margin: 8px 0 24px !important;
  min-height: 140px;
}
html.eco-new .eyc-root__media {
  min-height: 88px;
}

/* v77 — subcategory: 3 cols, photo contain + padding */
html.eco-new .catalog-block {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
@media (max-width: 1100px) {
  html.eco-new .catalog-block { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  html.eco-new .catalog-block { grid-template-columns: 1fr !important; gap: 12px !important; }
}
html.eco-new .catalog-wrap { width: 100% !important; max-width: none !important; }
html.eco-new .catalog-wrap .catalog-name, html.eco-new .catalog-wrap h2.catalog-name { background: var(--ey-color-bg-sunk, #F3EFE7) !important; border-top: 1px solid var(--eyc-line); }
html.eco-new .catalog-wrap .catalog-img {
  aspect-ratio: 4 / 3 !important;
  padding: 14px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
html.eco-new .catalog-wrap .catalog-img img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
html.eco-new .catalog-wrap:hover .catalog-img img {
  transform: scale(1.03) !important;
}


/* ===== v73 Claude: 3 колонки без дыр, contain, mega на главной, без roots ===== */
html.eco-new .eyc-roots { display: none !important; }

html.eco-new .template-product-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch;
}
html.eco-new .template-product-list > .row {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  width: auto !important;
}

/* v75.1 — псевдо clearfix Bootstrap .row не занимают ячейки CSS grid */
html.eco-new .template-product-list > .row::before,
html.eco-new .template-product-list > .row::after {
  content: none !important;
  display: none !important;
}

html.eco-new .template-product-list > .row > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
@media (max-width: 1100px) {
  html.eco-new .template-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}
@media (max-width: 700px) {
  html.eco-new .template-product-list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

html.eco-new .thumbnail .product-image {
  aspect-ratio: 4 / 3 !important;
  padding: 10px !important;
  background: #fff !important;
}
html.eco-new .thumbnail .product-image img {
  object-fit: contain !important;
  transform: none !important;
}

html.eco-new .catalog-wrap .catalog-img { background: #fff !important; }
html.eco-new .catalog-wrap .catalog-img img {
  object-fit: contain !important;
  transform: none !important;
}
html.eco-new .catalog-wrap:hover .catalog-img img {
  transform: scale(1.03) !important;
}

html.eco-new header {
  overflow: visible !important;
  z-index: 100;
}
html.eco-new .eyc-mega { z-index: 200 !important; }
html.eco-new.eyc-mega-on .eyc-mega { display: block !important; }

@media (max-width: 991px) {
  html.eco-new.eyc-ready .eyc-bar {
    position: relative !important;
    top: auto !important;
    margin: 0 0 10px !important;
    z-index: 5;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
  }
  html.eco-new.eyc-ready .eyc-bar .eyc-filters,
  html.eco-new.eyc-ready .eyc-bar button {
    flex: 1 1 auto;
    min-width: 0;
  }
  html.eco-new.eyc-ready #filter-well {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    clear: both !important;
  }
  html.eco-new.eyc-ready #filter-well .filter-menu-wrapper {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }
  html.eco-new.eyc-ready #filter-well .filter-btn,
  html.eco-new.eyc-ready #filter-well .col-sm-2.hidden-xs.hidden-md.hidden-lg,
  html.eco-new.eyc-ready #filter-well .col-md-2.hidden-xs,
  html.eco-new.eyc-ready #filter-well .hidden-xs {
    display: none !important;
  }
}

/* v74 — clearfix не занимает ячейки; максимум 3 колонки на десктопе */
html.eco-new .template-product-list > .clearfix,
html.eco-new .template-product-list > br,
html.eco-new .template-product-list > .row:empty,
html.eco-new .template-product-list > .row > .clearfix {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* v81 — телефон: 1 колонка (плитки разделов + карточки товаров), без «по две» */
@media (max-width: 767px) {
  html.eco-new .catalog-block {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  html.eco-new .template-product-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  html.eco-new .template-product-list > .row {
    display: contents !important;
  }
  html.eco-new .template-product-list .col-xs-6,
  html.eco-new .template-product-list > .row > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
  }
  html.eco-new .thumbnail .product-name {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
  html.eco-new .thumbnail .product-btn {
    flex-wrap: wrap;
    gap: 8px;
  }
  html.eco-new .center-block {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
