.lpc-carousel {
	--lpc-title-size: 15px;
	--lpc-title-weight: 500;
	--lpc-title-lh: 1.35;
	--lpc-title-lines: 2;
	--lpc-title-decoration: none;
	--lpc-price-size: 16px;
	--lpc-price-weight: 600;
	--lpc-body-gap: 8px;
	--lpc-align: center;
	--lpc-border-color: #eee;
	--lpc-border-width: 1px;
	--lpc-badge-offset: 10px;
	position: relative;
	width: 100%;
}

.lpc-swiper {
	overflow: hidden;
}

.lpc-slide {
	height: auto;
	display: flex;
}

/* --- Card --- */
.lpc-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: var(--lpc-border-width) solid var(--lpc-border-color);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.lpc-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

.lpc-thumb {
	position: relative;
	display: block;
	line-height: 0;
}

.lpc-thumb .lpc-img,
.lpc-thumb img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* --- Etiquetas: contenedores por esquina (apilan varias) --- */
.lpc-badges {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: calc(100% - (var(--lpc-badge-offset) * 2));
	pointer-events: none;
}

.lpc-badges--tl {
	top: var(--lpc-badge-offset);
	left: var(--lpc-badge-offset);
	align-items: flex-start;
}

.lpc-badges--tr {
	top: var(--lpc-badge-offset);
	right: var(--lpc-badge-offset);
	align-items: flex-end;
}

.lpc-badges--bl {
	bottom: var(--lpc-badge-offset);
	left: var(--lpc-badge-offset);
	align-items: flex-start;
}

.lpc-badges--br {
	bottom: var(--lpc-badge-offset);
	right: var(--lpc-badge-offset);
	align-items: flex-end;
}

/* --- Etiquetas: estilo compartido (oferta + personalizadas) --- */
.lpc-badge,
.lpc-label {
	display: inline-block;
	max-width: 100%;
	background: #e8722c;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lpc-body {
	display: flex;
	flex-direction: column;
	gap: var(--lpc-body-gap);
	padding: 14px 14px 16px;
	flex: 1;
	text-align: var(--lpc-align);
}

/* --- Título con recorte de líneas y alto reservado --- */
.lpc-title {
	font-size: var(--lpc-title-size);
	font-weight: var(--lpc-title-weight);
	line-height: var(--lpc-title-lh);
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--lpc-title-lines);
	line-clamp: var(--lpc-title-lines);
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: calc(var(--lpc-title-lines) * var(--lpc-title-lh) * 1em);
}

.lpc-title a {
	color: #212e42;
	text-decoration: var(--lpc-title-decoration) !important;
}

.lpc-title a:hover {
	text-decoration: var(--lpc-title-decoration) !important;
}

.lpc-rating {
	font-size: 13px;
}

.lpc-rating .star-rating {
	margin: 0 auto;
	font-size: 13px;
}

.lpc-price {
	font-size: var(--lpc-price-size);
	font-weight: var(--lpc-price-weight);
	color: #212e42;
	margin-top: auto;
}

.lpc-price del {
	color: #999;
	font-weight: 400;
	margin-right: 6px;
}

.lpc-price ins {
	text-decoration: none;
}

.lpc-cart {
	margin-top: 6px;
}

.lpc-cart .button,
.lpc-cart .added_to_cart {
	display: inline-block;
	width: 100%;
	text-align: center;
	background: #e8722c;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 9px 12px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none !important;
	transition: filter .15s ease;
}

.lpc-cart .button:hover,
.lpc-cart .added_to_cart:hover {
	filter: brightness(.92);
	color: #fff;
	text-decoration: none !important;
}

.lpc-cart .added_to_cart {
	margin-top: 6px;
	background: #212e42;
}

/* --- Flechas --- */
.lpc-carousel .lpc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;

	/* Tamaño blindado contra estilos de botón del tema */
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	min-width: 40px;
	max-width: 40px;
	min-height: 40px;
	max-height: 40px;
	flex: 0 0 auto;
	padding: 0;
	margin: 0;
	line-height: 1;
	font-size: 0;
	letter-spacing: normal;
	text-transform: none;

	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #e8722c;
	border: 1px solid #e5e5e5;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
	appearance: none;
	-webkit-appearance: none;
	transition: background .15s ease, opacity .15s ease;
}

.lpc-carousel .lpc-arrow:focus,
.lpc-carousel .lpc-arrow:active {
	background: #fff;
	color: #e8722c;
	outline: none;
}

.lpc-carousel .lpc-arrow:focus-visible {
	outline: 2px solid #e8722c;
	outline-offset: 2px;
}

/* El SVG no debe estirarse ni heredar tamaños del tema */
.lpc-carousel .lpc-arrow svg {
	width: 20px;
	height: 20px;
	display: block;
	flex: 0 0 auto;
	fill: currentColor;
	pointer-events: none;
}

.lpc-carousel .lpc-arrow:hover {
	background: #f6f6f6;
	color: #e8722c;
}

.lpc-carousel .lpc-prev {
	left: -6px;
}

.lpc-carousel .lpc-next {
	right: -6px;
}

.lpc-carousel .lpc-arrow.swiper-button-disabled {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}

/* --- Paginación --- */
.lpc-pagination {
	position: static;
	margin-top: 16px;
	text-align: center;
}

.lpc-pagination .swiper-pagination-bullet-active {
	background: #e8722c;
}

/* --- Vacío --- */
.lpc-empty {
	padding: 24px;
	text-align: center;
	color: #777;
	border: 1px dashed #ddd;
	border-radius: 8px;
}

@media (max-width: 1024px) {
	.lpc-carousel .lpc-prev { left: 2px; }
	.lpc-carousel .lpc-next { right: 2px; }
}
