/* Estilos exclusivos da página inicial. */

/* Banner principal com conteúdo rastreável em HTML. */
.home-hero-carousel {
  position: relative;
  min-height: min(680px, 62vw);
  overflow: hidden;
  background: #f5eadf;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s ease;
}

.home-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Preserva o enquadramento atual em tablets e notebooks estreitos. */
@media (min-width: 981px) and (max-width: 1199px) {
  .home-hero-slide:first-of-type .shop-hero-image {
    object-fit: contain;
  }
}

/* Preenche telas largas com o panorama 4:1 sem cortar os produtos. */
@media (min-width: 1200px) {
  .home-hero-slide:first-of-type .shop-hero-image {
    object-fit: cover;
    object-position: right center;
  }
}

.home-hero-slide .shop-hero-content h1,
.home-hero-slide .shop-hero-content h2 {
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 2.9vw, 3rem);
}

.home-hero-slide .shop-hero-content h1 { max-width: 640px; }
.home-hero-slide .shop-hero-content h2 { max-width: 680px; }

/* Todos os slides seguem a configuração aprovada no primeiro banner. */
.home-hero-slide .shop-hero-content > .eyebrow,
.home-hero-slide .shop-hero-content > h1,
.home-hero-slide .shop-hero-content > h2,
.home-hero-slide .shop-hero-content > p:not(.eyebrow) {
  transform: translateY(-92px);
}

@media (max-width: 1199px) {
  .home-hero-slide .shop-hero-content > .eyebrow,
  .home-hero-slide .shop-hero-content > h1,
  .home-hero-slide .shop-hero-content > h2,
  .home-hero-slide .shop-hero-content > p:not(.eyebrow) {
    transform: translateY(-64px);
  }
}

.home-hero-controls {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  display: none;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(21, 23, 25, .12);
  border-radius: 999px;
  background: rgba(255, 253, 249, .82);
  box-shadow: 0 8px 22px rgba(21, 23, 25, .08);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.home-hero-carousel.is-ready .home-hero-controls { display: flex; }

.home-hero-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.home-hero-controls button span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(21, 23, 25, .35);
  transition: width .2s ease, background .2s ease;
}

.home-hero-controls button.is-active span {
  width: 22px;
  border-radius: 999px;
  background: var(--ink);
}

.home-hero-controls button:focus-visible {
  outline: 3px solid #d6b797;
  outline-offset: 2px;
}

/* Títulos editoriais das seções; títulos dentro dos banners não são alterados. */
.shop-heading h2 {
  font-size: clamp(30px, 3vw, 40px);
}

/* Dois caminhos de compra: atendimento comercial e cuidados em casa. */
.audience-paths-section {
  padding: 86px 0;
  background: #fff;
}

