/* ==========================================
   CATALOG GRID
========================================== */
.catalog-product-grid{
    transition:margin-top .35s ease;
}

.catalog-product-grid {
  width: 93%;

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

  gap: 25px;

  justify-content: center;
  justify-items: center;

  margin: 0px;
  margin-top: 0px;
  margin-left: 2%;
}

/* ==========================================
   PRODUCT CARD
   (единая структура/классы с home-product-card,
   стили карточки задаются только здесь)
========================================== */
.home-product-card {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;

  border: 1px solid rgb(205,205,211);

  border-radius: 20px;

  padding: 8px;

  background: #fff;

  transition:
    transform .3s,
    box-shadow .3s,
    border-color .3s;

  cursor: pointer;

  box-shadow: none;

  overflow: hidden;
}

.home-product-card:hover {
  transform: translateY(-6px);

  border-color: #8bc9ff;

  box-shadow:
    0 15px 35px rgba(24,119,242,.18);
}

.home-product-image {
  grid-column: span 2;

  margin: -8px -8px 0;
}

.home-product-image img {
  width: 100%;

  aspect-ratio: 1/1;

  object-fit: cover;

  border-radius: 12px 12px 0 0;

  display: block;
}

.home-product-name {
  grid-column: span 2;

  font-size: 14px;

  font-weight: 500;

  margin: 10px 0;

  line-height: 1.3;

  height: 32px;

  color: #111;
}

.home-product-buy {
  width: 100%;
  height: 40px;

  border: none;

  border-radius: 10px;

  background: rgb(36,71,174);

  color: #fff;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
}

.home-product-price {
  display: flex;

  flex-direction: column;

  align-items: flex-end;

  justify-content: center;

  line-height: 1;

  transform: translateX(-8px);
}

.price-number {
  font-size: 20px;

  font-weight: 700;
}

.price-currency {
  font-size: 12px;

  color: #777;

  margin-top: 2px;
}

/* ==========================================
   MOBILE
========================================== */
@media (max-width: 500px) {
  .catalog-product-grid {
    grid-template-columns: 1fr 1fr;
    width: 96%;
    margin: 10px auto;
  }

  .home-product-card {
    border-radius: 18px;
  }

  .home-product-name {
    font-size: 13px;
    height: 14px;
  }

  .home-product-buy {
    height: 36px;
  }

  .price-number {
    font-size: 18px;
  }
}

@media (max-width: 1250px) {
  .catalog-grid {
    margin: 50px auto 20px auto;
  }
}