/* Product Reviews Styles */

.reviews-header {
  margin-bottom: 40px;
}

.reviews-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: #25262a;
  margin-bottom: 30px;
}

.reviews-summary {
  display: flex;
  gap: 40px;
  padding: 30px;
  background: #fafafa;
  border: 1px solid #edf0f5;
  border-radius: 8px;
}

.overall-rating {
  flex: 0 0 200px;
  text-align: center;
  padding: 20px;
}

.rating-number {
  font-size: 48px;
  font-weight: 700;
  color: #25262a;
  margin-bottom: 10px;
}

.rating-stars {
  font-size: 24px;
  margin-bottom: 10px;
}

.rating-stars .star {
  display: inline-block;
}

.rating-stars .star.filled {
  color: #ffc107;
}

.rating-stars .star.half {
  background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-stars .star.empty {
  color: #ddd;
}

.rating-count {
  font-size: 14px;
  color: #8c92a0;
}

.rating-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rating-label {
  font-size: 14px;
  color: #25262a;
  font-weight: 500;
  min-width: 40px;
}

.bar-container {
  flex: 1;
  height: 8px;
  background: #edf0f5;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #ffc107;
  transition: width 0.3s ease;
}

.rating-percentage {
  font-size: 14px;
  color: #8c92a0;
  min-width: 40px;
  text-align: right;
}

.reviews-list {
  margin-bottom: 40px;
}

.review-item {
  padding: 30px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.review-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.reviewer-info {
  display: flex;
  gap: 15px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ee4266;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.reviewer-details {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-size: 16px;
  font-weight: 600;
  color: #25262a;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 4px;
}

.review-date {
  font-size: 14px;
  color: #8c92a0;
}

.review-rating {
  font-size: 18px;
}

.review-comment {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.no-reviews {
  text-align: center;
  padding: 60px 20px;
  color: #8c92a0;
  font-size: 16px;
}

.write-review-section {
  margin-top: 40px;
  padding: 40px;
  background: #fafafa;
  border: 1px solid #edf0f5;
  border-radius: 8px;
}

.write-review-section h4 {
  font-size: 20px;
  font-weight: 600;
  color: #25262a;
  margin-bottom: 10px;
}

.review-note {
  color: #8c92a0;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: #25262a;
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #edf0f5;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ee4266;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.form-group small {
  display: block;
  margin-top: 8px;
  color: #8c92a0;
  font-size: 13px;
}

.rating-input {
  font-size: 32px;
  cursor: pointer;
  user-select: none;
}

.rating-input .rating-star {
  display: inline-block;
  margin-right: 5px;
  color: #ddd;
  transition: color 0.2s ease;
}

.rating-input .rating-star:hover {
  color: #ffc107;
}

.btn-submit-review {
  padding: 14px 40px;
  background: #ee4266;
  border: 1px solid #ee4266;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.btn-submit-review:hover {
  background: #d63854;
  border-color: #d63854;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(238, 66, 102, 0.3);
}

.btn-submit-review:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .reviews-summary {
    flex-direction: column;
  }

  .overall-rating {
    flex: 1;
    border-bottom: 1px solid #edf0f5;
    padding-bottom: 20px;
  }

  .write-review-section {
    padding: 25px;
  }
}
