/*
 * carrito.css: el carrito («Petmarket Carrito v1» del handoff). Se carga después de
 * especie.css (espacios de sección). Móvil primero; desde 900 px, dos columnas con el
 * resumen fijo a la derecha.
 * Es la hoja del prototipo aprobado (prototipo/sitio/css/carrito.css), tal cual.
 */

/* ---------- Piezas de esta pantalla ---------- */

.pmt-boton--verde {
	background: var(--pmt-verde-800);
	color: var(--pmt-blanco);
}

.pmt-boton--verde:hover {
	background: var(--pmt-verde-900);
	color: var(--pmt-blanco);
}

.pmt-boton--gris-claro {
	background: var(--pmt-gris-100);
	color: var(--pmt-morado-950);
}

.pmt-boton--gris-claro:hover {
	background: var(--pmt-gris-200);
	color: var(--pmt-morado-950);
}

.pmt-radio {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid var(--pmt-morado-700);
	border-radius: 50%;
}

.pmt-cantidad {
	display: inline-flex;
	align-items: center;
	height: 44px;
	border: 1.5px solid color-mix(in srgb, var(--pmt-morado-700) 18%, transparent);
	border-radius: var(--pmt-radio-pildora);
	background: var(--pmt-blanco);
}

.pmt-cantidad button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 40px;
	border: 0;
	background: none;
	color: var(--pmt-morado-700);
	cursor: pointer;
}

.pmt-cantidad > span {
	min-width: 22px;
	font-weight: var(--pmt-peso-negro);
	text-align: center;
}

/* ---------- Cabecera y medidor ---------- */

.pmt-cesta__cabeza {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--pmt-esp-4);
	margin-bottom: var(--pmt-esp-3);
}

.pmt-cesta__cabeza > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pmt-cesta__cabeza h1 {
	margin: 0;
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-2xl);
	font-weight: var(--pmt-peso-negro);
	letter-spacing: -0.02em;
}

.pmt-cesta__cabeza > span > span {
	color: var(--pmt-morado-950-a55);
	font-size: 0.8125rem;
}

.pmt-cesta__cabeza .pmt-ver-mas {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pmt-cesta,
.pmt-cesta__principal,
.pmt-resumen {
	display: flex;
	flex-direction: column;
	gap: var(--pmt-esp-3);
	min-width: 0;
}

/* El medidor de envío (el anillo) está en cajon.css: lo usa también el carrito lateral. */

/* ---------- Líneas ---------- */

.pmt-lineas {
	overflow: hidden;
	border-radius: var(--pmt-radio-tarjeta);
}

.pmt-linea {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: var(--pmt-esp-3);
	padding: 14px;
}

.pmt-linea + .pmt-linea {
	border-top: 1px solid var(--pmt-morado-700-a08);
}

.pmt-linea__foto {
	width: 72px;
	height: 72px;
	min-height: 0;
	border-radius: var(--pmt-radio-md);
}

.pmt-linea .pmt-linea__foto {
	height: 72px;
}

.pmt-linea__info {
	display: flex;
	flex-direction: column;
	gap: var(--pmt-esp-2);
	min-width: 0;
}

.pmt-linea__etiquetas {
	display: flex;
	gap: 4px;
}

.pmt-linea__diez {
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--pmt-ambar-100);
	color: var(--pmt-ambar-800);
	font-size: 11px;
	font-weight: var(--pmt-peso-negro);
	line-height: 1.3;
}

.pmt-linea__nombre {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pmt-linea__nombre strong {
	font-size: var(--pmt-texto-sm);
	line-height: 1.3;
}

.pmt-linea__nombre small {
	color: var(--pmt-morado-950-a55);
	font-size: var(--pmt-texto-xs);
}

.pmt-linea__precio {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
}

.pmt-linea__precio del {
	order: 2;
	color: color-mix(in srgb, var(--pmt-morado-950) 50%, transparent);
	font-size: var(--pmt-texto-xs);
}

.pmt-linea__precio strong {
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-md);
	font-weight: var(--pmt-peso-negro);
}

.pmt-linea__precio small {
	display: none;
	width: 100%;
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-xs);
	font-weight: var(--pmt-peso-negrita);
}

