.coffee-products-section { position: relative; overflow: hidden; background: var(--ink); padding: 10rem 0; }
.coffee-products-section::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(55% 65% at 10% 92%, rgba(181, 58, 58, 0.2) 0%, rgba(181, 58, 58, 0) 60%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .coffee-products-section::before {
      animation: coffee-products-glow-drift linear;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes coffee-products-glow-drift {
  from { transform: translateY(3%); }
  to { transform: translateY(-3%); }
}
.coffee-products-section__inner { position: relative; width: min(1240px, calc(100% - 4rem)); margin: 0 auto; }

.coffee-products__head { text-align: center; margin: 0 auto 5.6rem; max-width: 62rem; }
.coffee-products__head h2 {
  margin: 0; font-weight: 800; font-size: clamp(3rem, 3.6vw, 4.2rem);
  line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; color: #fff;
}
.coffee-products__head h2 .accent-dot { color: #fff; }
.coffee-products__head p { margin: 1.6rem auto 0; max-width: 48rem; color: rgba(255, 255, 255, 0.72); font-size: 1.6rem; line-height: 1.6; }

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem 2rem;
}

.product-tile { display: grid; justify-items: center; gap: 1.4rem; }

.product-tile__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-tile span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

@media (max-width: 1024px) {
  .coffee-products-section { padding: 7rem 0; }
  .coffee-products__head { margin-bottom: 4rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 3.6rem 2rem; }
}

@media (max-width: 640px) {
  .product-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.4rem;
  }
  .product-grid::-webkit-scrollbar { display: none; }

  .product-tile {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }

  .product-tile[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 560px) {
  .coffee-products-section { padding: 6rem 0; }
  .coffee-products-section__inner { width: calc(100% - 3.2rem); }
  .coffee-products__head { margin-bottom: 3.6rem; }
  .product-tile { flex-basis: 44%; }
  .product-tile span { font-size: 1.3rem; }
}
