.products--primary-milck-color {
  background-color: var(--primary-milck-color);
}

.products-list {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  grid-column-gap: 2rem;
  grid-row-gap: 2rem;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  box-shadow: 0 6px 16px #e6ebf5cc;
  background-color: var(--white-color);
  border-radius: 1.2rem;
  padding: 2.5rem;
}

.product__img-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-height: 20rem;
  justify-content: center;
  align-items: center;
}

.product__img {
  width: 100%; /* Задаём ширину изображения равной 100% от ширины контейнера */
  height: 100%; /* Высота изображения адаптируется так, чтобы сохранить пропорции и не выйти за пределы контейнера */
  object-fit: contain;
}

.product__title {
  font-weight: 600;
}

.product__meta-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.product__meta-box a {
  text-align: center;
}

.product__price {
  font-size: 1.8rem;
}

.add-to-cart-btn {
  white-space: nowrap;
}

@media (max-width: 940px) {
  .products-list {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }
}

@media (max-width: 640px) {
  .products-list {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

@media (max-width: 420px) {
  .products-list {
    grid-template-columns: repeat(1, minmax(0px, 1fr));
  }
}
