/* ==========================================================================
   Cuba Provider — cart.css (área «cart»: /carrito/)
   Carrito mayorista en tarjetas, resumen fijo (escritorio), barra fija con
   el total encima de la barra inferior (móvil) y estado vacío.
   La barra del mínimo y los pasos están en minicart.css.
   Móvil primero. Puntos de corte: 600, 768, 1024, 1280.
   ========================================================================== */

.cp-cart {
	padding-top: 2px;
}

/* ─────────────────────────── Cabecera ─────────────────────────── */

.cp-cart__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 10px 0 14px;
}

.cp-cart__title {
	margin: 0;
	font-size: var(--cp-fs-xl);
	font-weight: 800;
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.cp-cart__title {
		font-size: 1.75rem;
	}
}

.cp-cart__continue {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--cp-brand-dark);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
}

.cp-cart__continue:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cp-cart .woocommerce-notices-wrapper > * {
	margin-top: 0;
}

/* WooCommerce lleva el foco al aviso para los lectores de pantalla: sin anillo. */
.cp-cart .woocommerce-notices-wrapper [tabindex="-1"]:focus,
.cp-cart .woocommerce-notices-wrapper:focus {
	outline: none;
}

/* ─────────────────────────── Maquetación ─────────────────────────── */

.cp-cart__layout {
	display: grid;
	gap: 16px;
	align-items: start;
}

.cp-cart__main {
	min-width: 0;
	margin: 0;
}

@media (min-width: 1024px) {
	.cp-cart__layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 24px;
	}
	.cp-cart__side {
		position: sticky;
		top: 146px;
	}
	.admin-bar .cp-cart__side {
		top: 178px;
	}
}

@media (min-width: 1280px) {
	.cp-cart__layout {
		grid-template-columns: minmax(0, 1fr) 384px;
	}
}

/* ─────────────────────────── Lista de productos ─────────────────────────── */

.cp-cart-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cp-cart-list__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border-radius: var(--cp-r-card);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
}

.cp-cart-list__count {
	margin: 0;
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
}

.cp-cart-list__count strong {
	color: var(--cp-ink);
	font-weight: 800;
}

.cp-cart-list__col {
	display: none;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Tarjeta de línea (móvil): imagen · datos · quitar / cantidad · subtotal / avisos */
.cp-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) 44px;
	column-gap: 12px;
	row-gap: 0;
	padding: 14px;
	border: 1.5px solid transparent;
	border-radius: var(--cp-r-card);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
	transition: border-color var(--cp-normal), box-shadow var(--cp-normal);
}

.cp-cart-item.is-invalid {
	border-color: rgba(229, 50, 45, 0.45);
}

.cp-cart-item.is-updated {
	animation: cp-cart-flash 1.2s var(--cp-ease);
}

@keyframes cp-cart-flash {
	0% {
		box-shadow: 0 0 0 3px rgba(33, 160, 74, 0.35), var(--cp-shadow-card);
	}
	100% {
		box-shadow: 0 0 0 3px rgba(33, 160, 74, 0), var(--cp-shadow-card);
	}
}

.cp-cart-item__media {
	grid-column: 1;
	grid-row: 1;
}

.cp-cart-item__media a {
	display: block;
}

.cp-cart-item__media img {
	width: 80px;
	height: 80px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-r-img);
	background: #fff;
	object-fit: contain;
}

.cp-cart-item__info {
	display: flex;
	flex-direction: column;
	grid-column: 2;
	grid-row: 1;
	gap: 6px;
	min-width: 0;
}

.cp-cart-item__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--cp-ink);
	font-size: var(--cp-fs-sm);
	font-weight: 650;
	line-height: 1.38;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.cp-cart-item__title a:hover {
	color: var(--cp-brand-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.cp-cart-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
}

.cp-cart-item__attr {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 24px;
	padding: 2px 8px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-r-xs);
	background: var(--cp-surface-alt);
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	line-height: 1.2;
}

.cp-cart-item__attr strong {
	color: var(--cp-ink);
	font-weight: 700;
}

