/**
 * LOW Woo Category Slider
 *
 * Padding, gap, overlay, and type size are custom properties so a theme
 * can override them without editing this file.
 */

.low-csl {
	--low-csl-pad-top: 47px;
	--low-csl-pad-right: 45px;
	--low-csl-pad-bottom: 38.5px;
	--low-csl-pad-left: 45px;
	--low-csl-gap: 32px;
	--low-csl-pagination-gap: 32px;
	--low-csl-peek: 0.1;
	--low-csl-overlay: rgba(255, 255, 255, 0.25);
	--low-csl-radius: 0px;
	--low-csl-name-size: 19px;
	--low-csl-name-inset: 18px;
	--low-csl-dash: #d5d5d5;
	--low-csl-dash-active: #5e5e5e;
	--low-csl-dash-gap: 5px;
	--low-csl-per-view: var(--low-csl-slides-desktop, 4);

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	background: #fff;
	padding: var(--low-csl-pad-top) var(--low-csl-pad-right) var(--low-csl-pad-bottom) var(--low-csl-pad-left);
	color: inherit;
	font-family: inherit;
}

.low-csl *,
.low-csl *::before,
.low-csl *::after {
	box-sizing: border-box;
}

.low-csl__frame {
	position: relative;
}

.low-csl__viewport {
	container-type: inline-size;
	width: calc(100% + var(--low-csl-pad-right));
	margin-right: calc(var(--low-csl-pad-right) * -1);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	outline: none;
	cursor: grab;
}

.low-csl__viewport::-webkit-scrollbar {
	display: none;
}

.low-csl__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.low-csl__viewport:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 4px;
}

.low-csl ul.low-csl__track {
	display: flex;
	gap: var(--low-csl-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.low-csl ul.low-csl__track > li.low-csl__slide {
	flex: 0 0 auto;
	width: calc((100vw - var(--low-csl-pad-left) - (var(--low-csl-per-view) * var(--low-csl-gap))) / (var(--low-csl-per-view) + var(--low-csl-peek)));
	width: calc((100cqi - (var(--low-csl-per-view) * var(--low-csl-gap))) / (var(--low-csl-per-view) + var(--low-csl-peek)));
	min-width: 0;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
	list-style: none;
}

.low-csl a.low-csl__card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--low-csl-radius);
	background: #eceae6;
	color: #fff;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.low-csl a.low-csl__card:focus {
	outline: none;
}

.low-csl a.low-csl__card:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -8px;
	box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.45);
}

.low-csl .low-csl__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transform: scale(1);
	transition: transform 240ms ease;
	-webkit-user-drag: none;
	user-select: none;
}

.low-csl a.low-csl__card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	height: 46%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.low-csl a.low-csl__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--low-csl-overlay);
	opacity: 0;
	transition: opacity 220ms ease;
	pointer-events: none;
}

.low-csl a.low-csl__card:hover::after,
.low-csl a.low-csl__card:focus-visible::after {
	opacity: 1;
}

.low-csl a.low-csl__card:hover .low-csl__img,
.low-csl a.low-csl__card:focus-visible .low-csl__img {
	transform: scale(1.03);
}

.low-csl .low-csl__name {
	position: absolute;
	left: var(--low-csl-name-inset);
	bottom: var(--low-csl-name-inset);
	z-index: 3;
	max-width: calc(100% - (var(--low-csl-name-inset) * 2));
	margin: 0;
	color: #fff;
	font-family: inherit;
	font-size: var(--low-csl-name-size);
	font-weight: 400;
	font-style: normal;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	text-shadow: none;
}

.low-csl__pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--low-csl-dash-gap);
	width: calc(100% + var(--low-csl-pad-right));
	margin: var(--low-csl-pagination-gap) calc(var(--low-csl-pad-right) * -1) 0 0;
	padding: 0;
	min-height: 3px;
}

.low-csl__pagination:empty {
	display: none;
}

.low-csl__dash {
	box-sizing: content-box;
	width: 24px;
	height: 3px;
	margin: -8px 0;
	padding: 8px 0;
	border: 0;
	border-radius: 0;
	background-color: var(--low-csl-dash);
	background-clip: content-box;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.low-csl__dash.is-active {
	background-color: var(--low-csl-dash-active);
}

.low-csl__dash:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 3px;
}

.low-csl__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #222;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
	transform: translateY(-50%);
	cursor: pointer;
}

.low-csl--arrows .low-csl__arrow {
	display: flex;
}

.low-csl__arrow--prev {
	left: 8px;
}

.low-csl__arrow--next {
	right: 8px;
}

.low-csl__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.low-csl__arrow:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	.low-csl {
		--low-csl-per-view: var(--low-csl-slides-tablet, 3);
		--low-csl-pad-top: 28px;
		--low-csl-pad-right: 24px;
		--low-csl-pad-bottom: 24px;
		--low-csl-pad-left: 24px;
	}
}

@media (max-width: 640px) {
	.low-csl {
		--low-csl-per-view: var(--low-csl-slides-mobile, 2);
		--low-csl-pad-top: 16px;
		--low-csl-pad-right: 24px;
		--low-csl-pad-bottom: 18px;
		--low-csl-pad-left: 24px;
		--low-csl-peek: 0.14;
		--low-csl-name-size: 18px;
		--low-csl-name-inset: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.low-csl__viewport {
		scroll-behavior: auto;
	}

	.low-csl .low-csl__img,
	.low-csl a.low-csl__card::after {
		transition: none;
	}

	.low-csl a.low-csl__card:hover .low-csl__img,
	.low-csl a.low-csl__card:focus-visible .low-csl__img {
		transform: none;
	}
}
