.product-page {
  padding: 24px;
  max-width: 1200px;
  margin: 80px auto 40px;
}

.product-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(280px, 1.4fr);
  gap: 24px;
  align-items: start;
}

.product-slideshow,
.product-overview {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
}

.product-details {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
}

.slideshow-image, .no-images {
  width: min(560px, 80vh);
  max-width: 100%;
  height: min(547px, 80vh);
  max-height: 44vw;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
}

.slideshow-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

#prev-slide, #next-slide {
  align-self: center;
  height: 60px;
  width: 80px;
  color: black;
  background: #eee;
  transition-duration: 200ms;
}


#prev-slide:hover, #next-slide:hover {
  background: #ddd;
}

.slideshow-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: fill;
  border-radius: 6px;
  overflow: hidden;
  transition-duration: 100ms;
  cursor: pointer;
}

.slideshow-thumbnail:hover {
  box-shadow: 0 0 0 1px #1f2937;
}

.slideshow-thumbnail.active {
  box-shadow: 0 0 0 2px #1f2937;
}

.slide-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.product-price {
  font-size: 1.5rem;
  margin: 16px 0 8px;
  font-weight: 700;
}

.product-stock {
  margin: 16px 0 16px;
  color: #0f766e;
}

#quantity {
  padding: 10px 10px;
}

.add-to-cart button {
  width: calc(100% - 100px);
  max-width: 300px;
}

.add-to-cart button.out-of-stock {
  background: #666;
}

.no-images {
  min-height: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d1d5db;
  background: #fafafa;
  color: #6b7280;
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 900px) {
  .product-page-grid {
    grid-template-columns: 1fr;
  }
  .slideshow-image, .no-images {
    height: min(560px, 80vh, 60vw);
    max-height: none;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
  }
  #prev-slide, #next-slide {
    display: none;
  }
  .slideshow-controls {
    justify-content: center;
  }
}