/* Winkelwagen 2027 — zie docs/superpowers/specs/2026-09-23-cart-2027-design.md */
.cart27 {
	--c27-green: #008000;
	--c27-green-dark: #3A6B4E;
	--c27-green-bg: #F1FAF5;
	--c27-red: #e20f1b;
	--c27-line: #dcdcdc;
	--c27-grey-bg: #F8F8F8;
	--c27-muted: #8a8a8a;
	--c27-radius: 7px;
	padding-bottom: 40px;
}
.cart27 [hidden] { display: none !important; }

/* Kop */
.cart27-head { margin: 10px 0 20px; }
.cart27-head h1 { font-size: 1.8rem; font-weight: 700; margin: 0 0 8px; }
.cart27-count { font-size: 1.1rem; font-weight: 600; color: var(--c27-muted); margin-left: 12px; }
.cart27-back { color: inherit; font-weight: 600; text-decoration: underline; }
.cart27-back i { margin-right: 8px; }

/* Bespaarbalk */
.cart27-savebar { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--c27-green-bg); border-radius: var(--c27-radius); padding: 12px 20px; margin-bottom: 14px; font-size: .85rem; }
.cart27-savebar-main i { color: var(--c27-green); margin-right: 8px; }
.cart27-savebar-main strong { color: var(--c27-green-dark); margin-right: 6px; }
.cart27-savebar .js-standard-part:not([hidden]) + .js-bulk-part::before { content: " + "; }
.cart27-savebar-note { color: var(--c27-green-dark); white-space: nowrap; }
.cart27-savebar-main span {
	color: var(--c27-green);
}

/* Voortgang stapelkorting */
.cart27-progress { display: flex; align-items: center; gap: 18px; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); padding: 12px 20px; margin-bottom: 20px; font-size: .8rem; }
.cart27-progress-text i { color: var(--c27-red); margin-right: 8px; }
.cart27-progress-bar { flex: 0 1 290px; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.cart27-progress-bar span { display: block; height: 100%; background: var(--c27-red); border-radius: 3px; }
.cart27-progress-steps { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; color: var(--c27-muted); font-size: .7rem; }
.cart27-progress-steps .is-reached { color: var(--c27-green); font-weight: 700; }

/* Grid */
.cart27-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "main side" "related side"; column-gap: 50px; align-items: start; }
.cart27-main { grid-area: main; }
.cart27-side { grid-area: side; position: sticky; top: 20px; }
.cart27-related { grid-area: related; margin-top: 40px; }
.cart27-related h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }

