/* ThResto — page panier [thresto_panier]. Couleurs reprises de ThResto → Apparence panier. */
.thresto-cartpage {
	--tcp-accent: var(--thresto-accent, #1e1e1e);
	--tcp-contour: var(--thresto-contour, #1e1e1e);
	--tcp-card-bg: var(--thresto-card-bg, #fff);
	--tcp-card-text: var(--thresto-card-text, #1e1e1e);
	--tcp-line: color-mix(in srgb, var(--tcp-card-text) 14%, transparent);
	box-sizing: border-box;
	width: 100%;
	max-width: var(--thresto-largeur, 1100px);
	margin: 0 auto;
	padding: 0 16px;
}
.thresto-cartpage *,
.thresto-cartpage *::before,
.thresto-cartpage *::after {
	box-sizing: border-box;
}
.thresto-cartpage .tcp-title {
	margin: 0 0 18px;
	font-size: 30px;
	line-height: 1.15;
	color: var(--thresto-product-title, inherit);
}

.thresto-cartpage .tcp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

/* --- Articles --- */
.thresto-cartpage .tcp-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.thresto-cartpage .tcp-item {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px;
	background: var(--tcp-card-bg);
	color: var(--tcp-card-text);
	border: 1px solid var(--tcp-line);
	border-radius: 14px;
	margin: 0;
}
.thresto-cartpage .tcp-item--noimg {
	grid-template-columns: minmax(0, 1fr) auto;
}
.thresto-cartpage .tcp-item-img img {
	display: block;
	width: 104px;
	height: 104px;
	object-fit: cover;
	border-radius: 10px;
}
.thresto-cartpage .tcp-item-name {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--thresto-product-title, var(--tcp-card-text));
}
.thresto-cartpage .tcp-item-options {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	opacity: .8;
	color: var(--tcp-card-text);
}
.thresto-cartpage .tcp-item-options li {
	margin: 0;
	padding: 0;
}
.thresto-cartpage .tcp-item-unit {
	margin-top: 6px;
	font-size: 13px;
	opacity: .65;
}
.thresto-cartpage .tcp-item-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.thresto-cartpage .tcp-item-total {
	font-size: 19px;
	font-weight: 700;
	color: var(--tcp-card-text);
	white-space: nowrap;
}
.thresto-cartpage .tcp-qty {
	display: inline-flex;
	align-items: stretch;
	height: 38px;
	border: 1px solid var(--tcp-line);
	border-radius: 10px;
	overflow: hidden;
}
.thresto-cartpage .tcp-qty button {
	width: 36px;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--tcp-card-text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.thresto-cartpage .tcp-qty button:hover:not(:disabled) {
	background: color-mix(in srgb, var(--tcp-card-text) 8%, transparent);
	color: var(--tcp-card-text);
}
.thresto-cartpage .tcp-qty button:disabled {
	opacity: .35;
	cursor: not-allowed;
}
.thresto-cartpage .tcp-qty-val {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	font-size: 16px;
	font-weight: 600;
	color: var(--tcp-card-text);
}
.thresto-cartpage .tcp-remove {
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #c0392b;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

/* --- Récapitulatif --- */
.thresto-cartpage .tcp-summary {
	position: sticky;
	top: 24px;
	padding: 20px;
	background: var(--tcp-card-bg);
	color: var(--tcp-card-text);
	border: 1px solid var(--tcp-line);
	border-radius: 14px;
}
.thresto-cartpage .tcp-summary-title {
	margin: 0 0 14px;
	font-size: 18px;
	color: var(--tcp-card-text);
}
.thresto-cartpage .tcp-line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 15px;
	color: var(--tcp-card-text);
}
.thresto-cartpage .tcp-line--coupon {
	color: #1e8449;
}
.thresto-cartpage .tcp-line--total {
	margin: 6px 0 16px;
	padding-top: 14px;
	border-top: 1px solid var(--tcp-line);
	font-size: 17px;
	font-weight: 700;
}
.thresto-cartpage .tcp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 2px solid var(--tcp-accent);
	border-radius: 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none;
}
.thresto-cartpage .tcp-btn--primary {
	background: var(--tcp-accent) !important;
	color: #fff !important;
}
.thresto-cartpage .tcp-btn--ghost {
	height: 44px;
	margin-top: 10px;
	font-size: 15px;
	background: transparent !important;
	border-color: var(--tcp-contour);
	color: var(--tcp-contour) !important;
}
.thresto-cartpage .tcp-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	color: var(--tcp-accent);
	font-size: 13px;
	font-weight: 800;
}
.thresto-cartpage .tcp-note {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	opacity: .6;
}

/* --- Panier vide --- */
.thresto-cartpage .tcp-empty {
	max-width: 420px;
	margin: 40px auto;
	padding: 32px 20px;
	text-align: center;
	background: var(--tcp-card-bg);
	color: var(--tcp-card-text);
	border: 1px solid var(--tcp-line);
	border-radius: 14px;
}
.thresto-cartpage .tcp-empty-text {
	margin: 0 0 16px;
	font-size: 18px;
}

.thresto-cartpage.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* --- Tablette / mobile --- */
@media (max-width: 860px) {
	.thresto-cartpage .tcp-layout {
		grid-template-columns: 1fr;
	}
	.thresto-cartpage .tcp-summary {
		position: static;
	}
}
@media (max-width: 520px) {
	.thresto-cartpage .tcp-item {
		grid-template-columns: 76px minmax(0, 1fr);
		grid-template-areas: "img main" "side side";
		gap: 12px;
	}
	.thresto-cartpage .tcp-item--noimg {
		grid-template-columns: 1fr;
		grid-template-areas: "main" "side";
	}
	.thresto-cartpage .tcp-item-img { grid-area: img; }
	.thresto-cartpage .tcp-item-main { grid-area: main; }
	.thresto-cartpage .tcp-item-side {
		grid-area: side;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.thresto-cartpage .tcp-item-img img {
		width: 76px;
		height: 76px;
	}
	.thresto-cartpage .tcp-item-side .tcp-item-total { order: 2; }
	.thresto-cartpage .tcp-title { font-size: 24px; }
}


/* --- v0.14.33 : quantité centrée, − / + colorés --- */
.thresto-cartpage .tcp-qty {
	display: inline-grid;
	grid-template-columns: 40px 44px 40px;
	align-items: stretch;
	height: 40px;
}
.thresto-cartpage .tcp-qty button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	color: var(--tcp-accent);
	font-size: 22px;
	font-weight: 700;
}
.thresto-cartpage .tcp-qty button:hover:not(:disabled) {
	background: var(--tcp-accent);
	color: #fff;
}
.thresto-cartpage .tcp-qty-val {
	min-width: 0;
	width: 100%;
	text-align: center;
	justify-content: center;
}
