/* ─────────────────────────────────────────────────────────────────────────────
   Carrito Creaxis — CSS base
   Todas las clases están prefijadas con .creaxis-cart o .crea-
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Layout principal ────────────────────────────────────────────────────────── */

.creaxis-cart {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px;
	font-size: 15px;
}

.creaxis-cart__productos {
	flex: 1 1 0;
	min-width: 0;
}

.creaxis-cart__resumen {
	width: 320px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 24px;
}

@media (max-width: 768px) {
	.creaxis-cart {
		flex-direction: column;
	}
	.creaxis-cart__resumen {
		width: 100%;
	}
}

/* ── Header de la tabla ───────────────────────────────────────────────────────── */

.creaxis-cart__tabla-header {
	display: flex;
	justify-content: space-between;
	padding: 0 0 10px;
	border-bottom: 1px solid #e0e0e0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
}

/* ── Ítem de producto ─────────────────────────────────────────────────────────── */

.creaxis-cart__item {
	border-bottom: 1px solid #f0f0f0;
	padding: 16px 0;
}

.creaxis-cart__item-main {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.creaxis-cart__item-img-link {
	flex-shrink: 0;
}

.creaxis-cart__item-img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border-radius: 6px;
	border: 1px solid #f0f0f0;
}

.creaxis-cart__item-info {
	flex: 1 1 0;
	min-width: 0;
}

.creaxis-cart__item-nombre {
	display: block;
	font-weight: 600;
	color: #1a73e8;
	text-decoration: none;
	margin-bottom: 4px;
	line-height: 1.3;
}
.creaxis-cart__item-nombre:hover {
	text-decoration: underline;
}

.creaxis-cart__item-lista-label {
	display: block;
	font-size: 12px;
	color: #666;
	margin-bottom: 10px;
}

/* ── Acciones: qty + eliminar ─────────────────────────────────────────────────── */

.creaxis-cart__item-acciones {
	display: flex;
	align-items: center;
	gap: 12px;
}

.creaxis-cart__qty {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}

.crea-qty-btn {
	background: #f5f5f5;
	border: none;
	width: 32px;
	height: 32px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	transition: background 0.15s;
}
.crea-qty-btn:hover {
	background: #e8e8e8;
}

.creaxis-cart__qty-input {
	width: 40px;
	height: 32px;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	-moz-appearance: textfield;
}
.creaxis-cart__qty-input::-webkit-outer-spin-button,
.creaxis-cart__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.creaxis-cart__item-remove {
	color: #aaa;
	display: flex;
	align-items: center;
	transition: color 0.15s;
}
.creaxis-cart__item-remove:hover {
	color: #e53935;
}

/* ── Precio de lista (columna derecha del ítem) ──────────────────────────────── */

.creaxis-cart__item-precio-lista {
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
	margin-left: auto;
	padding-left: 16px;
	align-self: center;
}

/* ── Barra de transferencia por ítem ─────────────────────────────────────────── */

.creaxis-cart__item-transferencia {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: 10px;
	background: #e8f5e9;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #2e7d32;
}

.crea-cart-transferencia-sep {
	margin: 0 12px;
	color: #a5d6a7;
}

.crea-cart-transferencia-ahorro {
	font-weight: 600;
}

/* ── Fila de envío ────────────────────────────────────────────────────────────── */

.creaxis-cart__envio {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0 0;
	color: #555;
	font-size: 13px;
}

.creaxis-cart__envio-icono {
	flex-shrink: 0;
	color: #888;
}

.creaxis-cart__envio-texto {
	flex: 1;
	line-height: 1.4;
}
.creaxis-cart__envio-texto strong {
	display: block;
	font-weight: 600;
	color: #333;
}

.creaxis-cart__envio-precio {
	font-weight: 700;
	font-size: 14px;
	color: #333;
}

/* ── Resumen: título ──────────────────────────────────────────────────────────── */

.creaxis-cart__resumen-titulo {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 16px;
}

/* ── Resumen: líneas subtotal / ahorro / envío ───────────────────────────────── */

.creaxis-cart__resumen-lineas {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.creaxis-cart__resumen-linea {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #555;
}

.creaxis-cart__resumen-linea--ahorro {
	color: #2e7d32;
	font-weight: 600;
}

.creaxis-cart__envio-gratis {
	font-weight: 700;
	color: #333;
}

/* ── Recuadro total por transferencia ────────────────────────────────────────── */

.creaxis-cart__total-transferencia {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	text-align: center;
}

.crea-total-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #2e7d32;
	margin-bottom: 4px;
}

.crea-total-monto {
	display: block;
	font-size: 28px;
	font-weight: 800;
	color: #1b5e20;
	line-height: 1.1;
	margin-bottom: 6px;
}

.crea-total-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #2e7d32;
	font-weight: 500;
}

/* ── Recuadro cuotas ─────────────────────────────────────────────────────────── */

.creaxis-cart__cuotas-box {
	background: #fff3e0;
	border: 1px solid #ffcc80;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.crea-cuotas-intro {
	font-size: 12px;
	color: #e65100;
}

.crea-cuotas-titulo {
	font-size: 15px;
	font-weight: 700;
	color: #e65100;
}

.crea-cuotas-base {
	font-size: 11px;
	color: #bf360c;
	margin-bottom: 4px;
}

.crea-cuotas-monto-12 {
	font-size: 24px;
	font-weight: 800;
	color: #e65100;
	line-height: 1.1;
}

.crea-cuotas-mes {
	font-size: 13px;
	font-weight: 400;
}

.crea-cuotas-6 {
	font-size: 13px;
	color: #555;
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #ffcc80;
}

.crea-cuotas-nota {
	font-size: 11px;
	color: #999;
	margin-top: 6px;
}

.crea-cuotas-info {
	cursor: help;
	border-bottom: 1px dashed #bbb;
}

/* ── Botón checkout ───────────────────────────────────────────────────────────── */

.creaxis-cart__checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #1a73e8;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	padding: 14px;
	border-radius: 8px;
	text-decoration: none;
	margin-bottom: 10px;
	transition: background 0.2s;
}
.creaxis-cart__checkout-btn:hover {
	background: #1558b0;
	color: #fff;
}

/* ── Leyenda segura ───────────────────────────────────────────────────────────── */

.creaxis-cart__segura {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 12px;
	color: #888;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mini carrito — precios tarjeta y transferencia
   ───────────────────────────────────────────────────────────────────────────── */

.creaxis-mini-prices {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
}

.cx-mini-tarjeta {
	color: #888;
}

.cx-mini-transferencia {
	color: #2e7d32;
	font-weight: 600;
}

.cx-mini-ahorro {
	color: #1b5e20;
	font-size: 11px;
}