/* Productkaart */
.cart27-item { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto auto; grid-template-areas: "img body actions actions" "img body qty price"; column-gap: 20px; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); padding: 16px; margin-bottom: 26px; }
.cart27-item-image { grid-area: img; position: relative; display: block; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); padding: 0; align-self: start; }
.cart27-item-image img { width: 100%; height: auto; display: block; }
.cart27-item-label { position: absolute; top: 4px; left: 4px; background: var(--c27-red); color: #fff; font-size: .65rem; font-weight: 600; padding: 2px 6px; border-radius: 2px; }
.cart27-item-body { grid-area: body; min-width: 0; }
.cart27-item-brand { font-size: .85rem; color: #555; letter-spacing: .03em; margin-bottom: 4px; }
.cart27-item-title { display: block; font-weight: 700; color: inherit; line-height: 1.3; margin-bottom: 10px; }
.cart27-item-variant, .cart27-item-meta { font-size: .75rem; color: #555; margin-bottom: 6px; }
.cart27-item-meta span { display: block; }
.cart27-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cart27-chips span { background: var(--c27-grey-bg); border-radius: var(--c27-radius); padding: 3px 12px; font-size: .75rem; color: #555; letter-spacing: .03em; }
.cart27-item-stock { font-size: .72rem; color: var(--c27-green-dark); }
.cart27-item-stock i { margin-right: 4px; }
.cart27-item-actions { grid-area: actions; display: flex; justify-content: flex-end; gap: 14px; font-size: .72rem; }
.cart27-item-actions a { color: #555; display: flex; height: 22px; padding: 5px; gap: 5px; align-items: center; }
.cart27-item-actions a:hover, .cart27-wishlist.is-saved { color: var(--c27-red); }
.cart27-item-qty { grid-area: qty; align-self: center; }
.cart27-qty { display: flex; align-items: center; border: 1px solid #999; border-radius: var(--c27-radius); height: 40px; overflow: hidden; width: 80px; justify-content: space-between;}
.cart27-qty button { width: 26px; height: 100%; border: 0; background: none; font-size: 1.1rem; cursor: pointer; }
.cart27-qty input { width: 28px; border: 0; text-align: center; font-weight: 600; padding: 0; background: none; }
.cart27-qty button.qtyminus {
	width: 26px;
	height: 100%;
	border: 0;
	background: none;
	font-size: 1.1rem;
	cursor: pointer;
	position: relative;
	line-height: unset;
	right: unset;
	bottom: unset;
	border-radius: unset;
	color: black;
	padding: 0;
}
.qty button.qtyadd {
	width: 26px;
	height: 100%;
	border: 0;
	background: none;
	font-size: 1.1rem;
	cursor: pointer;
	position: relative;
	line-height: unset;
	right: unset;
	bottom: unset;
	border-radius: unset;
	color: black;
	padding: 0;
}
.cart27-item-price { grid-area: price; align-self: center; display: flex; flex-direction: column; align-items: flex-end; min-width: 110px; }
.cart27-price-old { color: var(--c27-muted); text-decoration: line-through; font-size: .8rem; }
.cart27-price-new { color: var(--c27-green); font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.cart27-price-vat { font-size: .55rem; color: #555; }
.cart27-item-saving { margin-top: 6px; background: var(--c27-green-bg); color: var(--c27-green-dark); font-size: .62rem; padding: 2px 6px; border-radius: 2px; }

/* Overzicht */
.cart27-summary { background: var(--c27-grey-bg); border: 1px solid var(--c27-line); padding: 24px; border-radius: var(--c27-radius); }
.cart27-summary h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 16px; }
.cart27-rows { margin: 0; font-size: .85rem; }
.cart27-rows > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cart27-rows dt { font-weight: 400; }
.cart27-rows dt small { display: block; font-size: .7rem; }
.cart27-rows dd { margin: 0; text-align: right; }
.cart27-muted { font-size: .75rem; }
.cart27-rows-discount { border-top: 1px solid var(--c27-line); padding-top: 14px; margin-top: 14px; color: var(--c27-green); }
.cart27-rows-discount:not(:has(> div:not([hidden]))) { display: none; }
.cart27-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; }
.cart27-total span { font-size: 1.3rem; font-weight: 700; }
.cart27-total small { font-size: .7rem; font-weight: 400; margin-left: 6px; }
.cart27-total strong { color: var(--c27-green); font-size: 1.1rem; }
.cart27-total-saving { background: var(--c27-green-bg); color: var(--c27-green); padding: 12px 20px; margin-bottom: 16px; font-size: .85rem; }
.cart27-total-saving i { margin-right: 16px; }
.cart27-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--c27-green); color: #fff; font-weight: 700; border: 0; border-radius: var(--c27-radius); padding: 12px 20px; cursor: pointer; }
.cart27-btn:hover { background: var(--c27-green-dark); color: #fff; }
.cart27-checkout { width: 100%; min-height: 54px; font-size: 1.05rem; }
.cart27-secure { text-align: center; font-size: .75rem; margin: 12px 0 8px; }
.cart27-payments { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }

/* Kortingscode */
.cart27-coupon { border: 1px solid var(--c27-line); border-radius: var(--c27-radius); margin-top: 14px; }
.cart27-coupon-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 18px 20px; border-radius: var(--c27-radius); font-size: .85rem; cursor: pointer; color: var(--c27-muted); }
.cart27-coupon-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
#cart27-coupon-form { display: flex; gap: 8px; padding: 0 20px 18px; }
#cart27-coupon-form input { flex: 1; min-width: 0; border: 1px solid var(--c27-line); border-radius: var(--c27-radius); padding: 0 10px; }

/* Service */
.cart27-service { border: 1px solid var(--c27-line); border-radius: 14px; padding: 20px; margin-top: 30px; font-size: .75rem; }
.cart27-service h3 { font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.cart27-service ul { list-style: none; margin: 0 0 16px; padding: 0; }
.cart27-service li { display: flex; gap: 8px; margin-bottom: 10px; }
.cart27-service li i { color: var(--c27-green); margin-top: 2px; }
.cart27-stars { color: #f7b500; margin: 0 8px; }
.cart27-rating a { color: inherit; text-decoration: underline; }

/* Lege cart */
.cart27-empty { text-align: center; padding: 60px 0; }

/* Mobiele afrekenbalk: standaard uit */
.cart27-mobilebar { display: none; }

/* Tablet: kolommen onder elkaar */
@media (max-width: 991px) {
	.cart27-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "related"; }
	.cart27-side { position: static; }
	.cart27-savebar-note { display: none; }
}

/* Mobiel */
@media (max-width: 767px) {
	.cart27 { padding-bottom: 90px; }
	.cart27-head h1 { font-size: 1.4rem; }
	.cart27-count { font-size: .9rem; margin-left: 6px; }

	.cart27-savebar { display: block; padding: 10px 14px; }
	.cart27-savebar-main strong { display: block; margin-bottom: 2px; }

	.cart27-progress { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
	.cart27-progress-text { flex: 1 1 100%; }
	.cart27-progress-bar { flex: 1 1 100%; }
	.cart27-progress-steps { flex: 1 1 100%; justify-content: space-between; }

	.cart27-item { grid-template-columns: 80px auto minmax(0, 1fr); grid-template-areas: "img body body" "qty qty price"; column-gap: 12px; row-gap: 12px; padding: 12px; margin-bottom: 14px; position: relative; }
	.cart27-item-body { padding-right: 52px; }
	.cart27-item-title { font-size: .9rem; }
	.cart27-item-actions { position: absolute; top: 10px; right: 10px; gap: 12px; font-size: 1rem; }
	.cart27-item-actions span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cart27-item-qty { border-top: 1px solid var(--c27-line); padding-top: 12px; }
	.cart27-item-price { border-top: 1px solid var(--c27-line); padding-top: 12px; }
	.cart27-qty button { width: 40px; }
	.cart27-qty input { font-size: 16px; }

	.cart27-summary { padding: 18px; }
	.cart27-service { margin-top: 14px; }

	.cart27-related .row { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -15px; padding: 0 15px; }
	.cart27-related .row > * { flex: 0 0 46%; max-width: 46%; scroll-snap-align: start; }

	.cart27-mobilebar { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, .12); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transition: transform .2s ease; }
	.cart27-mobilebar small { display: block; font-size: .7rem; color: var(--c27-muted); }
	.cart27-mobilebar strong { font-size: 1.1rem; color: var(--c27-green); }
	.cart27-mobilebar.is-hidden { transform: translateY(110%); }
}
