/* =============================================================================
   MOURN — HOME (section styles). Isolated from global.css/navbar.css/
   footer.css/shop.css/product.css/cart.css/checkout.css/tracking.css.
   Mobile-first. Each section gets its own namespaced block below so future
   sections (Featured Products, Custom Section, ...) can be added here
   without touching this one.
   ========================================================================== */

/* --- Hero (V1.1: multi-slide carousel) --- */

.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero__track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.home-hero__slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.home-hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-hero__image--desktop {
  display: none;
}

.home-hero__image--mobile {
  display: block;
}

.home-hero__placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-neutral-900);
}

.home-hero__placeholder--desktop {
  display: none;
}

.home-hero__placeholder--mobile {
  display: block;
}

.home-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--color-surface);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 60%);
}

.home-hero__title {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-xs);
}

.home-hero__subtitle {
  margin-bottom: var(--space-md);
}

.home-hero__cta {
  align-self: flex-start;
}

.home-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-ink);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__nav--prev {
  left: var(--space-sm);
}

.home-hero__nav--next {
  right: var(--space-sm);
}

.home-hero__dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.home-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: width 0.2s ease, border-radius 0.2s ease, background-color 0.2s ease;
}

.home-hero__dot--active {
  width: 20px;
  border-radius: 4px;
  background-color: var(--color-surface);
}

@media (min-width: 1024px) {
  .home-hero__track {
    aspect-ratio: 16 / 9;
  }

  .home-hero__image--desktop,
  .home-hero__placeholder--desktop {
    display: block;
  }

  .home-hero__image--mobile,
  .home-hero__placeholder--mobile {
    display: none;
  }

  .home-hero__title {
    font-size: var(--font-size-display);
    line-height: var(--line-height-display);
  }

  .home-hero__content {
    padding: var(--space-section) var(--space-xl);
  }
}

/* --- Best Seller --- */

.home-best-seller {
  padding-block: var(--space-xl);
}

.home-best-seller__heading {
  font-size: var(--font-size-heading);
  line-height: var(--line-height-heading);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.home-best-seller__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}

.home-best-seller__footer {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .home-best-seller__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}
