/* =========================================================
   SECTION — Product listing (docs/sections/product-listing.md)
   Card styles: css/components/tour-card.css
   ========================================================= */

.product-listing {
  padding: 35px 0;
  background: var(--color-white);
}

.product-listing__inner {
  max-width: 1272px;   /* 4 × 306 cards + 3 × 16 gaps */
  margin-inline: auto;
}

/* ---------- Header ---------- */
.product-listing__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.product-listing__title {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-black);
}
.product-listing__text {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
  color: var(--color-slate);
}
.product-listing__more { flex: 0 0 auto; }

/* ---------- Carousel: one card per step ---------- */
.product-carousel {
  --pc-visible: 4;
  --pc-gap: 16px;
  /* Extra clip room so the hover lift/shadow isn't cut off. 12px < gap, so neighbours don't peek. */
  margin: 0 -12px;
  padding: 12px 12px 28px;
  overflow: hidden;
}

.product-carousel__track {
  display: flex;
  gap: var(--pc-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-carousel__track.is-animating { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }

.product-carousel__item {
  flex: 0 0 calc((100% - (var(--pc-visible) - 1) * var(--pc-gap)) / var(--pc-visible));
  min-width: 0;
}

/* ---------- Responsive ---------- */
/* 4 cards get too narrow for the longest product names below 1320px */
@media (max-width: 1319.98px) {
  .product-carousel { --pc-visible: 3; }
}
@media (max-width: 991.98px) {
  .product-carousel { --pc-visible: 3; --pc-gap: 12px; }  /* compact cards: css/components/tour-card.css */
}
@media (max-width: 767.98px) {
  .product-listing { padding: 28px 0; }
  .product-listing__header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .product-listing__title { font-size: 28px; line-height: 34px; }
  .product-listing__text { font-size: 16px; }
  .product-carousel { --pc-visible: 2; --pc-gap: 10px; }
}

/* Reduced motion: no autoplay; swipe/scroll manually */
@media (prefers-reduced-motion: reduce) {
  .product-carousel { overflow-x: auto; }
  .product-carousel__track.is-animating { transition: none; }
}
