/* Customer Reviews — ported from "Customer Reviews.html" section.reviews (task §4/§7). */

.pre-reviews {
	padding: 72px 0 40px;
	background: #FFFFFF;
	color: #111111;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.pre-reviews *,
.pre-reviews *::before,
.pre-reviews *::after {
	box-sizing: border-box;
}

.pre-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.pre-reviews-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 34px;
	gap: 16px;
	flex-wrap: wrap;
}

.pre-reviews-head h2 {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 34px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin: 0;
	color: #111111;
}

.pre-note {
	font-size: 14px;
	color: #555555;
}

.pre-empty {
	font-size: 15px;
	color: #555555;
	margin: 0;
}

/* ---------- Grid ---------- */
.pre-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.pre-grid[data-cols="1"] {
	grid-template-columns: 1fr;
}

/* ---------- Star row ---------- */
.pre-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 0;
}

.pre-stars svg {
	width: 18px;
	height: 18px;
	display: block;
}

.pre-stars svg.on {
	fill: #C9A84C;
}

.pre-stars svg.off {
	fill: #E0E0E0;
}

/* ---------- Card ---------- */
.pre-card {
	background: #FFFFFF;
	border: 1px solid #E0E0E0;
	border-radius: 6px;
	padding: 28px 28px 24px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pre-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.pre-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.pre-card-top .pre-date {
	font-size: 13px;
	color: #AAAAAA;
}

.pre-card blockquote {
	margin: 0;
	font-size: 16px;
	line-height: 1.62;
	color: #111111;
	flex: 1;
}

.pre-card blockquote p {
	margin: 0 0 0.8em;
}

.pre-card blockquote p:last-child {
	margin-bottom: 0;
}

.pre-card-foot {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #E0E0E0;
	flex-wrap: wrap;
}

.pre-reviewer {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.pre-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #0D0D0D;
	color: #C9A84C;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 17px;
	text-transform: uppercase;
	flex: none;
}

.pre-who {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.pre-who .pre-name {
	font-weight: 700;
	font-size: 14.5px;
	color: #111111;
}

.pre-verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1B8A5B;
	margin-top: 5px;
}

/* ---------- Reviewed product ---------- */
.pre-product {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-left: auto;
	text-decoration: none;
	padding: 6px;
	border-radius: 4px;
	transition: background 140ms ease;
	max-width: 52%;
}

.pre-product:hover {
	background: #F5F5F5;
}

.pre-thumb {
	width: 46px;
	height: 46px;
	border-radius: 4px;
	background: #F5F5F5;
	border: 1px solid #E0E0E0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	overflow: hidden;
}

.pre-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pre-thumb svg {
	width: 24px;
	height: 24px;
	color: #6a6a6a;
	stroke-width: 1.6;
}

.pre-pmeta {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
}

.pre-plabel {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #AAAAAA;
	margin-bottom: 2px;
}

.pre-pname {
	font-size: 13.5px;
	font-weight: 600;
	color: #111111;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pre-arrow {
	color: #CC2200;
}

/* ---------- Condition badge ---------- */
.pre-badge-cond {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 3px;
}

.pre-cond-used {
	background: #424242;
	color: #FFFFFF;
}

.pre-cond-new {
	background: #1B5E20;
	color: #FFFFFF;
}

/* ---------- Footer: showing line + pager ---------- */
.pre-loadmore {
	text-align: center;
	padding: 48px 0 8px;
}

.pre-showing {
	font-size: 14px;
	color: #555555;
	margin: 0 0 20px;
}

.pre-showing strong {
	color: #111111;
}

.pre-pager {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
}

.pre-pager .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border: 1px solid #E0E0E0;
	background: #FFFFFF;
	border-radius: 4px;
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: #111111;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 140ms ease;
	text-decoration: none;
}

.pre-pager a.page-numbers:hover {
	border-color: #0D0D0D;
}

.pre-pager .page-numbers.current {
	background: #0D0D0D;
	color: #FFFFFF;
	border-color: #0D0D0D;
}

.pre-pager .page-numbers.dots {
	border: none;
	background: none;
	color: #AAAAAA;
}

.pre-pager .prev.page-numbers,
.pre-pager .next.page-numbers {
	color: #AAAAAA;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.pre-reviews {
		padding: 48px 0 24px;
	}

	.pre-grid {
		grid-template-columns: 1fr;
	}

	.pre-card-foot {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.pre-product {
		margin-left: 0;
		max-width: 100%;
	}
}

/* ============================================================
   Rating Summary — ported from "Customer Reviews.html" section.summary
   ============================================================ */
.pre-summary {
	background: #FFFFFF;
	color: #111111;
	border-bottom: 1px solid #E0E0E0;
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.pre-summary *,
.pre-summary *::before,
.pre-summary *::after {
	box-sizing: border-box;
}

.pre-summary .pre-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.pre-summary-eyebrow {
	font-family: "DM Sans", sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #C9A84C;
	margin: 20px 0 0;
}

.pre-summary-grid {
	display: grid;
	grid-template-columns: 300px 1px 1fr;
	align-items: center;
	gap: 48px;
	padding: 44px 0;
}

.pre-sum-score {
	text-align: center;
}

.pre-sum-score .pre-big {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 84px;
	line-height: 0.9;
	color: #111111;
}

.pre-sum-score .pre-of {
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
	font-size: 22px;
	color: #AAAAAA;
}

.pre-sum-score .pre-stars {
	justify-content: center;
	margin: 12px 0 8px;
}

.pre-sum-score .pre-count {
	font-size: 14px;
	color: #555555;
}

.pre-sum-score .pre-count strong {
	color: #111111;
}

.pre-sum-score .pre-empty {
	font-size: 15px;
	color: #555555;
	margin: 0;
}

.pre-sum-divider {
	width: 1px;
	background: #E0E0E0;
	align-self: stretch;
}

.pre-sum-breakdown {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 560px;
}

.pre-brk-row {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
}

.pre-brk-row .pre-lbl {
	display: flex;
	align-items: center;
	gap: 5px;
	width: 58px;
	color: #555555;
	font-weight: 600;
	flex: none;
}

.pre-star-mini {
	width: 14px;
	height: 14px;
	fill: #C9A84C;
}

.pre-brk-track {
	flex: 1;
	height: 9px;
	background: #F5F5F5;
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid #E0E0E0;
}

.pre-brk-fill {
	display: block;
	height: 100%;
	background: #C9A84C;
	border-radius: 5px;
	transition: width 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pre-brk-row .pre-pct {
	width: 42px;
	text-align: right;
	color: #555555;
	flex: none;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
	.pre-summary-grid {
		grid-template-columns: 1fr;
		gap: 28px;
		text-align: center;
		padding: 32px 0;
	}

	.pre-sum-divider {
		display: none;
	}

	.pre-sum-breakdown {
		max-width: none;
	}
}
