/* Ajustes responsivos finais — carregados depois do CSS principal para evitar conflitos. */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas {
  max-width: 100%;
}

/* Header: antecipa o menu hambúrguer em tablets para evitar compressão dos links. */
@media (max-width: 920px) {
  html body .header {
    height: 76px !important;
    padding: 0 24px !important;
  }

  html body .menu-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    border: 0 !important;
    background: transparent !important;
    color: #522d38 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
  }

  html body .header nav {
    display: none !important;
    position: absolute !important;
    top: 76px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    background: rgba(255, 253, 250, .98) !important;
    border-bottom: 1px solid rgba(157, 49, 90, .14) !important;
    box-shadow: 0 22px 42px rgba(82, 45, 56, .16) !important;
  }

  html body .header nav.open {
    display: flex !important;
  }

  html body .header .nav-cta {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 700px) {
  html body .header {
    height: 68px !important;
    padding: 0 20px !important;
  }

  html body .header nav {
    top: 68px !important;
  }

  html body .brand {
    font-size: 22px !important;
  }
}

/* HERO: reduz conflito visual no mobile e mantém o vídeo com bom enquadramento. */
html body .hero--cinematic .hero-side-note {
  display: none !important;
}

/* Faixa de confiança: painel premium em mobile, com leitura clara e composição editorial. */
@media (max-width: 620px) {
  html body .trust.trust--immersive {
    min-height: auto !important;
    padding: 34px 20px 40px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
    background:
      radial-gradient(circle at 85% 8%, rgba(237, 192, 184, .18), transparent 32%),
      linear-gradient(145deg, #44202e 0%, #673246 58%, #4a2230 100%) !important;
  }

  html body .trust.trust--immersive:before {
    background:
      linear-gradient(180deg, rgba(255, 248, 246, .08), transparent 38%),
      linear-gradient(90deg, transparent, rgba(244, 212, 206, .08), transparent) !important;
  }

  html body .trust.trust--immersive .trust-canvas {
    opacity: .22 !important;
  }

  html body .trust.trust--immersive .trust-label {
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    padding: 8px 11px !important;
    border: 1px solid rgba(244, 212, 206, .22) !important;
    border-radius: 999px !important;
    background: rgba(255, 248, 246, .06) !important;
    color: #f4d4ce !important;
    font-size: 9px !important;
    line-height: 1 !important;
    letter-spacing: 2.1px !important;
  }

  html body .trust.trust--immersive .trust-item {
    min-height: 112px !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(64px, 72px) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 18px !important;
    row-gap: 7px !important;
    align-items: center !important;
    padding: 20px 18px !important;
    border: 1px solid rgba(244, 212, 206, .16) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255, 248, 246, .08), rgba(255, 248, 246, .025)) !important;
    box-shadow: 0 18px 36px rgba(27, 11, 18, .12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  html body .trust.trust--immersive .trust-item b {
    grid-row: 1 / 3 !important;
    align-self: center !important;
    justify-self: start !important;
    width: auto !important;
    margin: 0 !important;
    color: #f2c2ba !important;
    font-size: clamp(52px, 15vw, 68px) !important;
    line-height: .78 !important;
    letter-spacing: -.08em !important;
  }

  html body .trust.trust--immersive .trust-item span {
    grid-column: 2 !important;
    align-self: end !important;
    max-width: 190px !important;
    color: rgba(255, 248, 246, .94) !important;
    font-size: clamp(17px, 4.6vw, 21px) !important;
    line-height: 1 !important;
    letter-spacing: -.03em !important;
  }

  html body .trust.trust--immersive .trust-item i {
    grid-column: 2 !important;
    align-self: start !important;
    margin: 0 !important;
    max-width: 190px !important;
    color: #efbeb6 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  html body .trust.trust--immersive .trust-note {
    position: static !important;
    margin: 8px 0 0 !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    color: rgba(244, 212, 206, .74) !important;
    font-size: 9px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 380px) {
  html body .trust.trust--immersive {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  html body .trust.trust--immersive .trust-item {
    min-height: 104px !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    padding: 18px 15px !important;
  }

  html body .trust.trust--immersive .trust-item b {
    font-size: 52px !important;
  }

  html body .trust.trust--immersive .trust-item span {
    font-size: 16px !important;
  }
}

@media (max-width: 900px) {
  html body main#conteudo section.hero.hero--cinematic {
    min-height: clamp(720px, 92svh, 900px) !important;
    padding-top: 92px !important;
    padding-bottom: 118px !important;
  }

  html body main#conteudo section.hero.hero--cinematic .hero-copy {
    left: 24px !important;
    right: 24px !important;
    bottom: clamp(96px, 13vh, 132px) !important;
    max-width: min(620px, calc(100vw - 48px)) !important;
  }
}

@media (max-width: 520px) {
  html body main#conteudo section.hero.hero--cinematic {
    min-height: clamp(680px, 88svh, 790px) !important;
    padding-top: 82px !important;
    padding-bottom: 110px !important;
  }

  html body .hero--cinematic h1 {
    font-size: clamp(48px, 14vw, 66px) !important;
    line-height: .9 !important;
    letter-spacing: -3px !important;
  }

  html body .hero--cinematic .lead {
    max-width: 320px !important;
    font-size: 14px !important;
  }

  html body .hero--cinematic .actions .button {
    width: 100% !important;
    max-width: 280px !important;
  }
}

