/* ==========================================================================
   Green Foods Import — homepage sections
   Reconstructed from the original storefront: hero banner, review line,
   category pills, product sliders/grids, brand logo strip.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO / IMAGE BANNER
   -------------------------------------------------------------------------- */

.hero-banner {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #e9e9e9;
}

.hero-banner__media,
.hero-banner__media img {
  display: block;
  width: 100%;
}

.hero-banner__media img {
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;   /* 1440 x 960 on desktop, matching the original */
}

.hero-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.hero-banner__heading {
  margin: 0 0 1.2rem;
  font-size: clamp(2.6rem, 3.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.hero-banner__text { font-size: 1.7rem; max-width: 60rem; margin: 0 0 2rem; }

/* Slider variant (multiple slides) */
.hero-banner--slider { position: relative; }
.hero-slider__track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}
.hero-slider__slide { flex: 0 0 100%; min-width: 100%; }

.hero-slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 1.8rem;
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-slider__dot {
  width: 1rem; height: 1rem;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.hero-slider__dot.is-active { background: #fff; }

@media screen and (max-width: 749px) {
  .hero-banner__media img { aspect-ratio: 4 / 5; }
}

/* --------------------------------------------------------------------------
   2. REVIEW LINE + CATEGORY PILLS
   -------------------------------------------------------------------------- */

.category-links {
  display: block;
  width: 100%;
  padding: 2rem 0 1.2rem;
  overflow: hidden;
}

.category-links__heading {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(2.2rem, 2.2vw, 3.2rem);
  font-weight: 800;
}

.category-links__heading--small {
  font-size: 1.35rem;
  font-weight: 500;
}

.category-links__viewport {
  width: 100%;
  padding: 0 4.8rem .8rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.category-links__viewport::-webkit-scrollbar { display: none; }

.category-links__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  justify-content: center;
}
.category-links__track li { margin: 0; }

.category-links__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  color: rgb(var(--color-foreground));
  font-size: 1.9rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition), transform var(--transition);
}
.category-links__button:hover {
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  transform: translateY(-.2rem);
  text-decoration: none;
}

.category-links__scrollbar {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: .5rem;
  width: 100%;
  height: 2rem;
  margin-top: .5rem;
  padding: 0 3.2rem;
}
.category-links__scroll-button {
  display: grid;
  place-items: center;
  width: 2.2rem; height: 2rem;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.category-links__scroll-button:disabled { opacity: .35; cursor: default; }
.category-links__scroll-track {
  position: relative;
  width: 100%; height: 1rem;
  border-radius: 1rem;
  background: var(--color-scroll-track);
  cursor: pointer;
}
.category-links__scroll-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 20%;
  min-width: 4rem;
  height: 100%;
  border-radius: inherit;
  background: var(--color-scroll-thumb);
  cursor: grab;
  touch-action: none;
}
.category-links__scroll-thumb:active { cursor: grabbing; }

@media screen and (max-width: 749px) {
  .category-links { padding-top: 1.4rem; }
  .category-links__viewport { padding: 0 1.5rem .6rem; }
  .category-links__track { gap: 1rem; justify-content: flex-start; }
  .category-links__button {
    min-height: 4.8rem;
    padding: 1.1rem 1.4rem;
    border-radius: 1rem;
    font-size: 1.55rem;
  }
  .category-links__scrollbar {
    grid-template-columns: 1.8rem minmax(0, 1fr) 1.8rem;
    gap: .3rem;
    height: 1.6rem;
    padding: 0 1.5rem;
  }
  .category-links__scroll-track { height: .7rem; }
  .category-links__scroll-button { width: 1.8rem; height: 1.6rem; font-size: 2rem; }
}

/* --------------------------------------------------------------------------
   5. BRAND LOGO STRIP
   -------------------------------------------------------------------------- */

.brand-logos { overflow: hidden; margin: 4rem 0 2rem; }

.brand-logos__heading {
  margin: 0 0 2.4rem;
  text-align: center;
  font-weight: 800;
}

.brand-logos__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.brand-logos__viewport::-webkit-scrollbar { display: none; }

.brand-logos__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0 3.2rem;
  list-style: none;
}
.brand-logos__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  height: 7rem;
}
.brand-logos__item img {
  display: block;
  max-width: 16rem;
  max-height: 5.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-logos__fallback { font-size: 1.6rem; font-weight: 800; white-space: nowrap; }

@media screen and (max-width: 749px) {
  .brand-logos__track { justify-content: flex-start; gap: 1.8rem; padding: 0 1.5rem; scroll-snap-type: x mandatory; }
  .brand-logos__item { height: 6rem; scroll-snap-align: start; }
  .brand-logos__item img { max-height: 4.5rem; max-width: 11rem; }
}

/* --------------------------------------------------------------------------
   6. MISC HOME BLOCKS
   -------------------------------------------------------------------------- */

.home-intro {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.2rem 1.5rem;
  text-align: center;
}
.home-intro h2 { font-weight: 800; letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  .product-card__media img,
  .category-links__button,
  .slider-button { transition: none; }
  .product-grid--slider,
  .category-links__viewport { scroll-behavior: auto; }
}
