/* Produtos v2.85 — Revisão Completa Desktop & Mobile fiel ao Figma */
.products-page {
  background: #FCF8F3;
  color: #241919;
  overflow: hidden;
}
.products-page h1,
.products-page h2,
.products-page h3 {
  font-family: 'DIN Pro', Arial, sans-serif;
}

/* HERO */
.products-hero {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 811;
  position: relative;
  overflow: hidden;
  background: #FCF8F3;
  isolation: isolate;
}
.products-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}
.products-hero-copy {
  position: absolute;
  top: 66%;
  left: 57.8%;
  width: 38%;
  max-width: 600px;
  color: #fff;
  z-index: 2;
}
.products-hero h1 {
  color: #FFCA26;
  font-size: clamp(31px, 2.5vw, 42px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.018em;
}
.products-hero p {
  color: #fff;
  font: 400 clamp(15px, 1.15vw, 18px)/1.42 Rubik, Arial, sans-serif;
  margin: 0;
  max-width: 460px;
}

/* SEÇÃO 1: UMA RECEITA QUE ATRAVESSA GERAÇÕES */
.products-history {
  width: min(1140px, calc(100% - 56px));
  margin: 96px auto 88px;
  display: grid;
  grid-template-columns: 490px 500px;
  justify-content: space-between;
  align-items: center;
  min-height: 505px;
}
.products-history-copy {
  padding-top: 0;
}
.products-history h2 {
  color: #241919;
  font-size: clamp(30px, 2.35vw, 36px);
  line-height: 1.15;
  margin: 0 0 28px;
  max-width: 490px;
}
.products-history p {
  color: #241919;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 22px;
  max-width: 465px;
}
.products-history-art {
  position: relative;
}
.products-history-art img {
  display: block;
  width: 500px;
  height: 505px;
  max-width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

/* SEÇÃO 2: CARROSSEL "UM QUEIJOMAIS PARA CADA MOMENTO" */
.products-moments {
  padding: 20px 0 90px;
  overflow: hidden;
}
.products-heading {
  text-align: center;
  width: min(680px, calc(100% - 36px));
  margin: 0 auto 40px;
}
.products-heading h2 {
  color: #241919;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 30px;
}
.products-heading p {
  color: #241919;
  font-size: 16px;
  line-height: 1.42;
  margin: 0;
}
.products-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 486px;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.products-carousel-track {
  position: relative;
  height: 100%;
  width: 100%;
}
.products-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 390px;
  height: 454px;
  transform: translate(calc(-50% + var(--shift, 0px)), -50%) scale(var(--scale, 1));
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  opacity: var(--opacity, 1);
  z-index: var(--depth, 2);
  pointer-events: var(--pointer, auto);
  cursor: pointer;
}
.products-slide.is-active {
  cursor: default;
}
.products-slide > img {
  width: 100%;
  height: 430px;
  display: block;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: none;
}
.products-slide-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: calc(100% - 20px);
  padding: 11px 38px 11px 18px;
  background: #FFCA26;
  color: #241919;
  border-radius: 9px;
  font: 700 15px 'DIN Pro', Arial, sans-serif;
  z-index: 3;
}
.products-slide-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: -10px;
  width: 26px;
  height: 23px;
  background: url('../assets/produtos-tag-mais.svg') center/contain no-repeat;
}
.products-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #D52518;
  color: #FCF8F3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease;
}
.products-carousel-arrow .material-symbols-rounded {
  font-size: 22px;
  color: #FCF8F3;
}
.products-carousel-arrow:hover {
  background: #b51d12;
}
.products-carousel-prev {
  left: clamp(18px, 5.5vw, 84px);
}
.products-carousel-next {
  right: clamp(18px, 5.5vw, 84px);
}

/* SEÇÕES 3 E 4: CATÁLOGO DE PRODUTOS (PÃES DE QUEIJO E CHIPAS/PALITOS) */
.products-catalog {
  width: min(1140px, calc(100% - 56px));
  margin: 0 auto;
  padding: 20px 0 40px;
}
.products-catalog > .products-heading {
  margin: 0 auto 42px;
}
.products-catalog > .products-heading h2 {
  margin: 0 0 30px;
}
.products-catalog > .products-heading p {
  font-size: 16px;
  line-height: 1.4;
}
.products-catalog > .products-heading--second {
  margin-top: 110px;
  margin-bottom: 42px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.products-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  min-height: 681px;
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
}

