/*
 * Alf Theme — Home Page: Products
 * Figma nodes: 667:7332 (desktop) · 668:8674 (mobile)
 *
 * Beige section: heading + body text, a horizontally-scrolling row of
 * fixed-width product cards (native scroll, no prev/next buttons per
 * Figma — unlike awards.css/news.css), and a "VIEW ALL" button.
 */

/* ═══════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════ */
.products {
  background-color: var(--color-beige);
  padding: var(--section-pad-desktop) var(--section-pad-x);
}

.products__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 88px;
}

.products__header {
  display: flex;
  flex-direction: column;
  gap: 43px;
  align-items: center;
  text-align: center;
  max-width: var(--header-max-width);
}

.products__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  margin: 0;
  line-height: normal;
}

.products__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.products__body p {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-regular);
  color: var(--color-dark);
  margin: 0;
  line-height: normal;
}

.products__body strong {
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
}

/* ═══════════════════════════════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════════════════════════════ */
.products__track {
  display: flex;
  width: 100%;
  gap: 38px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.products__track::-webkit-scrollbar {
  display: none;
}

.products__card {
  flex: 0 0 362px;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 24px 16px;
  background-color: var(--color-dark);
}

.products__card-image {
  flex-shrink: 0;
  width: 100%;
  height: 371px;
  background-color: #f7f7f7;
}

.products__card-image img,
.products__card-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.products__card-image-placeholder {
  background-color: var(--color-grey);
}

.products__card-label {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  text-align: center;
  margin: 0;
  line-height: normal;
}

/* ── CTA ───────────────────────────────────────────────────────────── */
.products__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  max-width: 343px;
  background-color: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  line-height: normal;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.products__cta:hover {
  background-color: #fff;
  transform: translateY(-2px);
}

.products__cta svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤1024px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products {
    padding: var(--section-pad-tab-landscape) 60px;
  }

  .products__wrap {
    gap: 60px;
  }

  .products__card {
    flex: 0 0 300px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤768px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .products {
    padding: var(--spacing-between-sections-mobile) 16px;
  }

  .products__wrap {
    gap: 48px;
  }

  .products__body p {
    font-size: var(--font-size-body-md);
  }

  .products__track {
    gap: 24px;
  }

  .products__card {
    flex: 0 0 260px;
    padding: 24px 16px;
  }

  .products__card-image {
    height: 253px;
  }
}
