/**
 * Dexter Catálogo — carrossel da home [dexter_carrossel].
 *
 * Reproduz fielmente o carrossel original (código personalizado do Elementor
 * "Carrossel produtos home"). Medidas, escalas, opacidades, desfoques e transições
 * são as originais. Tipografia e cores que, no original, vinham do Kit do Elementor
 * (h4, botões) usam as mesmas variáveis globais do Kit, com os valores atuais
 * como reserva. Tudo é escopado em .dxc.
 */

.dxc {
	/* Valores de reserva por tela, iguais aos do Kit atual (h4: 32/24/22px). */
	--dxc-side-size: 32px;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 40px 0 25px;
	overflow: hidden;
	text-align: center;
}

.dxc *,
.dxc *::before,
.dxc *::after {
	box-sizing: border-box;
}

.dxc .dxc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.dxc .dxc__carousel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.dxc .dxc__viewport {
	position: relative;
	width: 100%;
	height: 430px;
	overflow: visible;
}

.dxc .dxc__slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.dxc .dxc__slide {
	position: absolute;
	top: 0;
	left: 50%;
	width: 280px;
	transform: translateX(-50%);
	transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}

.dxc .dxc__slide:not(.dxc-pos-0) {
	cursor: pointer;
}

/* ---------- Imagem ---------- */

.dxc .dxc__image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 260px;
}

.dxc .dxc__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 250px;
	margin: 0 auto;
	object-fit: contain;
}

.dxc .dxc-pos-0 .dxc__img {
	transform: scale(1.06);
}

/* ---------- Informações ---------- */

.dxc .dxc__info {
	margin-top: 18px;
	text-align: center;
}

/* Laterais: tipografia do h4 do Kit (como no original). */
.dxc .dxc__title {
	margin: 8px 0 14px;
	padding: 0;
	color: #7f8a98;
	font-family: var(--e-global-typography-2a9a9cf-font-family, "Montserrat"), sans-serif;
	font-size: var(--e-global-typography-2a9a9cf-font-size, var(--dxc-side-size));
	font-weight: var(--e-global-typography-2a9a9cf-font-weight, 500);
	line-height: var(--e-global-typography-2a9a9cf-line-height, 1.2em);
	letter-spacing: var(--e-global-typography-2a9a9cf-letter-spacing, -1px);
	text-transform: uppercase;
}

.dxc .dxc-pos-0 .dxc__title {
	color: #003a53;
	font-size: 24px;
	letter-spacing: 0.15em;
}

/* ---------- Botão SAIBA MAIS ---------- */

.dxc .dxc__btn,
.dxc .dxc__btn:visited {
	display: inline-block;
	min-width: 125px;
	margin: 0;
	padding: 11px 28px;
	border: 2px solid #004832;
	border-radius: 30px;
	background: #004832;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.25s ease;
}

