/* Modern catalog cards. Scoped to the product grid so sliders and product-page widgets keep their layout. */
#product-list .item-c_catalog-modern {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #edf0f4 !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#product-list .ui-items__wrapper {
  align-items: stretch;
}

#product-list .ui-items__item {
  display: flex;
  min-width: 0;
}

#product-list .item-c_catalog-modern:hover {
  z-index: 2;
  border-color: #dce2ea !important;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.11);
  transform: translateY(-3px);
}

#product-list .item-c_catalog-modern > .addtocart,
#product-list .item-c_catalog-modern .item-c__inner {
  height: 100%;
}

#product-list .item-c_catalog-modern .item-c__inner {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

#product-list .item-c_catalog-modern .item-c__image-wrapper_fixed {
  height: 180px;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

#product-list .item-c_catalog-modern .item-c__image-wrapper_fixed img {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
}

#product-list .item-c_catalog-modern:hover .item-c__image-wrapper_fixed img {
  transform: scale(1.035);
}

#product-list .item-c_catalog-modern .item-c__title {
  display: block;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 10px;
  overflow: visible;
  color: #171a21;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

#product-list .item-c_catalog-modern .item-c__title:hover {
  color: #2f6fdb;
}

#product-list .item-c_catalog-modern .item-c__chars {
  font-size: 13px;
  line-height: 1.45;
}

#product-list .item-c_catalog-modern .item-c__short-descr {
  display: none;
}

#product-list .item-c_catalog-modern .item-c__price {
  margin-top: auto;
  padding-top: 10px;
}

#product-list .item-c_catalog-modern .price-wrapper__main .price_main {
  color: #111318;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

#product-list .item-c_catalog-modern .price-wrapper__main .price_main .ed {
  color: #4d5562;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

#product-list .item-c_catalog-modern .item-c__stock-info {
  min-height: 20px;
  margin-top: 6px;
  font-size: 13px;
}

#product-list .item-c_catalog-modern .item-c__actions-wrapper {
  display: block !important;
  position: static !important;
  width: 100%;
  margin-top: 10px;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#product-list .item-c_catalog-modern .item-c__top_catalog,
#product-list .item-c_catalog-modern .item-c__actions-wrapper .item-c__top {
  display: block !important;
  width: 100%;
}

#product-list .item-c_catalog-modern .item-c__actions-wrapper .item-c__btn {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
}

#product-list .item-c_catalog-modern .item-c__one-click {
  display: none !important;
}

@media (max-width: 767px) {
  #product-list .catalog-pg__pagination {
    margin-top: 20px;
  }

  #product-list .ui-items__wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    margin: 0 !important;
  }

  #product-list .ui-items__item {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #product-list .item-c_catalog-modern {
    border-radius: 12px;
  }

  #product-list .item-c_catalog-modern:hover {
    transform: none;
  }

  #product-list .item-c_catalog-modern .item-c__inner {
    display: flex !important;
    flex-direction: column !important;
    padding: 8px;
  }

  #product-list .item-c_catalog-modern .item-c__image-wrapper_fixed {
    position: relative !important;
    order: 1;
    width: 100% !important;
    height: 112px;
    margin-bottom: 8px;
  }

  #product-list .item-c_catalog-modern .item-c__colors {
    order: 2;
  }

  #product-list .item-c_catalog-modern .item-c__title {
    position: static !important;
    order: 3;
    width: 100% !important;
    min-height: 0;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  #product-list .item-c_catalog-modern .item-c__rating {
    order: 4;
  }

  #product-list .item-c_catalog-modern .item-c__chars {
    order: 5;
  }

  #product-list .item-c_catalog-modern .item-c__price {
    position: static !important;
    order: 6;
    width: 100% !important;
    margin-top: auto;
    padding-top: 8px;
  }

  #product-list .item-c_catalog-modern .price-wrapper__main .price_main {
    font-size: 15px;
    line-height: 1.3;
  }

  #product-list .item-c_catalog-modern .price-wrapper__main .price_main .ed {
    font-size: 11px;
  }

  #product-list .item-c_catalog-modern .item-c__sku {
    order: 7;
  }

  #product-list .item-c_catalog-modern .item-c__stock-info {
    position: static !important;
    order: 8;
    width: 100% !important;
    min-height: 16px;
    margin-top: 5px;
    font-size: 11px;
  }

  #product-list .item-c_catalog-modern .item-c__actions-wrapper {
    order: 9;
    margin-top: 8px;
  }

  #product-list .item-c_catalog-modern .item-c__actions-wrapper .item-c__btn {
    min-height: 34px;
    padding-right: 4px;
    padding-left: 4px;
    font-size: 11px;
  }
}
