/* Paris Affaires – tiroir panier. Rouge #DC000C, charbon #1A1A1A. */
.cart-widget-side.pa-cd {
	--pa-red: #DC000C;
	--pa-red-dark: #B8000A;
	--pa-ink: #1A1A1A;
	--pa-text: #4A4A4F;
	--pa-muted: #6B6B70;
	--pa-line: #E9E9EB;
	--pa-soft: #F5F5F6;
	--wd-side-hidden-w: 420px;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--pa-text);
	font-family: Lato, sans-serif;
	transition: transform .3s cubic-bezier(.22, .61, .36, 1), visibility .3s;
	box-shadow: -12px 0 40px rgba(0, 0, 0, .08);
}
.wd-close-side { transition: opacity .3s ease, visibility .3s ease; }
.wd-close-side.wd-close-side-opened { background-color: rgba(17, 17, 17, .45); }
@media (max-width: 480px) {
	.cart-widget-side.pa-cd { --wd-side-hidden-w: 100vw; width: 100vw; max-width: 100vw; }
}
html.pa-cd-lock, html.pa-cd-lock body { overflow: hidden; }

/* En-tête */
.pa-cd .pa-cd-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	padding: 12px 16px 12px 20px;
	border-bottom: 1px solid var(--pa-line);
	flex: 0 0 auto;
}
.pa-cd .pa-cd-title {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pa-ink);
	text-transform: none;
	letter-spacing: 0;
}
.pa-cd .pa-cd-count {
	margin-left: 6px;
	font-family: Lato, sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: var(--pa-muted);
}
.pa-cd .pa-cd-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--pa-ink);
	cursor: pointer;
	transition: background-color .2s ease;
}
.pa-cd .pa-cd-close:hover { background: var(--pa-soft); }
.pa-cd .pa-cd-close:active { transform: scale(.94); }

/* Alerte d'erreur */
.pa-cd .pa-cd-alert {
	margin: 12px 16px 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #FDECEC;
	color: #8A0007;
	font-size: 13px;
	line-height: 1.45;
}

/* Corps */
.pa-cd .widget_shopping_cart { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.pa-cd .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: 100%; }
.pa-cd .shopping-cart-widget-body { flex: 1 1 auto; min-height: 0; }
.pa-cd .shopping-cart-widget-body .wd-scroll-content { max-height: none; padding: 4px 0; overscroll-behavior: contain; }