.cp-cart-item__sku {
	color: var(--cp-faint);
	font-size: var(--cp-fs-xs);
	font-variant-numeric: tabular-nums;
}

/* Datos de la línea (entrega estimada de Escuba, atributos sueltos…) */
.cp-cart-item__info dl.variation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 2px 6px;
	margin: 0;
	font-size: var(--cp-fs-xs);
	line-height: 1.4;
}

.cp-cart-item__info dl.variation dt {
	margin: 0;
	color: var(--cp-muted);
	font-weight: 600;
}

.cp-cart-item__info dl.variation dd {
	margin: 0;
	color: var(--cp-text);
	font-weight: 600;
}

.cp-cart-item__info dl.variation dd p {
	margin: 0;
}

.cp-cart-item__info dl.variation .variation-Entrega,
.cp-cart-item__info dl.variation dd.variation-Entrega {
	color: var(--cp-success);
}

.cp-cart-item__info dl.variation dt.variation-Entrega {
	color: var(--cp-muted);
}

.cp-cart-item__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin-top: 2px;
}

.cp-cart-item__unit {
	color: var(--cp-ink);
	font-size: var(--cp-fs-md);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.cp-cart-item__unit small {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 600;
}

.cp-cart-item__volume {
	gap: 4px;
	height: 22px;
}

.cp-cart-item__rules {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 600;
}

.cp-cart-item__qty {
	display: flex;
	align-items: center;
	grid-column: 1 / 3;
	grid-row: 2;
	justify-self: start;
	margin-top: 12px;
}

.cp-cart-item__single {
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
}

.cp-cart-item__subtotal {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	grid-column: 2 / 4;
	grid-row: 2;
	justify-self: end;
	margin-top: 12px;
	color: var(--cp-ink);
	font-size: var(--cp-fs-lg);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
	pointer-events: none;
}

.cp-cart-item__remove {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	align-self: start;
	margin: -10px -10px 0 0;
}

.cp-cart-item__remove .remove {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--cp-faint);
	transition: background var(--cp-fast), color var(--cp-fast);
}

.cp-cart-item__remove .remove:hover,
.cp-cart-item__remove .remove:focus-visible {
	background: var(--cp-sale-soft);
	color: var(--cp-sale);
}

.cp-cart-item__extras,
.cp-cart-item__note {
	grid-column: 1 / -1;
	grid-row: 3;
	margin-top: 12px;
}

.cp-cart-item__note {
	grid-row: 4;
	margin-bottom: 0;
	color: var(--cp-warn);
	font-size: var(--cp-fs-xs);
	font-weight: 700;
}

.cp-cart-item__extras {
	display: grid;
	gap: 8px;
}

.cp-cart-item__tier,
.cp-cart-item__alert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--cp-r-img);
	font-size: var(--cp-fs-sm);
	line-height: 1.4;
}

.cp-cart-item__tier > span,
.cp-cart-item__alert > span {
	flex: 1 1 180px;
	min-width: 0;
}

.cp-cart-item__tier {
	background: var(--cp-accent-soft);
	color: var(--cp-text);
}

.cp-cart-item__tier > .cp-icon {
	color: var(--cp-accent);
}

.cp-cart-item__tier strong {
	color: var(--cp-ink);
	font-weight: 800;
}

.cp-cart-item__tier small {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
}

.cp-cart-item__alert {
	background: var(--cp-sale-soft);
	color: var(--cp-ink);
	font-weight: 600;
}

.cp-cart-item__alert > .cp-icon {
	color: var(--cp-sale);
}

.cp-cart-item__tier-btn,
.cp-cart-item__alert-btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface);
	box-shadow: inset 0 0 0 1.5px currentColor;
	font-size: var(--cp-fs-sm);
	font-weight: 750;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--cp-fast), color var(--cp-fast);
}

.cp-cart-item__tier-btn {
	color: var(--cp-accent);
}

.cp-cart-item__tier-btn:hover {
	background: var(--cp-accent);
	color: #fff;
	box-shadow: none;
}