.audience-paths-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.audience-paths-heading h2 {
  max-width: 680px;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.audience-paths-heading > p {
  max-width: 470px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.audience-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.audience-path-card {
  display: grid;
  grid-template-columns: minmax(180px, 42%) minmax(0, 58%);
  min-height: 382px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbf7f2;
  box-shadow: 0 16px 40px rgba(48, 33, 41, .06);
}

.audience-path-card__media {
  min-height: 100%;
  overflow: hidden;
  background: #f2e7dc;
}

.audience-path-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
  transition: transform .35s ease;
}

.audience-path-card--home .audience-path-card__media img { object-position: 79% center; }
.audience-path-card:hover .audience-path-card__media img { transform: scale(1.025); }

.audience-path-card__content {
  display: flex;
  min-width: 0;
  padding: 32px 30px;
  flex-direction: column;
  align-items: flex-start;
}

.audience-path-card__kicker {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.audience-path-card h3 {
  margin: 0 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.audience-path-card__content > p:not(.audience-path-card__kicker) {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.audience-path-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.audience-path-card li {
  position: relative;
  padding-left: 22px;
  color: #51444a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.audience-path-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rose);
  font-weight: 900;
}

.audience-path-card__button {
  min-height: 44px;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid var(--rose);
  color: var(--rose-dark);
  background: #fff;
  font-size: 12px;
  gap: 10px;
}

.audience-path-card__button:hover {
  color: #fff;
  background: var(--rose-dark);
  box-shadow: 0 12px 24px rgba(123, 41, 72, .16);
}

.audience-path-card__button:focus-visible {
  outline: 3px solid #d6b797;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .home-hero-carousel { min-height: 640px; }
  /*
   * Sistema responsivo dos banners: a imagem ocupa uma faixa própria no topo
   * e o conteúdo permanece sobre a superfície clara, sem disputar espaço com
   * o produto ou a modelo. O desktop aprovado começa em 981 px e não muda.
   */
  .home-hero-slide .shop-hero-image {
    height: 45%;
    object-fit: cover;
    object-position: 64% top;
  }
  .home-hero-slide::after {
    background: linear-gradient(0deg, #fffaf4 0%, #fffaf4 46%, rgba(255,250,244,.94) 55%, rgba(255,250,244,.2) 72%, transparent 100%);
  }
  .home-hero-slide .shop-hero-content > .eyebrow,
  .home-hero-slide .shop-hero-content > h1,
  .home-hero-slide .shop-hero-content > h2,
  .home-hero-slide .shop-hero-content > p:not(.eyebrow) {
    transform: none;
  }
  .audience-paths-grid { grid-template-columns: 1fr; }
  .audience-path-card { grid-template-columns: minmax(240px, 42%) minmax(0, 58%); }
}

@media (max-width: 640px) {
  .home-hero-carousel { min-height: 700px; }
  .home-hero-slide .shop-hero-image { height: 36%; }
  .home-hero-slide .shop-hero-content h1,
  .home-hero-slide .shop-hero-content h2 {
    max-width: 460px;
    font-size: 1.425rem;
  }
  .shop-hero-content > p:not(.eyebrow) { font-size: 15px; }
  .home-hero-controls { top: 10px; }

  .shop-heading h2 { font-size: 30px; }

  .audience-paths-section { padding: 62px 0; }
  .audience-paths-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 26px;
  }
  .audience-paths-heading h2 { font-size: 30px; }
  .audience-paths-heading > p { font-size: 14px; }
  .audience-path-card {
    display: block;
    min-height: 0;
    border-radius: 18px;
  }
  .audience-path-card__media { height: 205px; min-height: 0; }
  .audience-path-card__content { padding: 27px 24px 25px; }
  .audience-path-card h3 { font-size: 25px; }
  .audience-path-card__content > p:not(.audience-path-card__kicker) { font-size: 14px; }
  .audience-path-card li { font-size: 13px; }
  .audience-path-card__button { width: 100%; font-size: 14px; }

  .trust-grid strong { font-size: 14px; line-height: 1.4; }
  .trust-grid small { font-size: 12px; line-height: 1.5; }

  .shop-heading > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
    font-size: 14px;
  }

  .visual-category p { font-size: 13px; line-height: 1.5; }
  .visual-category a { width: 44px; height: 44px; right: 10px; bottom: 12px; }

  .product-badge { font-size: 11px; line-height: 1.4; }
  .product-category { font-size: 12px; line-height: 1.5; }
  .product-preview-card h3 {
    min-height: 60px;
    font-size: 14px;
    line-height: 1.42;
  }
  .product-price { font-size: 16px; line-height: 1.4; }
  .product-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.4;
  }

  .campaign-card p:not(.eyebrow) { font-size: 14px; line-height: 1.55; }
  .campaign-card .button { min-height: 44px; font-size: 14px; line-height: 1.4; }
}

/* Reserve space for the fixed mobile navigation without covering hero CTAs. */
@media (max-width: 1024px) {
  /* 70px measured bar + 12px visual gap + 90px worst mobile fold reserve. */
  .shop-hero-content { padding-bottom: calc(172px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slide { transition: none; }
}