.pmt-linea__precio.is-plus strong,
.pmt-linea__precio.is-plus small {
	color: var(--pmt-verde-800);
}

.pmt-linea__modo .pmt-segmentado {
	display: grid;
	grid-auto-flow: row;
	grid-template-columns: 1fr 1fr;
}

.pmt-linea__modo .pmt-segmentado button {
	min-height: 40px;
	padding: 0 6px;
	font-size: var(--pmt-texto-xs);
	line-height: 1.15;
}

.pmt-linea__frecuencia {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
}

.pmt-linea__frecuencia > span {
	grid-column: 1 / -1;
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-xs);
	font-weight: var(--pmt-peso-extra);
}

.pmt-linea__frecuencia .pmt-pildora-opcion {
	min-height: 40px;
	padding: 0 2px;
	border-radius: var(--pmt-radio-md);
	font-size: var(--pmt-texto-xs);
}

.pmt-linea__nota {
	align-self: flex-start;
	padding: 6px 10px;
	border-radius: 10px;
	background: var(--pmt-morado-50);
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-xs);
	font-weight: var(--pmt-peso-negrita);
}

.pmt-linea__nota--naranja { background: var(--pmt-naranja-50); color: var(--pmt-naranja-800); }
.pmt-linea__nota--ambar { background: var(--pmt-ambar-100); color: var(--pmt-ambar-800); }

.pmt-linea__receta {
	display: flex;
	flex-direction: column;
	gap: var(--pmt-esp-2);
	padding: 10px var(--pmt-esp-3);
	border-radius: var(--pmt-radio-md);
	background: var(--pmt-morado-50);
}

.pmt-linea__receta > span:first-child {
	display: flex;
	flex-direction: column;
}

.pmt-linea__receta strong {
	color: var(--pmt-morado-700);
	font-size: 0.8125rem;
}

.pmt-linea__receta small {
	color: var(--pmt-morado-950-a70);
	font-size: var(--pmt-texto-xs);
}

.pmt-linea__receta-botones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.pmt-linea__receta-botones .pmt-boton {
	min-height: 40px;
	padding: 0 var(--pmt-esp-3);
	font-size: 0.8125rem;
	font-weight: var(--pmt-peso-extra);
}

.pmt-linea__receta-hecha {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: var(--pmt-verde-800);
	font-size: 0.8125rem;
	font-weight: var(--pmt-peso-extra);
}

.pmt-linea__receta-hecha button {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}

.pmt-linea__receta-hecha button {
	color: var(--pmt-morado-700);
}

/* En móvil, el selector de cantidad cierra la línea, a la derecha (antes iba junto a
   «Guardar» y «Quitar», que Ivan retiró el 11-oct-2026). */
.pmt-linea__cantidad {
	align-self: flex-end;
}

/* ---------- Sugeridos ---------- */

.pmt-sugeridos__titulo {
	margin: var(--pmt-esp-3) 0 var(--pmt-esp-3);
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-lg);
	font-weight: var(--pmt-peso-negro);
}

/* ---------- Resumen ---------- */

.pmt-resumen__caja {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: var(--pmt-esp-5);
	border-radius: 20px;
}

.pmt-resumen__titulo {
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-lg);
	font-weight: var(--pmt-peso-negro);
}

.pmt-resumen__filas {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--pmt-morado-700-a08);
	font-size: var(--pmt-texto-sm);
}

.pmt-resumen__filas div {
	display: flex;
	justify-content: space-between;
	gap: var(--pmt-esp-3);
}

.pmt-resumen__filas dt {
	color: var(--pmt-morado-950-a70);
}

.pmt-resumen__filas dd {
	margin: 0;
	font-weight: var(--pmt-peso-extra);
	font-variant-numeric: tabular-nums;
}

.pmt-resumen__filas dd.is-verde {
	color: var(--pmt-verde-800);
}

/* ---------- PetCash en el Carrito y en el Checkout ----------
   Un solo bloque encima del resumen (Ivan, 11-oct-2026), el mismo en las dos páginas, con el
   diseño de la tarjeta de PetCash del panel de la portada: un antetítulo, la cifra en grande y
   una descripción. En el Checkout, el saldo con su botón «Canjear» y lo que se acumula; en el
   Carrito, solo lo que se acumula, sin botón. (Estaba en checkout.css.) */
