/* minimal page styles for the product page */
body {
  margin: 0;
  font-family: 'Bitter', serif;
  background: #fff;
}
main {
  padding: 24px;
  max-width: 980px;
  margin: 0 auto;
}
h1 {
  margin: 8px 0 16px;
}
.product-hero {
  display: flex;
  gap: 16px;
  align-items: center;
}
.product-hero img {
  width: 320px;
  max-width: 40%;
  border-radius: 8px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  margin-bottom: 60px;
}

.image-gallery {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.main-image img {
  max-width: 100%;
  height: 279px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail-images img {
  width: min-content;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
  border-color: #f1c40f;
}

.product-details {
  flex: 1 1 300px;
  max-width: 480px;
}

.product-details h1 {
  font-size: 30px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.product-details p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555;
}

.sizes {
  margin-bottom: 25px;
}

.sizes label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 15px;
}

.size-options {
  display: flex;
  gap: 10px;
}

.size-btn {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.size-btn:hover {
  background-color: #f1c40f;
  color: #2c3e50;
  border-color: #f1c40f;
}

.size-btn.active {
  background-color: #f1c40f;
  color: #2c3e50;
  border-color: #f1c40f;
}

.add-to-cart {
  background-color: #f1c40f;
  border: none;
  padding: 15px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #2c3e50;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: #d4ac0d;
}

.similar-products {
  text-align: center;
}

.similar-products h2 {
  font-size: 24px;
  margin-bottom: 25px;
  color: #2c3e50;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  justify-items: center;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  max-width: 180px;
  max-height: 15rem;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 16px;
  color: #333;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  .product-details,
  .image-gallery {
    max-width: 100%;
  }
  .size-options {
    justify-content: center;
  }
}
