/**
 * Product Reviews Section Styles
 * Dark overlay reviews carousel, store info banner, video section.
 *
 * Design spec:
 * - Dark background: full-width with bg image + rgba(0,0,0,0.5) overlay
 * - Heading: Playfair Display Regular 20px, white, centered
 * - 3 review cards side by side, 12px gap
 * - Card: white bg, 24px padding
 * - Avatar: 40x40, reviewer name Barlow Bold 16px brown, date Barlow Regular 14px brown
 * - Stars: 16x16, 2px gap, "5/5" label Barlow Bold 14px brown
 * - Review text: Barlow Regular 14px brown
 * - Dot pagination: active = 32px pill, inactive = 8x8 circle
 * - Store info: #f5f0eb bg, Barlow Regular 16px, max-width 800px, centered
 * - Video section: same dark overlay, centered 32x32 play button
 */

/* =============================================
   Reviews section wrapper — full width, no margin
   ============================================= */
.anm-reviews-section {
	margin-top: 48px;
	width: 100%;
}

/* =============================================
   Dark background with overlay
   ============================================= */
.anm-reviews-dark-bg {
	position: relative;
	background-color: #2c2c2c;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 48px 64px;
}

.anm-reviews-dark-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 0;
}

.anm-reviews-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
}

/* =============================================
   Heading
   ============================================= */
.anm-reviews-heading {
	font-family: 'Playfair Display', serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.4;
	color: #ffffff;
	text-align: center;
	margin: 0 0 32px;
	letter-spacing: 0;
}

/* =============================================
   Carousel container
   ============================================= */
.anm-reviews-carousel {
	position: relative;
	overflow: hidden;
}

.anm-reviews-track {
	display: flex;
	gap: 12px;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

/* =============================================
   Review card — 3 equal columns
   ============================================= */
.anm-review-card {
	flex: 0 0 calc((100% - 24px) / 3);
	min-width: calc((100% - 24px) / 3);
	background: #ffffff;
	padding: 24px;
	border-radius: 4px;
	box-sizing: border-box;
}

.anm-2-cards .anm-review-card {
	flex: 0 0 calc((100% - 12px) / 2);
	min-width: calc((100% - 12px) / 2);
}

/* =============================================
   Review header: avatar + name + date
   ============================================= */
.anm-review-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.anm-review-avatar {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
}

.anm-review-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.anm-review-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.anm-review-author {
	font-family: 'Barlow', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.25;
	color: #5c4033;
}

.anm-review-date {
	font-family: 'Barlow', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.3;
	color: #5c4033;
}

/* =============================================
   Star rating row
   ============================================= */
.anm-review-rating {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-bottom: 12px;
}

.anm-star {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.anm-rating-label {
	font-family: 'Barlow', sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	color: #5c4033;
	margin-left: 8px;
}

/* =============================================
   Review text
   ============================================= */
.anm-review-text {
	font-family: 'Barlow', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: #5c4033;
}

.anm-review-text p {
	margin: 0;
}

/* =============================================
   Dot pagination
   Active dot = 32px wide pill, inactive = 8x8 circle
   ============================================= */
.anm-reviews-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.anm-dot {
	width: 8px;
	height: 8px;
	border-radius: 99px;
	border: none;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	padding: 0;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.anm-dot.is-active {
	width: 32px;
	background: #2B9947;
}

.anm-dot:hover:not(.is-active) {
	background: rgba(255, 255, 255, 0.6);
}

.anm-dot:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* =============================================
   Store info banner
   #f5f0eb bg, centered paragraph, max-width 800px
   ============================================= */
.anm-store-info-banner {
	background: rgba(89, 64, 46, 0.05);
	padding: 64px;
	text-align: center;
}

.anm-store-info-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.anm-store-info-inner p {
	font-family: 'Barlow', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #4a4a4a;
	max-width: 800px;
	margin: 0 auto;
}

/* =============================================
   Video section
   Same dark overlay bg, centered 32x32 play button
   ============================================= */
.anm-video-section {
	position: relative;
	background-color: #2c2c2c;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	aspect-ratio: 16 / 5;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px;
	box-sizing: border-box;
}

.anm-video-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 0;
}

.anm-video-inner {
	position: relative;
	z-index: 1;
}

.anm-video-play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: none;
	background: none;
	cursor: pointer;
	padding: 0;
	transition: transform 0.2s ease;
}

.anm-video-play:hover {
	transform: scale(1.1);
}

.anm-video-play:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
	border-radius: 50%;
}

.anm-video-play svg {
	width: 32px;
	height: 32px;
	display: block;
	color: #ffffff;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* When the YouTube iframe is injected on click, fill the section
   and hide the play button + dark overlay. */
.anm-video-section.is-playing::before {
	display: none;
}

.anm-video-section.is-playing .anm-video-inner {
	display: none;
}

.anm-video-section iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 2;
}

/* =============================================
   Responsive — Tablet (max 999px)
   ============================================= */
@media (max-width: 999px) {
	.anm-reviews-dark-bg {
		padding: 32px;
	}

	.anm-store-info-banner {
		padding: 48px;
	}

	.anm-review-card {
		flex: 0 0 calc((100% - 12px) / 2);
		min-width: calc((100% - 12px) / 2);
	}
}

/* =============================================
   Responsive — Mobile (max 767px)
   ============================================= */
@media (max-width: 767px) {
	.anm-reviews-section {
		margin-top: 32px;
	}

	.anm-reviews-dark-bg {
		padding: 24px 16px;
	}

	.anm-store-info-banner {
		padding: 40px 24px;
	}

	.anm-review-card {
		flex: 0 0 100%;
		min-width: 100%;
	}

	.anm-reviews-heading {
		font-size: 18px;
		margin-bottom: 24px;
	}

	.anm-video-section {
		aspect-ratio: 16 / 9;
		min-height: 200px;
		padding: 32px 16px;
	}

	.anm-store-info-inner p {
		font-size: 14px;
	}
}
