/* ── Video Testimonials Carousel ── */

.beau-vtest {
	background: var(--beautera-paper);
	padding-block: var(--beautera-section-pad-block, 96px);
	padding-inline: var(--beautera-section-pad-inline, 6vw);
}
.beau-vtest__inner {
	max-width: 1280px;
	margin-inline: auto;
}
.beau-vtest__shell {
	position: relative;
	margin-block-start: 48px;
}

/* Track */
.beau-vtest__track {
	--beau-vt-count: 4;
	--beau-vt-gap: 20px;
	display: flex;
	gap: var(--beau-vt-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.beau-vtest__track::-webkit-scrollbar { display: none; }
.beau-vtest--js .beau-vtest__track { scroll-snap-type: none; }
.beau-vtest__track.is-dragging { scroll-behavior: auto; cursor: grabbing; user-select: none; }

.beau-vtest__cell {
	flex: 0 0 calc((100% - (var(--beau-vt-count) - 1) * var(--beau-vt-gap)) / var(--beau-vt-count));
	scroll-snap-align: start;
	margin: 0;
	min-width: 0;
}

/* Card */
.beau-vtest__media {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: 18px;
	overflow: hidden;
	background: var(--beautera-beige);
	cursor: pointer;
}
/* Extra specificity: .beau-theme img { height: auto } must not win here. */
.beau-vtest__media img.beau-vtest__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.beau-vtest__media:hover .beau-vtest__thumb { transform: scale(1.04); }

.beau-vtest__caption {
	position: absolute;
	inset-inline: 0;
	z-index: 2;
	padding-inline: 16px;
	text-align: center;
	font-family: var(--beautera-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #FFFFFF;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
	pointer-events: none;
}
.beau-vtest__caption--top { top: 22px; }
.beau-vtest__caption--bottom { bottom: 22px; }

.beau-vtest__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background: var(--beautera-gold);
	color: var(--beautera-paper);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(30, 24, 15, 0.35);
	transition: transform 0.25s ease, background 0.25s ease;
}
.beau-vtest__play svg { margin-inline-start: 3px; }
.beau-vtest__media:hover .beau-vtest__play {
	transform: translate(-50%, -50%) scale(1.1);
	background: var(--beautera-gold-deep);
}

/* Playing state */
.beau-vtest__media.is-playing { cursor: default; }
.beau-vtest__media.is-playing .beau-vtest__thumb,
.beau-vtest__media.is-playing .beau-vtest__caption,
.beau-vtest__media.is-playing .beau-vtest__play { display: none; }
.beau-vtest__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
	z-index: 1;
}

/* Muted autoplay preview: player runs under the caption + play overlay
   and stays click-through so the play button still opens sound playback. */
.beau-vtest__media.is-preview .beau-vtest__thumb { display: none; }
.beau-vtest__media.is-preview .beau-vtest__player { pointer-events: none; }
video.beau-vtest__player { object-fit: cover; }
.beau-vtest__close {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	z-index: 3;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #FFFFFF;
	font-size: 18px;
	line-height: 1;
	display: grid;
	place-items: center;
	cursor: pointer;
}
.beau-vtest__close:hover { background: rgba(0, 0, 0, 0.8); }

.beau-vtest__name {
	margin-block-start: 14px;
	text-align: center;
	font-family: var(--beautera-serif);
	font-size: 1.05rem;
	color: var(--beautera-ink);
}

/* Arrows */
.beau-vtest__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 44px;
	height: 44px;
	border: 1px solid var(--beautera-line-strong);
	border-radius: 50%;
	background: var(--beautera-paper);
	color: var(--beautera-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: color 0.25s ease, border-color 0.25s ease;
}
.beau-vtest__arrow:hover { color: var(--beautera-gold); border-color: var(--beautera-gold); }
.beau-vtest__arrow--prev { inset-inline-start: -14px; }
.beau-vtest__arrow--next { inset-inline-end: -14px; }

/* Dots */
.beau-vtest__dots {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-block-start: 30px;
}
.beau-vtest__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--beautera-line-strong);
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}
.beau-vtest__dot.is-active {
	background: var(--beautera-gold);
	transform: scale(1.25);
}

@media (max-width: 1024px) {
	.beau-vtest__track { --beau-vt-count: 2.2; }
}
@media (max-width: 700px) {
	.beau-vtest__arrow { display: none; }
}
@media (max-width: 640px) {
	.beau-vtest__track { --beau-vt-count: 1.15; }
}
