.home-products {
  background: #f8fafc;
  color: #111827;
  padding: 2.5rem 0;
}

.home-products__container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.home-products__grid {
  display: grid;
  gap: 1.5rem;
}

.home-products__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}

.home-products__heading {
  margin: 0 0 1.25rem;
  color: #172554;
  font-size: 1.875rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.home-products__text {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.75;
}

.home-products__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-products__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.home-products__button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.home-products__button--primary {
  background: #1d4ed8;
  color: #fff;
  border: 1px solid #1d4ed8;
}

.home-products__button--primary:hover {
  background: #1e40af;
  color: #fff;
}

.home-products__button--secondary {
  background: #fff;
  color: #1d4ed8;
  border: 1px solid #1d4ed8;
}

.home-products__button--secondary:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.home-product-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background: transparent;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.home-product-card__media {
  position: relative;
  width: 100%;
  height: 14rem;
  overflow: hidden;
  background: transparent;
}

.home-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.home-product-card:hover .home-product-card__image {
  transform: scale(1.2);
}

.home-product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(107, 114, 128, 0.3);
  transition: background-color 0.3s ease;
}

.home-product-card:hover .home-product-card__overlay {
  background: rgba(107, 114, 128, 0.2);
}

.home-product-card__title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.home-product-card__title {
  position: relative;
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.6);
  -webkit-text-stroke: 1.5px rgba(15, 23, 42, 0);
}

.product-title-stroke {
  color: #fff;
}

.home-product-card__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.home-product-card:hover .home-product-card__title::after {
  transform: translateX(-50%) scaleX(1);
}

@media (min-width: 640px) {
  .home-products__container {
    padding: 0 1.5rem;
  }

  .home-products__actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .home-products {
    padding: 4rem 0;
  }

  .home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-products__intro {
    grid-column: span 2;
    padding-right: 1.5rem;
  }

  .home-products__heading {
    font-size: 2.25rem;
  }

  .home-product-card__media {
    height: 20rem;
  }

  .home-product-card__title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .home-products__container {
    padding: 0 2rem;
  }

  .home-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-products__intro {
    grid-column: auto;
    padding-right: 1.5rem;
  }
}
