/* ====== Layout geral ====== */
body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.logo {
  height: 60px;
}

/* ====== Container principal ====== */
.product-detail-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.product-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.product-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thumbs-area {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.thumb-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumb-btn:hover {
  transform: scale(1.05);
}

.thumb-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #eee;
}

.btn-back-inline {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #444;
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-back-inline:hover {
  background: #222;
}

/* ====== Área lateral ====== */
.product-card-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-card-side h1 {
  font-size: 1.8rem;
  margin: 0;
}

.top-actions {
  display: flex;
  gap: 1rem;
}

.btn-add-cart {
  background: #ff4081;
  border: none;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add-cart:hover {
  background: #e73570;
}

.price {
  font-size: 1.6rem;
  color: #222;
  font-weight: 600;
}

.description-box {
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #eee;
}

.product-description-textarea {
  width: 100%;
  height: 160px;
  border: none;
  background: transparent;
  resize: none;
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

/* ====== Responsividade ====== */
@media (max-width: 768px) {
  .product-wrap {
    grid-template-columns: 1fr;
  }

  .product-card-side {
    order: 2;
  }

  .product-images {
    order: 1;
  }

  .main-image img {
    max-width: 100%;
  }
}

footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #777;
}
