/*
 * Eigen side cart voor Bakker IJlst (charliens-theme).
 * Bakker-blauw #014b9a. Zwevende knop, slide-in paneel, overlay.
 */

.bakker-sc,
.bakker-sc *,
.bakker-sc-toggle,
.bakker-sc-toggle * {
	box-sizing: border-box;
}

:root {
	--bsc-main: #014b9a;
	--bsc-tri: #1b3699;
	--bsc-border: #e3e6ee;
	--bsc-muted: #8a8f9c;
	--bsc-bg: #f7fbff;
}

/* ---------------------------------------------------------------------
 * Zwevende winkelwagen-knop
 * ------------------------------------------------------------------- */
.bakker-sc-toggle {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 2147483646;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--bsc-main), var(--bsc-tri));
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(1, 75, 154, 0.34);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bakker-sc-toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(1, 75, 154, 0.42);
}

.bakker-sc-toggle:active {
	transform: translateY(0);
}

.bakker-sc-toggle__icon svg {
	width: 26px;
	height: 26px;
}

.bakker-sc-toggle__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	border-radius: 12px;
	background: #e2231a;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 23px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bakker-sc-toggle__count.is-empty {
	display: none;
}

.bakker-sc-toggle__count.is-bump {
	animation: bakker-sc-bump 0.4s ease;
}

@keyframes bakker-sc-bump {
	0% { transform: scale(1); }
	35% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

/* ---------------------------------------------------------------------
 * Overlay
 * ------------------------------------------------------------------- */
.bakker-sc-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	background: rgba(15, 23, 42, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bakker-sc-overlay.is-visible {
	opacity: 1;
}

body.bakker-sc-lock {
	overflow: hidden;
}

/* ---------------------------------------------------------------------
 * Paneel
 * ------------------------------------------------------------------- */
.bakker-sc {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 2147483647;
	width: 420px;
	max-width: 100vw;
	height: 100%;
	background: #fff;
	box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: inherit;
	color: #22252b;
}

.bakker-sc.is-open {
	transform: translateX(0);
}

.bakker-sc__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.bakker-sc.is-busy .bakker-sc__body {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Kop */
.bakker-sc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 22px;
	border-bottom: 1px solid var(--bsc-border);
	background: var(--bsc-bg);
}

.bakker-sc__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	color: var(--bsc-main);
}

.bakker-sc__title-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.bakker-sc__title-count {
	font-size: 15px;
	font-weight: 600;
	color: var(--bsc-muted);
}

.bakker-sc__close {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #40454f;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.bakker-sc__close:hover {
	background: #eef1f6;
	color: var(--bsc-main);
}

.bakker-sc__close svg {
	width: 20px;
	height: 20px;
}

/* Body (scrollt) */
.bakker-sc__body {
	flex: 1 1 auto;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

/* ---------------------------------------------------------------------
 * Productlijst
 * ------------------------------------------------------------------- */
.bakker-sc-list {
	list-style: none;
	margin: 0;
	padding: 8px 22px;
	flex: 1 1 auto;
}

.bakker-sc-item {
	display: flex;
	gap: 14px;
	padding: 18px 0;
	border-bottom: 1px solid var(--bsc-border);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.bakker-sc-item.is-removing {
	opacity: 0;
	transform: translateX(30px);
}

.bakker-sc-item:last-child {
	border-bottom: 0;
}

.bakker-sc-item__img {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--bsc-border);
	background: #fff;
}

.bakker-sc-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.bakker-sc-item__img:hover img {
	transform: scale(1.08);
}

.bakker-sc-item__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bakker-sc-item__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.bakker-sc-item__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: #1c1f26;
}

.bakker-sc-item__name a {
	color: inherit;
	text-decoration: none;
}

.bakker-sc-item__name a:hover {
	color: var(--bsc-main);
}

.bakker-sc-item__remove {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--bsc-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.bakker-sc-item__remove:hover {
	background: #fdecea;
	color: #e2231a;
}

.bakker-sc-item__remove svg {
	width: 15px;
	height: 15px;
}

.bakker-sc-item__price {
	font-size: 13px;
	color: var(--bsc-muted);
}

.bakker-sc-item__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 2px;
}

.bakker-sc-item__total {
	font-size: 15px;
	font-weight: 700;
	color: #1c1f26;
	white-space: nowrap;
}

/* Aantal-stepper */
.bakker-sc-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--bsc-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.bakker-sc-qty__btn {
	width: 32px;
	height: 34px;
	border: 0;
	background: #f4f7fc;
	color: var(--bsc-main);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.bakker-sc-qty__btn:hover {
	background: #e6eef8;
}

.bakker-sc-qty__btn svg {
	width: 16px;
	height: 16px;
}

.bakker-sc-qty__input {
	width: 40px;
	height: 34px;
	border: 0;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #1c1f26;
	background: #fff;
	-moz-appearance: textfield;
}

.bakker-sc-qty__input:focus {
	outline: none;
}

/* ---------------------------------------------------------------------
 * Lege staat
 * ------------------------------------------------------------------- */
.bakker-sc-empty {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 16px;
	padding: 50px 30px;
}

.bakker-sc-empty__icon {
	display: inline-flex;
	width: 66px;
	height: 66px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bsc-bg);
	color: var(--bsc-main);
}

.bakker-sc-empty__icon svg {
	width: 32px;
	height: 32px;
}

.bakker-sc-empty__text {
	margin: 0;
	font-size: 15px;
	color: var(--bsc-muted);
}

.bakker-sc-empty__btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 10px;
	background: var(--bsc-main);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.bakker-sc-empty__btn:hover {
	filter: brightness(1.08);
	color: #fff;
}

/* ---------------------------------------------------------------------
 * Voettekst met subtotaal + knoppen
 * ------------------------------------------------------------------- */
.bakker-sc-foot {
	flex: 0 0 auto;
	padding: 18px 22px 22px;
	border-top: 1px solid var(--bsc-border);
	background: var(--bsc-bg);
}

.bakker-sc-foot__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}

