/* General Reviews — v1 (horizontal scroll + classic card design) */

.gr-section--v1 {
	position: relative;
	padding: 80px 0 64px;
	background: linear-gradient(160deg, var(--primary-background-color) 0%, var(--secondary-background-color) 100%);
	overflow: hidden;
}

.gr-section--v1::before {
	content: '';
	position: absolute;
	inset: -20% -10% auto;
	height: 55%;
	background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12), transparent 70%);
	pointer-events: none;
}

.gr-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
	position: relative;
	z-index: 1;
}

.gr-section__eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--primary-brand-color);
	margin-bottom: 10px;
}

.gr-section__title {
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 700;
	color: var(--primary-title-color);
	line-height: 1.2;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.gr-section__subtitle {
	margin: 0;
	max-width: 520px;
	color: var(--primary-text-color);
	opacity: 0.85;
	line-height: 1.6;
}

.gr-section__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--primary-brand-color);
	color: var(--secondary-background-color);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.gr-section__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
	color: var(--secondary-background-color);
}

/* Horizontal scroll rail (home — v1 & v2) */
.gr-scroll-board {
	position: relative;
	z-index: 1;
}

.gr-scroll-inner {
	position: relative;
}

.gr-scroll-outer {
	position: relative;
	padding: 0 52px;
}

.gr-scroll-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: var(--secondary-background-color);
	color: var(--primary-title-color);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.gr-scroll-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.gr-scroll-nav--prev {
	inset-inline-start: 0;
}

.gr-scroll-nav--next {
	inset-inline-end: 0;
}

.gr-scroll-rail {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scroll-padding-inline: 12px;
	padding: 8px 12px 20px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

/* RTL: first review on the right; same scroll rules as Categories V2 (scrollBy + WebKit vs Firefox edges). */
html[dir="rtl"] .gr-scroll-rail {
	direction: rtl;
}

.gr-scroll-rail .gr-review-item {
	flex: 0 0 min(300px, 88vw);
	scroll-snap-align: start;
}

/* ── V1 card: centered testimonial / quote style ── */
.grv1-card {
	height: 100%;
}

.grv1-card__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
	min-height: 320px;
	padding: 28px 22px 18px;
	border-radius: 22px;
	background: var(--secondary-background-color);
	border: 1px solid rgba(212, 175, 55, 0.2);
	box-shadow:
		0 4px 0 rgba(212, 175, 55, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grv1-card:hover .grv1-card__inner {
	transform: translateY(-5px);
	box-shadow:
		0 4px 0 rgba(212, 175, 55, 0.5),
		0 24px 48px rgba(0, 0, 0, 0.12);
}

.grv1-card__quote-mark {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 4.5rem;
	line-height: 0.85;
	color: var(--primary-brand-color);
	opacity: 0.35;
	margin-bottom: 4px;
	user-select: none;
}

.grv1-card__stars {
	display: inline-flex;
	gap: 4px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(212, 175, 55, 0.12);
	color: var(--primary-brand-color);
	font-size: 0.9rem;
	margin-bottom: 16px;
}

.grv1-card__text {
	margin: 0 0 20px;
	padding: 0;
	border: none;
	width: 100%;
	flex: 1;
}

.grv1-card__text p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.7;
	font-style: italic;
	color: var(--primary-text-color);
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.grv1-card__author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 16px;
}

.grv1-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--secondary-background-color);
	background: linear-gradient(145deg, var(--primary-brand-color), #9a7b1a);
	border: 2px solid var(--secondary-background-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.grv1-card__author-meta {
	text-align: start;
	min-width: 0;
}

.grv1-card__name {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--primary-title-color);
}

.grv1-card__date {
	display: block;
	font-size: 0.75rem;
	color: var(--primary-text-color);
	opacity: 0.7;
	margin-top: 2px;
}

.grv1-card__product {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-top: auto;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--primary-background-color);
	border: 1px solid rgba(212, 175, 55, 0.25);
	text-decoration: none;
	color: inherit;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.grv1-card__product:hover {
	background: rgba(212, 175, 55, 0.1);
	border-color: var(--primary-brand-color);
}

.grv1-card__product img {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.grv1-card__product-text {
	flex: 1;
	min-width: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--primary-title-color);
	text-align: start;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.grv1-card__product i {
	flex-shrink: 0;
	color: var(--primary-brand-color);
	font-size: 0.85rem;
}

/* List page */
.gr-page {
	padding: 48px 0 80px;
	background: linear-gradient(160deg, var(--primary-background-color) 0%, var(--secondary-background-color) 100%);
	min-height: 60vh;
}

.gr-page__header {
	margin-bottom: 36px;
}

.gr-page__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	color: var(--primary-brand-color);
	text-decoration: none;
	font-weight: 600;
}

.gr-page__back:hover {
	text-decoration: underline;
}

.gr-page__title {
	font-size: clamp(1.85rem, 4vw, 2.5rem);
	color: var(--primary-title-color);
	margin: 0 0 10px;
}

.gr-page__subtitle {
	margin: 0;
	color: var(--primary-text-color);
	opacity: 0.85;
}

.gr-page__grid--v1 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.gr-page__empty {
	text-align: center;
	padding: 64px 24px;
	color: var(--primary-title-color);
}

.gr-page__empty i {
	font-size: 2.5rem;
	color: var(--primary-brand-color);
	margin-bottom: 16px;
	display: block;
}

.gr-page .pagination {
	margin-top: 8px;
}

@media (max-width: 992px) {
	.gr-page__grid--v1 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.gr-section--v1 {
		padding: 56px 0 48px;
	}

	.gr-section__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.gr-scroll-outer {
		padding: 0 44px;
	}

	.gr-scroll-nav {
		width: 38px;
		height: 38px;
	}

	.gr-scroll-rail {
		gap: 14px;
		padding: 6px 0 16px;
		scroll-padding-inline: calc(50% - min(260px, 78vw) / 2);
	}

	.gr-scroll-rail::before,
	.gr-scroll-rail::after {
		content: '';
		flex: 0 0 calc(50% - min(260px, 78vw) / 2);
	}

	.gr-scroll-rail .gr-review-item {
		flex: 0 0 min(260px, 78vw);
		scroll-snap-align: center;
	}

	.grv1-card__inner {
		min-height: 260px;
		padding: 20px 16px 14px;
		border-radius: 18px;
	}

	.grv1-card__quote-mark {
		font-size: 3rem;
	}

	.grv1-card__stars {
		font-size: 0.8rem;
		padding: 4px 10px;
		margin-bottom: 12px;
	}

	.grv1-card__text p {
		font-size: 0.88rem;
		line-height: 1.6;
		-webkit-line-clamp: 4;
	}

	.grv1-card__avatar {
		width: 34px;
		height: 34px;
		font-size: 0.85rem;
	}

	.grv1-card__name {
		font-size: 0.85rem;
	}

	.grv1-card__product {
		padding: 10px 12px;
	}

	.grv1-card__product img {
		width: 34px;
		height: 34px;
	}

	.gr-page__grid--v1 {
		grid-template-columns: 1fr;
	}
}
