/* ═══════════════════════════════════════════════════════════
   Featured Products Carousel — one product centred, neighbours
   partially visible and faded either side; full single-product
   view on mobile (see assets/js/home-carousel.js). Shared across
   index.php and all 4 brand pages (aushcool/aushair/aushchill/
   industrial-chillers.php) — load via $extraCss and enqueue
   /assets/js/home-carousel.js via $extraJs; the JS auto-initialises
   every .featured-carousel section on the page.
   ═══════════════════════════════════════════════════════════ */
.featured-carousel {
  position: relative;
  padding-block: var(--space-16) var(--space-20);
  overflow: hidden;
  background: var(--color-bg-light);
}
.featured-carousel__header { text-align: center; margin-bottom: var(--space-10); }
.featured-carousel__viewport { position: relative; overflow: hidden; }
.featured-carousel__track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: calc(50% - 210px);
  padding-block: var(--space-4);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.featured-carousel__track::-webkit-scrollbar { display: none; }
.featured-carousel__slide {
  flex: 0 0 420px;
  scroll-snap-align: center;
  position: relative;
  opacity: .35;
  transform: scale(.9);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.featured-carousel__slide.is-active { opacity: 1; transform: scale(1); }
.featured-carousel__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-white);
}
.featured-carousel__btn {
  display: block;
  width: max-content;
  margin: var(--space-5) auto 0;
  padding: .75rem 2rem;
  background: var(--color-text-dark);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--font-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.featured-carousel__slide:not(.is-active) .featured-carousel__btn { pointer-events: none; opacity: 0; }
.featured-carousel__btn:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.featured-carousel__arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  color: var(--color-text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--duration-fast) var(--ease-out);
}
.featured-carousel__arrow:hover { background: var(--color-accent); }
.featured-carousel__arrow--prev { left: var(--space-6); }
.featured-carousel__arrow--next { right: var(--space-6); }
.featured-carousel__arrow svg { width: 20px; height: 20px; }

@media (max-width: 767.98px) {
  .featured-carousel__track { padding-inline: var(--space-6); gap: var(--space-4); }
  /* Full product view on mobile — no peek/fade, one slide fills the viewport */
  .featured-carousel__slide { flex: 0 0 100%; opacity: 1; transform: none; }
  .featured-carousel__arrow { display: none; }
}
