/* Home-page collections share the existing catalog routes and product photos. */
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.discovery-slot {
  display: grid;
  min-width: 0;
}
.discovery-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #eeeedf;
  color: #1c3c1c;
  border: 1px solid #1c3c1c12;
  transition: border-color 160ms ease;
}
.discovery-slot:nth-child(3n + 1) > .discovery-card {
  background: #e6ebd9;
}
.discovery-slot:first-child > .discovery-card {
  background: #1c3c1c;
  color: #fff8e9;
}
.discovery-copy {
  padding: 24px 24px 18px;
  position: relative;
  flex: 1;
}
.discovery-label {
  display: block;
  padding-right: 25px;
  font-size: 10px;
  letter-spacing: 0.7px;
  font-weight: 650;
  opacity: 0.8;
}
.discovery-card h3 {
  font: 400 clamp(24px, 2.2vw, 31px) / 1.12 var(--serif);
  margin: 14px 0 10px;
  max-width: 240px;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.discovery-card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}
.discovery-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
}
.discovery-photos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  height: 145px;
  margin: 0 14px 14px;
  padding: 8px;
  border-radius: 18px;
  background: #f8f3e7;
}
.discovery-photos img {
  width: 33.333%;
  height: 125px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.discovery-photos img:nth-child(1) {
  transform: rotate(-7deg);
}
.discovery-photos img:nth-child(3) {
  transform: rotate(7deg);
}
.discovery-all {
  display: flex;
  width: fit-content;
  margin: 26px auto 0;
}
@media (hover: hover) and (pointer: fine) {
  .discovery-card:hover {
    border-color: #7d9962;
  }
  .discovery-card:hover .discovery-arrow {
    background: #98c93c;
    color: #1c3c1c;
    border-color: #98c93c;
  }
}
@media (max-width: 900px) {
  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .discovery-slot:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .discovery-grid {
    gap: 12px;
  }
  .discovery-card {
    border-radius: 20px;
  }
  .discovery-copy {
    padding: 18px 14px 14px;
  }
  .discovery-card h3 {
    font-size: clamp(19px, 5.6vw, 23px);
    margin-top: 12px;
  }
  .discovery-label {
    font-size: 9px;
    padding-right: 0;
    min-height: 26px;
  }
  .discovery-card p {
    font-size: 11px;
  }
  .discovery-arrow {
    display: none;
  }
  .discovery-photos {
    height: 110px;
    margin: 0 8px 8px;
    padding: 3px;
    border-radius: 13px;
  }
  .discovery-photos img {
    height: 94px;
    width: 50%;
  }
  .discovery-photos img:last-child {
    display: none;
  }
  .discovery-all {
    font-size: 12px;
    padding-inline: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-card {
    transition: none;
  }
}

/* A stationary cell drives its child continuously: no entrance trigger/reset. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .discovery-slot {
      view-timeline-name: --category-entry;
      view-timeline-axis: block;
    }
    .discovery-card {
      --entry-distance: 56px;
      --entry-scale: 0.93;
      animation: category-entry 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
      animation-timeline: --category-entry;
      animation-range: entry 0% entry 100%;
    }
    .discovery-card:focus-within {
      animation: none;
    }
    .discovery-slot.motion-prepared .discovery-card {
      will-change: transform;
    }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
    .discovery-card {
      --entry-distance: 36px;
      --entry-scale: 0.95;
    }
  }
}
@keyframes category-entry {
  from {
    transform: translateY(var(--entry-distance)) scale(var(--entry-scale));
  }
  to {
    transform: translateY(0) scale(1);
  }
}
