/*
 * نمایش نظرات در صفحه محصول
 * تنها یک رنگ تاکیدی، یک سیستم گوشه (کارت 16px، تراشه گرد کامل)، سازگار با دارک‌مود قالب.
 */

.wcnz-review { list-style: none; }

.wcnz-review-inner {
	--wcnz-r-border: rgba(128, 136, 148, .22);
	--wcnz-r-muted: rgba(102, 110, 122, .95);
	--wcnz-r-soft: rgba(128, 136, 148, .08);
	position: relative;
	padding: 18px 0;
	border-bottom: 1px solid var(--wcnz-r-border);
	line-height: 2;
}

.wcnz-review:last-child .wcnz-review-inner { border-bottom: 0; }

.wcnz-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }

.wcnz-avatar {
	flex: none; width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--wcnz-r-soft); color: var(--wcnz-accent, #16a34a);
	font-weight: 800; font-size: 15px; line-height: 1;
}

.wcnz-review-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.wcnz-review-author { font-weight: 700; font-size: 14px; }
.wcnz-review-date { font-size: 12px; color: var(--wcnz-r-muted); }

.wcnz-badge {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
	color: var(--wcnz-accent, #16a34a);
	background: color-mix(in srgb, var(--wcnz-accent, #16a34a) 12%, transparent);
}
.wcnz-badge svg { width: 12px; height: 12px; }

.wcnz-review-stars { display: inline-flex; gap: 2px; margin-inline-start: auto; }
.wcnz-review-stars svg { width: 16px; height: 16px; fill: rgba(128, 136, 148, .35); }
.wcnz-review-stars svg.is-on { fill: #f0b429; }

.wcnz-recommend { margin: 0 0 8px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.wcnz-recommend::before { content: ""; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.wcnz-recommend.is-yes { color: var(--wcnz-accent, #16a34a); }
.wcnz-recommend.is-yes::before { background: currentColor; }
.wcnz-recommend.is-no { color: #c0392b; }
.wcnz-recommend.is-no::before { background: currentColor; }

.wcnz-review-text { font-size: 14px; margin-bottom: 12px; }
.wcnz-review-text p:last-child { margin-bottom: 0; }

/* نقاط قوت و ضعف */
.wcnz-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.wcnz-pc { background: var(--wcnz-r-soft); border-radius: 16px; padding: 12px 14px; }
.wcnz-pc-title { display: block; font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.wcnz-pc--pro .wcnz-pc-title { color: var(--wcnz-accent, #16a34a); }
.wcnz-pc--con .wcnz-pc-title { color: #c0392b; }
.wcnz-pc ul { margin: 0; padding: 0; list-style: none; }
.wcnz-pc li { font-size: 13px; line-height: 1.9; padding-inline-start: 14px; position: relative; }
.wcnz-pc li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .85em;
	width: 6px; height: 1.5px; background: currentColor; opacity: .5;
}

/* تصاویر نظر */
.wcnz-review-images { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.wcnz-review-image {
	display: block; width: 72px; height: 72px; border-radius: 16px; overflow: hidden;
	border: 1px solid var(--wcnz-r-border); transition: transform .15s ease;
}
.wcnz-review-image:hover { transform: translateY(-2px); }
.wcnz-review-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wcnz-pending { font-size: 12px; color: var(--wcnz-r-muted); margin: 8px 0 0; }

.wcnz-extras { margin-top: 10px; }

/* لایت‌باکس */
.wcnz-lb {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(9, 11, 14, .92);
	padding: 56px 16px;
	opacity: 0; transition: opacity .18s ease;
	direction: rtl;
}
.wcnz-lb.is-open { opacity: 1; }

.wcnz-lb-figure {
	margin: 0; max-width: min(1100px, 92vw); max-height: 84vh;
	display: flex; align-items: center; justify-content: center;
}
.wcnz-lb-img {
	display: block; max-width: 100%; max-height: 84vh;
	width: auto; height: auto; object-fit: contain;
	border-radius: 14px; background: #111;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.wcnz-lb button {
	position: absolute; display: flex; align-items: center; justify-content: center;
	margin: 0; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255, 255, 255, .12); color: #fff;
	box-shadow: none; text-shadow: none; line-height: 1; font-size: 0;
	transition: background .16s ease;
	-webkit-appearance: none; appearance: none;
}
.wcnz-lb button:hover { background: rgba(255, 255, 255, .24); }
.wcnz-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wcnz-lb button svg { width: 22px; height: 22px; }

.wcnz-lb-close { top: 14px; inset-inline-end: 14px; width: 42px; height: 42px; }
.wcnz-lb-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.wcnz-lb-prev { inset-inline-start: 14px; }
.wcnz-lb-next { inset-inline-end: 14px; }
.wcnz-lb-nav[hidden] { display: none; }

.wcnz-lb-count {
	position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
	color: rgba(255, 255, 255, .8); font-size: 12.5px;
}

@media (max-width: 520px) {
	.wcnz-proscons { grid-template-columns: 1fr; }
	.wcnz-lb { padding: 48px 8px; }
	.wcnz-lb-nav { width: 38px; height: 38px; }
	.wcnz-review-stars { margin-inline-start: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.wcnz-review-image, .wcnz-lb { transition: none; }
}