.cp-cart-item__alert-btn {
	color: var(--cp-sale);
}

.cp-cart-item__alert-btn:hover {
	background: var(--cp-sale);
	color: #fff;
	box-shadow: none;
}

/* Tableta y escritorio ancho: imagen · datos · cantidad · subtotal · quitar.
   Entre 1024 y 1279 px el resumen ocupa la derecha y no cabe: tarjeta apilada. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.cp-cart-item {
		grid-template-columns: 96px minmax(0, 1fr) 44px;
		padding: 16px 18px;
	}
	.cp-cart-item__media img {
		width: 96px;
		height: 96px;
	}
}

@media (min-width: 768px) and (max-width: 1023px), (min-width: 1280px) {
	.cp-cart-list__head,
	.cp-cart-item {
		grid-template-columns: 96px minmax(0, 1fr) 148px 120px 44px;
		column-gap: 16px;
	}
	.cp-cart-list__head {
		padding: 12px 18px;
	}
	.cp-cart-list__count {
		grid-column: 1 / 3;
	}
	.cp-cart-list__col {
		display: block;
	}
	.cp-cart-list__col--qty {
		grid-column: 3;
		text-align: center;
	}
	.cp-cart-list__col--total {
		grid-column: 4;
		text-align: right;
	}
	.cp-cart-item {
		padding: 16px 18px;
	}
	.cp-cart-item__media {
		grid-row: 1 / span 2;
	}
	.cp-cart-item__media img {
		width: 96px;
		height: 96px;
	}
	.cp-cart-item__title {
		font-size: 0.9375rem;
	}
	.cp-cart-item__qty {
		grid-column: 3;
		grid-row: 1;
		align-self: center;
		justify-self: center;
		margin-top: 0;
	}
	.cp-cart-item__subtotal {
		grid-column: 4;
		grid-row: 1;
		align-self: center;
		margin-top: 0;
	}
	.cp-cart-item__remove {
		grid-column: 5;
		align-self: center;
		margin: 0;
	}
	.cp-cart-item__extras {
		grid-column: 2 / -1;
		grid-row: 2;
	}
	.cp-cart-item__note {
		grid-column: 2 / -1;
		grid-row: 3;
	}
}

/* ─────────────────────────── Cupón y acciones ─────────────────────────── */

.cp-cart-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 4px 16px;
	border-radius: var(--cp-r-card);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
}

.cp-cart-coupon {
	flex: 1 1 280px;
}

.cp-cart-coupon__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	color: var(--cp-ink);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.cp-cart-coupon__toggle::-webkit-details-marker {
	display: none;
}

.cp-cart-coupon__toggle > .cp-icon:first-child {
	color: var(--cp-accent);
}

.cp-cart-coupon__chev {
	margin-left: auto;
	color: var(--cp-muted);
	transition: transform var(--cp-fast);
}

.cp-cart-coupon[open] .cp-cart-coupon__chev {
	transform: rotate(180deg);
}

.cp-cart-coupon .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 2px 0 12px;
}

.cp-cart-coupon .coupon .input-text {
	flex: 1 1 160px;
	min-height: 44px;
}

.cp-cart-coupon .coupon .button {
	flex: none;
	min-height: 44px;
}

.cp-cart-coupon .coupon-error-notice {
	flex-basis: 100%;
	margin: 0;
	color: var(--cp-sale);
	font-size: var(--cp-fs-sm);
	font-weight: 600;
}

.cp-cart-coupon #coupon_code.has-error {
	border-color: var(--cp-sale);
}

.cp-cart-update {
	margin: 8px 0;
}

/* Con JS, la cantidad se actualiza sola: el botón queda para lectores y sin JS. */
.cp-cart-js .cp-cart-update {
	position: absolute !important;
	width: 1px;
	height: 1px;
	min-height: 0;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Bloqueo mientras WooCommerce recalcula (blockUI): indicador de carga. */
.cp-cart .blockUI.blockOverlay {
	border-radius: var(--cp-r-card);
}

.cp-cart .blockUI.blockOverlay::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 3px solid var(--cp-brand-soft);
	border-top-color: var(--cp-brand);
	border-radius: 50%;
	animation: cp-cart-spin 0.7s linear infinite;
}

