/* Enhanced comment styles */
.product-comments {
  margin: 28px 0;
}

.comments-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: right;
  color: #1a202c;
}

.btn {
  background: #ff5a3d;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #e04a2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 61, 0.3);
}

.comments-list {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.comment-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  transition: all 0.3s ease;
}

.comment-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.comment-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-author {
  color: #1a202c;
  font-size: 16px;
  font-weight: 600;
}

.comment-date {
  color: #718096;
  font-size: 13px;
}

.comment-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rating-stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

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

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

.rating-value {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.comment-title {
  font-size: 17px;
  font-weight: 600;
  color: #2d3748;
  margin: 12px 0 16px 0;
  line-height: 1.5;
}

.comment-points {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7fafc;
}

.comment-points.positive {
  background: #f0fdf4;
  border-right: 3px solid #22c55e;
}

.comment-points.negative {
  background: #fef2f2;
  border-right: 3px solid #ef4444;
}

.points-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.comment-points.positive .points-label {
  color: #16a34a;
}

.comment-points.negative .points-label {
  color: #dc2626;
}

.points-text {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  padding-right: 24px;
}

.comment-body {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
}

.comment-body p {
  margin: 8px 0;
}

.no-comments {
  background: #f9fafb;
  padding: 40px 28px;
  border-radius: 12px;
  text-align: center;
  color: #6b7280;
  border: 2px dashed #d1d5db;
}

.no-comments p {
  margin: 8px 0;
  font-size: 15px;
}

.no-comments .muted {
  color: #9ca3af;
  font-size: 14px;
}
.comment-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.comment-modal[aria-hidden="false"] {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}
.modal-content {
  position: relative;
  z-index: 2;
  width: 95%;
  max-width: 680px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.comment-form label {
  display: block;
  margin-bottom: 12px;
  color: #374151;
}
.comment-form input,
.comment-form textarea,
.comment-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
}
.form-actions {
  text-align: right;
  margin-top: 16px;
}

.btn-primary {
  background: #ff5a3d;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #e04a2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 61, 0.3);
}

/* Responsive styles */
@media (max-width: 768px) {
  .comment-header {
    flex-direction: column;
    gap: 12px;
  }

  .comment-rating {
    align-items: flex-start;
  }

  .comment-item {
    padding: 16px;
  }

  .comments-title {
    font-size: 20px;
  }

  .comment-title {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .modal-content {
    padding: 14px;
    width: 98%;
  }

  .comment-item {
    padding: 14px;
  }

  .comments-title {
    font-size: 18px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 14px;
  }
}
