/* Existing product formats following the homepage material gallery. */
body.home-page .material-products-section {
  padding-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

body.home-page .material-products-section .material-products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 32px;
}

body.home-page .material-products-section .material-products-header > div {
  min-width: 0;
}

body.home-page .material-products-section .material-products-header .tag {
  display: block;
  margin-bottom: 13px;
  color: var(--orange-dark);
}

body.home-page .material-products-section .material-products-header h2 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.17;
  letter-spacing: -.035em;
}

body.home-page .material-products-section .material-products-header p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

body.home-page .material-products-section .material-products-all {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--orange-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 5px;
}

body.home-page .material-products-section .material-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
}

body.home-page .material-products-section .material-products-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.home-page .material-products-section .material-products-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid #e8ebe7;
  background: #f5f5f1;
}

body.home-page .material-products-section .material-products-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.home-page .material-products-section .material-products-copy {
  display: grid;
  flex: 1;
  grid-template-rows: auto minmax(78px, auto) 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 22px 20px 20px;
}

body.home-page .material-products-section .material-products-badge {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .03em;
}

body.home-page .material-products-section .material-products-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
}

body.home-page .material-products-section .material-products-copy > p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

body.home-page .material-products-section .material-products-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

body.home-page .material-products-section .material-products-card:hover {
  border-color: #c89070;
  box-shadow: 0 10px 24px #1721230b;
  transform: translateY(-3px);
}

body.home-page .material-products-section .material-products-all:hover {
  color: var(--ink);
}

body.home-page .material-products-section a:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  body.home-page .material-products-section .material-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  body.home-page .material-products-section .material-products-copy {
    grid-template-rows: auto minmax(52px, auto) 1fr auto;
  }
}

@media (max-width: 700px) {
  body.home-page .material-products-section .material-products-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
  }

  body.home-page .material-products-section .material-products-header h2 {
    font-size: clamp(30px, 7vw, 36px);
  }

  body.home-page .material-products-section .material-products-header p {
    font-size: 16px;
  }

  body.home-page .material-products-section .material-products-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 22px;
  }

  body.home-page .material-products-section .material-products-copy {
    grid-template-rows: auto auto 1fr auto;
    padding: 23px 22px 22px;
  }

  body.home-page .material-products-section .material-products-copy h3 {
    font-size: 22px;
  }

  body.home-page .material-products-section .material-products-copy > p {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .material-products-section .material-products-card {
    transition: none;
  }

  body.home-page .material-products-section .material-products-card:hover {
    transform: none;
  }
}
