/* --- Overall Container --- */
.product-review-container {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding-top: 120px;
  background: #f7f9fc;
  padding-bottom: 20px;
}

/* --- Wrapper --- */
.review-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 1200px;
  margin: auto;
}

/* --- Left side (Product Info) --- */
.ReviewleftSide {
  flex: 1 1 45%;
  background: #ffffff;
  border-radius: 5px;
  padding: 35px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: solid 1px rgba(0, 102, 255, 0.2);
}

.ReviewleftSide:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 6px 6px rgba(0, 0, 0, 0.06);
}

.ReviewleftSide h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1f1f1f;
  text-transform: capitalize;
}

/* --- Product Details --- */
.ReviewitemDetail {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.ReviewImage img.productImage {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #e3e8ee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ReviewImage img.productImage:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.Reviewcontent h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.Reviewcontent p {
  font-size: 15.5px;
  color: #555;
  line-height: 1.7;
}

/* --- Right side (Review Form) --- */
.ReviewrightSide {
  flex: 1 1 50%;
  background: #ffffff;
  border-radius: 5px;
  padding: 35px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: solid 1px rgba(0, 102, 255, 0.2);
}

.ReviewrightSide:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 6px 6px rgba(0, 0, 0, 0.06);
}

.ReviewrightSide h2 {
  font-size: 26px;
  color: #1f1f1f;
}

/* --- Rating Stars --- */
.ratingStars {
  display: block;
  font-size: 45px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.ratingStars h2 {
  font-size: 18px;
  color: #000;
  font-weight: 500;
}

.ratingStars span {
  font-size: 45px;
  cursor: pointer;
}

.ratingStars .activeStar {
  color: #ffbe38;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ratingStars .inactiveStar {
  color: #c4c4c4;
}

/* --- Review Textarea --- */
.ReviewrightSide textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 2px solid #d1d8e0;
  border-radius: 5px;
  font-size: 15.5px;
  resize: vertical;
  transition: all 0.3s ease;
  background: #f9fbfd;
}

.ReviewrightSide textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.2);
  background: #fff;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.tag-container .tag {
  display: inline-block;
  padding: 9px 20px;
  background: #edf2f8;
  color: #555;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: solid 1px rgba(0, 75, 180, 0.25);
}

.tag-container .tag:hover {
  background: #dce7f7;
}

.tag-container .tag-selected {
  background: #0066ff;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.25);
}
.submitBtn {
  background: linear-gradient(90deg, #0066ff, #004bb5);
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 75, 180, 0.25);
}

.submitBtn:hover {
  background: linear-gradient(90deg, #004bb5, #003180);
  box-shadow: 0 6px 18px rgba(0, 49, 128, 0.3);
  transform: translateY(-3px);
}

/* --- Toast Messages --- */
#toastContainer div {
  font-weight: 600;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 15.5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .review-wrapper {
    flex-direction: column;
    width: 100%;
    padding: 0px 10px;
  }

  .ReviewleftSide,
  .ReviewrightSide {
    flex: 1 1 100%;
  }

  .ReviewleftSide .ReviewitemDetail {
    flex-wrap: wrap;
  }
  .ReviewleftSide .ReviewitemDetail .ReviewImage {
    width: 100%;
  }
  .ReviewleftSide .ReviewitemDetail .ReviewImage img {
    width: 100%;
  }
  .ReviewleftSide .ReviewitemDetail .Reviewcontent {
    width: 100%;
    margin-top: 16px;
  }

  .ratingStars {
    font-size: 26px;
  }

  .tag-container .tag {
    padding: 8px 16px;
    font-size: 13.5px;
  }

  .submitBtn {
    width: 100%;
  }
}

/* --- Guest Login Card --- */
.guest-login-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 50%;
  background: #ffffff;
  border-radius: 5px;
  padding: 35px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.03);
  gap: 22px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: solid 1px rgba(0, 102, 255, 0.2);
}

.guest-login-inner {
  text-align: center;
  border-radius: 10px;
  padding: 2rem;
  max-width: 450px;
  background-color: #fff;
}

.guest-login-icon {
  font-size: 3rem;
  color: #f39c12;
  margin-bottom: 1rem;
}

.guest-login-inner h2 {
  margin-bottom: 1rem;
  color: #333;
}

.guest-login-inner p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.guest-login-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0678b1;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.guest-login-btn:hover {
  background-color: #055a85;
}

.guest-register-text {
  color: #999;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.guest-register-text a {
  color: #0678b1;
  text-decoration: underline;
}

.guest-benefits {
  text-align: left;
  margin-top: 1.5rem;
  padding-left: 1rem;
  list-style: none;
}

.guest-benefits li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.guest-benefits li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2ecc71;
}
