/* BiO-G UGC Video Carousel - scoped to .biog-uv. Colours, visible-card count, gap, radius and padding come from
   Elementor controls as CSS variables. The track is a native scroll-snap container; the script adds arrows, dots and
   video playback. Without the script it is a swipeable row of poster cards. */
.biog-uv {
	--uv-bg: #faf6ee;
	--uv-accent: #1b8559;
	--uv-per: 3.2;
	--uv-gap: 20px;
	--uv-radius: 22px;
	--uv-card-max: 250px; /* compact portrait cards on desktop; the width control overrides this */
	--uv-ink: #252525;
	--uv-muted: #5f635d;
	box-sizing: border-box;
	width: 100%;
	padding: 64px 32px;
	background-color: var(--uv-bg);
	color: var(--uv-ink);
}
.biog-uv *, .biog-uv *::before, .biog-uv *::after { box-sizing: border-box; }
.biog-uv .biog-uv__inner { max-width: 1120px; margin: 0 auto; }
@media (max-width: 1024px) { .biog-uv { --uv-per: 2.1; --uv-gap: 18px; --uv-card-max: 270px; padding: 48px 24px; } }
@media (max-width: 767px) { .biog-uv { --uv-per: 1.1; --uv-gap: 14px; --uv-card-max: 600px; padding: 36px 0 40px 20px; } }

/* ---- header ---------------------------------------------------------------- */
.biog-uv .biog-uv__header { margin: 0 auto 36px; text-align: center; }
.biog-uv .biog-uv__eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--uv-accent); }
.biog-uv .biog-uv__heading { margin: 0 0 12px; padding: 0; font-size: 46px; font-weight: 700 !important; line-height: 1.12; letter-spacing: -0.01em; text-transform: none; text-wrap: balance; color: var(--uv-ink); }
.biog-uv .biog-uv__desc { max-width: 44em; margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--uv-muted); }
@media (max-width: 1024px) { .biog-uv .biog-uv__heading { font-size: 38px; } }
@media (max-width: 767px) {
	.biog-uv .biog-uv__header { margin: 0 20px 24px 0; }
	.biog-uv .biog-uv__heading { font-size: 30px; }
	.biog-uv .biog-uv__desc { font-size: 15.5px; }
}

