/* Container */
.product-review-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  padding-top: 70px;
  color: #333;
}

/* No product message */
.noProduct {
  text-align: center;
  font-size: 1.5rem;
  color: #999;
  padding: 3rem 0;
}

/* Wrapper - Flex layout */
.review-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Left side - Product Info */
.ReviewleftSide {
  flex: 1 1 40%;
  background: linear-gradient(135deg, #ffffff, #f0f4ff);
  border-radius: 12px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.07), 0 4px 6px rgba(0, 123, 255, 0.15);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.3s ease;
}

.ReviewleftSide:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12),
    0 6px 10px rgba(0, 123, 255, 0.25);
}

.ReviewleftSide h1 {
  margin-bottom: 1.25rem;
  font-size: 2rem;
  color: #0a2342;
  font-weight: 800;
  position: relative;
  padding-bottom: 0.4rem;
  cursor: default;
  user-select: none;
}

.ReviewleftSide h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 4px;
  background: #007bff;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.ReviewleftSide h2:hover::after {
  width: 100px;
}

.ReviewitemDetail {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
}

.ReviewImage {
  flex: 0 0 160px;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.ReviewImage:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.ReviewImage img.productImage {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: bottom;
  border-radius: 10px;
}

.Reviewcontent {
  flex: 1;
}

.Reviewcontent h3 {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  color: #0d3a66;
  font-weight: 600;
}

.Reviewcontent p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  letter-spacing: 0.02em;
}

/* Right side - Review Form */
.ReviewrightSide {
  flex: 1 1 55%;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.ReviewrightSide h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
}

/* Success and error messages */
.ReviewrightSide > div[style*="color:green"] {
  font-weight: 600;
}

.ReviewrightSide > div[style*="color:red"] {
  font-weight: 600;
}

/* Rating Stars */
.ratingStars {
  user-select: none;
  display: flex;
  gap: 0.5rem;
}

.ratingStars span {
  transition: color 0.3s ease;
  color: #ccc;
  cursor: pointer;
}

.ratingStars span.activeStar {
  color: #ffc107; /* Gold */
}

.ratingStars span:hover,
.ratingStars span:hover ~ span {
  color: #ffdb70;
}

/* Textarea */
.textArea {
  width: 100%;
  min-height: 130px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.textArea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Upload Button */
.uploadBtn {
  background-color: #007bff;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.uploadBtn:hover {
  background-color: #0056b3;
}

/* Photos Preview */
#photosPreview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#photosPreview img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Submit Button */
.submitBtn {
  margin-top: auto;
  background-color: #28a745;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.submitBtn:hover {
  background-color: #1e7e34;
}

/* Login prompt */
.ReviewrightSide p {
  font-size: 1.2rem;
}

.ReviewrightSide p a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.ReviewrightSide p a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .review-wrapper {
    flex-direction: column;
  }
  .ReviewleftSide,
  .rReviewightSide {
    flex: 1 1 100%;
  }
  .ReviewitemDetail {
    flex-direction: column;
  }
  .Image {
    max-width: 100%;
    width: 100%;
  }
  .photosPreview img {
    width: 50px;
    height: 50px;
  }
}
