/**
 * Homepage customer reviews carousel.
 */

.ju-reviews-section {
	padding: 48px 0 56px;
	background: #f7f7f5;
}

.ju-reviews-header {
	text-align: center;
	margin-bottom: 28px;
}

.ju-reviews-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #3a3a3a;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.3;
	margin-bottom: 14px;
}

.ju-reviews-title {
	margin: 0;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 800;
	line-height: 1.25;
	color: #111;
	letter-spacing: -0.02em;
}

.ju-reviews-carousel {
	position: relative;
}

.ju-reviews-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 8px 4px 16px;
	scrollbar-width: none;
}

.ju-reviews-track::-webkit-scrollbar {
	display: none;
}

.ju-review-card {
	flex: 0 0 min(280px, 78vw);
	scroll-snap-align: start;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(17, 17, 17, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

@media (min-width: 750px) {
	.ju-review-card {
		flex-basis: calc((100% - 36px) / 3);
	}
}

@media (min-width: 1100px) {
	.ju-review-card {
		flex-basis: calc((100% - 54px) / 4);
	}
}

.ju-review-card__media {
	aspect-ratio: 1 / 1;
	background: #eee;
	overflow: hidden;
}

.ju-review-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ju-review-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}

.ju-review-card__verified {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	color: #8a8a8a;
	line-height: 1.3;
}

.ju-review-card__check {
	flex-shrink: 0;
}

.ju-review-card__content {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 4.65em;
}

.ju-review-card__footer {
	margin-top: auto;
	padding-top: 10px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.ju-review-card__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ju-review-card__name {
	font-size: 14px;
	font-weight: 700;
	color: #111;
	line-height: 1.3;
}

.ju-review-card__stars {
	display: inline-flex;
	gap: 1px;
	line-height: 1;
}

.ju-review-card__star {
	font-size: 14px;
	color: #d8d8d8;
}

.ju-review-card__star.is-filled {
	color: #f5a623;
}

.ju-review-card__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #e8e8e1;
}

.ju-review-card__avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
}

.ju-reviews-nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

.ju-reviews-nav__btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid #cfcfcf;
	background: #fff;
	color: #333;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ju-reviews-nav__btn:hover {
	border-color: #111;
	color: #111;
}

.ju-reviews-nav__btn:disabled {
	opacity: 0.35;
	cursor: default;
}
