/* Reset e base */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

h1, h2, h3 {
  color: #1a1a1a;
}

a {
  text-decoration: none;
}

/* Cabeçalho */
.header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
}

.cart {
  font-size: 1.5rem;
  color: #3187ff;
}

/* Conteúdo principal */
.main {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

/* Produto */
.product {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
}

.gallery {
  flex: 1;
  text-align: center;
}

.main-img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
}

.thumbs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.thumbs img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: border 0.3s;
}

.thumbs img:hover {
  border-color: #21b311;
}

.info {
  flex: 1;
}

/* Botões de tamanho */
.size-buttons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.size-buttons button {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(to right, #21b311, #1a8f0e);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(33, 179, 17, 0.3);
}

.size-buttons button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(26, 143, 14, 0.4);
}

.size-buttons button.active {
  background: linear-gradient(to right, #1a8f0e, #21b311);
  box-shadow: 0 0 0 3px rgba(33, 179, 17, 0.4);
}

/* Preços */
.price-display {
  margin: 1rem 0;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 1.2rem;
}

.new-price {
  color: #008f2b;
  font-weight: bold;
  font-size: 1.6rem;
}

/* PIX info */
.pix {
  background: #e6f9ec;
  color: #21b311;
  padding: 0.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Botão de compra */
.buy {
  display: inline-block;
  background: #21b311;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s;
}

.buy:hover {
  background: #1a8f0e;
}

/* Fundador */
.founder {
  background: #fff;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
  text-align: center;
}

.founder-img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  margin-top: 1rem;
}

/* Descrição */
.details {
  background: #fff;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
}

/* Especificações */
.specs {
  background: #fff;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
}

.specs .model {
  margin-bottom: 2rem;
}

.specs h3 {
  margin-bottom: 0.5rem;
  color: #21b311;
}

.specs ul {
  list-style: none;
  padding-left: 0;
}

.specs li {
  margin-bottom: 0.5rem;
}

/* Avaliações */
.reviews {
  background: #fff;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
}

.review {
  border-left: 4px solid #21b311;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.stars {
  font-size: 1rem;
  color: #f5b301;
}

/* Rodapé */
.footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}
/* Responsividade para telas menores */
@media (max-width: 768px) {
  .product {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }

  .gallery, .info {
    width: 100%;
  }

  .main-img {
    max-width: 100%;
    height: auto;
  }

  .thumbs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .thumbs img {
    width: 70px;
    height: 70px;
  }

  .size-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .size-buttons button {
    width: 100%;
    text-align: center;
  }

  .buy {
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 1rem;
  }

  .founder-img {
    max-width: 100%;
    height: auto;
  }

  .review-header {
    flex-direction: row;
    align-items: center;
  }

  .avatar {
    width: 48px;
    height: 48px;
  }

  .footer {
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
  }
}
