/* Ürün yorumları (iki tema ortak) */
.prv,
.prv-page,
.prv-modal,
.prv-inline {
	--prv-blue: #1e5fbf;
	--prv-blue-deep: #1455a9;
	--prv-star: #f5a800;
	--prv-ink: #1b1b1b;
	--prv-muted: #5c6570;
	--prv-line: #e8ecf1;
	--prv-soft: #f4f6f8;
	--prv-green: #15803d;
	color: var(--prv-ink);
	box-sizing: border-box;
}

.prv *,
.prv-page *,
.prv-modal * { box-sizing: border-box; }

.prv { margin: 0 0 8px; scroll-margin-top: 120px; }

/* Ürün adı altındaki puan */
.prv-score {
	--prv-star: #f5a800;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	margin: 0 0 8px;
	color: #1b1b1b;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
}

.prv-score b { font-size: 15px; font-weight: 700; }
.prv-score__count { color: #1e5fbf; text-decoration: underline; text-underline-offset: 3px; }
.prv-score:hover { color: #1b1b1b; text-decoration: none; }
.prv-score:hover .prv-score__count { color: #1455a9; }
.prv-score:focus-visible { outline: 3px solid #9cc0f5; outline-offset: 2px; border-radius: 6px; }

/* Ondalık dolan yıldız */
.prv-rate { position: relative; display: inline-block; color: #dbe1e8; font-size: 16px; line-height: 1; white-space: nowrap; vertical-align: middle; }
.prv-rate .fa { width: 1.12em; margin: 0; font-size: inherit; line-height: 1; text-align: center; }
.prv-rate__fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; color: #f5a800; }

.prv__card {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	border: 1px solid var(--prv-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 22px rgba(20, 40, 80, .08);
	overflow: hidden;
}

.prv__side { padding: 24px; border-right: 1px solid var(--prv-line); background: #fafbfd; }
.prv__overall { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.prv__avg { font-size: 50px; font-weight: 700; line-height: .95; letter-spacing: -.02em; }
.prv__overall .prv-rate { font-size: 18px; }
.prv__total { display: block; margin-top: 6px; color: var(--prv-muted); font-size: 13px; }

.prv__bars { display: grid; gap: 9px; margin: 0 0 20px; padding: 0; list-style: none; }
.prv__bars li { display: grid; grid-template-columns: 32px 1fr 24px; align-items: center; gap: 10px; color: var(--prv-muted); font-size: 13px; line-height: 1; }
.prv__bars .fa { color: var(--prv-star); font-size: 12px; }
.prv__bar { height: 8px; border-radius: 999px; background: #e6ebf1; overflow: hidden; }
.prv__bar i { display: block; height: 100%; border-radius: inherit; background: var(--prv-star); }
.prv__num { color: var(--prv-ink); font-weight: 600; text-align: right; }
.prv__num.is-zero { color: #8a94a1; font-weight: 400; }

.prv__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prv__side .prv__cta { min-height: 44px; }
.prv__side .prv__cta .prv-btn { width: 100%; }
.prv__hint { color: var(--prv-muted); font-size: 13px; line-height: 1.5; }
.prv__hint a { color: var(--prv-blue); text-decoration: underline; text-underline-offset: 2px; }

.prv__list { padding: 6px 26px 18px; }

.prv__card--empty { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 24px; }
.prv__emptyicon { display: inline-flex; flex: 0 0 52px; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff6dc; color: var(--prv-star); font-size: 24px; }
.prv__emptyicon .fa { font-size: 24px; }
.prv__emptytext { display: flex; flex: 1 1 240px; flex-direction: column; gap: 3px; color: var(--prv-muted); font-size: 14px; line-height: 1.45; }
.prv__emptytext strong { color: var(--prv-ink); font-size: 16px; }

.prv__count {
	display: inline-block;
	min-width: 24px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--prv-soft);
	color: var(--prv-muted);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
}

.prv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--prv-blue);
	border-radius: 12px;
	background: var(--prv-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.prv-btn:hover { background: var(--prv-blue-deep); color: #fff; }
.prv-btn:disabled { opacity: .6; cursor: default; }
.prv-btn--ghost { background: #fff; border-color: #c5d5ef; color: var(--prv-blue); }
.prv-btn--ghost:hover { background: #eef4ff; color: var(--prv-blue-deep); }
.prv-btn--wide { width: 100%; }
.prv-btn:focus-visible,
.prv-modal button:focus-visible,
.prv-photo:focus-visible { outline: 3px solid #9cc0f5; outline-offset: 2px; }

.prv-stars { display: inline-flex; gap: 2px; color: var(--prv-star); font-size: 15px; line-height: 1; }
.prv-stars .is-off { color: #d5dbe3; }

.prv-list, .prv-cards { margin: 0; padding: 0; list-style: none; }
.prv .prv-list .prv-item { margin: 0; padding: 20px 0 !important; border-top: 1px solid var(--prv-line); }
.prv .prv-list .prv-item:first-child { border-top: 0; }
.prv-item__top { display: flex; align-items: center; gap: 12px; }
.prv-avatar { display: inline-flex; flex: 0 0 42px; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #e8f0fc; color: var(--prv-blue-deep); font-size: 17px; font-weight: 700; }
.prv-item__who { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.prv-item__name, .prv-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; line-height: 1.2; }
.prv-item__name strong { font-size: 15px; font-weight: 700; }
.prv-item__meta time { color: var(--prv-muted); font-size: 13px; }
.prv-item__meta .prv-rate { font-size: 14px; }
.prv-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.prv-item__date { color: var(--prv-muted); font-size: 13px; }
.prv-item__text { max-width: 72ch; margin: 12px 0 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.prv-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--prv-green); font-size: 13px; font-weight: 600; }
.prv-badge--wait { color: #a16207; }

.prv-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prv .prv-photo, .prv-photo { display: block; width: 88px; padding: 0 !important; height: 88px; border: 1px solid var(--prv-line); border-radius: 12px; overflow: hidden; }
.prv .prv-photo img, .prv-photo img { display: block; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; object-fit: cover; transition: transform .2s ease; }
.prv-photo:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .prv-photo img { transition: none; } .prv-photo:hover img { transform: none; } }

.prv-pages { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--prv-line); color: var(--prv-muted); font-size: 14px; }
.prv-pages .prv-btn { width: 44px; padding: 0; font-size: 20px; }
.prv-empty { margin: 0; padding: 14px 0; color: var(--prv-muted); font-size: 15px; }
.prv-note { margin: 8px 0 0; color: var(--prv-muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 860px) {
	.prv__card:not(.prv__card--empty) { grid-template-columns: minmax(0, 1fr); }
	.prv__side { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 22px; padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--prv-line); }
	.prv__overall { flex-direction: column; align-items: center; gap: 8px; margin: 0; text-align: center; }
	.prv__avg { font-size: 42px; }
	.prv__overall .prv-rate { font-size: 15px; }
	.prv__total { font-size: 12px; }
	.prv__bars { gap: 7px; margin: 0; }
	.prv__side .prv__cta { grid-column: 1 / -1; }
	.prv__list { padding: 2px 16px 14px; }
	.prv .prv-list .prv-item { padding: 16px 0 !important; }
	.prv__card--empty { padding: 16px; }
	.prv__card--empty .prv__cta, .prv__card--empty .prv__cta .prv-btn { width: 100%; }
}

/* Değerlendirmelerim */
.prv-page__title { margin: 0 0 16px; font-size: 24px; font-weight: 800; }
.prv-block { margin-bottom: 26px; }
.prv-block__title { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.prv-card { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--prv-line); border-radius: 14px; background: #fff; }
.prv-card--review { align-items: flex-start; }
.prv-card__img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
.prv-card__body { flex: 1 1 auto; min-width: 0; }
.prv-card__body small { color: var(--prv-muted); font-size: 13px; }
.prv-card__name { display: block; margin-bottom: 4px; color: var(--prv-ink); font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.prv-card .prv-btn { flex: 0 0 auto; }
.prv-pref { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; cursor: pointer; }
.prv-pref input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }

@media (max-width: 600px) {
	.prv-card { flex-wrap: wrap; }
	.prv-card__body { flex-basis: calc(100% - 78px); }
	.prv-card .prv-btn { width: 100%; }
}

/* Siparişlerim satır bağlantıları */
.prv-inline-btn {
	padding: 0;
	border: 0;
	background: none;
	color: #15803d;
	font-size: 11px;
	font-weight: 800;
	line-height: inherit;
	cursor: pointer;
}

.prv-inline-btn:hover { text-decoration: underline; }
.prv-inline-btn:disabled { color: #a16207; cursor: default; text-decoration: none; }
.ao-product__links { align-items: center; flex-wrap: wrap; }

.ao-review-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 40px;
	padding: 0 14px;
	border: 1px solid #f1d58a;
	border-radius: 12px;
	background: #fff9e6;
	color: #7a5200;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
}

.ao-review-btn:hover { background: #fff2c7; }
.ao-review-btn:disabled { opacity: .75; cursor: default; }

/* Pencere */
.prv-lock { overflow: hidden; }
.prv-modal {
	position: fixed;
	inset: 0;
	z-index: 1000010; /* çerez çubuğu 999999 */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, .55);
}

.prv-modal__box { display: flex; flex-direction: column; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 18px; background: #fff; overflow: hidden; }
.prv-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--prv-line); font-size: 16px; }
.prv-modal__close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--prv-muted); font-size: 26px; line-height: 1; cursor: pointer; }
.prv-modal__close:hover { background: var(--prv-soft); }
.prv-modal__body { padding: 16px 20px 20px; overflow-y: auto; }
.prv-modal--photo .prv-modal__box { max-width: 900px; }
.prv-modal--photo .prv-modal__body { padding: 0; text-align: center; background: #111; }
.prv-modal--photo img { max-width: 100%; max-height: calc(100vh - 110px); }
.prv-modal--photo .prv-modal__body { position: relative; }
.prv-modal__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1b1b1b; font-size: 22px; line-height: 1; cursor: pointer; }
.prv-modal__nav--prev { left: 10px; }
.prv-modal__nav--next { right: 10px; }

.prv-form__product { margin: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.prv-form__rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 12px; }
.prv-form__stars { display: inline-flex; }
.prv-form__stars label { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; color: #d5dbe3; font-size: 30px; cursor: pointer; }
.prv-form__stars label.is-on { color: var(--prv-star); }
.prv-form__stars input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.prv-form__stars label:focus-within { outline: 3px solid #9cc0f5; border-radius: 10px; }
.prv-form__starlabel { font-size: 14px; color: var(--prv-muted); }
.prv-form textarea { display: block; width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid #cfd7e1; border-radius: 12px; font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.prv-form textarea:focus { border-color: var(--prv-blue); outline: 3px solid #d9e7fb; }
.prv-form__counter { display: block; margin: 4px 0 12px; color: var(--prv-muted); text-align: right; font-size: 12px; }
.prv-form__photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.prv-form__photo { position: relative; width: 84px; height: 84px; }
.prv-form__photo img { width: 100%; height: 100%; border-radius: 12px; border: 1px solid var(--prv-line); object-fit: cover; }
.prv-form__photo button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; background: #1b1b1b; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.prv-form__add { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 84px; height: 84px; padding: 4px; border: 1.5px dashed #b9c6d8; border-radius: 12px; background: var(--prv-soft); color: var(--prv-muted); font-size: 12px; cursor: pointer; }
.prv-form__error { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.prv-form__error[hidden] { display: none; }
.prv-done { margin: 6px 0 16px; padding: 14px; border-radius: 12px; background: #ecfdf3; color: #166534; font-size: 15px; line-height: 1.5; }
.prv-form input[type="file"] { display: none !important; }
.prv-form__stars label .fa { font-size: 30px; line-height: 1; }
.prv-form__add .fa { font-size: 22px; }
