/* ==========================================================================
   Home (front page only): hero slider + product sections.
   ========================================================================== */
.home { padding-top: var(--sp-4); }
.home__sections { display: grid; gap: var(--sp-5); }
.home__sections > * { margin: 0; min-width: 0; }

/* ---------- Hero slider ---------- */
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-bg-2); }
.hero__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  aspect-ratio: var(--hero-ratio, 1913 / 861);
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { display: block; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }

/* Fade variant: slides stacked, JS toggles .is-active */
.hero--fade .hero__track { grid-auto-flow: row; grid-template-areas: "s"; overflow: hidden; scroll-snap-type: none; }
.hero--fade .hero__slide { grid-area: s; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.hero--fade .hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: none; place-items: center;
  background: rgb(255 255 255 / .85); color: var(--c-text); box-shadow: var(--shadow);
  opacity: 0; transition: opacity .2s;
}
.hero__btn--prev { inset-inline-start: var(--sp-3); }
.hero__btn--next { inset-inline-end: var(--sp-3); }
.hero:hover .hero__btn, .hero__btn:focus-visible { opacity: 1; }
@media (hover: hover) and (min-width: 768px) { .hero__btn { display: grid; } }

.hero__dots {
  position: absolute; z-index: 2; bottom: var(--sp-2); inset-inline: 0;
  display: flex; justify-content: center; gap: 2px;
}
.hero__dot {
  width: 28px; height: 28px; border: 0; padding: 0; background: none; display: grid; place-items: center;
}
.hero__dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgb(255 255 255 / .65);
  box-shadow: 0 0 0 1px rgb(15 23 42 / .15); transition: width .25s var(--ease), background .25s;
}
.hero__dot[aria-current="true"]::before { width: 20px; background: #fff; }
@media (min-width: 768px) { .hero__dots { bottom: var(--sp-3); } }

/* ---------- Product sections ---------- */
.home-products { padding: var(--sp-4); }
.home-products .scroller__track { padding-bottom: var(--sp-1); }
.home-products .scroller__btn--prev { inset-inline-start: -8px; }
.home-products .scroller__btn--next { inset-inline-end: -8px; }
.home-products__grid { --cols: 5; }
@media (min-width: 992px) { .home-products { padding: var(--sp-5); } }
@media (max-width: 767px) {
  .home-products { border-radius: var(--radius); padding: var(--sp-3); }
  .home-products .scroller__track { --per: 2.2; }
}
