/* degerlendirme-modern.css – urun.css tasarım sistemiyle tam uyumlu */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --rv-primary: #0f5c3f;
  --rv-primary-dark: #093d29;
  --rv-primary-light: #1a7a53;
  --rv-primary-fade: rgba(15, 92, 63, 0.08);
  --rv-cta: #0f5c3f;
  --rv-page-bg: #F2F4F3;
  --rv-card: #FFFFFF;
  --rv-text: #1A1A1A;
  --rv-text-muted: #5F6B63;
  --rv-text-light: #9EA8A3;
  --rv-border: #E2E8E5;
  --rv-shadow: 0 2px 14px rgba(0,0,0,0.06);
  --rv-shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
  --rv-radius: 14px;
  --rv-radius-sm: 9px;
  --rv-radius-xs: 6px;
  --rv-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --rv-star: #F59E0B;
  --rv-danger: #DC2626;
}

/* ── BASE ─────────────────────────────────── */
#rating-and-review-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--rv-page-bg);
}

#rating-and-review-app * { box-sizing: border-box; }
#rating-and-review-app a { text-decoration: none; color: inherit; }

.rnr-app-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ── TWO COLUMN LAYOUT ────────────────────── */
.rnr-app-sections {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.rnr-app-sections .vc_col-lg-5 {
  flex: 0 0 370px;
  max-width: 370px;
  position: sticky;
  top: 16px;
}

.rnr-app-sections .agizlenecek {
  flex: 1;
  min-width: 0;
}

/* Hide the duplicate review list inside left column */
.gizlenecek { display: none !important; }

@media (max-width: 991px) {
  .rnr-app-sections {
    flex-direction: column;
    gap: 16px;
  }
  .rnr-app-sections .vc_col-lg-5 {
    flex: none;
    max-width: 100%;
    width: 100%;
    position: static;
  }
}

/* ── PRODUCT CARD ─────────────────────────── */
.reviews-product-container {
  background: var(--rv-card);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  padding: 20px;
  transition: var(--rv-transition);
}

.reviews-product-container:hover {
  box-shadow: var(--rv-shadow-hover);
}

.reviews-product-container .wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reviews-product-container .product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.reviews-product-container .product-image .pd-img {
  width: 88px;
  height: 88px;
  border-radius: var(--rv-radius-sm);
  border: 1px solid var(--rv-border);
  overflow: hidden;
  flex-shrink: 0;
  background: #F8FAF9;
}

.reviews-product-container .product-image .pd-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reviews-product-container .product-info {
  flex: 1;
  min-width: 0;
}

.reviews-product-container .product-title {
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

.reviews-product-container .product-brand {
  display: inline-block;
  background: var(--rv-primary-fade);
  color: var(--rv-primary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,92,63,0.15);
  margin-bottom: 4px;
}

.reviews-product-container .product-name {
  font-weight: 700;
  color: var(--rv-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.reviews-product-container .product-info a:hover .product-name {
  color: var(--rv-primary);
}

.reviews-product-container .product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reviews-product-container .product-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rv-primary-fade);
  border: 1px solid rgba(15,92,63,0.15);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rv-text);
  white-space: nowrap;
}

.reviews-product-container .product-badges .badge i {
  color: var(--rv-primary);
}

/* Delivery inside product card */
.reviews-product-container .delivery-favorite-info {
  background: var(--rv-primary-fade) !important;
  border: 1px solid rgba(15,92,63,0.15) !important;
  border-radius: var(--rv-radius-xs) !important;
  padding: 8px 12px !important;
  margin-top: 8px !important;
}

.reviews-product-container .pr-dd-rs-w {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.reviews-product-container .pr-dd-rs-w i { color: var(--rv-primary); }
.reviews-product-container .pr-dd-nr-text { color: var(--rv-text-muted); }
.reviews-product-container .dd-txt-vl { font-weight: 700; color: var(--rv-primary-dark); }

.reviews-product-container .ratings-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 12px 0;
}

.reviews-product-container .ratings-score {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rv-text-muted);
  margin-left: 2px;
}

/* Price */
.reviews-product-container .product-price {
  margin-top: 8px;
}

.reviews-product-container .prc-dsc {
  color: var(--rv-cta);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

/* Action buttons */
.reviews-product-container .product-attributes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.reviews-product-container .product-attributes {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.reviews-product-container .btn-basket { flex: 1; }

.reviews-product-container .add-to-bs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #0f5c3f 0%, #1a7a53 100%) !important;
  border: none !important;
  border-radius: var(--rv-radius-xs) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer;
  transition: var(--rv-transition) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(15,92,63,0.28) !important;
}

.reviews-product-container .add-to-bs:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(15,92,63,0.38) !important;
  background: linear-gradient(135deg, #093d29 0%, #0f5c3f 100%) !important;
}

.reviews-product-container .btn-fav .fv {
  width: 46px !important;
  height: 46px !important;
  min-height: unset !important;
  border: 2px solid var(--rv-border) !important;
  border-radius: var(--rv-radius-xs) !important;
  background: #fff !important;
  background-color: #fff !important;
  color: var(--rv-danger) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--rv-transition);
  padding: 0 !important;
  flex-shrink: 0;
}

