/* Scoped to product cards and their main photo; child category tiles are unchanged. */
.detail_picture > .catalog-product-photo {
  display: block;
}
.detail_picture > .catalog-product-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
  clear: both;
}
.catalog-card,
.catalog-card * {
  box-sizing: border-box;
}
.catalog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #20241d;
  text-align: left;
  font:
    400 15px/1.4 Arial,
    Helvetica,
    sans-serif;
}
.catalog-card [hidden] {
  display: none !important;
}
.catalog-card a {
  text-decoration: none;
}
.catalog-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 8px;
}
.catalog-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
.catalog-card .catalog-card__price {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 8px;
  color: #336305;
  font-size: 20px;
  line-height: 26px;
  font-weight: 400;
}
.catalog-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}
.catalog-card__prices > span {
  white-space: nowrap;
}
.catalog-card__status {
  color: #777d70;
  font-size: 14px;
  line-height: 28px;
  font-weight: 400;
}
.catalog-card__price del,
.catalog-card__price s,
.catalog-card__price .price-old {
  color: #888d84;
  font-size: 12px;
  font-weight: 400;
}
.catalog-card__price .productSpecialPrice {
  color: inherit;
}
.catalog-card__price .price {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
.catalog-card__price .price-old {
  display: block;
}
.catalog-card .catalog-card__name {
  height: 66px;
  padding: 0;
  margin: 0 0 8px;
  font:
    400 16px/22px Arial,
    Helvetica,
    sans-serif;
  text-transform: none;
  text-align: left;
}
.catalog-card__name a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #20241d;
  font: inherit;
  text-transform: none;
}
.catalog-card__name a:hover {
  color: #336305;
}
.catalog-card__purchase {
  margin-top: auto;
}
.catalog-card .catalog-card__buy,
.catalog-card__options,
.catalog-card__notify {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  margin: 0;
  float: none;
  border: 1px solid #c4d4b2;
  border-radius: 8px;
  background: #f0f5e9;
  color: #336305;
  font:
    600 14px/18px Arial,
    Helvetica,
    sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.catalog-card .catalog-card__buy:hover,
.catalog-card__options:hover {
  background: #e2edd5;
  border-color: #93ad76;
  color: #284e04;
}
.catalog-card .catalog-card__buy:disabled {
  opacity: 0.5;
  cursor: wait;
}
.catalog-card__counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  border-radius: 8px;
  background: #f1f3ed;
}
.catalog-card__counter button {
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #336305;
  font:
    400 24px/1 Arial,
    sans-serif;
  cursor: pointer;
}
.catalog-card__counter button:hover {
  background: #e5eadf;
}
.catalog-card__counter button:disabled {
  opacity: 0.35;
  background: transparent;
  cursor: default;
}
.catalog-card__counter output {
  min-width: 0;
  text-align: center;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.catalog-card__notify {
  border-color: #d9dfd1;
  background: #f6f7f3;
  color: #526147;
  font-size: 12px;
  font-weight: 400;
}
.catalog-card__notify:hover {
  border-color: #91a180;
  background: #edf1e6;
  color: #336305;
}
.products_area .catalog-card .cart-feedback {
  margin: 8px 0 0;
  padding: 0;
  text-align: left;
  font:
    400 12px/17px Arial,
    sans-serif;
}
.catalog-card .cart-feedback:not(.is-error) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.catalog-card .product-purchase__retry {
  width: 100%;
  font:
    400 12px/17px Arial,
    sans-serif;
}
.catalog-card a:focus-visible,
.catalog-card button:focus-visible {
  outline: 2px solid #6b8f3d;
  outline-offset: 3px;
}
.catalog-listing .sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 0 16px;
  padding: 4px 0 10px;
  border: 0;
  border-bottom: 1px solid #e7eadf;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
}
.catalog-listing .sort ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
.catalog-listing .sort li {
  float: none;
  margin: 0;
  padding: 0;
}
.catalog-listing .sort li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
}
.catalog-listing .sort li a.up:after,
.catalog-listing .sort li a.down:after {
  top: 50%;
  margin-top: -3px;
}
.catalog-listing .sort .pages {
  margin: 0;
  font-size: 12px;
}
.catalog-listing .sort > .clear {
  display: none;
}
.catalog-listing .page_nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #e7eadf;
  border-radius: 0;
  background: transparent;
}
.catalog-listing .page_nav .side {
  float: none;
  width: auto;
  font-size: 12px;
}
.catalog-listing .page_nav .page_links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  float: none;
  width: auto;
  margin: 0;
}
.catalog-listing .page_links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  float: none;
  margin: 0;
}
.catalog-listing .page_links li {
  float: none;
  margin: 0;
}
.catalog-listing .page_links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 44px;
  margin: 0;
  padding: 0 8px;
  border-radius: 8px;
  color: #336305;
  text-decoration: none;
}
.catalog-listing .page_links li a.active {
  background: #edf3e6;
  color: #284e04;
  font-weight: 700;
}
.catalog-listing .page_links .to_the_left,
.catalog-listing .page_links .to_the_right {
  position: relative;
  inset: auto;
  width: 40px;
  height: 44px;
  background: #f4f6f0;
  border-radius: 8px;
}
.catalog-listing .page_links .to_the_left:before,
.catalog-listing .page_links .to_the_right:before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
  width: 9px;
  height: 9px;
  border: solid #336305;
  border-width: 0 0 2px 2px;
  background: none;
  transform: rotate(45deg);
}
.catalog-listing .page_links .to_the_right:before {
  left: 12px;
  transform: rotate(225deg);
}
.catalog-listing .page_nav .clear {
  display: none;
}
@media (max-width: 1164px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-card .catalog-card__name {
    height: 66px;
    font-size: 16px;
    line-height: 22px;
  }
  .catalog-card .catalog-card__price {
    font-size: 20px;
  }
  .catalog-listing .sort ul {
    gap: 0 12px;
  }
  .catalog-listing .sort li a {
    font-size: 12px;
  }
  .catalog-listing .page_nav .page_links {
    order: -1;
    width: 100%;
  }
}