/* La tarjeta blanca que hace de contorno: sobre el fondo de la página el verde se perdía (Ivan,
   11-oct-2026). Como el panel de la cuenta de la portada, con la caja verde dentro. */
.pmt-ventajas {
	padding: var(--pmt-esp-3);
	border-radius: 20px;
}

/* El texto a la izquierda y el botón a la derecha, centrado en vertical respecto a todo el
   texto, descripción incluida (Ivan, 11-oct-2026). */
.pmt-ventajas__caja {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pmt-esp-3);
	padding: var(--pmt-esp-3) 14px;
	border-radius: 14px;
	background: var(--pmt-verde-100);
}

.pmt-ventajas__saldo {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Solo el saldo: la cifra de la descripción va a su tamaño. */
.pmt-ventajas__saldo > strong {
	font-size: 1.375rem;
	font-weight: var(--pmt-peso-negro);
	line-height: 1.3;
	color: var(--pmt-verde-800);
}

.pmt-ventajas__canjear {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--pmt-radio-pildora);
	background: var(--pmt-verde-500);
	color: var(--pmt-blanco);
	font-size: var(--pmt-texto-sm);
	font-weight: var(--pmt-peso-extra);
	text-decoration: none;
	cursor: pointer;
}

.pmt-ventajas__canjear:hover {
	color: var(--pmt-blanco);
}

.pmt-ventajas__nota {
	margin-top: 4px;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--pmt-morado-950-a70);
}

.pmt-ventajas__nota strong {
	font-weight: var(--pmt-peso-extra);
	color: var(--pmt-verde-800);
}

/* Carrito: el bloque es una sola frase (Ivan, 11-oct-2026), con la cifra destacada. */
.pmt-ventajas__frase {
	font-size: 0.9375rem;
	font-weight: var(--pmt-peso-medio);
	line-height: 1.45;
	color: var(--pmt-morado-950-a70);
}

.pmt-ventajas__frase strong {
	font-weight: var(--pmt-peso-negro);
	color: var(--pmt-verde-800);
}

.pmt-resumen__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	color: var(--pmt-morado-700);
}

.pmt-resumen__total strong:first-child {
	font-size: var(--pmt-texto-lg);
}

.pmt-resumen__total strong:last-child {
	font-size: var(--pmt-texto-3xl);
	font-weight: var(--pmt-peso-negro);
	font-variant-numeric: tabular-nums;
}

.pmt-resumen__pagar {
	min-height: 54px;
	font-size: var(--pmt-texto-md);
	font-weight: var(--pmt-peso-negro);
}

.pmt-resumen__aviso {
	color: var(--pmt-morado-950-a70);
	font-size: 0.8125rem;
	text-align: center;
}

/* Plus+ con los números de este pedido: su identidad (verde 100, borde verde 200,
   textos verde 800, botón verde). */
.pmt-plus-pedido {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--pmt-esp-5);
	border: 1px solid var(--pmt-verde-200);
	border-radius: 20px;
	background: var(--pmt-verde-100);
	color: var(--pmt-verde-800);
}

.pmt-plus-pedido__ante {
	display: flex;
	align-items: center;
	gap: var(--pmt-esp-2);
	font-size: var(--pmt-texto-xs);
	font-weight: var(--pmt-peso-extra);
}

.pmt-plus-pedido > strong {
	font-size: var(--pmt-texto-lg);
	font-weight: var(--pmt-peso-negro);
	line-height: 1.2;
}

.pmt-plus-pedido ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	font-weight: var(--pmt-peso-negrita);
}

.pmt-plus-pedido li {
	display: flex;
	align-items: center;
	gap: var(--pmt-esp-2);
}

.pmt-plus-pedido small {
	color: var(--pmt-morado-950-a55);
	font-size: var(--pmt-texto-xs);
	line-height: 1.5;
}

.pmt-plus-pedido small a {
	color: var(--pmt-verde-800);
}

.pmt-plus-pedido__hecho {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--pmt-texto-sm);
	font-weight: var(--pmt-peso-extra);
}

.pmt-plus-pedido__hecho button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--pmt-morado-700);
	font: inherit;
	cursor: pointer;
}