.bakker-sc-foot__label {
	font-size: 16px;
	font-weight: 700;
	color: #1c1f26;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bakker-sc-foot__count {
	font-size: 12px;
	font-weight: 500;
	color: var(--bsc-muted);
}

.bakker-sc-foot__value {
	font-size: 19px;
	font-weight: 700;
	color: var(--bsc-main);
	text-align: right;
}

.bakker-sc-foot__tax {
	font-size: 12px;
	font-weight: 500;
	color: var(--bsc-muted);
}

.bakker-sc-foot__actions {
	display: flex;
	gap: 10px;
}

/* Trust-regels */
.bakker-sc-trust {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--bsc-border);
}

.bakker-sc-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	flex: 1 1 0;
	font-size: 11px;
	font-weight: 600;
	color: #5a606c;
	text-align: center;
	line-height: 1.25;
}

.bakker-sc-trust__item svg {
	width: 19px;
	height: 19px;
	color: var(--bsc-main);
}

/* Betaallogo's */
.bakker-sc-paylogos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--bsc-border);
}

.bakker-sc-paylogos img {
	height: 22px;
	width: auto;
	max-width: 46px;
	object-fit: contain;
	opacity: 0.9;
}

.bakker-sc-btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 16px;
	border-radius: 11px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.bakker-sc-btn svg {
	width: 18px;
	height: 18px;
}

.bakker-sc-btn--ghost {
	flex: 0 0 auto;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--bsc-border);
	color: #40454f;
}

.bakker-sc-btn--ghost:hover {
	border-color: var(--bsc-main);
	color: var(--bsc-main);
}

.bakker-sc-btn--primary {
	background: linear-gradient(135deg, var(--bsc-main), var(--bsc-tri));
	color: #fff;
	box-shadow: 0 6px 16px rgba(1, 75, 154, 0.28);
}

.bakker-sc-btn--primary:hover {
	filter: brightness(1.08);
	color: #fff;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 480px) {
	.bakker-sc {
		width: 100vw;
	}
	.bakker-sc-toggle {
		right: 16px;
		bottom: 16px;
		width: 54px;
		height: 54px;
	}
}
