.home-products-block {
  margin-top: 96px;
  padding-top: 88px;
  border-top: 1px solid rgba(36, 95, 115, .14);
  scroll-margin-top: 90px;
}

.home-products-block .section-head {
  margin-bottom: 34px;
}

.home-products-block .section-head h2 {
  max-width: 720px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(36, 95, 115, .13);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(36, 95, 115, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 23px 62px rgba(36, 95, 115, .12);
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e7e1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.035);
}

.product-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.product-topline {
  display: grid;
  gap: 8px;
}

.product-category {
  color: #733E24;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.product-body h3 {
  margin-top: 7px;
  font-size: 1.32rem;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.price {
  flex: 0 0 auto;
  color: #245F73;
  font-weight: 900;
  white-space: nowrap;
}

.card-price {
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 1.17rem;
}

.card-price + .product-actions {
  margin-top: 0;
}

.product-body p {
  margin: 11px 0 17px;
  color: #626b6e;
  font-size: .92rem;
  line-height: 1.55;
}

.rating-chip {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #f0eee8;
  color: #202426;
  font-size: .78rem;
  font-weight: 750;
}

.shipping-badge {
  width: fit-content;
  margin: -4px 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(30, 118, 88, .22);
  border-radius: 999px;
  background: rgba(30, 118, 88, .08);
  color: #176246;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .025em;
}

.product-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 9px;
}

.product-actions .btn {
  min-height: 46px;
  padding: 10px 12px;
  white-space: nowrap;
}

.all-products-action {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-products-block {
    margin-top: 68px;
    padding-top: 62px;
    scroll-margin-top: 82px;
  }

  .home-products-block .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .home-products-block .product-card {
    border-radius: 14px;
  }

  .home-products-block .product-image {
    aspect-ratio: 1 / 1;
  }

  .home-products-block .product-body {
    padding: 12px;
  }

  .home-products-block .product-category {
    font-size: .6rem;
    letter-spacing: .08em;
  }

  .home-products-block .product-body h3 {
    font-size: 1rem;
    line-height: 1.16;
  }

  .home-products-block .price {
    font-size: 1.02rem;
  }

  .home-products-block .product-body p {
    display: -webkit-box;
    margin: 8px 0 10px;
    overflow: hidden;
    font-size: .78rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-products-block .rating-chip {
    margin: 0 0 10px;
    padding: 5px 7px;
    font-size: .64rem;
  }

  .home-products-block .shipping-badge {
    margin: -3px 0 10px;
    padding: 5px 7px;
    font-size: .64rem;
  }

  .home-products-block .product-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .home-products-block .product-actions .btn {
    min-height: 41px;
    padding: 8px 6px;
    font-size: .78rem;
  }
}
