/* Decants — Lociones en Oferta */
.loe-dc {
	--dc-oro: #b8891e;
	--dc-oro-2: #8f6510;
	--dc-crema: #fbf6ea;
	--dc-tinta: #1c1917;
	--dc-borde: rgba(184, 137, 30, .22);
	margin: 4px 0 22px;
	font-family: Montserrat, system-ui, sans-serif;
	color: var(--dc-tinta);
	min-height: 196px; /* reserva el hueco antes de que llegue el JS */
}
.loe-dc.is-ready { min-height: 0; }
.loe-dc *, .loe-dc *::before, .loe-dc *::after { box-sizing: border-box; }

.loe-dc .loe-dc__label {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: .02em;
	color: #57534e;
}
.loe-dc .loe-dc__label b { color: var(--dc-tinta); font-weight: 600; }

.loe-dc .loe-dc__track {
	display: grid;
	grid-template-columns: repeat(var(--n), minmax(104px, 1fr));
	gap: 10px;
	padding: 0 0 14px;
	overflow-x: auto;
	scrollbar-width: none; /* con más de tres tamaños se desliza con el dedo */
}
.loe-dc .loe-dc__track::-webkit-scrollbar { display: none; }

/* Las tarjetas son botones: hay que vencer el reset de botones del tema. */
.loe-dc .loe-dc__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 10px 8px 12px;
	min-width: 0;
	height: auto;
	background: #fff;
	border: 1px solid var(--dc-borde);
	border-radius: 14px;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1.25;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, background-color .2s, transform .2s;
}
.loe-dc .loe-dc__card:hover {
	border-color: var(--dc-oro);
	background: #fff;
	color: inherit;
}
.loe-dc .loe-dc__card:focus-visible { outline: 2px solid var(--dc-oro); outline-offset: -5px; }
/* Borde de 2 px en vez de anillo con box-shadow: el overflow del carril lo recortaría. */
.loe-dc .loe-dc__card.is-active {
	border: 2px solid var(--dc-tinta);
	padding: 9px 7px 11px;
	background: var(--dc-crema);
}

.loe-dc .loe-dc__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	width: 100%;
	height: 74px;
	margin-bottom: 6px;
}
/* Las fotos llevan el logo de la tienda abajo: se recorta con object-position. */
.loe-dc .loe-dc__media img {
	width: 62px;
	height: 74px;
	max-width: none;
	object-fit: cover;
	object-position: 50% 28%;
	mix-blend-mode: multiply;
	border-radius: 6px;
}
.loe-dc .is-decant .loe-dc__media img { width: 52px; }
.loe-dc .loe-dc__vial {
	width: auto;
	flex: none;
	margin-left: -4px;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12));
}

.loe-dc .loe-dc__title { font-size: 12.5px; font-weight: 500; }
.loe-dc .loe-dc__price { font-size: 15px; font-weight: 700; }
.loe-dc .loe-dc__price del { display: block; font-size: 11px; font-weight: 400; color: #a8a29e; }
.loe-dc .loe-dc__price .amount { white-space: nowrap; }
.loe-dc .loe-dc__unit { font-size: 11px; color: #78716c; }
.loe-dc .loe-dc__stock { font-size: 11px; font-weight: 600; color: #2f7d4f; }
.loe-dc .loe-dc__stock.is-out { color: #b42318; }

.loe-dc .loe-dc__badge {
	position: absolute;
	left: 4px;
	right: 4px;
	bottom: -9px;
	padding: 3px 4px;
	text-align: center;
	overflow: hidden; /* que no se salga del carril en la última tarjeta */
	border-radius: 999px;
	background: linear-gradient(135deg, var(--dc-oro), var(--dc-oro-2));
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.loe-dc .loe-dc__nota {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #78716c;
}
.loe-dc .loe-dc__nota b { color: var(--dc-oro-2); font-weight: 600; }

@media (max-width: 480px) {
	.loe-dc .loe-dc__track { gap: 8px; grid-template-columns: repeat(var(--n), minmax(96px, 1fr)); }
	.loe-dc .loe-dc__card { padding: 9px 5px 12px; }
	.loe-dc .loe-dc__card.is-active { padding: 8px 4px 11px; }
	.loe-dc .loe-dc__price { font-size: 14px; }
	.loe-dc .loe-dc__badge { font-size: 8px; letter-spacing: .02em; }
}
