.cds-product-categories-preview {
	overflow: hidden;
	background: #131211;
	color: #fff;
	padding: 96px 0 110px;
}

.cds-product-categories-preview__section + .cds-product-categories-preview__section {
	margin-top: 120px;
}

.cds-product-categories-preview__header {
	width: 85%;
	max-width: 100%;
	margin: 0 auto;
}

.cds-product-categories-preview__title {
	margin: 0;
	max-width: 60%;
	color: #fff;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 45px;
	font-weight: 300;
	line-height: 1.08;
	word-break: break-word;
}

.cds-product-categories-preview__carousel-wrap {
	width: 100%;
	padding-left: 7.5vw;
	margin-top: 56px;
}

.cds-product-categories-preview__carousel {
	display: flex;
	gap: 25px;
	overflow-x: auto;
	padding-bottom: 18px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	touch-action: pan-y;
	cursor: grab;
	user-select: none;
}

.cds-product-categories-preview__carousel::-webkit-scrollbar {
	display: none;
}

.cds-product-categories-preview__carousel.is-dragging {
	cursor: grabbing;
}

.cds-product-categories-preview__slide {
	flex: 0 0 clamp(320px, 43vw, 660px);
	scroll-snap-align: start;
}

.cds-product-categories-preview__card {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: clamp(420px, 40vw, 620px);
	border-radius: 4px;
	background: #fff;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 0 0 rgba(228, 0, 43, 0);
	transform: translateZ(0);
	transition: box-shadow 0.35s ease;
}

.cds-product-categories-preview__card:hover {
	box-shadow: 0 0 34px rgba(228, 0, 43, 0.55);
}

.cds-product-categories-preview__card-image {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
}

.cds-product-categories-preview__card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.45s ease;
	will-change: transform;
}

.cds-product-categories-preview__card:hover .cds-product-categories-preview__card-image img {
	transform: scale(1.06);
}

.cds-product-categories-preview__card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(17, 17, 16, 0) 0%, rgba(17, 17, 16, 0) 50%, #111110 100%);
	z-index: 1;
	pointer-events: none;
}

.cds-product-categories-preview__card-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 16, 0.8);
	opacity: 0;
	transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.cds-product-categories-preview__card-content {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 34px;
}

.cds-product-categories-preview__card-copy {
	min-width: 0;
	transform: translateY(0);
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cds-product-categories-preview__card-title {
	margin: 0;
	color: #fff;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 40px;
	font-weight: 300;
	line-height: 1.08;
	word-break: break-word;
}

.cds-product-categories-preview__card-excerpt {
	max-width: 560px;
	margin: 14px 0 0;
	color: #fff;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transform: translateY(18px);
	transition:
		opacity 0.45s ease,
		max-height 0.65s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cds-product-categories-preview__card-excerpt > :first-child {
	margin-top: 0;
}

.cds-product-categories-preview__card-excerpt > :last-child {
	margin-bottom: 0;
}

.cds-product-categories-preview__card-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	padding: 13px 20px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-family: "Exo", Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cds-product-categories-preview__card-button::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	background: url("/wp-content/uploads/2026/05/arrow-down-right-white.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
	flex: 0 0 18px;
}

.cds-product-categories-preview__card:hover .cds-product-categories-preview__card-button {
	border-color: #E4002B;
	background: #E4002B;
}

.cds-product-categories-preview__card:hover .cds-product-categories-preview__card-button::after {
	transform: translate(1px, -1px);
}

.cds-product-categories-preview__card:hover .cds-product-categories-preview__card-copy {
	transform: translateY(0);
}

.cds-product-categories-preview__card:hover .cds-product-categories-preview__card-excerpt {
	opacity: 1;
	max-height: 320px;
	transform: translateY(0);
}

.cds-product-categories-preview__card:hover .cds-product-categories-preview__card-overlay {
	background: linear-gradient(to bottom, rgba(17, 17, 16, 0) 0%, rgba(17, 17, 16, 0) 50%, #111110 100%);
}

.cds-product-categories-preview__card:hover .cds-product-categories-preview__card-overlay::after {
	opacity: 1;
}

.cds-product-categories-preview__dots {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin-top: 22px;
}

.cds-product-categories-preview__dot {
	width: 65px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.cds-product-categories-preview__dot.is-active {
	background: #fff;
}

.cds-product-categories-preview__arrows {
	display: none;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-top: 18px;
}

.cds-product-categories-preview__arrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cds-product-categories-preview__arrow::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background: url('/wp-content/uploads/2026/05/arrow-right-white.svg') center / contain no-repeat;
}

.cds-product-categories-preview__arrow--prev::before {
	transform: rotate(180deg);
}

.cds-product-categories-preview__arrow:hover {
	border-color: #E4002B;
	background: #E4002B;
}

.cds-product-categories-preview__arrow:disabled {
	opacity: 0.35;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.cds-product-categories-preview {
		padding: 72px 0 84px;
	}

	.cds-product-categories-preview__header {
		width: 90%;
	}

	.cds-product-categories-preview__title {
		max-width: 100%;
		font-size: 34px;
	}

	.cds-product-categories-preview__carousel-wrap {
		padding-left: 5vw;
		margin-top: 36px;
	}

	.cds-product-categories-preview__slide {
		flex-basis: clamp(280px, 72vw, 560px);
	}

	.cds-product-categories-preview__card-content {
		flex-direction: column;
		align-items: flex-start;
		min-height: 0;
	}

	.cds-product-categories-preview__card-copy {
		transform: translateY(0);
	}

	.cds-product-categories-preview__card-excerpt {
		position: static;
		opacity: 1;
		max-height: none;
		overflow: visible;
		transform: none;
	}

	.cds-product-categories-preview__card-overlay {
		background: linear-gradient(to bottom, rgba(17, 17, 16, 0.35) 0%, rgba(17, 17, 16, 0.78) 45%, #111110 100%);
	}

	.cds-product-categories-preview__dots {
		display: none;
	}

	.cds-product-categories-preview__arrows {
		display: flex;
	}
}

@media (max-width: 767px) {
	.cds-product-categories-preview {
		padding: 60px 0 72px;
	}

	.cds-product-categories-preview__header {
		width: 92%;
	}

	.cds-product-categories-preview__title {
		font-size: 28px;
	}

	.cds-product-categories-preview__carousel-wrap {
		padding-left: 4vw;
		margin-top: 28px;
	}

	.cds-product-categories-preview__slide {
		flex-basis: 84vw;
	}

	.cds-product-categories-preview__card {
		min-height: 420px;
	}

	.cds-product-categories-preview__card-overlay {
		background: linear-gradient(to bottom, rgba(17, 17, 16, 0.45) 0%, rgba(17, 17, 16, 0.82) 42%, #111110 100%);
	}

	.cds-product-categories-preview__card-content {
		padding: 24px;
	}

	.cds-product-categories-preview__card-title {
		font-size: 30px;
	}

	.cds-product-categories-preview__card-button {
		padding: 12px 16px;
	}

	.cds-product-categories-preview__dots {
		display: none;
	}

	.cds-product-categories-preview__dot {
		width: 52px;
	}

	.cds-product-categories-preview__arrows {
		gap: 10px;
		margin-top: 16px;
	}

	.cds-product-categories-preview__arrow {
		width: 42px;
		height: 42px;
	}
}
