.product-page-container {
  max-width: 1240px;
  padding: 0 1.5rem;
}

.main-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.main-product-image {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: center center;
}

.zoom-container:hover .main-product-image {
  transform: scale(1.18);
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1.25rem;
}

.thumbnail-item {
  width: 82px;
  height: 82px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumbnail-item.active,
.thumbnail-item:hover {
  border-color: #111;
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Details */
.product-details {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  height: 100%; /* helps with alignment when content is shorter */
  display: flex;
  flex-direction: column;
}

.product-description {
  margin-top: auto;           /* pushes description to bottom if there's space */
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.description-content {
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
  white-space: pre-wrap;      /* respects line breaks in description */
}

.description-content p {
  margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.description-content strong,
.description-content b {
  font-weight: 600;
}

#product-name {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.15;
  color: #111;
}

.product-category {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #d32f2f;
  margin: 1.25rem 0;
}

.original-price {
  font-size: 1.25rem;
  color: #777;
  text-decoration: line-through;
  margin-right: 0.75rem;
}

/* Quantity & Buttons */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s;
}

.quantity-btn:hover:not(:disabled) {
  background: #e0e0e0;
}

.quantity-control input {
  width: 70px;
  text-align: center;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
}

/* Reviews */
.reviews {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-top: 2.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.review {
  padding: 1.25rem;
  border-bottom: 1px solid #eee;
}

.review:last-child {
  border-bottom: none;
}

@media (min-width: 992px) {
  .product-description {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.5rem;
  }
  
  .product-description::-webkit-scrollbar {
    width: 6px;
  }
  
  .product-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .main-product-image {
    max-height: 480px;
  }
}

@media (max-width: 767px) {
  .product-details {
      padding: 1.75rem;
  }
  
  .product-description {
    max-height: none;
    margin-top: 2rem;
  }
  
  #product-name {
    font-size: 1.9rem;
  }
  
  .price {
    font-size: 1.6rem;
  }
}