/* RESET */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}

/* HEADER */
header {
  background: #000;
  color: #fff;
  padding: 15px;
  text-align: center;
}

nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

/* BANNER */
.banner {
  background: linear-gradient(to right, #ff4d6d, #ff758f);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

/* GRID */
.produtos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

/* CARD PRODUTO */
.produto {
  background: #fff;
  width: 260px;
  margin: 12px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 420px;
}

/* IMAGEM PRODUTO */
.img-box {
  position: relative;
}

.img-box img {
  width: 100%;
  border-radius: 8px;
}

/* TITULO */
.produto h3 {
  font-size: 15px;
  margin: 10px 0;
}

/* PREÇO */
.antigo {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

.novo {
  color: #e60023;
  font-size: 20px;
  font-weight: bold;
}

/* DESCONTO */
.desconto {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e60023;
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 5px;
  z-index: 2;
}

/* MARCA */
.marca {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  padding: 4px;
  border-radius: 6px;
}

.marca img {
  width: 35px;
}

/* AVALIAÇÃO */
.avaliacao {
  color: #f5a623;
  font-size: 14px;
  margin: 5px 0;
}

/* VENDIDOS */
.vendidos {
  font-size: 12px;
  color: #555;
}

/* URGÊNCIA */
.urgencia {
  font-size: 12px;
  color: red;
  font-weight: bold;
  margin: 5px 0;
}

/* BOTÃO */
.btn {
  display: block;
  margin-top: auto;
  padding: 12px;
  text-align: center;
  background: #000;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #e60023;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #fff;
}

/* ===== PÁGINA PRODUTO ===== */

.imagem {
  flex: 1;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  max-width: 500px;
  margin: auto;
  position: relative;
}

/* IMAGEM PRINCIPAL */
#imagem-principal {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  transition: 0.3s;
}

#imagem-principal:hover {
  transform: scale(1.05);
}

/* MINIATURAS */
.miniaturas {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.miniaturas img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}

.miniaturas img:hover {
  border: 2px solid #e60023;
}

/* LOGO PRODUTO */
.marca-produto {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
}

.marca-produto img {
  width: 45px;
}

/* BOTÃO FIXO (PÁGINA PRODUTO) */
.comprar-fixo {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.comprar-fixo a {
  display: block;
  text-align: center;
  background: #e60023;
  color: #fff;
  padding: 15px;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* ===== CATEGORIAS (CORRIGIDO) ===== */

.categorias {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}

.categoria {
  width: 350px;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: 0.3s;
  padding: 10px;
}
/* 🔥 AQUI FOI A CORREÇÃO PRINCIPAL */
.categoria img {
  max-width: 100%;
  height: auto;
} /* 👈 resolve imagem pequena */
  display: block;
}

.categoria h3 {
  margin: 10px 0;
  font-size: 16px;
}

.categoria:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* RESPONSIVO */
@media (max-width:800px) {
  .produtos {
    flex-direction: column;
    align-items: center;
  }

  .produto {
    width: 300%;
  }
}
/* ===== MOBILE AJUSTES ===== */
@media (max-width: 768px) {

  /* HEADER */
  header {
    padding: 10px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a {
    font-size: 13px;
  }

  /* BANNER */
  .banner {
    padding: 25px 15px;
  }

  .banner h2 {
    font-size: 18px;
  }

  .banner p {
    font-size: 14px;
  }

  /* CATEGORIAS */
  .categorias {
    gap: 10px;
    padding: 15px;
  }

  .categoria {
    width: 45%; /* 👈 2 por linha */
  }

  /* PRODUTOS */
  .produtos {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .produto {
    width: 95%; /* 👈 ocupa tela toda */
    max-width: 350px;
  }

  /* IMAGEM PRODUTO */
  .produto img {
    max-height: 250px;
    object-fit: contain;
  }

  /* BOTÃO */
  .btn {
    font-size: 16px;
    padding: 14px;
  }

  /* FOOTER */
  footer {
    font-size: 13px;
  }
}