/* ═══════════════════════════════════════════════════════════════
   Ürün sayfası — Değerlendirmeler & Soru-Cevap (modern görünüm)
═══════════════════════════════════════════════════════════════ */
.reviews-section, .qa-section {
    --rv-ink: #1d2b22; --rv-muted: #6b776f; --rv-line: #e6ebe5; --rv-soft: #f5f7f3;
    --rv-brand: #2c4c3b; --rv-brand-2: #4a7c59; --rv-brand-soft: #e8f0e9; --rv-star: #f5b301;
    --rv-shadow: 0 1px 2px rgba(29,43,34,.04), 0 8px 26px rgba(29,43,34,.06);
}
.bx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rv-title { font-size: clamp(1.45rem, 2.6vw, 1.9rem) !important; color: var(--rv-ink); margin: 0 0 26px !important; scroll-margin-top: 110px; }
.qa-section { padding-top: 10px !important; }
.qa-section .rv-title { border-top: 1px solid var(--rv-line); padding-top: 44px; }

/* Puan özeti */
.reviews-section .review-summary-container {
    display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center;
    background: linear-gradient(135deg, #f7faf6 0%, #ffffff 70%);
    border: 1px solid var(--rv-line); border-radius: 22px; padding: 28px 32px; margin-bottom: 30px; box-shadow: var(--rv-shadow);
}
.reviews-section .review-overall { border-right: 1px solid var(--rv-line); padding-right: 30px; min-width: 0; }
.reviews-section .review-overall .rating-number { font-size: 56px; font-weight: 700; color: var(--rv-ink); letter-spacing: -.02em; }
.review-overall__count { font-size: 13.5px; color: var(--rv-muted); margin-top: 6px; font-weight: 600; }
.reviews-section .stars-outer { color: #dfe3dc; letter-spacing: 1px; }
.reviews-section .stars-inner, .qa-section .stars-inner { color: var(--rv-star); }
.reviews-section .distribution-row { gap: 12px; margin-bottom: 9px; }
.reviews-section .dist-label { font-size: 13px; color: var(--rv-ink); white-space: nowrap; }
.reviews-section .dist-bar-bg { height: 8px; background: #edf0ea; border-radius: 999px; }
.reviews-section .dist-bar-fill { background: linear-gradient(90deg, #f5b301, #f8c94a); border-radius: 999px; }
.reviews-section .dist-count { font-size: 12.5px; color: var(--rv-muted); font-variant-numeric: tabular-nums; }

/* Yıldız dağılımı satırları artık filtre düğmesi */
.reviews-section button.distribution-row {
    display: flex; align-items: center; width: 100%; border: 0; background: transparent; font: inherit; color: inherit;
    padding: 4px 8px; margin: 0 -8px 5px; width: calc(100% + 16px); border-radius: 10px; cursor: pointer; text-align: left;
    transition: background .2s;
}
.reviews-section button.distribution-row:hover:not(:disabled) { background: #f1f5ef; }
.reviews-section button.distribution-row:focus-visible { outline: 2px solid var(--rv-brand-2); outline-offset: 1px; }
.reviews-section button.distribution-row:disabled { cursor: default; opacity: .55; }
.reviews-section button.distribution-row.is-active { background: #fff7dc; box-shadow: inset 0 0 0 1px #f5d77a; }
.reviews-section button.distribution-row .dist-bar-bg { display: block; flex: 1; }
.reviews-section button.distribution-row .dist-bar-fill { display: block; }

/* Müşteri fotoğrafları şeridi */
.rv-gallery { margin: 0 0 22px; }
.rv-gallery__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rv-gallery__head strong { color: var(--rv-ink); font-size: 15px; }
.rv-gallery__head span { color: var(--rv-muted); font-size: 13px; }
.rv-gallery__track {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.rv-gallery__item {
    position: relative; flex: none; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
    cursor: pointer; scroll-snap-align: start; background: var(--rv-soft); box-shadow: inset 0 0 0 1px var(--rv-line);
}
.rv-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rv-gallery__item:hover img { transform: scale(1.07); }
.rv-gallery__item:focus-visible { outline: 2px solid var(--rv-brand-2); outline-offset: 2px; }
.rv-gallery__more {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(29,43,34,.55); color: #fff; font-weight: 700; font-size: 18px;
}

/* Filtre / sıralama çubuğu */
.rv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.rv-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-chip {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rv-line); background: #fff; color: var(--rv-ink);
    font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.rv-chip b { font-weight: 700; color: var(--rv-muted); font-size: 12.5px; }
.rv-chip:hover { border-color: #cfdacb; background: var(--rv-soft); }
.rv-chip.is-active { background: var(--rv-brand); border-color: var(--rv-brand); color: #fff; }
.rv-chip.is-active b { color: rgba(255,255,255,.75); }
.rv-chip--star { background: #fff7dc; border-color: #f5d77a; color: #7a5a00; }
.rv-chip--star:hover { background: #ffefb8; border-color: #f0c94f; }
.rv-chip:focus-visible, .rv-sort select:focus-visible { outline: 2px solid var(--rv-brand-2); outline-offset: 2px; }
.rv-sort select {
    appearance: none; -webkit-appearance: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--rv-ink);
    border: 1px solid var(--rv-line); border-radius: 999px; padding: 8px 34px 8px 14px; cursor: pointer;
    background: #fff 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='%236b776f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
}
.rv-status { margin: -6px 0 14px; font-size: 13px; color: var(--rv-muted); }
.rv-list .review-card-premium[hidden], .rv-chip[hidden], .rv-status[hidden], .rv-empty[hidden] { display: none !important; }
.rv-empty--filter { margin-bottom: 26px; }

/* "Satın aldı" rozeti */
.rv-verified {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px;
    background: #e8f3ea; color: #24613a; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}

/* Fotoğraf şeridinden gelindiğinde yorumu kısa süre vurgula */
@keyframes rvFlash { 0%, 100% { box-shadow: 0 1px 2px rgba(29,43,34,.03); } 25% { box-shadow: 0 0 0 3px rgba(74,124,89,.35), var(--rv-shadow); } }
.reviews-section .review-card-premium.rv-flash { animation: rvFlash 1.6s ease; }

/* Yorum kartı */
.reviews-section .review-card-premium {
    background: #fff; border: 1px solid var(--rv-line); border-radius: 20px; padding: 22px 24px; margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(29,43,34,.03); transition: box-shadow .3s ease, transform .3s ease, border-color .3s;
}
.reviews-section .review-card-premium:hover { transform: translateY(-2px); box-shadow: var(--rv-shadow); border-color: #dbe3d8; }
.reviews-section .review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review-header__main { flex: 1; min-width: 0; display: flex; flex-direction: column-reverse; gap: 2px; }
.rv-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; background: var(--rv-brand-soft); color: var(--rv-brand);
}
.reviews-section .review-header .stars-outer { font-size: 16px; }
.reviews-section .reviewer-name { margin-top: 0; font-size: 15px; color: var(--rv-ink); }
.reviews-section .review-date { font-size: 12.5px; color: var(--rv-muted); align-self: flex-start; }
.reviews-section .review-text { color: #334139; font-size: 15px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.reviews-section .review-photos { gap: 10px; margin-top: 14px; }
.reviews-section .review-photo-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; border: 1px solid var(--rv-line); cursor: zoom-in; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s; }
.reviews-section .review-photo-thumb:hover { transform: scale(1.06); box-shadow: 0 10px 22px rgba(26,46,30,.18); }
@media (max-width: 480px) { .reviews-section .review-photo-thumb { width: 84px; height: 84px; } }
.reviews-section .my-review-menu button:first-child { width: 32px; height: 32px; border-radius: 10px !important; font-size: 20px !important; }
.reviews-section .my-review-menu button:first-child:hover { background: var(--rv-soft) !important; }
.reviews-section .my-review-menu > div { border-radius: 12px !important; padding: 6px !important; border-color: var(--rv-line) !important; box-shadow: 0 12px 30px rgba(0,0,0,.12) !important; }
.reviews-section .my-review-menu > div button, .reviews-section .my-review-menu > div form button { border-radius: 8px; }
.reviews-section .my-review-menu > div button:hover { background: var(--rv-soft) !important; }

/* Boş durum */
.rv-empty {
    text-align: center; padding: 34px 20px; border: 1px dashed #d4dcd1; border-radius: 20px; background: #fbfcfa; margin-bottom: 10px;
}
.rv-empty > span {
    display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center;
    background: #fff7dc; color: var(--rv-star); font-size: 26px; margin-bottom: 10px;
}
.rv-empty--qa > span { background: var(--rv-brand-soft); color: var(--rv-brand); font-weight: 800; font-size: 22px; }
.rv-empty strong { display: block; color: var(--rv-ink); font-size: 1.05rem; }
.rv-empty p { color: var(--rv-muted); margin: 6px auto 0; max-width: 420px; font-size: 14px; }
.rv-empty a { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--rv-brand-2); }

/* ── Soru & Cevap ── */
.qa-section .qa-thread {
    background: #fff; border: 1px solid var(--rv-line); border-radius: 20px; padding: 20px 22px; margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(29,43,34,.03);
}
.qa-section .qa-question, .qa-section .qa-answer { display: flex; gap: 14px; align-items: flex-start; }
.qa-section .qa-question { margin-bottom: 14px; padding-right: 34px; }
.qa-mark {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.qa-mark--q { background: var(--rv-brand); color: #fff; }
.qa-mark--a { background: var(--rv-brand-soft); color: var(--rv-brand); }
.qa-body { flex: 1; min-width: 0; }
.qa-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.qa-section .qa-author { font-size: 14px; color: var(--rv-ink); }
.qa-section .qa-date { margin-left: 0; font-size: 12.5px; color: var(--rv-muted); }
.qa-section .qa-text { margin-top: 4px; color: #334139; line-height: 1.65; font-size: 15px; overflow-wrap: anywhere; }
.qa-section .qa-question .qa-text { font-weight: 600; color: var(--rv-ink); }
.qa-section .qa-answer {
    margin: 0 0 10px 48px; padding: 14px 16px; border-radius: 4px 16px 16px 16px; background: var(--rv-soft); border: 0;
    padding-right: 40px;
}
.qa-section .qa-answer.admin-reply { background: linear-gradient(135deg, #eaf3ec, #f4f8f3); border-left: 0; box-shadow: inset 3px 0 0 var(--rv-brand-2); }
.qa-section .qa-answer.admin-reply .qa-mark--a { background: var(--rv-brand-2); color: #fff; }
.qa-section .admin-badge { background: var(--rv-brand); font-size: 10.5px; letter-spacing: .04em; margin-left: 0; }
.qa-section .qa-menu > button { border-radius: 10px !important; }
.qa-section .qa-menu > button:hover { background: var(--rv-soft) !important; }

.qa-section .qa-reply-form { display: flex; gap: 8px; margin: 12px 0 0 48px; }
.qa-section .qa-reply-form input[type="text"] {
    flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--rv-line); border-radius: 12px; background: var(--rv-soft);
    font: inherit; font-size: 14px; transition: border-color .2s, background .2s;
}
.qa-section .qa-reply-form input[type="text"]:focus { outline: none; background: #fff; border-color: var(--rv-brand-2); box-shadow: 0 0 0 3px rgba(74,124,89,.12); }
.qa-section .qa-reply-form button {
    border: 0; cursor: pointer; background: var(--rv-brand); color: #fff; font-weight: 600; font-size: 13.5px; padding: 0 18px; border-radius: 12px; transition: background .2s;
}
.qa-section .qa-reply-form button:hover { background: #22402f; }

/* Soru sor kartı */
.qa-ask { margin-top: 30px; background: #fff; border: 1px solid #e6ece4; border-radius: 20px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--rv-shadow); }
.qa-ask__head h3 { margin: 0 0 4px; font-size: 1.3rem; color: var(--rv-ink); }
.qa-ask__head p { margin: 0 0 20px; color: var(--rv-muted); font-size: 14px; }
.qa-ask .guest-name-row { gap: 14px !important; }
.qa-ask label { font-size: 13px !important; font-weight: 700 !important; color: #334155 !important; margin-bottom: 6px !important; }
.qa-ask input[type="text"], .qa-ask input[type="email"], .qa-ask .qa-ask__text {
    width: 100%; box-sizing: border-box; border: 1.5px solid #e2e8e0 !important; border-radius: 12px !important; padding: 12px 14px !important;
    background: #fbfcfa !important; font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s !important;
}
.qa-ask .qa-ask__text { min-height: 110px; resize: vertical; margin-bottom: 14px; line-height: 1.6; display: block; }
.qa-ask input:focus, .qa-ask .qa-ask__text:focus { outline: none; background: #fff !important; border-color: var(--rv-brand-2) !important; box-shadow: 0 0 0 4px rgba(74,124,89,.12); }
.qa-ask__submit {
    display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: #1a2e1e; color: #fff;
    font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 12px; transition: background .2s, transform .15s, box-shadow .2s;
}
.qa-ask__submit:hover { background: var(--rv-brand); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(26,46,30,.18); }

@media (max-width: 680px) {
    .rv-toolbar { flex-direction: column; align-items: stretch; }
    .rv-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
    .rv-chips::-webkit-scrollbar { display: none; }
    .rv-chip { flex: none; }
    .rv-sort select { width: 100%; }
    .rv-gallery__item { width: 82px; height: 82px; }
    .reviews-section .review-summary-container { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .reviews-section .review-overall { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rv-line); padding-bottom: 18px; }
    .reviews-section .review-card-premium, .qa-section .qa-thread { padding: 18px; border-radius: 18px; }
    .rv-avatar { width: 40px; height: 40px; font-size: 13.5px; }
    .qa-section .qa-answer { margin-left: 18px; }
    .qa-section .qa-reply-form { margin-left: 0; }
    .qa-ask .guest-name-row { flex-direction: column; }
    .qa-ask__submit { width: 100%; justify-content: center; }
}