/* Sobre: melhora a composição das imagens no celular sem remover o conceito visual. */
@media (max-width: 620px) {
  html body #sobre.about-premium {
    padding-top: 82px !important;
    padding-bottom: 82px !important;
  }

  html body #sobre.about-premium .about-photos {
    min-height: 560px !important;
    margin-bottom: 26px !important;
  }

  html body #sobre.about-premium .about-main-photo {
    width: 86% !important;
    height: 430px !important;
  }

  html body #sobre.about-premium .about-detail-photo {
    width: 40% !important;
    top: 250px !important;
    right: 0 !important;
  }

  html body #sobre.about-premium .quote-card {
    max-width: 86% !important;
    bottom: 0 !important;
    right: 0 !important;
    padding: 20px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 420px) {
  html body #sobre.about-premium .about-photos {
    min-height: 590px !important;
  }

  html body #sobre.about-premium .about-detail-photo {
    width: 46% !important;
    top: 275px !important;
  }

  html body #sobre.about-premium .quote-card {
    max-width: 92% !important;
  }
}

/* Produtos: cosméticos devem aparecer inteiros, sem cortes agressivos. */
html body .best-product-card figure {
  background: #fff !important;
}

html body .best-product-card figure img {
  object-fit: contain !important;
  object-position: center !important;
}

html body .best-product-card .best-product-info {
  display: grid !important;
  gap: 10px !important;
}

html body .best-product-card .best-product-rating {
  max-width: none !important;
  color: #a93061 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html body .best-product-card .best-product-rating b {
  color: #512d37 !important;
  font-weight: 800 !important;
}

html body .best-product-card .best-product-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: 8px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(81, 45, 55, .14) !important;
}

html body .best-product-card .best-product-price {
  color: #512d37 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
  white-space: nowrap !important;
}

html body .best-product-card .best-product-link {
  color: #9d315a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html body .best-product-card .best-product-link span {
  display: inline-block !important;
  margin-left: 6px !important;
  transition: transform .25s ease !important;
}

html body .best-product-card .best-product-link:hover span,
html body .best-product-card .best-product-link:focus-visible span {
  transform: translate(3px, -3px) !important;
}

