/* ═══════════════ ZILTE ZUSJES — zijmandje + toast ═══════════════
   Eigen laag, ná alle andere. z-index is een afgesproken schaal, geen
   losse 9999: scrim 700, paneel 710, toast 800, skip-link 900.
   ══════════════════════════════════════════════════════════════════ */

.zz-drawer {
	position: fixed;
	inset: 0;
	z-index: 700;
	visibility: hidden;
	pointer-events: none;
}

.zz-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.zz-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgb(44 44 44 / .42);
	opacity: 0;
	transition: opacity .4s var(--ease, ease);
}

.zz-drawer.is-open .zz-drawer__scrim { opacity: 1; }

.zz-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 710;
	display: flex;
	flex-direction: column;
	width: min(420px, 100vw);
	height: 100%;
	background: #fff;
	box-shadow: -24px 0 60px -30px rgb(60 42 36 / .55);
	transform: translateX(100%);
	transition: transform .48s var(--ease, cubic-bezier(.22,1,.36,1));
	overflow: hidden;
}

.zz-drawer.is-open .zz-drawer__panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
	.zz-drawer__panel,
	.zz-drawer__scrim { transition: none; }
}

/* ── Kop ── */
.zz-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 22px 16px;
	border-bottom: 1px solid var(--line, rgb(44 44 44 / .1));
	flex: none;
}

.zz-drawer__title {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink, #2C2C2C);
}

.zz-drawer__close {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	border-radius: 999px;
	color: var(--ink, #2C2C2C);
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	.zz-drawer__close:hover { background: var(--blush, #F9ECE8); }
}

/* ── Inhoud ── */
.zz-drawer__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.zz-drawer__ship { padding: 16px 22px; background: var(--cream, #FCF7F4); flex: none; }
.zz-drawer__ship p { margin: 0 0 8px; font-size: 13px; color: var(--muted, rgb(44 44 44 / .62)); }
.zz-drawer__ship.is-free p { color: var(--clay-deep, #8B6154); font-weight: 700; }

.zz-drawer__bar {
	display: block;
	height: 4px;
	border-radius: 999px;
	background: rgb(168 124 109 / .2);
	overflow: hidden;
}

.zz-drawer__bar i {
	display: block;
	height: 100%;
	background: var(--clay, #A87C6D);
	border-radius: 999px;
	transition: width .5s var(--ease, ease);
}

.zz-drawer__items {
	list-style: none;
	margin: 0;
	padding: 6px 22px;
	flex: 1 1 auto;
}

.zz-drawer__item {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 28px;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line, rgb(44 44 44 / .1));
	align-items: start;
}

.zz-drawer__thumb img {
	width: 72px;
	min-width: 72px;
	max-width: 72px;
	height: auto;
	display: block;
	border-radius: 10px;
}

.zz-drawer__info { min-width: 0; }

.zz-drawer__name { margin: 0; font-size: 14.5px; line-height: 1.4; }
.zz-drawer__name a { color: var(--ink, #2C2C2C); text-decoration: none; }
.zz-drawer__name a:hover { text-decoration: underline; }

.zz-drawer__meta {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--muted, rgb(44 44 44 / .62));
	overflow-wrap: anywhere;
}

.zz-drawer__row {
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.zz-qty {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	border: 1px solid var(--line-clay, rgb(168 124 109 / .28));
	border-radius: 999px;
	padding: 2px;
}

.zz-qty__btn {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	border-radius: 999px;
	color: var(--ink, #2C2C2C);
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	.zz-qty__btn:hover { background: var(--blush, #F9ECE8); }
}

.zz-qty__val { min-width: 24px; text-align: center; font-size: 14px; }

.zz-drawer__price { font-size: 14px; font-weight: 700; white-space: nowrap; }

.zz-drawer__remove {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	border-radius: 999px;
	color: var(--muted, rgb(44 44 44 / .62));
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	.zz-drawer__remove:hover { background: var(--blush, #F9ECE8); color: var(--clay-deep, #8B6154); }
}

/* ── Leeg ── */
.zz-drawer__empty {
	margin: auto;
	padding: 40px 24px;
	text-align: center;
	color: var(--muted, rgb(44 44 44 / .62));
}

.zz-drawer__empty svg { color: var(--clay-soft, #C9A597); }
.zz-drawer__empty p { margin: 14px 0 18px; }

/* ── Voet ── */
.zz-drawer__foot {
	flex: none;
	padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line, rgb(44 44 44 / .1));
	background: #fff;
}

.zz-drawer__sub {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 15px;
}

.zz-drawer__sub strong { font-size: 18px; font-weight: 700; }

.zz-drawer__note { margin: 6px 0 14px; font-size: 12px; color: var(--muted, rgb(44 44 44 / .62)); }

.zz-drawer__checkout {
	display: flex;
	width: 100%;
	min-width: 100%;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	background: var(--clay, #A87C6D);
	border: 1px solid var(--clay, #A87C6D);
	border-radius: var(--radius-btn, 999px);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	letter-spacing: .04em;
}

@media (hover: hover) and (pointer: fine) {
	.zz-drawer__checkout:hover { background: var(--clay-deep, #8B6154); border-color: var(--clay-deep, #8B6154); }
}

.zz-drawer__cartlink {
	display: block;
	margin-top: 10px;
	text-align: center;
	font-size: 13px;
	color: var(--muted, rgb(44 44 44 / .62));
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Toast ── */
.zz-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 800;
	transform: translate(-50%, 20px);
	max-width: min(440px, calc(100vw - 32px));
	padding: 13px 20px;
	border-radius: 999px;
	background: var(--ink, #2C2C2C);
	color: #fff;
	font-size: 14px;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease, transform .3s var(--ease, ease);
}

.zz-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.zz-toast.is-error { background: #9c3b3b; }

/* ── Scrollvergrendeling op html (§51): zodra html clipt, stopt een lock
      op body met werken. ── */
html.zz-locked,
html.zz-locked body { overflow: hidden; }

/* ── Bezig: de lade blijft leesbaar maar is even niet klikbaar ── */
.zz-drawer.is-busy .zz-drawer__body {
	opacity: .5;
	pointer-events: none;
	transition: opacity .18s var(--ease, ease);
}

.zz-drawer__panel:focus {
	outline: none;
}
