/* File: public/css/side-cart.css */

/* Reset-ish */
.csc-sidecart,
.csc-sidecart * {
	box-sizing: border-box;
}

/* Overlay */
.csc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	pointer-events: none;
	transition: .25s;
	z-index: 998;
}
.csc-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* Panel */
.csc-sidecart {
	position: fixed;
	top: 0;
	right: -420px;
	width: 420px;
	max-width: 100vw;
	height: 100dvh;
	background: var(--csc-bg, #f5efe6);
	border-left: 2px solid var(--csc-muted, #dbcfc3);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	z-index: 999;
	display: flex;
	flex-direction: column;
	padding: 16px;
	gap: 12px;
	transition: right .3s ease;
}
.csc-sidecart.is-open {
	right: 0;
}

/* Header */
.csc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.csc-header-left {
	display: flex;
	gap: 8px;
	align-items: center;
}
.csc-header h3 {
	margin: 0;
	color: var(--csc-text, #2a1d14);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.csc-bag {
	font-size: 20px;
}
.csc-close {
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: var(--csc-text, #2a1d14);
	line-height: 1;
}

/* Free shipping bar */
.csc-freebar {
	background: var(--csc-surface, #fff);
	border-radius: 12px;
	padding: 10px 12px;
	border: 1px solid var(--csc-muted, #dbcfc3);
}
.csc-freebar-text {
	font-size: 13px;
	color: var(--csc-text, #2a1d14);
	opacity: .9;
	margin-bottom: 6px;
}
.csc-progress {
	height: 6px;
	background: #eee;
	border-radius: 999px;
	overflow: hidden;
}
.csc-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--csc-text, #2a1d14);
}

/* Middengebied: ÉÉN scroll-container */
.csc-body {
	flex: 1 1 auto;
	min-height: 0;          /* belangrijk voor flex + overflow */
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-right: 4px;
}

/* Items */
.csc-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Cart item card */
.csc-item {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 10px;
	background: var(--csc-surface, #fff);
	border: 1px solid var(--csc-muted, #dbcfc3);
	border-radius: 16px;
	padding: 10px;
	align-items: center;
}
.csc-item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 10px;
}
.csc-item-title {
	font-weight: 600;
	color: var(--csc-text, #2a1d14);
	font-size: 16px;
}
.csc-item-price {
	color: var(--csc-text, #2a1d14);
	opacity: .85;
	margin-top: 4px;
	font-size: 14px;
}
.csc-qty {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 14px;
}
.csc-qty .csc-iconbtn {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 2px solid var(--csc-text, #2a1d14);
	background: transparent;
	color: var(--csc-text, #2a1d14);
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.csc-trash {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: var(--csc-text, #2a1d14);
}

/* Upsell */
.csc-upsell {
	margin-top: 4px;
}
.csc-upsell h4 {
	margin: 0 0 6px 4px;
	color: var(--csc-text, #2a1d14);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .04em;
}
.csc-upsell-track {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.csc-upsell-card {
	display: grid;
	grid-template-columns: 70px 1fr auto;
	gap: 10px;
	align-items: center;
	background: var(--csc-surface, #fff);
	border: 1px solid var(--csc-muted, #dbcfc3);
	border-radius: 16px;
	padding: 8px 10px;
}
.csc-upsell-card img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 10px;
}
.csc-upsell-title {
	color: var(--csc-text, #2a1d14);
	font-weight: 600;
	font-size: 15px;
}
.csc-upsell-price {
	color: var(--csc-text, #2a1d14);
	margin-top: 4px;
	font-size: 14px;
}
.csc-upsell .csc-iconbtn {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 1.5px solid var(--csc-text, #2a1d14);
	background: transparent;
	color: var(--csc-text, #2a1d14);
	font-size: 16px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

/* Footer – blijft altijd zichtbaar */
.csc-footer {
	flex: 0 0 auto;
	padding-top: 10px;
	border-top: 1px solid rgba(0, 0, 0, .06);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.csc-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	color: var(--csc-text, #2a1d14);
}
.csc-checkout {
	display: block;
	text-align: center;
	background: var(--csc-accent, #f0a23b);
	color: #fff;
	text-decoration: none;
	padding: 14px;
	border-radius: 16px;
	font-weight: 700;
	font-size: 16px;
}
.csc-payicons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	opacity: .8;
	font-size: 12px;
}
.csc-payicon {
	border: 1px dashed var(--csc-muted, #dbcfc3);
	border-radius: 10px;
	padding: 4px 8px;
}

/* Eventuele FAB, alleen als je hem nog gebruikt */
.csc-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--csc-accent, #f0a23b);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
	z-index: 99999;
}

/* Small screens tweaks */
@media (max-width: 480px) {
	.csc-sidecart {
		right: -100%;
		width: 100%;
	}
}