@keyframes cp-cart-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ─────────────────────────── Resumen del pedido ─────────────────────────── */

.cp-cart-summary {
	display: grid;
	gap: 14px;
	padding: 18px;
	border-radius: var(--cp-r-lg);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
}

@media (min-width: 1024px) {
	.cp-cart-summary {
		padding: 22px;
	}
}

.cp-cart-summary__title {
	margin: 0;
	font-size: var(--cp-fs-lg);
	font-weight: 800;
}

.cp-cart-summary__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.cp-cart-summary__table th,
.cp-cart-summary__table td {
	padding: 7px 0;
	border: 0;
	font-size: var(--cp-fs-sm);
	line-height: 1.4;
	vertical-align: baseline;
}

.cp-cart-summary__table th {
	color: var(--cp-text);
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
}

.cp-cart-summary__table th small {
	margin-left: 4px;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 500;
}

.cp-cart-summary__table td {
	padding-left: 12px;
	color: var(--cp-ink);
	font-weight: 750;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.cp-cart-summary__ship td {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 500;
}

.cp-cart-summary__table .esc-free-shipping-label {
	color: var(--cp-success);
	font-weight: 800;
}

.cp-cart-summary__table .cart-discount td {
	color: var(--cp-sale);
}

.cp-cart-summary__table .woocommerce-remove-coupon {
	margin-left: 6px;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 600;
	text-decoration: underline;
}

.cp-cart-summary__table .order-total th,
.cp-cart-summary__table .order-total td {
	padding-top: 14px;
	border-top: 1px dashed var(--cp-line-strong);
}

.cp-cart-summary__table .order-total th {
	color: var(--cp-ink);
	font-size: var(--cp-fs-md);
	font-weight: 800;
}

.cp-cart-summary__table .order-total td {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.cp-cart-summary__table .order-total td strong {
	font-weight: 800;
}

.cp-cart-summary__table .woocommerce-Price-currencySymbol {
	font-size: 0.82em;
}

.cp-cart-summary__issues {
	padding: 12px 14px;
	border-radius: var(--cp-r-card);
	background: var(--cp-sale-soft);
	color: var(--cp-ink);
	font-size: var(--cp-fs-sm);
}

.cp-cart-summary__issues-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--cp-sale);
	font-weight: 800;
}

.cp-cart-summary__issues ul {
	display: grid;
	gap: 4px;
	margin: 6px 0 0;
	padding-left: 20px;
	line-height: 1.45;
}

.cp-cart-summary .wc-proceed-to-checkout {
	display: grid;
	gap: 8px;
}

.cp-cart-summary .checkout-button {
	min-height: 54px;
	font-size: var(--cp-fs-lg);
}

.cp-cart-summary .checkout-button.is-disabled {
	opacity: 1;
	background: var(--cp-line-strong);
	box-shadow: none;
	color: var(--cp-muted);
}

.cp-cart-summary__why {
	margin: 0;
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
	text-align: center;
}

.cp-cart-summary__why .amount {
	color: var(--cp-accent);
	font-weight: 800;
}

.cp-cart-summary__trust {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--cp-line);
	list-style: none;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	line-height: 1.4;
}

.cp-cart-summary__trust li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.cp-cart-summary__trust .cp-icon {
	color: var(--cp-brand);
}

/* ─────────────────────────── Barra fija (móvil) ─────────────────────────── */

.cp-cart-bar {
	position: fixed;
	right: 0;
	bottom: calc(var(--cp-bottomnav-h) + env(safe-area-inset-bottom));
	left: 0;
	z-index: 915;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px var(--cp-gutter);
	border-top: 1px solid var(--cp-line);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: var(--cp-shadow-bar);
}

.cp-cart-bar__total {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.15;
}

.cp-cart-bar__total small,
.cp-cart-bar__total > span {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 600;
}

