body { margin: 0; font-family: Arial, sans-serif; background: url('img/Imagens Site/Background.jpg') no-repeat center center fixed; background-size: cover; }
header { background: linear-gradient(to right, #ccc, #fff); display: flex; justify-content: space-between; align-items: center; padding: 10px 40px; }
header .logo { height: 60px; }
nav a { margin: 0 15px; text-decoration: none; color: #333; font-weight: bold; }
.faixa { height: 20px; background: linear-gradient(to right, #ccc, #fff); }
main { text-align: center; padding: 20px; }
main img { max-width: 80%; height: auto; margin: 10px 0; }
.produtos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 20px; }
.produto { position: relative; text-align: center; }
.produto img { width: 100%; border-radius: 10px; transition: opacity 0.3s ease; display: block; }
.produto img.verso { position: absolute; top: 0; left: 0; opacity: 0; }
.produto:hover img.frente { opacity: 0; }
.produto:hover img.verso { opacity: 1; }
.produto p { margin-top: 10px; font-weight: bold; color: #222; }
footer { background: linear-gradient(to right, #ccc, #fff); padding: 20px; display: flex; justify-content: center; gap: 20px; }
footer img { height: 80px; }
.texto-contato { max-width: 800px; margin: 20px auto; font-size: 16px; color: #333; line-height: 1.5; text-align: center; }

/* Lightbox com JavaScript */
#lightboxModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
#lightboxModal img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}
#lightboxModal span {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* ========================== */
/*   Ajustes de Responsividade */
/* ========================== */

/* Grid responsivo para produtos */
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

/* Ajustes para tablets e celulares */
@media (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-bottom: 10px;
  }
  nav a {
    display: inline-block;
    margin: 5px 10px;
    font-size: 16px;
  }
  .logo {
    height: 50px;
  }
  .produto p {
    font-size: 14px;
  }
}

/* Ajustes específicos para smartphones */
@media (max-width: 600px) {
  nav {
    width: 100%;
    text-align: center;
  }
  nav a {
    display: block;
    margin: 8px 0;
    font-size: 18px;
  }
  header {
    align-items: center;
    text-align: center;
  }
  .logo {
    height: 40px;
  }
  main img {
    max-width: 95%;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
  footer img {
    height: 60px;
  }
}

/* Ajuste lightbox em mobile */
#lightboxModal img {
  max-width: 95%;
  max-height: 80vh;
}