.pa-cd .pa-cd-list { margin: 0; padding: 0; list-style: none; }
.pa-cd .pa-cd-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid var(--pa-line);
	transition: opacity .2s ease, background-color .2s ease;
}
.pa-cd .pa-cd-item:last-child { border-bottom: 0; }
.pa-cd .pa-cd-item:hover { background: #FCFCFC; }
.pa-cd .pa-cd-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--pa-line);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.pa-cd .pa-cd-thumb img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; }
.pa-cd .pa-cd-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 0; }
.pa-cd .pa-cd-top { display: flex; align-items: flex-start; gap: 8px; }
.pa-cd .pa-cd-name {
	flex: 1 1 auto;
	min-width: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--pa-ink);
	text-decoration: none;
}
.pa-cd a.pa-cd-name:hover { color: var(--pa-red); }
.pa-cd .pa-cd-remove.remove {
	position: static;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: -5px -6px 0 0;
	border-radius: 6px;
	background: transparent;
	color: #9A9AA0;
	font-size: 0;
	line-height: 1;
	opacity: 1;
	transition: color .2s ease, background-color .2s ease;
}
.pa-cd .pa-cd-remove.remove:hover { color: var(--pa-red); background: #FDECEC; }
.pa-cd .pa-cd-remove .pa-cd-ico { width: 17px; height: 17px; }
.pa-cd .pa-cd-info .variation { margin: 0; font-size: 12px; color: var(--pa-muted); }
.pa-cd .pa-cd-info .variation dt, .pa-cd .pa-cd-info .variation dd { margin: 0; display: inline; }
.pa-cd .pa-cd-info .variation dd p { display: inline; margin: 0; }
.pa-cd .pa-cd-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.pa-cd .pa-cd-bottom .quantity { margin: 0; --wd-form-height: 34px; }
.pa-cd .pa-cd-bottom .quantity input[type="button"] { width: 30px; }
.pa-cd .pa-cd-bottom .quantity .qty { width: 38px; font-size: 14px; }
.pa-cd .pa-cd-qty-static { font-size: 13px; color: var(--pa-muted); }
.pa-cd .pa-cd-prices { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pa-cd .pa-cd-line { font-family: Poppins, sans-serif; font-size: 14px; font-weight: 600; color: var(--pa-ink); white-space: nowrap; }
.pa-cd .pa-cd-unit { font-size: 12px; color: var(--pa-muted); white-space: nowrap; }
.pa-cd .pa-cd-item .quantity + .quantity, .pa-cd .pa-cd-item > .quantity { display: none; }

/* États de chargement */
.pa-cd .pa-cd-item.wd-loading, .pa-cd .pa-cd-item.pa-cd-removing { opacity: .45; pointer-events: none; }
.pa-cd .pa-cd-item.wd-loading::after, .pa-cd .pa-cd-item.pa-cd-removing::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 24px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid var(--pa-line);
	border-top-color: var(--pa-red);
	border-radius: 50%;
	animation: pa-cd-spin .7s linear infinite;
}
.pa-cd .pa-cd-item.wd-loading::before { display: none; }
.pa-cd.pa-cd-busy .pa-cd-remove, .pa-cd.pa-cd-busy .quantity { pointer-events: none; }
.pa-cd.pa-cd-busy .pa-cd-footer { opacity: .6; transition: opacity .15s ease; }
@keyframes pa-cd-spin { to { transform: rotate(360deg); } }
.pa-cd .blockUI.blockOverlay { background: rgba(255, 255, 255, .55) !important; }

/* Apparition / disparition */
.pa-cd .pa-cd-item.pa-cd-new { animation: pa-cd-in .28s ease-out both; }
@keyframes pa-cd-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.pa-cd .pa-cd-ghost { list-style: none; margin: 0; padding: 0; overflow: hidden; transition: height .24s ease, opacity .24s ease; }

/* Panier vide */
.pa-cd .pa-cd-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 56px 28px;
}
.pa-cd .pa-cd-empty-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--pa-soft);
	color: var(--pa-ink);
}
.pa-cd .pa-cd-empty-ico .pa-cd-ico { width: 28px; height: 28px; }
.pa-cd .pa-cd-empty-title { margin: 6px 0 0; font-family: Poppins, sans-serif; font-size: 17px; font-weight: 600; color: var(--pa-ink); }
.pa-cd .pa-cd-empty-text { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--pa-muted); max-width: 290px; }
.pa-cd .pa-cd-empty::before { display: none; }

/* Pied : livraison, total, actions */
.pa-cd .pa-cd-footer {
	flex: 0 0 auto;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--pa-line);
	background: #fff;
	box-shadow: 0 -8px 20px rgba(0, 0, 0, .03);
}
.pa-cd .pa-cd-footer.wd-cart-empty { display: none; }
.pa-cd .pa-cd-ship {
	display: flex;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 14px;
	border-radius: 10px;
	background: var(--pa-soft);
}
.pa-cd .pa-cd-ship-ico { flex: 0 0 auto; color: var(--pa-red); line-height: 0; margin-top: 1px; }
.pa-cd .pa-cd-ship-body { min-width: 0; }
.pa-cd .pa-cd-ship p { margin: 0; }
.pa-cd .pa-cd-ship-title { font-family: Poppins, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--pa-ink); }
.pa-cd .pa-cd-ship-main { margin-top: 2px !important; font-size: 14px; line-height: 1.45; color: var(--pa-text); }
.pa-cd .pa-cd-ship-main strong { color: var(--pa-ink); font-weight: 700; }
.pa-cd .pa-cd-ship-sub { margin-top: 4px !important; font-size: 12px; line-height: 1.45; color: var(--pa-muted); }
.pa-cd .pa-cd-progress { height: 6px; margin-top: 8px; border-radius: 99px; background: #E3E3E6; overflow: hidden; }
.pa-cd .pa-cd-progress span { display: block; height: 100%; border-radius: inherit; background: var(--pa-red); transition: width .5s ease; }

.pa-cd .pa-cd-summary { margin-bottom: 14px; }
.pa-cd .pa-cd-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--pa-ink); }
.pa-cd .pa-cd-sum-row strong { font-family: Poppins, sans-serif; font-size: 18px; font-weight: 600; }
.pa-cd .pa-cd-sum-row--discount { margin-top: 4px; font-size: 14px; }
.pa-cd .pa-cd-sum-row--discount strong { font-size: 14px; color: var(--pa-red); }
.pa-cd .pa-cd-sum-note { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--pa-muted); }