.cp-cart-bar__total strong {
	color: var(--cp-ink);
	font-size: 1.25rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.cp-cart-bar__total strong .woocommerce-Price-currencySymbol {
	font-size: 0.8em;
}

.cp-cart-bar__total .cp-cart-bar__hint {
	color: var(--cp-accent);
	font-weight: 750;
}

.cp-cart-bar .cp-btn {
	flex: none;
	min-height: 48px;
	padding: 0 22px;
}

.cp-cart-bar .cp-btn.is-disabled {
	opacity: 1;
	background: var(--cp-line-strong);
	box-shadow: none;
	color: var(--cp-muted);
}

.cart_totals.processing .cp-cart-bar .cp-btn {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 1023px) {
	.woocommerce-cart .cp-main {
		padding-bottom: calc(var(--cp-s10) + 72px);
	}
}

@media (min-width: 1024px) {
	.cp-cart-bar {
		display: none;
	}
}

/* WebView de la app: sin barra inferior del tema debajo. */
.is-webview .cp-cart-bar {
	bottom: 0;
	padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

/* ─────────────────────────── Completa tu pedido ─────────────────────────── */

.cp-cart-complete {
	margin-top: 20px;
}

/* ─────────────────────────── Carrito vacío ─────────────────────────── */

.cp-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 16px 0 0;
	padding: 40px 20px 28px;
	border-radius: var(--cp-r-lg);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
	text-align: center;
}

@media (min-width: 768px) {
	.cp-cart-empty {
		padding: 56px 32px 32px;
	}
}

.cp-cart-empty__icon {
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--cp-brand-soft);
	color: var(--cp-brand);
	box-shadow: 0 0 0 10px rgba(33, 160, 74, 0.06);
}

.cp-cart-empty__title {
	margin: 0;
	font-size: var(--cp-fs-2xl);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.cp-cart-empty__text {
	max-width: 460px;
	margin: 0;
	color: var(--cp-muted);
}

.cp-cart-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 10px 0 0;
}

.cp-cart-empty__perks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	width: 100%;
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--cp-line);
	list-style: none;
	color: var(--cp-text);
	font-size: var(--cp-fs-sm);
	font-weight: 600;
}

.cp-cart-empty__perks li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cp-cart-empty__perks .cp-icon {
	color: var(--cp-brand);
}

.cp-cart-empty__perks a {
	color: var(--cp-brand-dark);
}

.cp-cart-empty__perks a:hover {
	text-decoration: underline;
}

/* Móvil: fila desplazable; desde 600 px, rejilla. */
.cp-cart-cats {
	display: flex;
	gap: 4px;
	margin: 0 calc(-1 * var(--cp-s2));
	padding: 0 var(--cp-s2) 4px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.cp-cart-cats::-webkit-scrollbar {
	display: none;
}

.cp-cart-cats > li {
	flex: 0 0 96px;
	scroll-snap-align: start;
}

@media (min-width: 600px) {
	.cp-cart-cats {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px 8px;
		margin: 0;
		padding: 0;
		overflow: visible;
	}
}

@media (min-width: 1024px) {
	.cp-cart-cats {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
}

.cp-cart-cats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 4px;
	border-radius: var(--cp-r-card);
	text-align: center;
	transition: background var(--cp-fast);
}

.cp-cart-cats__item:hover {
	background: var(--cp-surface-alt);
}

.cp-cart-cats__thumb {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--cp-surface-alt);
	color: var(--cp-brand-dark);
	font-size: 1.25rem;
	font-weight: 800;
	transition: transform var(--cp-normal) var(--cp-ease);
}

.cp-cart-cats__thumb.is-empty {
	background: var(--cp-brand-soft);
}

.cp-cart-cats__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cp-cart-cats__item:hover .cp-cart-cats__thumb {
	transform: translateY(-2px);
}

@media (min-width: 1024px) {
	.cp-cart-cats__thumb {
		width: 84px;
		height: 84px;
	}
}

