/* Global Reset */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f8fafd;
  color: #333;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  border-radius: 10px;
}
button, .button, input[type="submit"] {
  background-color: #1dbf73;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}
button:hover {
  background-color: #17a664;
}

/* Product Container */
.single-product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 5%;
  background: #fff;
}

/* Left: Image Section */
.product-images {
  flex: 1 1 45%;
  max-width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7f8;
  padding: 20px;
  border-radius: 15px;
}

/* Right: Info Section */
.product-summary {
  flex: 1 1 50%;
  max-width: 50%;
}
.product-summary h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}
.product-summary .price {
  font-size: 26px;
  font-weight: bold;
  color: #1dbf73;
  margin: 10px 0;
}
.product-summary .stock {
  margin-bottom: 20px;
  font-weight: 500;
}
.product-summary .quantity {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
}
.quantity input[type="number"] {
  width: 60px;
  padding: 8px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.product-meta {
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}
.product-meta span {
  display: block;
  margin-bottom: 5px;
}

/* Tabs */
.product-tabs {
  margin: 60px 5% 20px;
  background: #fff;
  border-radius: 10px;
  padding: 30px;
}
.product-tabs .tab-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.product-tabs .tab-buttons button {
  background: #f2f4f7;
  color: #333;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
}
.product-tabs .tab-buttons button.active {
  background: #1dbf73;
  color: #fff;
}
.product-tabs .tab-content {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* Related Products */
.related-products {
  margin: 40px 5%;
}
.related-products h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}
.related-products p {
  color: #777;
  margin-bottom: 30px;
}
.related-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.related-grid .product-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}
.related-grid .product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.related-grid .product-card img {
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}
.related-grid .product-card .title {
  font-size: 16px;
  font-weight: 500;
  margin: 10px 0 5px;
}
.related-grid .product-card .price {
  color: #1dbf73;
  font-weight: bold;
  margin-bottom: 10px;
}
.related-grid .product-card .category {
  font-size: 13px;
  color: #999;
}
