/* =========================
   Home Hero Section
   ========================= */
.home-hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0;
}

.home-hero-main-heading {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.home-hero-supporting-text {
  max-width: 640px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.home-hero-product-slideshow {
  position: relative;
  min-height: 360px;
  margin: 0;
  border: 2px solid #d8d8d8;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f4f4f4 100%);
}

.home-hero-product-slideshow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  object-fit: contain;
  animation: home-hero-product-slideshow-fade 35s infinite;
}

.home-hero-product-slideshow-image:nth-child(1) {
  animation-delay: 0s;
}

.home-hero-product-slideshow-image:nth-child(2) {
  animation-delay: 5s;
}

.home-hero-product-slideshow-image:nth-child(3) {
  animation-delay: 10s;
}

.home-hero-product-slideshow-image:nth-child(4) {
  animation-delay: 15s;
}

.home-hero-product-slideshow-image:nth-child(5) {
  animation-delay: 20s;
}

.home-hero-product-slideshow-image:nth-child(6) {
  animation-delay: 25s;
}

.home-hero-product-slideshow-image:nth-child(7) {
  animation-delay: 30s;
}

@keyframes home-hero-product-slideshow-fade {
  0% {
    opacity: 1;
    visibility: visible;
  }

  13.4% {
    opacity: 1;
    visibility: visible;
  }

  14.3% {
    opacity: 0;
    visibility: hidden;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* =========================
   Home Best Sellers
   ========================= */
.home-best-sellers-section {
  padding-bottom: 72px;
}

.home-best-sellers-heading {
  max-width: 720px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--color-red);
}

.home-best-sellers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.home-best-seller-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border-top: 4px solid var(--color-red);
}

.home-best-seller-card-image {
  width: 100%;
  height: 220px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-light);
  object-fit: contain;
}

.home-best-seller-card-title {
  margin: 0;
  color: var(--color-red);
}

.home-best-seller-card-description {
  color: var(--color-muted);
  margin-bottom: 8px;
}

.home-best-seller-card .primary-action-button {
  justify-self: start;
}

/* =========================
   Home Responsive Styles
   ========================= */
@media (max-width: 1180px) {
  .home-hero-section {
    grid-template-columns: 1fr 0.95fr;
    gap: 28px;
    padding: 56px 0;
  }

  .home-hero-main-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }

  .home-hero-product-slideshow {
    min-height: 320px;
  }
}

@media (max-width: 980px) {
  .home-hero-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .home-hero-section,
  .home-best-sellers-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-section {
    padding: 48px 0;
  }
}

@media (max-width: 640px) {
  .home-hero-section {
    gap: 28px;
    padding: 36px 0 48px;
  }

  .home-hero-main-heading {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.18;
  }

  .home-hero-supporting-text {
    font-size: 0.98rem;
  }

  .home-hero-product-slideshow {
    min-height: 260px;
  }

  .home-hero-product-slideshow-image {
    padding: 18px;
  }

  .home-best-sellers-grid {
    gap: 14px;
  }

  .home-best-seller-card-title {
    font-size: 1.2rem;
  }

  .home-best-seller-card-image {
    height: 190px;
  }

  .home-best-sellers-section {
    padding-bottom: 52px;
  }

}
