/* home.css — hero, favorites, category teaser */

/* Locale-specific feature banner */
.locale-banner {
  display: block;
  width: 100%;
  line-height: 0;
}
.locale-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  background: var(--color-bg-alt);
  padding: 4rem 1.5rem;
  text-align: center;
}

/* Hero carousel — single slide visible, auto-advancing. */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-track {
  position: relative;
  aspect-ratio: 25 / 12;
  min-height: 420px;
}
@media (min-width: 834px)  { .hero-track { min-height: 520px; } }
@media (min-width: 1200px) { .hero-track { min-height: 640px; } }

.hero-carousel .hero--product {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero-carousel .hero--product.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dots button.active {
  background: #fff;
  transform: scale(1.4);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Product hero — full-bleed wide photo with overlay caption. */
.hero.hero--product {
  padding: 0;
  background: #000;
  text-align: left;
  overflow: hidden;
  width: 100%;
}

.hero--product .hero-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.hero--product .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.hero--product .hero-link:hover .hero-image { transform: scale(1.02); }

/* Full-image dim overlay with caption anchored on the left. */
.hero--product .hero-panel {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.875rem;
  pointer-events: none;
}
.hero--product .hero-panel > * { max-width: min(42rem, 60%); }
@media (min-width: 834px) {
  .hero--product .hero-panel {
    padding: 3rem 3.5rem;
    background: rgba(0, 0, 0, 0.22);
  }
}
@media (min-width: 1200px) {
  .hero--product .hero-panel {
    padding: 4rem 5rem;
  }
}

.hero--product .hero-eyebrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  max-width: 14rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
@media (min-width: 834px) {
  .hero--product .hero-eyebrow {
    top: 2rem;
    right: 2.5rem;
    font-size: 0.8125rem;
  }
}

.hero--product .hero-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}
@media (min-width: 834px)  { .hero--product .hero-title { font-size: 2.25rem; } }
@media (min-width: 1200px) { .hero--product .hero-title { font-size: 2.75rem; } }

.hero--product .hero-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  font-weight: 300;
  color: #fff;
  margin-top: 0.25rem;
}
.hero--product .hero-cta-label::before {
  content: "›";
  font-size: 1.1em;
  line-height: 1;
}

.hero--product .hero-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
@media (min-width: 834px) {
  .hero { padding: 6rem 2rem; }
}
@media (min-width: 1200px) {
  .hero { padding: 8rem 3rem; }
}

.hero .hero-inner {
  max-width: 60rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
@media (min-width: 834px)  { .hero h1 { font-size: 2.75rem; } }
@media (min-width: 1200px) { .hero h1 { font-size: 3.5rem; } }

.hero p {
  color: var(--color-muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero .hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Section headers */
.home-section {
  padding: 3rem 0.375rem;
}
@media (min-width: 834px)  { .home-section { padding: 4rem 1.5rem; } }
@media (min-width: 1200px) { .home-section { padding: 5rem 3rem; } }

.home-section .section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.home-section .section-head h2 {
  margin-bottom: 0.5rem;
}
.home-section .section-head p {
  color: var(--color-muted);
  font-size: 0.9375rem;
  font-weight: 300;
}

/* Category teaser */
.category-teaser {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem;
}
@media (min-width: 834px) {
  .category-teaser {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.category-teaser .teaser-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.category-teaser .teaser-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.category-teaser .teaser-card:hover img { transform: scale(1.05); }
.category-teaser .teaser-card .teaser-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  text-align: center;
}