/* Plegado: el título con su flecha, que lo abre (Ivan, 11-oct-2026). */
.pmt-cupon {
	padding: 18px;
	border-radius: 20px;
}

.pmt-cupon summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pmt-esp-3);
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-sm);
	list-style: none;
	cursor: pointer;
}

.pmt-cupon summary::-webkit-details-marker { display: none; }

.pmt-cupon summary svg {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.pmt-cupon[open] summary svg { transform: rotate(180deg); }

.pmt-cupon__cuerpo {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

.pmt-cupon__cuerpo > span {
	display: flex;
	gap: var(--pmt-esp-2);
}

@media (prefers-reduced-motion: reduce) {
	.pmt-cupon summary svg { transition: none; }
}

.pmt-cupon input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid color-mix(in srgb, var(--pmt-morado-700) 18%, transparent);
	border-radius: var(--pmt-radio-md);
	font: var(--pmt-peso-medio) var(--pmt-texto-sm) var(--pmt-fuente);
}

.pmt-cupon input:focus {
	border-color: var(--pmt-morado-700);
	outline: none;
}

.pmt-cupon .pmt-boton {
	border-radius: var(--pmt-radio-md);
}

.pmt-cupon small {
	color: var(--pmt-morado-950-a55);
	font-size: var(--pmt-texto-xs);
}

/* ---------- Barra fija del móvil ---------- */

.pmt-carrito-barra {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: var(--pmt-esp-3);
	padding: var(--pmt-esp-3) 14px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--pmt-morado-900-a10);
	background: var(--pmt-blanco);
	box-shadow: 0 -8px 24px color-mix(in srgb, var(--pmt-morado-700) 8%, transparent);
}

.pmt-carrito-barra > span {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.pmt-carrito-barra small {
	color: var(--pmt-morado-950-a55);
	font-size: var(--pmt-texto-xs);
}

.pmt-carrito-barra strong {
	color: var(--pmt-morado-700);
	font-size: 1.375rem;
	font-weight: var(--pmt-peso-negro);
	line-height: 1.1;
}

.pmt-carrito-barra .pmt-boton {
	min-height: 52px;
	padding: 0 22px;
	font-size: 0.9375rem;
	font-weight: var(--pmt-peso-negro);
}

@media (max-width: 899px) {
	.pm-carrito-con-barra body {
		padding-bottom: 90px;
	}

	/* En móvil, como su diseño: el resumen antes de «Suelen llevarlo con esto». */
	.pmt-cesta__principal { display: contents; }
	.pmt-resumen { order: 1; }
	.pmt-sugeridos { order: 2; }
}

/* ---------- Ventanas (PetCash y receta) ---------- */

.pmt-modal {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh var(--pmt-margen-lateral) var(--pmt-esp-4);
	overflow-y: auto;
}

.pmt-modal__fondo {
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, var(--pmt-morado-950) 45%, transparent);
}

.pmt-modal__caja {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--pmt-esp-4);
	width: min(440px, 100%);
	padding: 28px;
	border-radius: var(--pmt-radio-xl);
	background: var(--pmt-blanco);
	box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--pmt-morado-950) 40%, transparent);
}

.pmt-modal__caja--ancha {
	width: min(560px, 100%);
}

.pmt-modal__titulo {
	color: var(--pmt-morado-700);
	font-size: 1.375rem;
	font-weight: var(--pmt-peso-negro);
	line-height: 1.25;
	text-align: center;
}

.pmt-modal__sub {
	color: var(--pmt-morado-950-a70);
	font-size: 0.8125rem;
	text-align: center;
}

.pmt-modal__cabeza {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--pmt-esp-3);
}

.pmt-modal__cabeza > span {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pmt-modal__cabeza .pmt-modal__titulo,
.pmt-modal__cabeza .pmt-modal__sub {
	text-align: left;
}

.pmt-modal__cerrar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--pmt-morado-50);
	color: var(--pmt-morado-700);
	cursor: pointer;
}

.pmt-petcash-campo {
	position: relative;
	display: block;
}

.pmt-petcash-campo span {
	position: absolute;
	top: 50%;
	left: 18px;
	color: color-mix(in srgb, var(--pmt-morado-950) 50%, transparent);
	font-weight: var(--pmt-peso-extra);
	transform: translateY(-50%);
}

