/* E-Catalogue — page « Ma demande » */
.ecat-req {
	--ecat-red: #e20613;
	--ecat-ink: #1d1d1b;
	--ecat-muted: #6b625d;
	--ecat-line: #ece6dc;
	--ecat-soft: #faf8f4;
	max-width: 880px;
	margin: 0 auto;
	color: var(--ecat-ink);
}

.ecat-req__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--ecat-ink);
}
.ecat-req__title { margin: 0; font-size: 22px; line-height: 1.2; }
.ecat-req__count { color: var(--ecat-muted); font-size: 14px; white-space: nowrap; }

.ecat-req__list { list-style: none; margin: 0; padding: 0; }
.ecat-req__item {
	display: grid;
	grid-template-columns: 72px 1fr auto 36px;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ecat-line);
}
.ecat-req__thumb { width: 72px; height: 72px; background: var(--ecat-soft); border: 1px solid var(--ecat-line); overflow: hidden; }
.ecat-req__thumb a { display: block; }
.ecat-req__thumb img, .ecat-req__img { display: block; width: 72px; height: 72px; object-fit: contain; margin: 0; }

.ecat-req__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ecat-req__name { color: var(--ecat-ink); font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; }
a.ecat-req__name:hover { color: var(--ecat-red); }
.ecat-req__meta { color: var(--ecat-muted); font-size: 13px; line-height: 1.4; }

.ecat-req__qty { direction: ltr; display: inline-flex; align-items: stretch; border: 1px solid #d9d2c6; height: 40px; }
.ecat-req__step {
	width: 36px; min-width: 36px; height: 38px; min-height: 0; padding: 0; margin: 0;
	border: 0; background: #fff; color: var(--ecat-ink); font-size: 18px; line-height: 1; cursor: pointer;
	box-shadow: none; text-transform: none;
}
.ecat-req__step:hover { background: var(--ecat-soft); color: var(--ecat-red); }
.ecat-req .ecat-req__input {
	width: 48px; height: 38px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-left: 1px solid #ece6dc; border-right: 1px solid #ece6dc; border-radius: 0;
	text-align: center; font-weight: 600; font-size: 15px; box-shadow: none; -moz-appearance: textfield; appearance: textfield;
}
.ecat-req__input::-webkit-outer-spin-button, .ecat-req__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ecat-req__qty-solo { display: inline-flex; align-items: center; justify-content: center; width: 48px; font-weight: 600; }

.ecat-req__remove {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; color: var(--ecat-muted); border-radius: 50%; text-decoration: none;
}
.ecat-req__remove:hover { color: var(--ecat-red); background: #fff1f1; }

/* Le bouton « Mettre à jour » n'apparaît que sans JavaScript */
.ecat-js .ecat-req__update { display: none; }
.ecat-req__update { margin-top: 12px; }
.ecat-req__form.is-busy { opacity: .55; pointer-events: none; transition: opacity .15s; }

.ecat-req__note { margin: 18px 0 0; color: var(--ecat-muted); font-size: 14px; text-align: center; }

.ecat-req__actions { display: flex; gap: 12px; margin-top: 18px; }
.ecat-btn {
	flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; text-align: center;
	min-height: 50px; padding: 12px 20px; font-weight: 700; font-size: 14px; letter-spacing: .02em;
	text-transform: uppercase; text-decoration: none; border: 2px solid var(--ecat-red); transition: background-color .15s, color .15s;
}
.ecat-btn--primary { background: var(--ecat-red); color: #fff; }
.ecat-btn--primary:hover { background: #b9050f; border-color: #b9050f; color: #fff; }
.ecat-btn--ghost { background: #fff; color: var(--ecat-ink); border-color: var(--ecat-ink); }
.ecat-btn--ghost:hover { background: var(--ecat-ink); color: #fff; }

.ecat-req__empty { text-align: center; padding: 48px 16px; border: 1px dashed #d9d2c6; background: var(--ecat-soft); }
.ecat-req__empty-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.ecat-req__empty-text { color: var(--ecat-muted); margin: 0 auto 22px; max-width: 460px; }
.ecat-req__empty .ecat-btn { flex: none; min-width: 240px; }

@media (max-width: 600px) {
	.ecat-req__item { grid-template-columns: 60px 1fr 32px; grid-template-areas: "thumb info remove" "thumb qty remove"; gap: 8px 12px; }
	.ecat-req__thumb { grid-area: thumb; width: 60px; height: 60px; }
	.ecat-req__thumb img, .ecat-req__img { width: 60px; height: 60px; }
	.ecat-req__info { grid-area: info; }
	.ecat-req__qty { grid-area: qty; justify-self: start; }
	.ecat-req__remove { grid-area: remove; align-self: start; }
	.ecat-req__actions { flex-direction: column; }
	.ecat-req .ecat-req__input { font-size: 16px; } /* évite le zoom iPhone */
}

