/* ======================== BASE ======================== */
body {
  font-family: "Poppins", sans-serif;
  background-color: #fff9e9;
  color: #3e2b1b;
  margin: 0;
  padding: 0;
}

/* ======================== CONTAINER ======================== */
.container {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 7rem 2rem 0;
}

/* ======================== LAYOUT ======================== */
.product-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
}

/* ======================== BLOCO FOTO PRODUTO ======================== */
.image-box {
  flex: 1;
  background-color: #FFF5D9;
  max-width: 400px;
  height: 510px;
  border-radius: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.image-box img {
  max-width: 400px;
  height: auto;
  transition: transform 0.6s ease, filter 0.5s ease; /* suavidade da animação */
}

.image-box:hover img {
  transform: scale(1.20); /* aumenta 8% ao passar o mouse */
  filter: brightness(1.05); /* leve brilho opcional */
}

/* ======================== TEXTO ======================== */
.text-content {
  flex: 1;
}

.text-content .tag {
  background-color: #fddde5;
  color: #c62855;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.text-content h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  color: #e91e63;
  margin: 0 0 1rem;
}

.text-content p {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  color: #5a4a45;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.text-content .sub-description {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;        /* menor */
  color: #7a6f6a;         /* mais suave */
  line-height: 1.5;
  margin-top: -1rem;      /* opcional, aproxima do texto acima */
  opacity: 0.85;          /* visual mais leve */
}


/* ======================== INFORMAÇÕES IMPORTANTES ======================== */
.nutrition {
  background-color: #fff5d9; /* fundo amarelinho */
  padding: 1.5rem 2rem;
  border-radius: 1.5rem;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Título principal 
.nutrition h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  color: #E91E63;
  margin-bottom: 1.2rem;
  font-weight: 700;
}*/

/* Container dos blocos */
.info-extra {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cada bloco (Alérgicos / Recomendações) */
.info-item {
  border-left: 3px solid #E91E63;
  padding-left: 1rem;
}

/* Label (título pequeno) */
.info-item .label {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  color: #E91E63;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* Texto */
.info-item .value {
  color: #5a4a45;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}


/* ======================== INGREDIENTES ======================== */
.ingredients-section {
  background-color: #fff9e9;
  margin-top: 3rem;
}

.ingredients-section h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  color: #e91e63;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* Ajuste principal: agora usamos grid */
.ingredients-box {
  background-color: #fff5d9;
  border: 1px solid #f3e0a1;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(2, auto); /* duas colunas lado a lado */
  justify-content: left; /* centraliza o conjunto */
  gap: 0.5rem 4rem; /* espaço entre linhas e colunas */
  box-sizing: border-box;
}

.ingredients-box ul {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.2rem;
}

.ingredients-box li {
  font-family: "Poppins", sans-serif;
  color: #4a2d2a;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.ingredients-box li::marker {
  color: #E91E63; /* cor rosa igual aos títulos */
  font-size: 1.1rem;
}

/* ======================== TABELA NUTRICIONAL ======================== */
.nutrition-section {
  background-color: #fff9e9;
  margin-top: 3rem;
}

.nutrition-section h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  color: #e91e63;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.nutrition-table {
  background-color: #fff5d9;
  border: 1px solid #f3e0a1;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
}

.nutrition-header {
  display: flex;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  color: #4a2d2a;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.nutrition-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
}

.nutrition-table th {
  background-color: #FFF9E9;
  color: #4a2d2a;
  font-weight: 700;
  text-align: center;
  padding: 0.8rem;
  border-bottom: 2px solid #4a2d2a;
}

.nutrition-table th.left,
.nutrition-table td.left {
  text-align: left;
}

.nutrition-table td {
  padding: 0.8rem;
  color: #4a2d2a;
  font-size: 0.95rem;
  border-bottom: 1px solid #f3e0a1;
  text-align: center;
}

.nutrition-table tr:nth-child(even) {
  background-color:#FFF9E9 ;
}

.nutrition-table td:nth-child(2) {
  font-weight: 600;
}

.nutrition-table td:nth-child(3) {
  color: #4a2d2a;
  font-weight: 700;
}

.nutrition-footnote {
  font-size: 0.8rem;
  color: #6b4b3a;
  font-family: 'Poppins', sans-serif;
  margin-top: 1rem;
  line-height: 1.4;
}

/* ======================== VER MAIS PRODUTOS ======================== */
.more-products {
  text-align: center;
  margin: 60px 0;
}

.more-products h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.8rem;
  color: #e91e63;
  margin-bottom: 30px;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-slider {
  display: flex;
  gap: 20px;
  overflow: hidden;
}

.product-card {
  background-color: #fff3d9;
  border: 1px solid #ffe7a2;
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  width: 260px;
  min-height: 420px; /* mantém o tamanho base */
  height: auto;      /* permite crescer sem cortar */
  transition: transform 0.3s ease;
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* aumenta a imagem */
.product-card img {
  background: transparent;
  width: 100%;
  height: 320px;
  object-fit: contain;
  margin-bottom: 18px;
}

/* desce o texto */
.product-card p {
  color: #e91e63;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 1px;
  max-width: 100%;
}

.product-card a,
.product-card a:visited,
.product-card a:hover,
.product-card a:active {
  text-decoration: none;
  color: inherit;
}

.slider-btn {
  background: #fff3d9;
  border: 2px solid #ffe7a2;
  color: #e91e63;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.slider-btn:hover {
  background: #ffe7a2;
  transform: scale(1.1);
}

.prev {
  margin-right: 10px;
}

.next {
  margin-left: 10px;
}

/* ========================== RESPONSIVO MOBILE ========================== */
@media (max-width: 768px) {

  /* Container geral */
  .container {
    margin: 1rem auto;
    padding: 6rem 1rem 0;
  }

  /* Layout vira coluna */
  .product-layout {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  /* Foto do produto */
  .image-box {
    max-width: 100%;
    height: auto;
    padding: 2rem;
  }

  .image-box img {
    max-width: 90%;
  }

  /* Texto */
  .text-content h2 {
    font-size: 1.9rem;
  }

  .text-content p {
    font-size: 1.1rem;
    text-align: left;
  }

  .text-content .tag {
    font-size: 1rem;
  }

  .text-content .sub-description{
    font-size: 0.9rem;
  }

  /* Box nutricional */
  .nutrition {
    padding: 1.2rem 1.4rem;
  }

  .info-item .label {
    font-size: 1.1rem;
  }

  .info-item .value {
    font-size: 0.95rem;
  }

  /* Ingredientes – vira 1 coluna */
  .ingredients-box {
    display: block !important;
    padding: 1.5rem 1.2rem;
  }

  /* Faz todas as UL ficarem empilhadas sem espaço entre elas */
  .ingredients-box ul {
    margin: 0;
    padding-left: 1.2rem;
  }

  /* Evita espaço entre as duas UL */
  .ingredients-box ul + ul {
    margin-top: -0.2rem; /* remove o espaço entre colunas que virou linha */
  }

  /* Itens menores e mais compactos */
  .ingredients-box li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
  }

  /* Tabela nutricional */
  .nutrition-table {
    padding: 1.2rem 1rem;
  }

  .nutrition-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
  }

  .nutrition-table th,
  .nutrition-table td {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  /* Texto abaixo da tabela */
  .nutrition-footnote {
    font-size: 0.75rem;
    text-align: center;
  }

  /* "Ver mais produtos" */
  .more-products h3 {
    font-size: 1.4rem;
  }

  /* Slider — UM produto por vez  */
  .product-slider {
    overflow: hidden;
    width: 100%;
  }

  .product-card {
    min-width: 80%;
    margin: 0 auto;
  }

  .product-card img {
    height: 260px;
  }

  /* Botões de navegação menores */
  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .prev {
    margin-right: 5px;
  }

  .next {
    margin-left: 5px;
  }
}
