.eme-product-carousel {
	--eme-pc-columns: 3.25;
	--eme-pc-gap: 20px;
	/* Respetar separaciones mayores configuradas en Elementor. */
	--eme-pc-min-gap: 30px;
	--eme-pc-effective-gap: max(var(--eme-pc-gap), var(--eme-pc-min-gap));
	--eme-pc-speed: 450ms;
	--eme-pc-arrow-offset: 8px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	background-color: #fff;
}

.eme-product-carousel *,
.eme-product-carousel *::before,
.eme-product-carousel *::after {
	box-sizing: border-box;
}

.eme-product-carousel__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.eme-product-carousel__heading {
	margin: 0;
}

.eme-product-carousel__view-all {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	padding: 0;
	text-decoration-line: underline;
	text-decoration-thickness: from-font;
	text-underline-offset: 3px;
}

.eme-product-carousel__stage {
	position: relative;
	background-color: #fff;
}

.eme-product-carousel__viewport {
	width: 100%;
	padding-inline: 12px;
	overflow: hidden;
	background-color: #fff;
	touch-action: pan-y;
}

.eme-product-carousel__track {
	display: flex;
	align-items: stretch;
	gap: var(--eme-pc-effective-gap);
	will-change: transform;
	transition: transform var(--eme-pc-speed) ease;
}

.eme-product-card {
	position: relative;
	display: flex;
	flex: 0 0 calc((100% - (var(--eme-pc-effective-gap) * (var(--eme-pc-columns) - 1))) / var(--eme-pc-columns));
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d8ddda;
	border-radius: 24px;
}

.eme-product-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 226px;
	padding: 0;
	overflow: hidden;
	background: #fff;
}

.eme-product-card__image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 12px;
	background: #fff;
	box-shadow: 0 0 0 100px #fff;
}

.eme-product-card__image {
	display: block;
	/* Dimensiones naturales: un 'cover' guardado en Elementor no recorta la foto. */
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.eme-product-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	max-width: calc(100% - 44px);
	padding: 8px 12px;
	gap: 6px;
	background: #ffcc00;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eme-product-card__badge::before {
	display: block;
	width: 6px;
	height: 6px;
	flex: 0 0 6px;
	background: currentColor;
	border-radius: 50%;
	content: "";
}

.eme-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 22px;
}

.eme-product-card__brand {
	display: flex;
	align-items: center;
	min-height: 25px;
	margin: 0 0 9px;
}

.eme-product-card__brand a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.eme-product-card__brand-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 72px;
	max-height: 20px;
	object-fit: contain;
	object-position: left center;
}

.eme-product-card__sku {
	margin: 0 0 16px;
}

.eme-product-card__title {
	margin: 0 0 8px;
}

.eme-product-card__title a {
	text-decoration: none;
}

.eme-product-card__excerpt {
	margin: 0 0 24px;
}

.eme-product-card__price {
	margin: auto 0 18px;
}

.eme-product-card__price del {
	opacity: .55;
}

.eme-product-card__actions {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: auto;
}

.eme-product-card__cart,
.eme-product-card__plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-style: solid;
	text-align: center;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.eme-product-card__cart {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 58px;
	padding: 12px 20px;
	color: #fff;
	background: #122019;
	border-width: 1px;
	border-color: #122019;
	border-radius: 16px;
}

.eme-product-card__plus {
	flex: 0 0 auto;
	width: 58px;
	min-width: 58px;
	height: 58px;
	padding: 0;
	color: #111714;
	background: #fff;
	border-width: 1px;
	border-color: #d8ddda;
	border-radius: 16px;
}

.eme-product-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	transform: translateY(-50%);
	color: #111714;
	background: #fff;
	border: 1px solid #d8ddda;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.eme-product-carousel__arrow--prev {
	left: var(--eme-pc-arrow-offset);
}

.eme-product-carousel__arrow--next {
	right: var(--eme-pc-arrow-offset);
}

.eme-product-carousel__arrow:disabled {
	opacity: .35;
	cursor: default;
}

.eme-product-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.eme-product-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: #c1c8c4;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: width .2s ease, background-color .2s ease;
}

.eme-product-carousel__dot.is-active {
	width: 24px;
	background: #122019;
}

.eme-product-carousel__empty {
	padding: 18px;
	border: 1px dashed #cbd2ce;
	border-radius: 12px;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
}

@media (max-width: 1024px) {
	.eme-product-carousel {
		--eme-pc-min-gap: 22px;
	}
}

@media (max-width: 767px) {
	.eme-product-carousel {
		--eme-pc-min-gap: 14px;
	}

	.eme-product-carousel__viewport {
		padding-inline: 8px;
	}

	.eme-product-card__image-link {
		padding: 8px;
	}

	.eme-product-carousel--hide-plus-mobile .eme-product-card__plus {
		display: none;
	}

	.eme-product-carousel__header {
		align-items: center;
	}

	.eme-product-card__brand {
		min-height: 21px;
		margin-bottom: 6px;
	}

	.eme-product-card__brand-logo {
		max-width: 60px;
		max-height: 16px;
	}
}

/* Typography defaults; Elementor controls generate more specific selectors when edited. */
.eme-product-carousel__heading,
.eme-product-card__badge,
.eme-product-card__title,
.eme-product-card__price,
.eme-product-card__cart {
	font-family: "Poppins", Arial, sans-serif;
}

.eme-product-carousel__view-all,
.eme-product-card__sku,
.eme-product-card__excerpt,
.eme-product-card__plus,
.eme-product-carousel__arrow,
.eme-product-carousel__empty {
	font-family: "DM Sans", Arial, sans-serif;
}