.pmt-petcash-campo input {
	width: 100%;
	height: 58px;
	padding: 0 18px 0 60px;
	border: 1.5px solid color-mix(in srgb, var(--pmt-morado-700) 20%, transparent);
	border-radius: 14px;
	color: var(--pmt-morado-950);
	font: var(--pmt-peso-negro) var(--pmt-texto-2xl) var(--pmt-fuente);
	text-align: center;
}

.pmt-petcash-campo input:focus {
	border-color: var(--pmt-verde-800);
	outline: none;
}

.pmt-petcash-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pmt-petcash-chips button {
	min-height: 36px;
	padding: 0 var(--pmt-esp-3);
	border: 1px solid color-mix(in srgb, var(--pmt-morado-700) 15%, transparent);
	border-radius: var(--pmt-radio-pildora);
	background: var(--pmt-morado-50);
	color: var(--pmt-morado-700);
	font: var(--pmt-peso-extra) var(--pmt-texto-xs) var(--pmt-fuente);
	cursor: pointer;
}

.pmt-modal__error {
	color: var(--pmt-rojo-700);
	font-size: 0.8125rem;
	font-weight: var(--pmt-peso-negrita);
	text-align: center;
}

.pmt-modal__botones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.pmt-modal__botones .pmt-boton {
	border-radius: 14px;
}

.pmt-modal__pasos {
	display: flex;
	flex-direction: column;
	gap: var(--pmt-esp-4);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--pmt-texto-sm);
	line-height: 1.5;
}

.pmt-modal__pasos li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: start;
	gap: var(--pmt-esp-3);
}

.pmt-modal__n {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pmt-morado-700);
	color: var(--pmt-blanco);
	font-size: 0.8125rem;
	font-weight: var(--pmt-peso-negro);
}

.pmt-modal__n--o {
	background: var(--pmt-verde-400);
	color: var(--pmt-verde-950);
}

.pmt-modal__subir {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.pmt-subir {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: stretch;
	gap: 6px;
	padding: 18px;
	border: 2px dashed color-mix(in srgb, var(--pmt-morado-700) 25%, transparent);
	border-radius: var(--pmt-radio-lg);
	background: var(--pmt-morado-50);
	text-align: center;
	cursor: pointer;
}

.pmt-subir:hover,
.pmt-subir:focus-within {
	border-color: var(--pmt-morado-700);
}

.pmt-subir__icono {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--pmt-radio-md);
	background: var(--pmt-morado-100);
	color: var(--pmt-morado-700);
}

.pmt-subir strong {
	color: var(--pmt-morado-700);
}

.pmt-subir small {
	color: var(--pmt-morado-950-a55);
	font-size: var(--pmt-texto-xs);
}

.pmt-modal__nota {
	padding-top: var(--pmt-esp-3);
	border-top: 1px solid var(--pmt-morado-700-a08);
	color: var(--pmt-morado-950-a55);
	font-size: var(--pmt-texto-xs);
	line-height: 1.5;
}

/* ---------- Carrito vacío (propuesta: el handoff no lo dibuja) ---------- */

.pmt-carrito-vacio {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--pmt-esp-3);
	margin-top: var(--pmt-esp-4);
	padding: var(--pmt-esp-8) var(--pmt-esp-5);
	text-align: center;
}

.pmt-carrito-vacio__icono {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--pmt-naranja-50);
	color: var(--pmt-naranja-800);
}

.pmt-carrito-vacio h1 {
	margin: 0;
	color: var(--pmt-morado-700);
	font-size: var(--pmt-texto-2xl);
	font-weight: var(--pmt-peso-negro);
}

.pmt-carrito-vacio p {
	max-width: 46ch;
	margin: 0;
	color: var(--pmt-morado-950-a70);
	font-size: var(--pmt-texto-sm);
}

.pmt-carrito-vacio__botones {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--pmt-esp-2);
}

.pmt-carrito-vacio__cabeza {
	margin-top: var(--pmt-esp-8);
}

/* ---------- Escritorio ---------- */