.dxc .dxc__btn:hover,
.dxc .dxc__btn:focus-visible {
	border-color: #003424;
	background: #003424;
	box-shadow: 0 8px 18px rgba(0, 72, 50, 0.22);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

.dxc .dxc__btn:focus-visible {
	outline: 3px solid var(--e-global-color-870ef80, #ff151f);
	outline-offset: 3px;
}

/* ---------- Posições (desktop) ---------- */

.dxc .dxc-pos-0 {
	z-index: 5;
	opacity: 1;
	filter: blur(0);
	transform: translateX(-50%) scale(1);
}

.dxc .dxc-pos-1 {
	z-index: 4;
	opacity: 0.55;
	filter: blur(1.5px);
	transform: translateX(calc(-50% + 380px)) scale(0.82);
}

.dxc .dxc-pos--1 {
	z-index: 4;
	opacity: 0.55;
	filter: blur(1.5px);
	transform: translateX(calc(-50% - 380px)) scale(0.82);
}

.dxc .dxc-pos-2 {
	z-index: 3;
	opacity: 0.22;
	filter: blur(4px);
	transform: translateX(calc(-50% + 700px)) scale(0.62);
}

.dxc .dxc-pos--2 {
	z-index: 3;
	opacity: 0.22;
	filter: blur(4px);
	transform: translateX(calc(-50% - 700px)) scale(0.62);
}

.dxc .dxc-hidden {
	z-index: 1;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%) scale(0.5);
}

/* ---------- Setas (cores e fonte do botão do Kit, como no original) ---------- */

.dxc .dxc__arrow {
	position: absolute;
	top: 42%;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--e-global-color-870ef80, #ff151f);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	color: #fff;
	font-family: var(--e-global-typography-dbc0204-font-family, "Montserrat"), sans-serif;
	font-size: var(--e-global-typography-dbc0204-font-size, 14px);
	font-weight: var(--e-global-typography-dbc0204-font-weight, 600);
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.dxc .dxc__arrow:hover,
.dxc .dxc__arrow:focus-visible {
	background: var(--e-global-color-bf890a9, #123504);
	color: var(--e-global-color-5bd60dc, #fff);
}

.dxc .dxc__arrow:focus-visible {
	outline: 3px solid var(--e-global-color-870ef80, #ff151f);
	outline-offset: 3px;
}

.dxc .dxc__arrow--prev {
	left: 40px;
}

.dxc .dxc__arrow--next {
	right: 40px;
}

/* ---------- Tablet do Kit (≤1024px): h4 24px ---------- */

@media (max-width: 1024px) {
	.dxc {
		--dxc-side-size: 24px;
	}
}

/* ---------- Tablet (≤900px) ---------- */

@media (max-width: 900px) {
	.dxc {
		padding: 25px 0 15px;
	}

	.dxc .dxc__viewport {
		height: 350px;
		overflow: hidden;
	}

	.dxc .dxc__slide {
		width: 240px;
	}

	.dxc .dxc__image {
		height: 215px;
	}

	.dxc .dxc__img {
		max-height: 205px;
	}

	.dxc .dxc-pos-1 {
		transform: translateX(calc(-50% + 210px)) scale(0.78);
	}

	.dxc .dxc-pos--1 {
		transform: translateX(calc(-50% - 210px)) scale(0.78);
	}

	.dxc .dxc-pos-2,
	.dxc .dxc-pos--2 {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}

	.dxc .dxc-pos-0 .dxc__title {
		font-size: 20px;
	}

	.dxc .dxc__arrow--prev {
		left: 10px;
	}

	.dxc .dxc__arrow--next {
		right: 10px;
	}
}

/* ---------- Mobile (≤767px): apenas um produto ---------- */

@media (max-width: 767px) {
	.dxc {
		--dxc-side-size: 22px;
		padding: 5px 0 0;
	}

	.dxc .dxc__viewport {
		height: 275px;
		overflow: hidden;
	}

	.dxc .dxc__slide {
		width: 86%;
		max-width: 340px;
	}

	.dxc .dxc-pos-0 {
		z-index: 5;
		visibility: visible;
		opacity: 1;
		filter: none;
		pointer-events: auto;
		transform: translateX(-50%) scale(1.08);
	}

	.dxc .dxc-pos-1,
	.dxc .dxc-pos--1,
	.dxc .dxc-pos-2,
	.dxc .dxc-pos--2,
	.dxc .dxc-hidden {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}

	.dxc .dxc__image {
		height: 180px;
	}

	.dxc .dxc__img {
		max-width: 96%;
		max-height: 175px;
	}

	.dxc .dxc-pos-0 .dxc__img {
		transform: scale(1.12);
	}

	.dxc .dxc__info {
		margin-top: 0;
	}

	.dxc .dxc__title,
	.dxc .dxc-pos-0 .dxc__title {
		margin: 2px 0 8px;
	}

	.dxc .dxc-pos-0 .dxc__title {
		font-size: 16px;
		letter-spacing: 0.16em;
	}

	.dxc .dxc__btn,
	.dxc .dxc__btn:visited {
		padding: 9px 22px;
		font-size: 10px;
	}

	.dxc .dxc__arrow {
		top: 39%;
		width: 38px;
		height: 38px;
	}

	.dxc .dxc__arrow--prev {
		left: 8px;
	}

	.dxc .dxc__arrow--next {
		right: 8px;
	}
}

/* ---------- Mobile pequeno (≤380px) ---------- */

@media (max-width: 380px) {
	.dxc .dxc__viewport {
		height: 260px;
	}

	.dxc .dxc__slide {
		width: 82%;
	}

	.dxc .dxc__image {
		height: 165px;
	}

	.dxc .dxc__img {
		max-height: 160px;
	}

	.dxc .dxc-pos-0 .dxc__title {
		font-size: 15px;
	}
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
	.dxc .dxc__slide,
	.dxc .dxc__btn,
	.dxc .dxc__img {
		transition: none;
	}

	.dxc .dxc__btn:hover,
	.dxc .dxc__btn:focus-visible {
		transform: none;
	}
}
