.yantas-destacados {
	width: 100%;
	margin: 1.5rem 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
}

.yantas-destacados__viewport {
	position: relative;
	width: 100%;
}

.yantas-destacados__grid {
	position: relative;
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1rem;
	margin: 0 auto !important;
	padding: 0 !important;
	list-style: none !important;
	max-width: 100%;
	width: 100%;
}

.yantas-destacados__grid > li.product,
.yantas-destacados__grid > .llw-product-card {
	flex: 0 0 calc((100% - 4rem) / 5);
	max-width: calc((100% - 4rem) / 5);
	min-width: 0;
	width: auto !important;
	margin: 0 !important;
	box-sizing: border-box;
}

.yantas-destacados__grid--many > li.product,
.yantas-destacados__grid--many > .llw-product-card {
	flex: 0 0 calc((100% - 4rem) / 5);
	max-width: calc((100% - 4rem) / 5);
}

/* 1–4 items: tarjeta tamaño fijo centrado */
.yantas-destacados__grid--count-1 > .llw-product-card,
.yantas-destacados__grid--count-2 > .llw-product-card,
.yantas-destacados__grid--count-3 > .llw-product-card,
.yantas-destacados__grid--count-4 > .llw-product-card {
	flex: 0 0 200px;
	max-width: 200px;
}

.yantas-destacados__empty {
	text-align: center;
	color: #666;
	width: 100%;
}

@media (max-width: 1200px) {
	.yantas-destacados__grid > .llw-product-card {
		flex: 0 0 calc((100% - 3rem) / 4);
		max-width: calc((100% - 3rem) / 4);
	}

	.yantas-destacados__grid--count-1 > .llw-product-card,
	.yantas-destacados__grid--count-2 > .llw-product-card,
	.yantas-destacados__grid--count-3 > .llw-product-card,
	.yantas-destacados__grid--count-4 > .llw-product-card {
		flex: 0 0 200px;
		max-width: 200px;
	}
}

/* Tablet y móvil: flechas a los lados + una tarjeta centrada y compacta. */
@media (max-width: 992px) {
	.yantas-destacados {
		overflow: hidden;
	}

	.yantas-destacados__viewport {
		display: flex;
		align-items: center;
		gap: 0.4rem;
		overflow: visible;
	}

	.yantas-destacados__grid,
	.yantas-destacados__grid--count-1,
	.yantas-destacados__grid--count-2,
	.yantas-destacados__grid--count-3,
	.yantas-destacados__grid--count-4,
	.yantas-destacados__grid--count-5 {
		flex: 1 1 auto;
		min-width: 0;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 0 !important;
		margin: 0 !important;
	}

	.yantas-destacados__grid::-webkit-scrollbar {
		display: none;
	}

	.yantas-destacados__grid > li.product,
	.yantas-destacados__grid > .llw-product-card,
	.yantas-destacados__grid--count-1 > .llw-product-card,
	.yantas-destacados__grid--count-2 > .llw-product-card,
	.yantas-destacados__grid--count-3 > .llw-product-card,
	.yantas-destacados__grid--count-4 > .llw-product-card,
	.yantas-destacados__grid--count-5 > .llw-product-card {
		flex: 0 0 100%;
		max-width: 100%;
		width: 100% !important;
		display: flex;
		justify-content: center;
		padding: 0;
		box-sizing: border-box;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	.yantas-destacados__grid > .llw-product-card .llw-card {
		width: 100%;
		max-width: var(--llw-card-max-w, min(300px, 100%));
		margin: 0 auto;
	}
}

/* Flechas y puntos del carrusel (solo móvil/tablet vía JS). */
.yantas-destacados__nav {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #111;
	background: #fff !important;
	border: none;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.22);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.yantas-destacados__nav:hover:not(:disabled) {
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.28);
	transform: scale(1.04);
}

.yantas-destacados__nav:disabled {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

.yantas-destacados__nav svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.yantas-destacados__nav svg polyline {
	stroke: #111 !important;
}

.yantas-destacados__dots {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin-top: 0.85rem;
}

.yantas-destacados__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: #c8ccd8;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.yantas-destacados__dot.is-active {
	background: #e30613;
	transform: scale(1.25);
}

@media (max-width: 992px) {
	.yantas-destacados__nav,
	.yantas-destacados__dots {
		display: flex;
	}
}

@media (max-width: 480px) {
	.yantas-destacados__viewport {
		gap: 0.25rem;
	}

	.yantas-destacados__nav {
		width: 32px;
		height: 32px;
	}

	.yantas-destacados__grid > .llw-product-card .llw-card {
		max-width: var(--llw-card-max-w, min(280px, 88vw));
	}
}
