@import url('components/advantages.css');
@import url('components/brand-values.css');
@import url('components/hero-flickity.css');

/* Hero component includes the mobile in-banner pagination treatment. */

/*--------------------------------------------------------------
# Bestsellers
--------------------------------------------------------------*/

@media (max-width: 1023px) {
	.bestsellers.section {
		overflow: hidden;
		padding-bottom: 4px;
	}
}

/* Skip below-the-fold layout/paint work until the section approaches the viewport. */
.hc-product-showcase--customer-choice,
.advantages.section,
.brand__values,
.bloggers-reviews.section {
	content-visibility: auto;
	contain-intrinsic-size: auto 620px;
}

/*--------------------------------------------------------------
# Bloggers slider
--------------------------------------------------------------*/

.bloggers-reviews.section {
	overflow: hidden;
}

.bloggers-reviews__head {
	margin-bottom: 28px;
}

.bloggers-reviews__title {
	margin: 0;
	color: var(--color-brown);
	font-size: 56px;
	line-height: 1.1;
}

.bloggers-reviews__slide {
	width: 246px;
	margin-right: 16px;
}

.bloggers-reviews__media {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	aspect-ratio: 246 / 332;
	background: #f3f3f3;
}

.bloggers-reviews__preview {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bloggers-reviews__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.5);
	width: 64px;
	height: 64px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	backdrop-filter: blur(8px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.bloggers-reviews__media:hover .bloggers-reviews__play,
.bloggers-reviews__media:focus-within .bloggers-reviews__play {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.bloggers-reviews__play svg {
	width: 35px;
	height: 35px;
	display: block;
	fill: var(--color-brown);
	margin-left: 6px;
}

.bloggers-reviews__author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}

.bloggers-reviews__avatar {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.bloggers-reviews__name {
	color: var(--color-brown);
	font-size: 24px;
	line-height: 1.2;
}

.bloggers-reviews .flickity-viewport {
	overflow: visible;
}

.bloggers-reviews .flickity-page-dots {
	position: static;
	display: flex;
	gap: 28px;
	margin-bottom: 28px;
	padding: 0;
}

.bloggers-reviews .flickity-page-dots .dot {
	width: 100%;
	max-width: 140px;
	height: 2px;
	margin: 0;
	border-radius: 0;
	opacity: 1;
	background: rgb(var(--color-brown-rgb) / 25%);
}

.bloggers-reviews .flickity-page-dots .dot.is-selected {
	background: var(--color-brown);
}

/* lightbox */
.video-lightbox[hidden] {
	display: none;
}

.video-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.video-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 72%);
}

.video-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(1000px, calc(100% - 32px));
	margin: 40px auto;
}

.video-lightbox__body {
	position: relative;
	background: #000;
	border-radius: 14px;
	overflow: hidden;
}

.video-lightbox__video {
	display: block;
	width: 100%;
	max-height: calc(100vh - 120px);
	background: #000;
}

.video-lightbox__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.video-lightbox__close svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
	stroke: currentColor;
}

@media (max-width: 768px) {
	.bloggers-reviews__title {
		font-size: 32px;
	}

	.bloggers-reviews__slide {
		width: 220px;
		margin-right: 12px;
	}

	.bloggers-reviews__name {
		font-size: 18px;
	}

	.bloggers-reviews__play {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, -50%) scale(1);
	}

	.video-lightbox__dialog {
		width: calc(100% - 20px);
		margin: 50px auto 0;
	}
}

/*--------------------------------------------------------------
# Home SEO block (scroll max 175px)
--------------------------------------------------------------*/

section.home-seo {
	padding-bottom: 30px;
}

.home-seo__title {
	margin: 0 0 30px;
	font-family: 'Stolzl', sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: -1.9px;
}

.home-seo__row {
	position: relative;
}

.home-seo__body {
	max-height: 175px;
	overflow-y: auto;
	overflow-x: hidden;
	color: rgb(var(--color-brown-rgb) / 80%);
	font-family: 'Stolzl', sans-serif;
	font-size: 16px;
	line-height: 1.375;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-right: 30px;
}

.home-seo__body::-webkit-scrollbar {
	display: none;
}

.home-seo__body p {
	margin: 0 0 20px;
	line-height: 1.4;
}

.home-seo__body p:last-child {
	margin-bottom: 0;
}

.home-seo__bar {
	flex: 0 0 10px;
	width: 10px;
	height: 175px;
	position: absolute;
	right: 0;
	top: 0;
}

.home-seo__bar.is-hidden {
	display: none;
}

.home-seo__track {
	position: relative;
	width: 2px;
	height: 175px;
	border-radius: 999px;
	background-color: rgb(var(--color-brown-rgb) / 50%);
}

.home-seo__thumb {
	position: absolute;
	left: 50%;
	top: 0;
	width: 10px;
	min-height: 40px;
	height: 77px;
	border-radius: 2px;
	background-color: var(--color-brown);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='15' viewBox='0 0 4 15' fill='none'%3E%3Crect width='4' height='1' rx='0.5' fill='%23F7F4F3'/%3E%3Crect y='7' width='4' height='1' rx='0.5' fill='%23F7F4F3'/%3E%3Crect y='14' width='4' height='1' rx='0.5' fill='%23F7F4F3'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 4px 15px;
	transform: translateX(-50%);
	will-change: transform;
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.home-seo__thumb.is-dragging {
	cursor: grabbing;
}

@media (max-width: 767px) {
	.home-seo__title {
		font-size: 25px;
		text-align: left;
	}

	.home-seo__body {
		font-size: 14px;
		line-height: 1.35;
	}

	section.home-seo {
		padding-bottom: 20px;
	}
}