@media (min-width: 900px) {
	.pmt-cesta__cabeza { margin-bottom: 18px; }
	.pmt-cesta__cabeza h1 { font-size: 2.125rem; }
	.pmt-cesta__cabeza > span > span { font-size: var(--pmt-texto-sm); }

	.pmt-cesta {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 360px;
		align-items: start;
		gap: 28px;
	}

	.pmt-cesta__principal { gap: 18px; }

	.pmt-resumen {
		position: sticky;
		top: 150px;
		gap: 14px;
	}

	/* Si la columna no cabe entera en la pantalla, se suelta y baja con la página
	   (ajustarColumna en js/carrito.js): fija, el botón de pagar quedaba fuera de la vista. */
	.pmt-resumen.is-suelta { position: static; }

	.pmt-medidor {
		gap: 14px;
		padding: 14px 18px;
		border-radius: var(--pmt-radio-tarjeta);
	}

	.pmt-medidor__textos strong { font-size: var(--pmt-texto-lg); }
	.pmt-medidor__textos small { font-size: var(--pmt-texto-sm); }

	.pmt-lineas { border-radius: 20px; }

	.pmt-linea {
		grid-template-columns: 96px minmax(0, 1fr) 170px;
		gap: 18px;
		padding: 20px 22px;
	}

	.pmt-linea .pmt-linea__foto {
		width: 96px;
		height: 96px;
		border-radius: 14px;
	}

	.pmt-linea__nombre strong { font-size: var(--pmt-texto-md); }
	.pmt-linea__nombre small { font-size: 0.8125rem; }

	.pmt-linea__modo .pmt-segmentado {
		display: inline-grid;
		grid-auto-flow: column;
		grid-template-columns: none;
	}

	.pmt-linea__modo .pmt-segmentado button {
		min-height: 34px;
		padding: 0 14px;
		font-size: 0.8125rem;
	}

	.pmt-linea__frecuencia {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--pmt-esp-2);
	}

	.pmt-linea__frecuencia > span { font-size: 0.8125rem; }

	.pmt-linea__frecuencia .pmt-pildora-opcion {
		min-height: 34px;
		padding: 0 var(--pmt-esp-3);
		border-radius: var(--pmt-radio-pildora);
		font-size: 0.8125rem;
	}

	.pmt-linea__nota { font-size: 0.8125rem; }

	.pmt-linea__receta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--pmt-esp-3);
	}

	.pmt-linea__receta strong { font-size: var(--pmt-texto-sm); }

	.pmt-linea__receta-botones {
		display: flex;
		flex-shrink: 0;
	}

	.pmt-linea__lado {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: var(--pmt-esp-2);
	}

	.pmt-linea__lado .pmt-linea__precio {
		flex-direction: column;
		align-items: flex-end;
		gap: 2px;
	}

	.pmt-linea__lado .pmt-linea__precio del { order: 0; font-size: 0.8125rem; }
	.pmt-linea__lado .pmt-linea__precio strong { font-size: 1.3125rem; line-height: 1.1; }
	.pmt-linea__lado .pmt-linea__precio small { display: block; text-align: right; }

	.pmt-cantidad { height: 40px; }
	.pmt-cantidad button { width: 38px; height: 36px; }

	.pmt-linea__total {
		color: var(--pmt-morado-950-a55);
		font-size: var(--pmt-texto-xs);
	}

	.pmt-sugeridos__titulo { font-size: var(--pmt-texto-xl); }

	.pmt-resumen__titulo { font-size: var(--pmt-texto-xl); }
	.pmt-plus-pedido > strong { font-size: var(--pmt-texto-xl); }

	.pmt-carrito-vacio { padding: var(--pmt-esp-10); }
	.pmt-carrito-vacio h1 { font-size: var(--pmt-texto-3xl); }
}

/* Entre 900 y 1199, el resumen más estrecho y la línea con la columna de precio debajo. */
@media (min-width: 900px) and (max-width: 1199px) {
	.pmt-cesta { grid-template-columns: minmax(0, 1fr) 320px; }

	.pmt-linea { grid-template-columns: 80px minmax(0, 1fr); }

	.pmt-linea .pmt-linea__foto { width: 80px; height: 80px; }

	.pmt-linea__lado {
		grid-column: 2;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.pmt-linea__lado .pmt-linea__precio { align-items: flex-start; }
	.pmt-linea__lado .pmt-linea__precio small { text-align: left; }
}