/* TOPO DO CARD COM FUNDO OVAL ORGÂNICO (IDÊNTICO AO MODELO) */
.products-card-cover {
  height: 305px;
  flex-shrink: 0;
  background: #FFCA26 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.products-card-cover::before {
  content: "";
  position: absolute;
  left: -24%;
  right: -24%;
  bottom: -118px;
  height: 242px;
  background: #D52518;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.products-card--green .products-card-cover {
  background: #8AC400 !important;
}
.products-card--green .products-card-cover::before {
  background: #19532B;
}
.products-card-cover img {
  width: 176px;
  height: 234px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* CONTEÚDO DOS CARDS DE PRODUTOS */
.products-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.products-card-title {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.products-card-title h3 {
  color: #241919 !important;
  font-family: 'DIN Pro', Arial, sans-serif;
  font-size: 22px !important;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.products-card-badge {
  font: 700 16px/1 'DIN Pro', Arial, sans-serif !important;
  background: #241919;
  color: #FCF8F3;
  border-radius: 7px;
  padding: 6px 11px;
  letter-spacing: 0.02em;
}
.products-card-content > p {
  font: 400 16px/1.36 Rubik, Arial, sans-serif !important;
  color: #241919;
  min-height: 86px;
  margin: 14px 0 18px;
}
.products-card-separator {
  border-bottom: 1px solid #eee;
  margin-bottom: 18px;
}
.products-card-spec {
  margin-bottom: 16px;
}
.products-card-spec strong {
  display: block;
  font: 700 14px Rubik, Arial, sans-serif !important;
  color: #241919;
  margin-bottom: 9px;
}
.products-pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.products-pill-list span {
  min-width: 48px;
  text-align: center;
  background: #FBEDE0 !important;
  color: #241919 !important;
  border-radius: 7px;
  padding: 7px 10px;
  font: 400 14px Rubik, Arial, sans-serif !important;
}
.products-detail-button {
  margin-top: auto;
  border: none;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  color: #FCF8F3 !important;
  background: #D52518 !important;
  cursor: pointer;
  font: 700 15px 'DIN Pro', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.products-card--green .products-detail-button {
  background: #19532B !important;
}
.products-detail-button:hover {
  filter: brightness(0.92);
}

/* SEÇÃO 5: CTA FINAL ("AGORA SÓ FALTA DECIDIR QUAL VAI PARA O FORNO PRIMEIRO") */
.products-final {
  width: min(1140px, calc(100% - 56px));
  margin: 90px auto 110px;
  padding-top: 64px;
}
.products-final-panel {
  min-height: 420px;
  height: 420px;
  border-radius: 30px;
  background-color: #FFCA26 !important;
  background-image: none !important;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible !important;
  isolation: isolate;
}

.products-final-panel::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: url('../assets/elemento-laranja-cheio.svg') no-repeat 42px center / 550px auto !important;
  opacity: 0.14 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.products-final-panel > img {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 7.5%;
  height: 486px;
  width: auto;
  max-width: 38%;
  object-fit: contain;
  object-position: bottom left;
}
.products-final-copy {
  position: relative;
  z-index: 3;
  width: 530px;
  max-width: 50%;
  margin-right: 6%;
  padding: 24px 0;
}
.products-final-copy h2 {
  color: #241919;
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 1.14;
  margin: 0 0 22px;
}
.products-final-copy p {
  color: #241919;
  font-size: 18px !important;
  line-height: 1.36;
  margin: 0 0 18px;
}
.products-final-action {
  margin-top: 6px;
  background: #D52518;
  color: #FCF8F3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  font: 700 16px 'DIN Pro', Arial, sans-serif !important;
}
.products-final-action i,
.products-final-action svg,
.products-final-action .qm-inline-icon {
  font-size: 21px !important;
  width: 21px !important;
  height: 21px !important;
}

.products-detail-dialog {
  max-width: 420px;
  padding: 30px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 15px 50px #0004;
}
.products-detail-dialog::backdrop {
  background: #0008;
}
.products-detail-dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.products-detail-close {
  align-self: flex-end;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
}
.products-dialog-ok {
  background: #D52518;
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 12px;
  cursor: pointer;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* RESPONSIVO TABLET (800px - 1199px) */
@media (min-width: 800px) and (max-width: 1199px) {
  .products-hero-copy {
    left: 56%;
    top: 63%;
    width: 40%;
  }
  .products-history {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 0;
  }
  .products-final-panel {
    height: 400px;
    min-height: 400px;
    background-size: 440px auto !important;
  }
  .products-final-panel > img {
    left: 4%;
    height: 440px;
    max-width: 38%;
  }
  .products-final-copy {
    max-width: 52%;
    margin-right: 4%;
  }
}

/* Esconde os quadradinhos no Desktop */
.products-dots {
  display: none;
}

/* RESPONSIVO MOBILE (<= 799px) */
@media (max-width: 799px) {
  .br-desktop {
    display: none !important;
  }

  /* 1. HERO MOBILE: degradê escuro azulado abaixo dos textos */
  html body .products-hero {
    min-height: 540px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    border-radius: 0 0 50% 50% / 0 0 28px 28px !important;
    overflow: hidden !important;
    position: relative !important;
  }
  html body .products-hero-image {
    height: 540px !important;
    object-fit: cover !important;
    object-position: 45% center !important;
    mix-blend-mode: normal !important;
  }
  html body .products-hero::after,
  html body.products-page-qm .qm-prod-hero::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 35% 0 0 0 !important;
    background: linear-gradient(180deg, rgba(14, 23, 38, 0) 0%, rgba(14, 23, 38, 0.377) 48%, rgba(14, 23, 38, 0.98) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }
  html body .products-hero-copy {
    left: 20px !important;
    right: 20px !important;
    bottom: 36px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    z-index: 2 !important;
  }
  html body .products-hero h1 {
    font-size: clamp(28px, 7.2vw, 35px) !important;
    line-height: 1.08 !important;
    margin-bottom: 12px !important;
  }
  html body .products-hero p {
    font-size: 15px !important;
    line-height: 1.38 !important;
  }

  /* 2. TODOS OS TÍTULOS DE SEÇÃO NA COR #D52518 NO MOBILE */
  html body .products-history h2,
  html body.products-page-qm .qm-prod-tradition h2,
  html body .products-moments h2,
  html body.products-page-qm .qm-prod-moments h2,
  html body .products-catalog .products-heading h2,
  html body.products-page-qm .qm-prod-catalog h2 {
    color: #D52518 !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  /* 3. SEÇÃO 1: IMAGEM DA MONTANHA OCUPANDO 100% DA LARGURA DA TELA */
  html body .products-history {
    display: flex !important;
    flex-direction: column !important;
    margin: 56px auto 0 !important;
    gap: 24px !important;
    min-height: 0 !important;
  }
  html body .products-history-art {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  html body .products-history-art picture,
  html body .products-history-art img {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    object-fit: cover !important;
  }

  /* 4. QUADRADINHOS DE NAVEGAÇÃO DOS CARROSSEIS */
  html body .products-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 18px auto 8px !important;
  }
  html body .products-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 2px !important;
    border: 0 !important;
    padding: 0 !important;
    background: #D52518 !important;
    opacity: 0.28 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
  }
  html body .products-dot.is-active {
    opacity: 1 !important;
  }

  /* 5. SEÇÃO 2 (UM QUEIJOMAIS PARA CADA MOMENTO): SEM SETAS E 1 CARD POR VEZ */
  html body .products-moments,
  html body.products-page-qm .qm-prod-moments {
    padding: 48px 0 40px !important;
  }
  html body .products-carousel-arrow,
  html body .qm-moments-arrow {
    display: none !important;
  }
  html body .qm-moments-stage {
    padding-bottom: 24px !important;
  }
  html body .qm-moment-card.is-center {
    width: calc(100vw - 36px) !important;
    max-width: 350px !important;
    height: 370px !important;
  }

  /* 6. SEÇÕES 3 E 4 (PÃES DE QUEIJO / CHIPAS E PALITOS): CARROSSEL 1 POR VEZ */
  html body .products-catalog {
    width: calc(100% - 32px) !important;
    padding-bottom: 24px !important;
  }
  html body .products-catalog > .products-heading {
    margin-bottom: 28px !important;
  }
  html body .products-catalog > .products-heading--second {
    margin-top: 56px !important;
    margin-bottom: 28px !important;
  }
  html body .products-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  html body .products-grid::-webkit-scrollbar {
    display: none !important;
  }
  html body .products-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center !important;
    min-height: 0 !important;
  }

  /* 7. ÚLTIMA SEÇÃO: TODO O TEXTO BRANCO, SEM FUNCIONÁRIO E "+" NO TOPO ESQUERDO */
  html body .products-final {
    padding-top: 0 !important;
    margin: 48px auto 72px !important;
    width: calc(100% - 32px) !important;
  }
  html body .products-final-panel,
  html body.products-page-qm .qm-prod-cta-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 36px 26px 38px !important;
    border-radius: 26px !important;
    overflow: hidden !important;
  }
  html body .products-final-panel > img.qm-prod-cta-person,
  html body .products-final-panel > img:not(.qm-prod-cta-plus-bg) {
    display: none !important;
  }
  html body .products-final-panel > img.qm-prod-cta-plus-bg {
    display: block !important;
    position: absolute !important;
    left: -24px !important;
    top: 10px !important;
    bottom: auto !important;
    width: 260px !important;
    height: auto !important;
    opacity: 0.16 !important;
    z-index: 0 !important;
  }
  html body .products-final-panel::before {
    background-position: -24px 10px !important;
    background-size: 260px auto !important;
    opacity: 0.16 !important;
  }
  html body .products-final-copy,
  html body.products-page-qm .qm-prod-cta-card > div.products-final-copy {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  html body .products-final-copy h2,
  html body.products-page-qm .qm-prod-final-cta h2 {
    color: #FFFFFF !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
    margin-bottom: 18px !important;
  }
  html body .products-final-copy p,
  html body.products-page-qm .qm-prod-final-cta p {
    color: #FFFFFF !important;
    font-size: 16px !important;
    line-height: 1.38 !important;
    margin-bottom: 16px !important;
  }
  html body .products-final-action,
  html body.products-page-qm .qm-prod-final-cta a.products-final-action {
    align-self: center !important;
    margin: 14px auto 0 !important;
  }
}