@media (max-width: 700px) {
  html body .best-products {
    display: block !important;
    overflow: hidden !important;
  }

  html body .best-products-head {
    max-width: none !important;
    margin-bottom: 34px !important;
  }

  html body .best-products-stage {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 0 76px !important;
    margin: 0 !important;
  }

  html body .best-products-track {
    gap: 14px !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  html body .best-product-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 16px !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  html body .best-product-card:not(.is-current) {
    opacity: .28 !important;
    transform: none !important;
    filter: saturate(.72) !important;
  }

  html body .best-product-card > span {
    display: block !important;
    margin-bottom: 14px !important;
    font-size: 10px !important;
    letter-spacing: 1.45px !important;
  }

  html body .best-product-card figure {
    width: 100% !important;
    height: clamp(250px, 68vw, 330px) !important;
    margin: 0 0 18px !important;
    padding: 14px !important;
    overflow: hidden !important;
  }

  html body .best-product-card figure img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }

  html body .best-product-card.is-current figure img {
    transform: none !important;
  }

  html body .best-product-card h3 {
    margin: 0 0 10px !important;
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.02 !important;
    letter-spacing: -1.2px !important;
  }

  html body .best-product-card p {
    max-width: 290px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  html body .best-product-card .best-product-rating {
    max-width: none !important;
    font-size: 9px !important;
  }

  html body .best-product-card .best-product-footer {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  html body .best-product-card .best-product-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(157, 49, 90, .35) !important;
  }

  html body .best-products-controls {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-columns: 42px auto 42px 1fr !important;
    gap: 12px !important;
    align-items: center !important;
  }

  html body .best-products-controls:after {
    display: block !important;
    min-width: 0 !important;
  }

  html body .best-products-controls button {
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
  }

  html body .best-products-controls p {
    margin: 0 !important;
    min-width: 48px !important;
    text-align: center !important;
  }
}

@media (max-width: 560px) {
  html body .best-products {
    padding-top: 82px !important;
    padding-bottom: 86px !important;
  }

  html body .best-products-head .button {
    width: 100% !important;
    max-width: 320px !important;
  }

  html body .best-product-card {
    flex-basis: 100% !important;
    width: 100% !important;
    min-height: 430px !important;
  }

  html body .best-product-card figure {
    height: clamp(240px, 66vw, 310px) !important;
  }
}

/* Atendimento: mantém cards legíveis em colunas menores. */
@media (max-width: 620px) {
  html body .process.process--interactive {
    padding-top: 82px !important;
    padding-bottom: 82px !important;
  }

  html body .process.process--interactive .section-heading {
    padding-bottom: 26px !important;
  }

  html body .process.process--interactive .process-intro {
    padding-left: 16px !important;
    margin-top: 18px !important;
  }
}

/* Instagram: CTAs confortáveis e carrossel sem estouro horizontal. */
@media (max-width: 620px) {
  html body #instagram.instagram-lab {
    padding-top: 82px !important;
    padding-bottom: 92px !important;
    overflow: hidden !important;
  }

  html body .instagram-actions {
    width: 100% !important;
    gap: 12px !important;
  }

  html body .instagram-actions .button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 52px !important;
  }

  html body #instagram.instagram-lab .instagram-stage {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin: 8px 0 0 !important;
    padding: 0 0 78px !important;
  }

  html body #instagram.instagram-lab .instagram-track {
    gap: 14px !important;
    align-items: stretch !important;
    padding: 0 !important;
  }

  html body #instagram.instagram-lab .instagram-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5.65 !important;
    border-radius: 8px !important;
    transform: none !important;
  }

  html body #instagram.instagram-lab .instagram-card:not(.is-active) {
    opacity: .28 !important;
    transform: none !important;
    filter: saturate(.72) !important;
  }

  html body #instagram.instagram-lab .instagram-card img {
    object-fit: cover !important;
    object-position: center 24% !important;
    transform: none !important;
  }

  html body #instagram.instagram-lab .instagram-card.is-active img {
    transform: none !important;
  }

  html body #instagram.instagram-lab .instagram-card div {
    min-height: clamp(150px, 39vw, 180px) !important;
    padding: 20px !important;
  }

  html body #instagram.instagram-lab .instagram-card h3 {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.02 !important;
  }

  html body #instagram.instagram-lab .instagram-card p {
    max-width: 290px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  html body #instagram.instagram-lab .instagram-controls {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-columns: 42px auto 42px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding-right: 64px !important;
  }

  html body #instagram.instagram-lab .instagram-controls:after {
    min-width: 0 !important;
  }

  html body #instagram.instagram-lab .instagram-controls button {
    width: 42px !important;
    height: 42px !important;
  }

  html body #instagram.instagram-lab .instagram-controls p {
    margin: 0 !important;
    min-width: 48px !important;
    text-align: center !important;
  }
}

@media (max-width: 380px) {
  html body #instagram.instagram-lab .instagram-card {
    aspect-ratio: 4 / 5.9 !important;
  }

  html body #instagram.instagram-lab .instagram-card div {
    min-height: 165px !important;
    padding: 18px !important;
  }

  html body #instagram.instagram-lab .instagram-controls {
    padding-right: 58px !important;
  }
}

/* Rodapé e cookies: evita sobreposição com WhatsApp no mobile. */
@media (max-width: 700px) {
  html body .cookie-banner:not(.hidden) ~ .floating-whatsapp,
  html body:has(.cookie-banner:not(.hidden)) .floating-whatsapp {
    bottom: 118px !important;
  }

  html body .cookie-banner {
    right: 10px !important;
    left: 10px !important;
    padding: 14px !important;
  }
}

/* Mobile: reduz carga visual dos canvases decorativos; o conteúdo permanece intacto. */
@media (max-width: 767px) {
  html body .three-canvas,
  html body .trust-canvas,
  html body .about-canvas,
  html body .best-products-canvas,
  html body .process-canvas,
  html body .instagram-canvas,
  html body .footer-canvas {
    opacity: .18 !important;
  }
}
