/* E1-09: catalogue lists only; real CMS titles and JPEG/PNG fallbacks remain. */
#content .product-list-js,
#content .tpl-component-300 .subclasses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}
#content .product-list-js::before,
#content .product-list-js::after { display: none; }
#content .product-list-js > .product-layout {
  float: none;
  clear: none;
  width: auto;
  min-width: 0;
  padding: 0;
}
#content .product-list-js > .product-list { grid-column: 1 / -1; }
#content .product-grid .product-thumb {
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
#content .product-grid .product-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid #dedede;
  border-radius: 5px;
}
#content .product-grid .product-description {
  flex: 1 0 auto;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 4px 4px 0 0;
  background: #f7f7f7;
}
#content .product-grid .product-description h4,
#content .product-grid .product-description .product-card-title {
  height: auto;
  margin: 0;
  padding: 0;
  font: 400 14px/1.5 'Montserrat', sans-serif;
}
#content .product-grid .product-description a {
  display: block;
  font: inherit;
  overflow-wrap: anywhere;
}
#content .product-grid .image { flex: 0 0 auto; }
#content .product-grid .image > a,
#content .tpl-component-300 .subclasses > div > a:first-child {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
}
#content .product-grid .image > a > picture,
#content .tpl-component-300 .subclasses > div > a:first-child > picture {
  display: contents;
}
#content .product-grid .image img:not(.ico-new):not(.ico-iz),
#content .tpl-component-300 .subclasses > div > a:first-child img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px) !important;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  transition: none;
}
#content .product-grid .image img.ico-new {
  top: 8px;
  left: 8px;
  width: 60px;
  height: 36px !important;
  object-fit: contain;
}
#content .product-grid .image img.ico-iz {
  right: 8px;
  bottom: 8px;
  width: 60px;
  height: 49px !important;
  object-fit: contain;
}
#content .tpl-component-300 .subclasses > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 1px solid #dedede;
  border-radius: 5px;
}
#content .tpl-component-300 .subclasses > div > a:first-child {
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
}
#content .tpl-component-300 .subclasses > div > a + a {
  display: block;
  flex: 1 0 auto;
  min-width: 0;
  padding: 14px 16px;
  border-top: 1px solid #eee;
  border-radius: 0 0 4px 4px;
  background: #f7f7f7;
  text-align: center;
  font: 400 14px/1.5 'Montserrat', sans-serif;
  overflow-wrap: anywhere;
}
#content .product-grid .product-description a:hover,
#content .tpl-component-300 .subclasses > div > a + a:hover {
  color: #980d00;
}
#content .product-list-js a:focus-visible,
#content .tpl-component-300 .subclasses a:focus-visible {
  outline: 2px solid #980d00 !important;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  #content .product-list-js,
  #content .tpl-component-300 .subclasses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 479px) {
  #content .product-list-js,
  #content .tpl-component-300 .subclasses {
    grid-template-columns: minmax(0, 1fr);
  }
}