.reviews-product-container .btn-fav .fv:hover {
  border-color: var(--rv-danger) !important;
  background: rgba(220,38,38,0.06) !important;
}

.reviews-product-container .fv-hv-img a {
  color: var(--rv-danger);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── RATINGS SUMMARY ──────────────────────── */
.ps-ratings {
  background: var(--rv-card);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  padding: 16px 20px !important;
  margin-top: 14px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  height: auto !important;
  line-height: normal !important;
}

.ps-ratings__stars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  float: none !important;
}

.ps-ratings__count-text {
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--rv-text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.ps-ratings__average {
  font-size: 0.85rem;
  color: var(--rv-text-muted);
  font-weight: 600;
  text-align: center;
}

.ps-ratings__counts {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  width: 100%;
  float: none !important;
  line-height: normal !important;
}

.ps-ratings__count {
  font-size: 0.88rem;
  color: var(--rv-text-muted);
  font-weight: 500;
}

.ps-ratings__divider {
  color: var(--rv-border);
}

.ps-ratings__count .photovar {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── SELLER ───────────────────────────────── */
.ps-seller {
  background: var(--rv-card);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  padding: 14px 18px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: var(--rv-transition);
}

.ps-seller:hover { box-shadow: var(--rv-shadow-hover); }

.ps-seller__profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-seller__image {
  width: 42px;
  height: 42px;
  border-radius: var(--rv-radius-xs);
  border: 1px solid var(--rv-border);
  object-fit: cover;
  flex-shrink: 0;
}

.ps-seller__info { min-width: 0; }

.ps-seller__name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ps-seller__name .merchant-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rv-text);
}

.ps-seller__name .sl-pn {
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  color: #fff;
  flex-shrink: 0;
}

.ps-seller__checkbox .seller-follower-count {
  display: flex;
  align-items: center;
}

/* ── STAR FILTER ──────────────────────────── */
.ps-starsx {
  background: var(--rv-card);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  padding: 18px;
  margin-top: 14px;
}

.ps-stars__title {
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--rv-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ps-starsx a { text-decoration: none; display: block; }

.ps-stars__content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1.5px solid var(--rv-border);
  border-radius: var(--rv-radius-xs);
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--rv-transition);
  background: #fff;
}

.ps-stars__content:hover {
  border-color: var(--rv-primary-light);
  background: var(--rv-primary-fade);
}

/* Active filter state - override inline orange border */
.ps-stars__content[style*="border: 1px solid #f27a1a"],
.ps-stars__content[style*="border: 1px solid"] {
  border: 1.5px solid var(--rv-primary) !important;
  background: var(--rv-primary-fade) !important;
  box-shadow: 0 0 0 3px rgba(15,92,63,0.08);
}

.ps-stars__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rv-text-muted);
  margin-left: auto;
}

/* ── REVIEWS WRAPPER ──────────────────────── */
.reviews-wrapper {
  background: var(--rv-card);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  padding: 24px;
}

.reviews-top-info { margin-bottom: 16px; }

.reviews-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--rv-text);
  margin: 0;
}

/* ── REVIEWS HEADER (search + sort) ──────── */
.reviews-header {
  margin-bottom: 18px;
}

.reviews-header .action {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.reviews-header .search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.reviews-header .search input[type="text"] {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--rv-border);
  border-radius: var(--rv-radius-xs);
  padding: 0 14px 0 40px !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--rv-transition);
  background: #F8FAF9;
  outline: none;
  color: var(--rv-text);
}

.reviews-header .search::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
  z-index: 1;
}

.reviews-header .search input[type="text"]:focus {
  border-color: var(--rv-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,92,63,0.1);
}

.reviews-header .search input[type="text"]::placeholder {
  color: var(--rv-text-light);
}

.reviews-header .sort { flex-shrink: 0; }

/* Reset legacy container styles */
.reviews-header .sort .select-w {
  border: none !important;
  padding: 0 !important;
  height: auto !important;
}

.reviews-header .sort .selected-order {
  height: 44px !important;
  box-sizing: border-box !important;
  border: 1.5px solid var(--rv-border);
  border-radius: var(--rv-radius-xs);
  padding: 0 36px 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  background: #F8FAF9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f5c3f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--rv-text);
  transition: var(--rv-transition);
  cursor: pointer;
  outline: none;
  min-width: 200px;
}

.reviews-header .sort .selected-order:focus {
  border-color: var(--rv-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,92,63,0.1);
}