/* ---- carousel ----------------------------------------------------------------- */
.biog-uv .biog-uv__carousel { position: relative; width: 100%; }
.biog-uv .biog-uv__viewport {
	container-type: inline-size; /* card width is measured against the viewport (100cqw) */
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.biog-uv .biog-uv__viewport::-webkit-scrollbar { display: none; }
.biog-uv .biog-uv__viewport:focus-visible { outline: 2px solid var(--uv-accent); outline-offset: 4px; border-radius: var(--uv-radius); }
.biog-uv .biog-uv__track { display: flex; justify-content: center; /* centred while everything fits, left-aligned once it scrolls */ gap: var(--uv-gap); width: max-content; min-width: 100%; margin: 0; padding: 0; list-style: none; }
.biog-uv .biog-uv__slide {
	flex: 0 0 auto;
	width: min(calc((100cqw - (var(--uv-per) - 1) * var(--uv-gap)) / var(--uv-per)), var(--uv-card-max));
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}
@supports not (width: 1cqw) {
	.biog-uv .biog-uv__slide { width: min(calc((100vw - 64px - (var(--uv-per) - 1) * var(--uv-gap)) / var(--uv-per)), var(--uv-card-max)); }
}
@media (max-width: 767px) { .biog-uv .biog-uv__track { padding-right: 20px; } }

/* ---- card ------------------------------------------------------------------------ */
.biog-uv .biog-uv__card { margin: 0; }
.biog-uv .biog-uv__media { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--uv-radius); background-color: #26302b; isolation: isolate; }
.biog-uv .biog-uv__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; background-color: transparent; }
.biog-uv .biog-uv__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.35); background: linear-gradient(160deg, #2f4a3d 0%, #1d2a24 100%); }
.biog-uv .biog-uv__fallback svg { width: 56px; height: 56px; }
.biog-uv .biog-uv__shade { position: absolute; inset: auto 0 0 0; height: 36%; background: linear-gradient(to top, rgba(10, 16, 13, 0.42) 0%, rgba(10, 16, 13, 0) 100%); pointer-events: none; z-index: 1; }

/* play/pause covers the video; it is a real button so it is keyboard accessible */
.biog-uv .biog-uv__toggle,
.biog-uv .biog-uv__toggle:hover,
.biog-uv .biog-uv__toggle:focus,
.biog-uv .biog-uv__toggle:active {
	position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
	-webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.biog-uv .biog-uv__toggle:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.biog-uv .biog-uv__toggle:focus-visible .biog-uv__ico { box-shadow: 0 0 0 3px var(--uv-accent), 0 4px 18px rgba(0, 0, 0, 0.18); }
.biog-uv .biog-uv__toggle .biog-uv__ico { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; color: #1d2a24; border-radius: 50%; background: rgba(255, 255, 255, 0.86); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18); transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease; }
.biog-uv .biog-uv__toggle .biog-uv__ico svg { width: 24px; height: 24px; }
.biog-uv .biog-uv__toggle .biog-uv__ico--play svg { margin-left: 2px; }
.biog-uv .biog-uv__toggle:hover .biog-uv__ico--play, .biog-uv .biog-uv__toggle:focus-visible .biog-uv__ico--play { transform: scale(1.07); background: #fff; }
.biog-uv .biog-uv__toggle .biog-uv__ico--pause { display: none; }
.biog-uv .biog-uv__card.is-playing .biog-uv__ico--play { display: none; }
.biog-uv .biog-uv__card.is-playing .biog-uv__ico--pause { display: flex; opacity: 0; }
.biog-uv .biog-uv__card.is-playing .biog-uv__toggle:hover .biog-uv__ico--pause,
.biog-uv .biog-uv__card.is-playing .biog-uv__toggle:focus-visible .biog-uv__ico--pause { opacity: 1; }
@media (hover: none) { .biog-uv .biog-uv__card.is-playing .biog-uv__ico--pause { opacity: 0.85; width: 44px; height: 44px; } }
.biog-uv .biog-uv__fallback svg { width: 48px; height: 48px; }

.biog-uv .biog-uv__mute,
.biog-uv .biog-uv__mute:hover,
.biog-uv .biog-uv__mute:focus,
.biog-uv .biog-uv__mute:active {
	position: absolute; top: 12px; right: 12px; z-index: 4; display: none; align-items: center; justify-content: center;
	width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; color: #fff; background: rgba(0, 0, 0, 0.48); border: 0; border-radius: 50%; box-shadow: none; cursor: pointer;
	-webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.biog-uv .biog-uv__mute svg { width: 20px; height: 20px; }
.biog-uv .biog-uv__mute:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.biog-uv .biog-uv__card.is-playing .biog-uv__mute { display: flex; }
.biog-uv .biog-uv__mute .biog-uv__ico { display: flex; }
.biog-uv .biog-uv__mute .biog-uv__ico--sound { display: none; }
.biog-uv .biog-uv__mute[aria-pressed="false"] .biog-uv__ico--muted { display: none; }
.biog-uv .biog-uv__mute[aria-pressed="false"] .biog-uv__ico--sound { display: flex; }

/* bottom area: optional caption + compact product overlay (above the toggle so it stays clickable) */
.biog-uv .biog-uv__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 8px; padding: 10px; pointer-events: none; }
.biog-uv .biog-uv__caption { margin: 0; padding: 0 4px; font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.biog-uv .biog-uv__product,
.biog-uv .biog-uv__product:hover,
.biog-uv .biog-uv__product:focus { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; color: var(--uv-ink); text-decoration: none; background: rgba(255, 253, 249, 0.96); border-radius: 14px; box-shadow: 0 6px 18px rgba(20, 28, 24, 0.16); pointer-events: auto; transition: transform 0.2s ease; }
.biog-uv .biog-uv__product:hover { transform: translateY(-2px); }
.biog-uv .biog-uv__product:focus-visible { outline: 2px solid var(--uv-accent); outline-offset: 2px; }
.biog-uv .biog-uv__thumb-wrap { flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border-radius: 10px; background: #f1efe9; }
.biog-uv .biog-uv__thumb { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.biog-uv .biog-uv__pinfo { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.biog-uv .biog-uv__ptitle { display: -webkit-box; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.biog-uv .biog-uv__pprice { font-size: 13.5px; font-weight: 700; line-height: 1.2; color: var(--uv-accent); }
.biog-uv .biog-uv__pprice .amount, .biog-uv .biog-uv__pprice bdi { color: inherit; font: inherit; }
.biog-uv .biog-uv__pfrom { font-size: 12px; font-weight: 500; color: var(--uv-muted); }

/* ---- controls ----------------------------------------------------------------------- */
.biog-uv .biog-uv__controls { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; margin-top: 24px; visibility: hidden; }
.biog-uv--js .biog-uv__controls { visibility: visible; }
.biog-uv--static .biog-uv__controls { display: none; }
@media (max-width: 767px) { .biog-uv .biog-uv__controls { margin-right: 20px; } }
.biog-uv .biog-uv__btn,
.biog-uv .biog-uv__btn:hover,
.biog-uv .biog-uv__btn:focus,
.biog-uv .biog-uv__btn:active {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0;
	color: var(--uv-ink); background: none; border: 0; border-radius: 6px; box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.biog-uv .biog-uv__btn svg { width: 20px; height: 20px; }
.biog-uv .biog-uv__btn:hover { color: var(--uv-accent); }
.biog-uv .biog-uv__btn[aria-disabled="true"] { opacity: 0.3; cursor: default; }
.biog-uv .biog-uv__btn:focus-visible { outline: 2px solid var(--uv-accent); outline-offset: 2px; }
.biog-uv .biog-uv__dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; max-width: 60%; }
.biog-uv .biog-uv__dot,
.biog-uv .biog-uv__dot:hover,
.biog-uv .biog-uv__dot:focus,
.biog-uv .biog-uv__dot:active { position: relative; width: 18px; height: 28px; min-height: 0; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.biog-uv .biog-uv__dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background-color: #d3d6d1; border-radius: 999px; transition: background-color 0.2s ease, width 0.25s ease, margin 0.25s ease; }
.biog-uv .biog-uv__dot[aria-current="true"] { width: 30px; }
.biog-uv .biog-uv__dot[aria-current="true"]::before { width: 22px; margin-left: -11px; background-color: var(--uv-accent); }
.biog-uv .biog-uv__dot:focus-visible { outline: 2px solid var(--uv-accent); outline-offset: 0; }
.biog-uv__notice { margin: 0; padding: 20px; text-align: center; font-size: 14px; color: #6b7280; }

@media (prefers-reduced-motion: reduce) {
	.biog-uv .biog-uv__toggle .biog-uv__ico, .biog-uv .biog-uv__dot::before { transition: none; }
}