.cp-cart-cats__name {
	display: -webkit-box;
	overflow: hidden;
	overflow-wrap: anywhere;
	hyphens: auto;
	color: var(--cp-ink);
	font-size: var(--cp-fs-xs);
	font-weight: 700;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.cp-cart-cats__count {
	color: var(--cp-muted);
	font-size: 11px;
}

/* Móvil: hasta tres líneas, sin «…» en los nombres largos. */
@media (max-width: 767px) {
	.cp-cart-cats__name {
		overflow-wrap: break-word;
		-webkit-hyphens: auto;
		-webkit-line-clamp: 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cp-cart-item.is-updated {
		animation: none;
	}
	.cp-cart .blockUI.blockOverlay::after {
		animation-duration: 2s;
	}
}

/* ==========================================================================
   Móvil estilo app (< 768 px)
   Como el carrito de la app: el título y la lista van en bandas blancas a todo
   el ancho; las líneas, una debajo de otra con separador (no una tarjeta con
   sombra por producto); el cupón y el resumen, cada uno su banda. La barra fija
   con el total y el botón no cambia. Solo CSS: el marcado es el del carrito.
   ========================================================================== */

@media (max-width: 767px) {
	.cp-cart {
		padding-top: 0;
	}

	.cp-cart__head {
		margin: 0 calc(-1 * var(--cp-gutter));
		padding: 10px var(--cp-gutter) 8px;
		background: var(--cp-surface);
	}

	.cp-cart__title {
		font-size: 1.25rem;
	}

	.cp-cart .woocommerce-notices-wrapper > * {
		margin: 0 calc(-1 * var(--cp-gutter));
		border-radius: 0;
		box-shadow: none;
	}

	.cp-cart__layout {
		gap: 8px;
		margin-top: 8px;
	}

	/* Lista: una banda con las líneas separadas por una raya. */
	.cp-cart-list {
		gap: 0;
		margin: 0 calc(-1 * var(--cp-gutter));
		background: var(--cp-surface);
	}

	.cp-cart-list__head {
		padding: 12px var(--cp-gutter);
		border-bottom: 1px solid var(--cp-line);
		border-radius: 0;
		box-shadow: none;
	}

	.cp-cart-item {
		padding: 14px var(--cp-gutter);
		border: 0;
		border-bottom: 1px solid var(--cp-line);
		border-radius: 0;
		box-shadow: none;
	}

	.cp-cart-item:last-child,
	.cp-cart-item:has(+ .cp-cart-actions) {
		border-bottom: 0;
	}

	.cp-cart-item.is-invalid {
		box-shadow: inset 3px 0 0 var(--cp-sale);
	}

	@keyframes cp-cart-flash {
		0% {
			background-color: var(--cp-brand-soft);
		}
		100% {
			background-color: var(--cp-surface);
		}
	}

	/* Cupón (va dentro de la lista) y resumen: bandas. */
	.cp-cart-actions {
		margin: 0;
		padding: 2px var(--cp-gutter);
		border-top: 8px solid var(--cp-bg);
		border-radius: 0;
		box-shadow: none;
	}

	.cp-cart-summary {
		margin: 0 calc(-1 * var(--cp-gutter));
		padding: 16px var(--cp-gutter);
		border-radius: 0;
		box-shadow: none;
	}

	.cp-cart .blockUI.blockOverlay {
		border-radius: 0;
	}

	/* «Completa tu pedido» y otras secciones del carrito: bandas. */
	.cp-cart .cp-section--card {
		margin-right: calc(-1 * var(--cp-gutter));
		margin-left: calc(-1 * var(--cp-gutter));
		padding: 16px var(--cp-gutter);
		border-radius: 0;
		box-shadow: none;
	}

	.cp-cart-complete {
		margin-top: 8px;
	}

	/* Carrito vacío: también una banda. */
	.cp-cart-empty {
		margin: 8px calc(-1 * var(--cp-gutter)) 0;
		padding: 32px var(--cp-gutter) 24px;
		border-radius: 0;
		box-shadow: none;
	}
}
