/* ECARTBAY cart drawer - square corners, Saira, single magenta accent. */

.nmcd-scrim {
	position: fixed;
	inset: 0;
	background: rgba(37, 35, 34, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility .22s ease;
	z-index: 99998;
}

.nmcd-scrim.is-open { opacity: 1; visibility: visible; }

.nmcd {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	height: 100dvh;
	width: 420px;
	max-width: 100vw;
	background: #fff;
	color: var(--ink, #252322);
	font-family: 'Saira', system-ui, sans-serif;
	font-size: 15px;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .24s cubic-bezier(.32, .72, 0, 1);
	box-shadow: -18px 0 44px rgba(37, 35, 34, 0.18);
	z-index: 99999;
	visibility: hidden;
}

.nmcd.is-open { transform: translateX(0); visibility: visible; }

@media (prefers-reduced-motion: reduce) {
	.nmcd, .nmcd-scrim { transition-duration: .01ms; }
}

/* ---------- head ---------- */

.nmcd-head {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line, #E6E1E4);
}

.nmcd-title {
	margin: 0;
	font-family: 'Saira Condensed', 'Saira', sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 9px;
}

.nmcd-count {
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	background: var(--gold, #0389ae);
	color: #fff;
	font-family: 'Saira', sans-serif;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 21px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

.nmcd-close {
	flex: none;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	background: none;
	border: 1px solid transparent;
	border-radius: 0;
	color: var(--ink, #252322);
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
}

.nmcd-close:hover { background: var(--surface-charcoal, #F7F5F6); border-color: var(--line, #E6E1E4); }
.nmcd-close:focus-visible { outline: 2px solid var(--gold, #0389ae); outline-offset: 1px; }

/* ---------- shipping progress ---------- */

.nmcd-ship {
	flex: none;
	padding: 13px 20px 15px;
	background: var(--surface-charcoal, #F7F5F6);
	border-bottom: 1px solid var(--line, #E6E1E4);
	font-size: 13px;
	line-height: 1.35;
}

.nmcd-ship b { color: var(--gold-text, #026e8c); font-weight: 600; }

.nmcd-track {
	margin-top: 9px;
	height: 4px;
	background: #a6dbe9;
	overflow: hidden;
}

.nmcd-fill {
	height: 100%;
	background: var(--gold, #0389ae);
	transition: width .3s ease;
}

/* ---------- items ---------- */

.nmcd-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.nmcd-item {
	display: grid;
	grid-template-columns: 78px 1fr auto;
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line, #E6E1E4);
	position: relative;
}

.nmcd-item.is-busy { opacity: .45; pointer-events: none; }

.nmcd-thumb {
	display: block;
	width: 78px;
	height: 78px;
	background: var(--surface-iron, #F1EEF0);
}

.nmcd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nmcd-info { min-width: 0; }

.nmcd-name {
	display: block;
	font-weight: 500;
	font-size: 14.5px;
	line-height: 1.3;
	color: var(--ink, #252322);
	text-decoration: none;
}

.nmcd-name:hover { color: var(--gold-text, #026e8c); }

.nmcd-meta {
	margin-top: 3px;
	font-size: 12.5px;
	color: var(--ash, #6E686B);
	line-height: 1.35;
}

.nmcd-unit { margin-top: 5px; font-size: 13px; color: var(--ash, #6E686B); }
.nmcd-unit del { color: var(--slate, #9C9599); margin-right: 5px; }
.nmcd-unit ins { text-decoration: none; color: var(--gold-text, #026e8c); font-weight: 500; }
.nmcd-unit .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nmcd-qty {
	margin-top: 9px;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line, #E6E1E4);
}

.nmcd-step {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 0;
	border-radius: 0;
	color: var(--ink, #252322);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease;
}

.nmcd-step:hover { background: var(--surface-charcoal, #F7F5F6); }
.nmcd-step:focus-visible { outline: 2px solid var(--gold, #0389ae); outline-offset: -2px; }
.nmcd-step[disabled] { color: var(--slate, #9C9599); cursor: not-allowed; }

.nmcd-num {
	min-width: 32px;
	text-align: center;
	font-size: 13.5px;
	font-variant-numeric: tabular-nums;
}

.nmcd-right {
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
}

.nmcd-line { font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nmcd-line del { display: block; font-weight: 400; font-size: 12.5px; color: var(--slate, #9C9599); }

.nmcd-remove {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ash, #6E686B);
	cursor: pointer;
	border-bottom: 1px solid transparent;
}

.nmcd-remove:hover { color: var(--gold-text, #026e8c); border-bottom-color: currentColor; }

/* ---------- empty ---------- */

.nmcd-empty { padding: 64px 28px; text-align: center; }

.nmcd-empty svg { color: var(--slate, #9C9599); margin-bottom: 16px; }

.nmcd-empty h3 {
	margin: 0 0 6px;
	font-family: 'Saira Condensed', 'Saira', sans-serif;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nmcd-empty p { margin: 0 0 22px; font-size: 14px; color: var(--ash, #6E686B); line-height: 1.5; }

.nmcd-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 22px;
}

.nmcd-links a {
	padding: 7px 13px;
	border: 1px solid var(--line, #E6E1E4);
	font-size: 12.5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink, #252322);
	text-decoration: none;
}

.nmcd-links a:hover { border-color: var(--gold, #0389ae); color: var(--gold-text, #026e8c); }

/* ---------- foot ---------- */

.nmcd-foot {
	flex: none;
	padding: 16px 20px 20px;
	border-top: 1px solid var(--line, #E6E1E4);
	background: #fff;
}

.nmcd-sub {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-family: 'Saira Condensed', 'Saira', sans-serif;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nmcd-sub span:last-child { font-variant-numeric: tabular-nums; }

.nmcd-note { margin: 6px 0 14px; font-size: 12.5px; color: var(--ash, #6E686B); }

.nmcd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 15px 24px;
	border-radius: 0;
	font-family: 'Saira', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.nmcd-btn-primary { background: var(--gold, #0389ae); border: 1px solid var(--gold, #0389ae); color: #fff; }
.nmcd-btn-primary:hover { background: var(--gold-dark, #02607a); border-color: var(--gold-dark, #02607a); color: #fff; }

.nmcd-btn-ghost { background: #fff; border: 1px solid var(--ink, #252322); color: var(--ink, #252322); margin-top: 9px; }
.nmcd-btn-ghost:hover { background: var(--surface-charcoal, #F7F5F6); }

.nmcd-btn:focus-visible { outline: 2px solid var(--gold, #0389ae); outline-offset: 2px; }

/* ---------- misc ---------- */

body.nmcd-locked { overflow: hidden; }

.nmcd-err {
	margin: 14px 20px;
	padding: 11px 13px;
	border-left: 3px solid var(--gold, #0389ae);
	background: var(--surface-charcoal, #F7F5F6);
	font-size: 13px;
}

.nmcd-skel { padding: 16px 20px; }

.nmcd-skel i {
	display: block;
	height: 78px;
	margin-bottom: 14px;
	background: linear-gradient(90deg, #F1EEF0 25%, #F7F5F6 50%, #F1EEF0 75%);
	background-size: 300% 100%;
	animation: nmcd-sheen 1.1s linear infinite;
}

@keyframes nmcd-sheen { to { background-position: -300% 0; } }

@media (prefers-reduced-motion: reduce) { .nmcd-skel i { animation: none; } }

@media (max-width: 480px) {
	.nmcd { width: 100vw; }
	.nmcd-item { grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 16px; }
	.nmcd-thumb { width: 64px; height: 64px; }
	.nmcd-head, .nmcd-ship, .nmcd-foot { padding-left: 16px; padding-right: 16px; }
}
