/* DENVA – Panier & suggestions */
.dcu {
	--dcu-forest: var(--forest, #112d20);
	--dcu-orange: var(--orange, #c54b00);
	--dcu-gold: var(--gold, #e6b76f);
	--dcu-cream: var(--cream, #faf9f5);
	--dcu-ink: var(--ink, #20241f);
	--dcu-line: var(--line, #e4e3dc);
	--dcu-muted: #5f6359;
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--dcu-ink);
}
.dcu[hidden] { display: none; }
html.dcu-lock { overflow: hidden; }

.dcu-overlay {
	position: absolute;
	inset: 0;
	background: rgba(9, 35, 23, .45);
	opacity: 0;
	transition: opacity .3s ease;
}
.dcu-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(440px, 100%);
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	box-shadow: -12px 0 40px rgba(0, 0, 0, .15);
	outline: none;
}
.dcu.is-open .dcu-overlay { opacity: 1; }
.dcu.is-open .dcu-panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.dcu-overlay, .dcu-panel { transition: none; }
}

.dcu-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 20px 16px;
	border-bottom: 1px solid var(--dcu-line);
}
.dcu-head h2 {
	margin: 0;
	font: 700 26px/1.2 Georgia, "Times New Roman", serif;
	color: var(--dcu-forest);
}
.dcu-x {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dcu-ink);
	cursor: pointer;
}
.dcu-x:hover { background: var(--dcu-cream); }

.dcu-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	transition: opacity .2s;
}
.dcu.is-busy .dcu-inner { opacity: .55; pointer-events: none; }
.dcu-loading, .dcu-empty { padding: 32px 20px; text-align: center; color: var(--dcu-muted); }
.dcu-empty p { margin: 0 0 16px; font-size: 16px; }

.dcu-scroll { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }

/* Livraison offerte */
.dcu-ship {
	background: #fdf3ea;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
}
.dcu-ship.is-done { background: #e9f5ec; }
.dcu-ship p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; }
.dcu-ship svg { flex: none; color: var(--dcu-orange); }
.dcu-ship.is-done svg { color: #1f7a3a; }
.dcu-bar { height: 6px; border-radius: 6px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.dcu-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dcu-orange), var(--dcu-gold)); transition: width .4s; }

/* Lignes du panier */
.dcu-items, .dcu-suggest ul { list-style: none; margin: 0; padding: 0; }
.dcu-item { display: flex; gap: 14px; padding: 12px 0; }
.dcu-item + .dcu-item { border-top: 1px solid var(--dcu-line); }
.dcu-thumb {
	flex: none;
	width: 80px;
	height: 80px;
	border-radius: 10px;
	background: var(--dcu-cream);
	overflow: hidden;
	display: block;
}
.dcu-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; }
.dcu-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.dcu-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dcu-row--meta { align-items: center; flex-wrap: wrap; }
.dcu-name { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; }
.dcu-name a, a.dcu-name { color: var(--dcu-ink); text-decoration: none; }
.dcu-name a:hover, a.dcu-name:hover { color: var(--dcu-orange); }
.dcu-line-total { margin: 0; font-weight: 700; white-space: nowrap; font-size: 15px; }
.dcu-unit { color: var(--dcu-muted); font-size: 14px; }
.dcu-free { color: #1f7a3a; font-weight: 700; }
.dcu-badge {
	display: inline-block;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e9f5ec;
	color: #1f7a3a;
}
.dcu-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--dcu-line);
	border-radius: 999px;
	padding: 2px;
}
.dcu-qty button {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dcu-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.dcu-qty button:hover { background: var(--dcu-cream); }
.dcu-qty .dcu-rm { color: var(--dcu-muted); margin-left: 4px; }
.dcu-qty-n { min-width: 24px; text-align: center; font-weight: 600; }

/* Suggestions */
.dcu-suggest { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--dcu-line); }
.dcu-suggest h3 { margin: 0 0 8px; font: 700 19px/1.3 Georgia, "Times New Roman", serif; color: var(--dcu-forest); }
.dcu-sug { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.dcu-sug .dcu-thumb { width: 64px; height: 64px; }
.dcu-sug-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dcu-sug .dcu-name { font-size: 14px; }
.dcu-price { font-size: 14px; color: var(--dcu-muted); }
.dcu-price del { opacity: .7; }
.dcu-price ins { text-decoration: none; color: var(--dcu-orange); font-weight: 700; }
.dcu-add {
	flex: none;
	padding: 9px 16px;
	border: 1.5px solid var(--dcu-forest);
	border-radius: 999px;
	background: #fff;
	color: var(--dcu-forest);
	font: 600 14px/1 Arial, Helvetica, sans-serif;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.dcu-add:hover { background: var(--dcu-forest); color: #fff; }
.dcu-add:disabled { opacity: .6; cursor: wait; }

/* Pied */
.dcu-foot { border-top: 1px solid var(--dcu-line); padding: 16px 20px 20px; background: #fff; }
.dcu-sub { display: flex; justify-content: space-between; margin: 0; font-size: 17px; }
.dcu-note { margin: 4px 0 14px; font-size: 13px; color: var(--dcu-muted); }
.dcu-btn {
	display: block;
	text-align: center;
	padding: 14px 18px;
	border-radius: 6px;
	font: 700 15px/1.2 Arial, Helvetica, sans-serif;
	text-decoration: none;
}
.dcu-btn + .dcu-btn { margin-top: 8px; }
.dcu-btn--primary { background: var(--dcu-orange); color: #fff; }
.dcu-btn--primary:hover { background: #a93f00; color: #fff; }
.dcu-btn--ghost { color: var(--dcu-forest); border: 1.5px solid var(--dcu-line); }
.dcu-btn--ghost:hover { border-color: var(--dcu-forest); color: var(--dcu-forest); }

.dcu :focus-visible { outline: 2px solid var(--dcu-orange); outline-offset: 2px; }

@media (max-width: 480px) {
	.dcu-head h2 { font-size: 22px; }
	.dcu-scroll, .dcu-foot { padding-left: 16px; padding-right: 16px; }
	.dcu-thumb { width: 68px; height: 68px; }
}

/* Barre livraison en haut de la page panier */
.dcu-ship--page {
	font-family: Arial, Helvetica, sans-serif;
	color: var(--ink, #20241f);
	margin: 0 0 24px;
	padding: 16px 20px;
	--dcu-orange: var(--orange, #c54b00);
	--dcu-gold: var(--gold, #e6b76f);
}
.dcu-ship--page p { font-size: 16px; }

/* Remises dans le tiroir */
.dcu-discount { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 14px; color: #1f7a3a; }
.dcu-discount strong { white-space: nowrap; }
.dcu-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--dcu-line); }

/* Incitation « Ajoutez encore… » */
.dcu-nudge {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 12px 0 4px;
	padding: 12px 14px;
	border-left: 3px solid var(--dcu-orange);
	border-radius: 8px;
	background: #fdf3ea;
	font-size: 14px;
	line-height: 1.45;
}
.dcu-nudge svg { flex: none; color: var(--dcu-orange); margin-top: 1px; }
.dcu-nudge span { display: block; }
.dcu-ship-line { color: var(--dcu-ink); font-size: 15px; }
.dcu-ship-line strong { color: #1f7a3a; }
.dcu-note:empty { margin: 0 0 14px; }