/* ── PHOTO REVIEWS ────────────────────────── */
.reviews-content { margin-bottom: 18px; }

.ps-images {
  background: #F8FAF9;
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.ps-tags__title {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--rv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.promo-banner-wrapper .banner-image img {
  border-radius: var(--rv-radius-xs);
  transition: var(--rv-transition);
}

.promo-banner-wrapper:hover .banner-image img {
  transform: scale(1.03);
}

/* ── COMMENT CARDS ────────────────────────── */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment {
  background: var(--rv-card);
  border: 1px solid var(--rv-border) !important;
  border-radius: var(--rv-radius-sm) !important;
  overflow: hidden;
  transition: var(--rv-transition);
  display: block;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-left: 3px solid transparent !important;
}

.comment:hover {
  box-shadow: var(--rv-shadow);
  border-left-color: var(--rv-primary) !important;
  transform: translateX(2px);
}

.comment .comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 10px !important;
  background: #F8FAF9;
  border-bottom: 1px solid var(--rv-border);
}

.comment .comment-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comment .ratings-container {
  display: flex;
  align-items: center;
  gap: 2px;
}

.comment .comment-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment .comment-info-item {
  font-size: 0.78rem !important;
  color: var(--rv-text-muted) !important;
  font-weight: 500 !important;
}

.comment .comment-info-item:first-child {
  font-weight: 600 !important;
  color: var(--rv-text) !important;
}

.comment .comment-info-item + .comment-info-item::before {
  content: '·';
  margin-right: 8px;
  color: var(--rv-border);
}

.comment .comment-text {
  padding: 12px 18px 14px !important;
}

.comment .comment-text p {
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
  color: var(--rv-text) !important;
  font-weight: 400 !important;
  margin: 0;
  padding: 0 !important;
}

/* ── COMMENT PHOTOS ───────────────────────── */
.comment .comment-photos {
  padding: 0 18px 16px !important;
}

.comment .image-list-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment .review-image {
  width: 68px !important;
  height: 68px !important;
  border-radius: var(--rv-radius-xs) !important;
  border: 1px solid var(--rv-border) !important;
  background-size: cover !important;
  background-position: center !important;
  transition: var(--rv-transition);
  float: none !important;
  flex-shrink: 0;
}

.comment .review-image:hover {
  border-color: var(--rv-primary) !important;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* ── SEPERATOR ────────────────────────────── */
.seperator {
  display: none;
}

/* ── RATING REVIEW FORM CONTAINER ─────────── */
.rating-review-container {
  border-radius: var(--rv-radius) !important;
  border: 1px solid var(--rv-border) !important;
  box-shadow: var(--rv-shadow) !important;
  overflow: hidden;
}

.rating-review-container .rating-review-tray .header .title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--rv-text);
}

.rating-review-container .rating-review-tray .footer .button {
  background-color: var(--rv-primary) !important;
  border-radius: var(--rv-radius-xs) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  transition: var(--rv-transition) !important;
}

.rating-review-container .rating-review-tray .footer .button:hover:not(.disabled) {
  background-color: var(--rv-primary-dark) !important;
}

/* ── FOOTER ───────────────────────────────── */
.footer-container {
  background-color: #ffffff;
  margin-top: 50px !important;
}

/* ── ANIMATIONS ───────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reviews-product-container { animation: fadeInUp 0.4s ease both; }
.ps-ratings              { animation: fadeInUp 0.4s ease 0.06s both; }
.ps-seller               { animation: fadeInUp 0.4s ease 0.1s both; }
.ps-starsx               { animation: fadeInUp 0.4s ease 0.14s both; }
.reviews-wrapper          { animation: fadeInUp 0.4s ease 0.06s both; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 991px) {
  .rnr-app-container { padding: 12px 8px; }

  .reviews-product-container,
  .ps-ratings,
  .ps-seller,
  .ps-starsx,
  .reviews-wrapper { padding: 16px; }

  .reviews-header .action { flex-direction: column; }
  .reviews-header .sort .selected-order { min-width: 100%; width: 100%; }
  .reviews-header .search { width: 100%; }
}

@media (max-width: 576px) {
  .ps-ratings__count-text { font-size: 1.8rem; }
  .reviews-title { font-size: 0.95rem; }

  .comment .comment-header { padding: 10px 14px 8px !important; }
  .comment .comment-text { padding: 10px 14px 12px !important; }
  .comment .comment-photos { padding: 0 14px 14px !important; }

  .comment .review-image {
    width: 56px !important;
    height: 56px !important;
  }

  .reviews-product-container .product {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .reviews-product-container .product-title {
    text-align: center;
  }

  .reviews-product-container .product-badges {
    justify-content: center;
  }

  .reviews-product-container .product-image .pd-img {
    width: 120px;
    height: 120px;
  }
}
