.home-product-section {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 72px);
}

.home-product-section + .home-product-section {
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.home-product-section.soft {
  max-width: none;
  background:
    radial-gradient(circle at 8% 5%, color-mix(in srgb, var(--rust) 10%, transparent), transparent 26%),
    color-mix(in srgb, var(--sand) 58%, var(--paper));
}

.home-product-section .section-inner {
  max-width: 1296px;
  margin: 0 auto;
}

.home-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.home-catalog-heading h2 {
  font-size: clamp(2.25rem, 4vw, 4.1rem);
  line-height: 1;
}

.home-catalog-heading .section-summary {
  max-width: 420px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.65;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 18px;
}

.home-product-card {
  min-width: 0;
}

.home-product-card .product-image {
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(60, 28, 49, .07);
}

.home-product-card .product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: inherit;
  pointer-events: none;
}

.home-product-card .product-image img {
  transition: transform .55s ease;
}

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

.home-product-card .product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border-radius: 99px;
  background: rgba(255, 253, 251, .9);
  color: var(--rust);
  box-shadow: 0 6px 18px rgba(45, 18, 36, .09);
  backdrop-filter: blur(8px);
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-product-card .product-image form {
  right: 12px;
  bottom: 12px;
  left: 12px;
}

.home-product-card .product-image form button {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  background: rgba(255, 253, 251, .94);
  box-shadow: 0 9px 25px rgba(50, 22, 40, .12);
}

.home-product-card > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

.home-product-card .stock-note {
  color: var(--rust);
  font-size: .58rem;
  font-weight: 750;
}

.home-product-card .product-title h3 {
  line-height: 1.35;
}

.home-product-card .compare-button {
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
}

.home-catalog-footer {
  display: none;
}

@media (max-width: 920px) {
  .home-product-section {
    padding: 68px 24px;
  }

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

@media (max-width: 700px) {
  .home-catalog-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .home-catalog-heading > .line-link {
    display: none;
  }

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

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

  .home-product-card .product-image form {
    right: 7px;
    bottom: 7px;
    left: 7px;
  }

  .home-product-card .product-image form button {
    min-height: 38px;
    padding: 8px;
  }

  .home-product-card .product-badge {
    top: 8px;
    left: 8px;
    padding: 6px 7px;
  }

  .home-product-card .stock-note {
    display: none;
  }

  .home-catalog-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }
}

@media (max-width: 390px) {
  .home-product-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-product-grid {
    column-gap: 10px;
  }
}
