:root {
  --rosa: #E75480;
  --rosa-claro: #F07FA0;
  --verde: #02b5b8;
  --verde-claro: #02696b;
  --fundo: #f8f8f8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  justify-content: center;
  background: var(--fundo);
}

/* HEADER */
header {
  /* background: var(--verde); */
  background: #FF6699;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
  /* padding-top: 40px; */
  text-align: center;
}

header nav a {
  color: white;
  text-decoration: none;
  margin: 0 40px;
  font-weight: bold;
}

.nav-menu{
  padding-top: 5px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* LINKS */
.nav-menu a {
  color: white;
  text-decoration: none;
  /* font-weight: 500; */
  position: relative;
  padding: 5px 0;
  transition: 0.3s;
}

/* EFEITO HOVER (linha animada) */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--rosa);
  transition: 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* EFEITO HOVER TEXTO */
.nav-menu a:hover {
  color: #ffe4ec;
  transform: translateY(-2px);
}

/* BANNER PRINCIPAL*/
.banner-principal {
  width: 100%;
  height: 165px;
  color: white;
  animation: fadeBanner 3s ease-in-out;
}

.banner-principal img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
}

/* BANNER CAMPANHA*/

.banner-campanha {
  padding-top: 20px;
  width: 100%;
  height: auto;
  color: white;
  text-align: center;
  animation: fadeBanner 3s ease-in-out;
}

.banner-campanha img {
  width: 90%;
  height: 120px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* CAMPANHA */
.campanha {
  display: flex;                /* ativa flexbox */
  flex-direction: column;       /* coluna para título e texto */
  justify-content: center;      /* centraliza verticalmente */
  align-items: center;          /* centraliza horizontalmente */
  text-align: center;           /* centraliza texto dentro dos elementos */
  padding: 10px 20px;           /* espaço interno */
  background: var(--fundo);/* fundo rosa goiaba claro */
  color: var(--verde);          /* cor do texto */
  border-radius: 12px;          /* cantos arredondados */
  margin: 30px auto;            /* distância externa + centraliza horizontalmente */
  max-width: 900px;             /* largura máxima para centralizar melhor */
}

.campanha h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.campanha p {
  font-size: 18px;
}

#produtos {
  padding: 60px 20px;
  background: var(--fundo);
  text-align: center;
}

#produtos h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--verde);
}

/* CARROSSEL */
.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 20px;
  margin: 0 auto;
  max-width: 720px;
}

.carousel {
  display: flex;
  gap: 20px;
  color: var(--verde-claro);
  transition: transform 0.5s ease;
}

.card {
  min-width: 180px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 { margin: 10px; }
.preco { color: var(--rosa); font-weight: bold; margin: 5px; text-decoration: line-through;}
.preco-promo { color: var(--rosa); font-weight: bold; margin: 5px; }

/* Carrossel campanha  */

.carrossel-campanha-container {
  position: relative;
  display: flex;
  align-items: center;
}

.carrossel-campanha {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.carrossel-campanha::-webkit-scrollbar {
  display: none;
}

/* Cards */
.carrossel-campanha .card {
  min-width: 220px;
  flex-shrink: 0;
}

/* Botões */
.btn-campanha {
  background: var(--rosa);
  color: white;
  border: none;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  z-index: 10;
}

.prev-campanha {
  left: 0;
}

.next-campanha {
  right: 0;
}

/* fim */


/* Botões carrossel produtos destaque */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--verde);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  z-index: 10;
}
.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

.carousel-btn:hover { opacity: 0.8; }

/* fim carrossel produtos destaque */

/* Grid de produtos*/
.nome-prod{
  color: var(--verde-claro);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.grid .card {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.grid img {
  width: 100%;
  border-radius: 8px;
}

/* CONTATO */
.contato {
  text-align: center;
  padding: 50px 20px;
  background: var(--verde-claro);
  color: white;
}
.contato h2 { margin-bottom: 10px; }
.btn, .whatsapp {
  display: inline-block;
  margin: 10px 5px 0 5px;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn { background: var(--rosa); color: white; }
.btn:hover { opacity: 0.85; }
.whatsapp { background: #25D366; color: white; }
.whatsapp:hover { opacity: 0.85; }

/* FOOTER */
footer {
  background: var(--verde);
  color: white;
  text-align: center;
  padding: 25px;
  display: flex;
  font-weight: bold;
  justify-content: space-around;
  flex-wrap: wrap;
}

footer a { color: white; text-decoration: none; margin: 5px; }
footer a:hover { opacity: 0.8; }

/* ANIMAÇÃO BANNER */
@keyframes fadeBanner {
  0% {opacity:0;}
  100% {opacity:1;}
}

/* RESPONSIVO */
@media(max-width: 768px){
  .carousel-container {max-width: 95%;}
  .card {min-width: 180px;}
}

/* FILTROS */
.filtros {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px;
}

/* PÁGINA DE PRODUTO */
.produto-page {
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.produto-page img {
  width: 100%;
  border-radius: 10px;
}

.acoes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.btn {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.btn-container {
  text-align: center;
  margin: 20px 0; /* opcional: distância acima/abaixo */
}

.btn.comprar {
  background: #25d366;
  color: white;
}

.btn.ver {
  background: #333;
  color: white;
}


/* ===== PÁGINA PRODUTOS ===== */

/* .donananaloja{
  font-family: Arial, Helvetica, sans-serif;
} */

.h1-produtos{
  color: white;
  text-align: center;
}

.destaques {
  padding: 40px 20px;
  background-color: pink;
}

/* FILTROS */
.filtros {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filtros input,
.filtros select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 150px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* IMAGEM */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

/* TÍTULO */
.card h3 {
  font-size: 16px;
  margin: 10px 0;
}

/* PREÇO */
.card p {
  color: #e60023;
  font-weight: bold;
}

/* BOTÕES */
.acoes {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.btn {
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  color: #fff;
  margin-bottom: 5px;
}

.btn.comprar {
  background: var(--verde);
}

.btn.ver {
  background: var(--rosa);
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Detalhes do produto*/

.nome-Produto{
  color: var(--verde);
}

.btn-voltar {
  display: inline-block;
  margin: 20px;
  text-decoration: none;
  background: #ccc;
  color: #333;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-voltar:hover {
  background: #999;
  color: white;
}

/* Seleciona todas as imagens que estão dentro da div com id grid-produtos */
#produto-detalhe img {
  max-width: 250px;    /* largura máxima padrão e-commerce */
  width: 100%;          /* ocupa toda a largura do card */
  height: auto;         /* mantém proporção */
  display: block;
  margin: 0 auto;       /* centraliza horizontalmente */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card {
  background: #fff;
}

.card img {
  background: #fff;
}

/* .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
} */