/* ==========================================================================
   Bloomy — Homepage Styles
   Loads after style.css. Sections in page order: hero, category quick-nav,
   featured products, features ("Vì sao chọn Bloomy"), testimonials, footer.
   ========================================================================== */

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-block: 64px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Two overlays, matching what the real mockup uses (confirmed via
   DevTools) — a left-to-right fade so the text sits on solid background,
   plus a subtle top/bottom vignette on the photo itself. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__scrim--horizontal {
  background: linear-gradient(
    to right,
    hsl(var(--background) / 0.85) 0%,
    hsl(var(--background) / 0.4) 50%,
    hsl(var(--background) / 0) 100%
  );
}

.hero__scrim--vertical {
  background: linear-gradient(
    to top,
    hsl(var(--background) / 0.6) 0%,
    hsl(var(--background) / 0) 50%,
    hsl(var(--background) / 0.2) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: hsl(var(--primary));
  margin-bottom: 24px;
}

.hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: hsl(var(--primary));
}

.hero__heading {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero__heading em {
  color: hsl(var(--primary));
  font-style: italic;
}

.hero__lead {
  font-size: 1.05rem;
  color: hsl(var(--muted-foreground));
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 24px;
}

.hero__stat {
  padding-right: 24px;
  border-right: 1px solid hsl(var(--border));
}

.hero__stat:last-child {
  border-right: none;
  padding-right: 0;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.hero__scroll-cue {
  display: none; /* re-shown on desktop below; simplest to opt in than override */
}

@media (min-width: 901px) {
  .hero__scroll-cue {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
  }

  .hero__scroll-cue::after {
    content: "";
    width: 1px;
    height: 32px;
    background-color: hsl(var(--border));
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 600px;
  }

  /* Full-width heavier fade instead of the desktop left-to-right one —
     at this width the text column spans the whole viewport, so the whole
     photo needs subduing, not just its left half. */
  .hero__scrim--horizontal {
    background: hsl(var(--background) / 0.9);
  }

  .hero__content {
    max-width: none;
  }

  .hero__heading {
    font-size: 2.25rem;
  }

  .hero__stats {
    flex-wrap: wrap;
    row-gap: 16px;
  }
}

/* ---- Category quick-nav ---- */
.category-nav {
  padding-block: 80px;
  background-color: hsl(var(--secondary));
}

.category-nav__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 84px;
}

.category-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 110px;
}

.category-nav__item img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-nav__item:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 32px 4px hsl(var(--primary) / 0.28);
}

.category-nav__item span {
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.category-nav__item:hover span {
  color: hsl(var(--primary));
}

/* ---- Featured products ---- */
.featured {
  padding-block: 80px;
}

.featured__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.featured__header .section-heading {
  text-align: left;
  margin: 0;
}

.featured__view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
}

.featured__view-all:hover {
  color: hsl(var(--primary));
}

/* .product-grid and .product-card__image / __name / __price now live in
   style.css as shared components — see that file, since Listing reuses
   the same grid layout and cards */

@media (max-width: 900px) {
  .featured__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ---- Features ("Vì sao chọn Bloomy") ---- */
.features {
  background-color: hsl(var(--muted));
  padding-block: 80px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: hsl(var(--background));
  border-radius: var(--radius);
  padding: 32px;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card__title {
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Testimonials ---- */
.testimonials {
  padding-block: 80px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: hsl(var(--muted));
  border-radius: var(--radius);
  padding: 32px;
}

.testimonial-card__stars {
  color: hsl(var(--primary));
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.testimonial-card__quote {
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 900px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}