.pa-cd .pa-cd-actions { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.pa-cd .pa-cd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 12px 18px;
	border-radius: 6px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}
.pa-cd .pa-cd-btn:active { transform: scale(.985); }
.pa-cd .pa-cd-btn--primary { background: var(--pa-red); border: 1px solid var(--pa-red); color: #fff; }
.pa-cd .pa-cd-btn--primary:hover { background: var(--pa-red-dark); border-color: var(--pa-red-dark); color: #fff; }
.pa-cd .pa-cd-btn--outline { min-height: 42px; background: #fff; border: 1px solid #CFCFD3; color: var(--pa-ink); }
.pa-cd .pa-cd-btn--outline:hover { background: var(--pa-soft); border-color: var(--pa-ink); color: var(--pa-ink); }
.pa-cd .pa-cd-continue {
	align-self: center;
	min-height: 0;
	margin-top: 2px;
	padding: 6px 8px;
	border: 0;
	background: transparent;
	font-family: Lato, sans-serif;
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	color: var(--pa-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	box-shadow: none;
}
.pa-cd .pa-cd-continue:hover { color: var(--pa-ink); background: transparent; }

.pa-cd .pa-cd-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--pa-line);
	list-style: none;
}
.pa-cd .pa-cd-trust li { margin: 0; min-width: 0; }
.pa-cd .pa-cd-trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	font-size: 11px;
	line-height: 1.3;
	color: var(--pa-muted);
	text-decoration: none;
}
.pa-cd a.pa-cd-trust-item:hover { color: var(--pa-ink); }
.pa-cd .pa-cd-trust .pa-cd-ico { width: 18px; height: 18px; color: var(--pa-ink); }

/* Neutralise les styles WoodMart hérités */
.pa-cd .cart-item-link.wd-fill { display: none; }
.pa-cd .woocommerce-mini-cart__total { display: none; }

/* Focus clavier */
.pa-cd a:focus-visible, .pa-cd button:focus-visible, .pa-cd input:focus-visible {
	outline: 2px solid var(--pa-red);
	outline-offset: 2px;
}
.pa-cd:focus { outline: none; }

@media (max-width: 480px) {
	.pa-cd .pa-cd-item { padding: 14px 16px; gap: 12px; }
	.pa-cd .pa-cd-thumb { flex-basis: 64px; width: 64px; height: 64px; }
	.pa-cd .pa-cd-footer { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
	.pa-cd .pa-cd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
	.pa-cd .pa-cd-trust-item { flex-direction: row; justify-content: flex-start; text-align: left; gap: 8px; }
}
@media (max-height: 640px) {
	.pa-cd .pa-cd-trust { display: none; }
	.pa-cd .pa-cd-ship-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cart-widget-side.pa-cd, .wd-close-side, .pa-cd *, .pa-cd *::before, .pa-cd *::after {
		transition-duration: 0s !important;
		animation-duration: 0s !important;
		animation-iteration-count: 1 !important;
	}
	.pa-cd .pa-cd-item.wd-loading::after, .pa-cd .pa-cd-item.pa-cd-removing::after { animation: none; border-top-color: var(--pa-red); }
}
