
.product-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  background: #ffffff;;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.left-section {
  flex: 1;
}

.thumbnails img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.right-section {
  flex: 1.2;
}

h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.offer {
  color: green;
  font-weight: bold;
}

.price {
  font-size: 24px;
  color: #28a745;
  margin-bottom: 5px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-left: 10px;
}

.selector {
  margin: 15px 0;
}

.selector label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.selector select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.offer-box {
  background-color: #e8f9f1;
  padding: 10px;
  border-radius: 8px;
  color: green;
  margin-bottom: 15px;
}

.add-btn {
  background-color: #ff5722;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}

.add-btn:hover {
  background-color: #e64a19;
}

.shipping-box {
  background-color: #f1f1f1;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.description {
  margin-top: 20px;
}

.description h3 {
  margin-bottom: 8px;
}

.popup-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  align-items: center;
  gap: 15px;
}

.popup-message.show {
  display: flex;
  opacity: 1;
}

.product-section {
    display: flex;
    gap: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
}

.image-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.thumbnail-row {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: border 0.3s ease;
}

.thumbnail:hover {
    border-color: #28a745;
}

.product-details {
    flex: 1;
}

/* Responsive CSS */
@media (max-width: 1024px) {
  .product-container,
  .product-section {
    flex-wrap: wrap;
    padding: 20px;
  }
  
  .left-section,
  .right-section,
  .image-gallery,
  .product-details {
    flex: 1 1 100%;
  }

  .product-container {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0px;
  }

  h1 {
    font-size: 22px;
  }

  .price {
    font-size: 20px;
  }

  .product-container,
  .product-section {
    padding: 15px;
  }

  .thumbnails img,
  .thumbnail {
    width: 50px;
    height: 50px;
  }

  .add-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .selector select {
    padding: 8px;
  }
}


.review-section {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.review-list {
  margin-bottom: 20px;
}

.single-review {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
}

.review-form textarea {
  resize: vertical;
}

.review-form button {
  padding: 10px;
  background-color: #27ae60;
  color: white;
  border: none;
  cursor: pointer;
}

.review-form button:hover {
  background-color: #219150;
}
