:root {
  --bg: #fff;
  --text: #000;
  --hover: #555;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 90px;
}

.banner {
  background-color: var(--bg); 
  text-align: center;
}

.imagem-categoria {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.produtos-container {
  padding: 3vw;
}

.grade-produtos {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 1rem;
}

.produto {
  flex: 1 1 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
  text-align: center;
  font-family: Arial, sans-serif;
  position: relative;
  min-height: 100px;
}

.imagem-container {
  aspect-ratio: 4 / 5;
  /* Largura:Altura */
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

.imagem-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.imagem-container:hover img {
  transform: scale(1.05);
}

/* Ícone de favorito */
.icone-favorito {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: clamp(16px, 2vw, 24px);
  /* tamanho adaptável */
  cursor: pointer;
  color: #000;
  transition: color 0.3s;
  z-index: 2;
}

.icone-favorito:hover {
  color: red;
}

/* Botão "Comprar agora" */
.btn-comprar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 1;
  font-size: clamp(12px, 1.5vw, 16px);
  border-radius: 4px;
}

.btn-comprar:hover {
  background-color: #fff;
  color: #000;
}

.imagem-container:hover .btn-comprar {
  opacity: 1;
}

/* Nome e preço */
.nome-produto {
  margin: 10px 0 5px;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  /* ou 100%, dependendo do container */
  margin: 10px auto 5px;
}

.preco-produto {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text);
  font-weight: bold;
}

/* Promotions section */
.promotions {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: none;
  margin: 30px auto;
  padding: 0 15px;
  gap: 10px;
  color: var(--bg);
  background-color: var(--text);
}

.promo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 22%;
  min-width: 200px;
  padding: 30px;
}

.promo-icon {
  font-size: 24px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
  text-transform: uppercase;
}

.promo-description {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.dark-mode .promo-description {
  color: #aaa;
}

/* FOOTER */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 40px 20px;
  background-color: var(--bg);
  font-family: Arial, sans-serif;
  color: var(--text);
}

.footer-section {
  flex: 1 1 100px;
  margin: 10px;
}

.footer-section h5 {
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a,
.footer-section p a {
  text-decoration: none;
  color: var(--hover);
}

.pagamento-icons img,
.social-icons img {
  width: 32px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}

.footer-section p {
  margin: 5px 0;
}

/* Para telas pequenas: 2 produtos por linha */
@media (max-width: 768px) {
  .produto {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}