.kind-home-products {
  padding: 72px 0 80px;
  background: #f2f2ef;
}

.kind-home-products .kind-home-products__header {
  margin-bottom: 32px;
  align-items: center;
}

.kind-home-products .kind-home-products__rail {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.kind-home-products .kind-home-product {
  min-width: 0;
}

.kind-home-products .kind-home-product__link {
  display: grid;
  overflow: hidden;
  min-height: 515px;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  grid-template-rows: auto 1fr;
  color: inherit;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.kind-home-products .kind-home-product__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.kind-home-products .kind-home-product__media,
.kind-home-products .kind-home-product:nth-child(3n + 2) .kind-home-product__media,
.kind-home-products .kind-home-product:nth-child(3n) .kind-home-product__media {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1.08 / 1;
  border-radius: 0;
  place-items: center;
  background: #fff;
}

.kind-home-products .kind-home-product__media img {
  width: 88%;
  height: 78%;
  object-fit: contain;
  filter: none;
  transition: transform 300ms ease;
}

.kind-home-products .kind-home-product__link:hover .kind-home-product__media img {
  transform: scale(1.035);
}

.kind-home-products .kind-home-product__badge {
  top: 16px;
  right: 16px;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: #111;
  font-size: 10px;
}

.kind-home-products .kind-home-product__content {
  display: flex;
  min-height: 205px;
  padding: 5px 28px 24px;
  align-items: flex-start;
  flex-direction: column;
}

.kind-home-products .kind-home-product__title {
  min-height: 2.45em;
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.kind-home-products .kind-home-product__content .product-pack-display--home {
  display: block;
  visibility: visible;
  min-height: 1.35em;
  margin: 5px 0 0;
  color: #5a5a5a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 1;
}

.kind-home-products .kind-home-product__price {
  display: flex;
  min-height: 30px;
  margin: 12px 0 22px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.kind-home-products .kind-home-product__price s {
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.kind-home-products .kind-home-product__cta {
  display: inline-flex;
  min-width: 148px;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 24px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #111;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 989px) and (min-width: 750px) {
  .kind-home-products .kind-home-products__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 749px) {
  .kind-home-products {
    padding: 48px 0 56px;
  }

  .kind-home-products .kind-home-products__header {
    margin-bottom: 26px;
    align-items: center;
  }

  .kind-home-products .kind-home-products__rail {
    width: calc(100% + 18px);
    overflow-x: auto;
    padding: 0 18px 16px 0;
    grid-auto-columns: min(86vw, 340px);
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 14px;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 0 18px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .kind-home-products .kind-home-products__rail::-webkit-scrollbar {
    display: none;
  }

  .kind-home-products .kind-home-product {
    scroll-snap-align: start;
  }

  .kind-home-products .kind-home-product__link {
    min-height: 490px;
    border-radius: 22px;
  }

  .kind-home-products .kind-home-product__media,
  .kind-home-products .kind-home-product:nth-child(3n + 2) .kind-home-product__media,
  .kind-home-products .kind-home-product:nth-child(3n) .kind-home-product__media {
    aspect-ratio: 1.12 / 1;
    border-radius: 0;
  }

  .kind-home-products .kind-home-product__media img {
    width: 88%;
    height: 76%;
  }

  .kind-home-products .kind-home-product__content {
    min-height: 190px;
    padding: 2px 24px 22px;
  }

  .kind-home-products .kind-home-product__title {
    min-height: 2.35em;
    font-size: 20px;
  }

  .kind-home-products .kind-home-product__content .product-pack-display--home {
    margin-top: 4px;
    font-size: 14px;
  }

  .kind-home-products .kind-home-product__price {
    margin: 10px 0 18px;
    font-size: 17px;
  }

  .kind-home-products .kind-home-product__cta {
    min-width: 170px;
    min-height: 46px;
    padding: 11px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kind-home-products .kind-home-product__link,
  .kind-home-products .kind-home-product__media img {
    transition: none;
  }
}
