/**
 * Winkelwagen + Afrekenen — overrides t.o.v. shop.css. Laadt NA shop.css.
 *
 * WINKELWAGEN: opzet overgenomen van het Brock-project (2-koloms: producten links,
 * totalen-box rechts; item-rijen als grid met grote foto + aantal-stepper +
 * regelprijs + verwijder-×; trust-vinkjes + betaaliconen; geen coupon/update-knop;
 * verzending pas op de checkout). Gestyled in de Textielhuis-huisstijl: goud +
 * afgeronde pill-knoppen, Poppins-koppen, Libre Franklin-tekst.
 * AFREKENEN: ongewijzigd (2-koloms grid, vlakke velden, goud place-order).
 */

/* ---- Gedeelde tokens (lokaal) ---- */
.woocommerce-cart, .woocommerce-checkout { --th-line: #d9d9d9; }

/* ============================================================
   WINKELWAGEN
   ============================================================ */

/* Bredere, gecentreerde container (design ~1201px) i.p.v. de smalle content-breedte. */
.woocommerce-cart .sellabees-content { max-width: 1249px; padding-block: 30px 30px; }
.woocommerce-cart .sellabees-entry__title { margin: 0 0 26px; }

/* 2-koloms grid: producten links, totalen rechts (verhoudingen → schaalt mee). */
.woocommerce-cart .woocommerce {
	display: grid;
	grid-template-columns: 61.9% 27.9%;
	column-gap: 10.2%;
	row-gap: 20px;
	align-items: start;
}
.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; margin: 0; }
.woocommerce-cart .woocommerce-cart-form { min-width: 0; margin: 0; }
.woocommerce-cart .cart-collaterals { margin: 0; max-width: 100%; width: 100%; float: none; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }
.woocommerce-cart .cross-sells { display: none; } /* Brock toont geen cross-sells op de cart */

/* Producttabel → schone rijen (geen tabel-look, geen kop, geen rand). */
.woocommerce-cart table.woocommerce-cart-form__contents,
.woocommerce-cart table.shop_table {
	width: 100%; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	border-collapse: collapse; margin: 0; background: transparent;
}
.woocommerce-cart .woocommerce-cart-form__contents thead { display: none; }
.woocommerce-cart .woocommerce-cart-form__contents td.product-price { display: none; } /* alleen regeltotaal tonen */

/* Item-rij = grid: foto (links, 2 rijen hoog) · naam/aantal (midden) · ×/regelprijs (rechts). */
.woocommerce-cart .woocommerce-cart-form__cart-item {
	display: grid;
	grid-template-columns: 131px minmax(0, 1fr) auto;
	grid-template-areas:
		"thumb name remove"
		"thumb qty  price";
	column-gap: 22px;
	row-gap: 12px;
	align-content: center;
	padding: 26px 0;
	border-bottom: 1px solid #ececec;
}
.woocommerce-cart .woocommerce-cart-form__cart-item td { border: 0 !important; padding: 0; background: transparent; }
.woocommerce-cart .woocommerce-cart-form__cart-item .product-thumbnail { grid-area: thumb; align-self: center; }
.woocommerce-cart .woocommerce-cart-form__cart-item .product-name     { grid-area: name; align-self: center; }
.woocommerce-cart .woocommerce-cart-form__cart-item .product-quantity  { grid-area: qty; align-self: center; justify-self: start; }
.woocommerce-cart .woocommerce-cart-form__cart-item .product-remove    { grid-area: remove; align-self: start; justify-self: end; }
.woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal  { grid-area: price; align-self: center; justify-self: end; }

.woocommerce-cart .product-thumbnail { width: 131px; }
.woocommerce-cart .product-thumbnail img { width: 131px !important; height: 131px !important; object-fit: cover; border-radius: 0; display: block; margin: 0; }
.woocommerce-cart .product-name a { color: #000; font-family: var(--th-font-body); font-size: 16px; line-height: 1.35; text-decoration: none; }
.woocommerce-cart .product-name a:hover { color: var(--th-gold); }
.woocommerce-cart .product-subtotal,
.woocommerce-cart .product-subtotal .woocommerce-Price-amount { color: #000; font-family: var(--th-font-body); font-size: 16px; font-weight: 700; white-space: nowrap; }

/* Verwijder-× (rood = duidelijke delete-actie). */
.woocommerce-cart .product-remove .remove {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; font-size: 20px; line-height: 1; font-weight: 400;
	color: #c0202a !important; background: none !important; border-radius: 0; text-decoration: none;
}
.woocommerce-cart .product-remove .remove:hover { color: #8f171e !important; background: none !important; }

/* Aantal-stepper (horizontaal −/+), gebouwd door single-product.js → .th-cart-qty. */
.woocommerce-cart .product-quantity .quantity { margin: 0; }
.woocommerce-cart .quantity.th-cart-qty {
	display: inline-flex; align-items: stretch; height: 40px; width: 108px;
	border: 1px solid var(--th-line); border-radius: 2px; overflow: hidden; background: #fff;
	transition: border-color .15s ease;
}
.woocommerce-cart .th-cart-qty__btn {
	flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0; margin: 0; border: 0; background: #fff; color: #000; cursor: pointer;
	font-size: 18px; line-height: 1; user-select: none; transition: background-color .12s ease;
}
.woocommerce-cart .th-cart-qty__btn:hover { background: #f3f3f3; }
.woocommerce-cart .th-cart-qty__minus { border-right: 1px solid var(--th-line); }
.woocommerce-cart .th-cart-qty__plus  { border-left: 1px solid var(--th-line); }
.woocommerce-cart .quantity.th-cart-qty input.qty {
	flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; box-sizing: border-box;
	border: 0 !important; border-radius: 0 !important; outline: 0; margin: 0; padding: 0;
	text-align: center; background: transparent;
	font-family: var(--th-font-body); font-size: 15px; color: #000;
	-moz-appearance: textfield; appearance: textfield;
}
/* Loading spinner inside the quantity box: centred.
   The core prints this one as inline CSS (sellabees-shops-core/inc/cart-ajax-qty.php)
   with width/height 18px, a 2px border and margin -9px. Those numbers only add up with
   a global border-box reset, which this theme deliberately does not have: the circle
   renders 22x22 while it is pulled back by just 9px, so it sat 2px right of and 2px
   below the centre. box-sizing keeps it at 18x18 and -9px lands it exactly in the
   middle. The extra .th-cart-qty in the selector beats the core rule regardless of
   which stylesheet loads last. */
.woocommerce-cart .quantity.th-cart-qty.is-loading::after,
.woocommerce-cart .quantity.is-loading::after,
.woocommerce-cart .sellabees-qty.is-loading::after { box-sizing: border-box; }

/* Nette focus op het hele vakje (i.p.v. de ronde focus-ring die shop.css' pill-input gaf). */
.woocommerce-cart .quantity.th-cart-qty:focus-within { border-color: var(--th-primary); }
.woocommerce-cart .quantity.th-cart-qty input.qty::-webkit-outer-spin-button,
.woocommerce-cart .quantity.th-cart-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Coupon verbergen; update-knop visueel verbergen (blijft in DOM: AJAX werkt via core). */
.woocommerce-cart td.actions { padding: 18px 0 0 !important; }
.woocommerce-cart td.actions .coupon { display: none; }
.woocommerce-cart td.actions button[name="update_cart"] {
	position: absolute; left: 0; width: 1px !important; min-width: 0 !important; height: 1px !important;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Totalen-box (rechts) ---- */
.woocommerce-cart .cart_totals > h2 { display: none; }
.woocommerce-cart .cart_totals table.shop_table { border: 0; }
.woocommerce-cart .cart_totals .cart-subtotal,
.woocommerce-cart .cart_totals .shipping,
.woocommerce-cart .cart_totals .woocommerce-shipping-totals,
.woocommerce-cart .cart_totals .fee { display: none; } /* verzending pas op de checkout */
/* Eén nette scheidingslijn bovenaan de rij (op de flex-tr, niet op de losse cellen —
   anders krijg je twee segmenten op verschillende hoogtes). Label + bedrag op één lijn. */
.woocommerce-cart .cart_totals .order-total {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	border: 0 !important; border-top: 1px solid #ececec !important;
	margin: 10px 0 0; padding: 16px 0 0;
}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td { border: 0 !important; padding: 0; background: none; }
.woocommerce-cart .cart_totals .order-total th {
	font-family: var(--th-font-heading); font-weight: 600; font-size: 16px; line-height: 1.3; color: #000; white-space: nowrap;
}
.woocommerce-cart .cart_totals .order-total td { text-align: right; }
.woocommerce-cart .cart_totals .order-total td strong,
.woocommerce-cart .cart_totals .order-total td > .woocommerce-Price-amount { font-family: var(--th-font-body); font-weight: 700; font-size: 18px; line-height: 1.3; color: #000; }
/* "(inclusief … btw)" op een eigen regel onder het bedrag; niet groot/vet. */
.woocommerce-cart .cart_totals .order-total small.includes_tax { display: block; white-space: nowrap; font-weight: 400; font-size: 13px; color: #666; }
.woocommerce-cart .cart_totals .order-total small.includes_tax .woocommerce-Price-amount { font-weight: 400; font-size: 13px; color: #666; }

/* Trust-vinkjes (boven het totaal op desktop; op mobiel bovenaan de items). */
.woocommerce-cart .th-cart-trust { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.woocommerce-cart .th-cart-trust--mobile { display: none; }
.woocommerce-cart .th-cart-trust li {
	display: flex; align-items: center; gap: 8px;
	font-family: var(--th-font-body); font-size: 14px; font-weight: 600; color: #000;
}
.woocommerce-cart .th-cart-trust__check { color: #12b347; flex: 0 0 auto; }

/* Checkout-knop (goud, afgeronde pill, volle breedte). */
.woocommerce-cart .wc-proceed-to-checkout { margin: 28px 0 0; padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button {
	display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box;
	min-height: 50px; padding: 12px 24px; border: 0; border-radius: 100px;
	background: var(--th-primary) !important; background-image: none; color: #fff !important;
	font-family: var(--th-font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
	text-align: center; text-decoration: none; text-transform: none;
	transition: background-color .15s ease;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button:hover { background: var(--th-primary-deep) !important; color: #fff !important; transform: none; box-shadow: none; }

/* Betaaliconen-strip onder de knop. */
.woocommerce-cart .th-cart-payments { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.woocommerce-cart .th-cart-payments li { display: inline-flex; }
.woocommerce-cart .th-cart-payments img { height: 24px; width: auto; display: block; border-radius: 0 !important; }

/* ---- Lege winkelwagen (cart-empty.php) ---- */
.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart .wc-empty-cart-message { display: none; }
/* Bij een lege cart: géén 2-koloms grid (anders staat de melding scheef in de
   linkerkolom) en géén "Winkelwagen"-paginatitel erboven — de melding vult en
   centreert dan de volle breedte. */
.woocommerce-cart .woocommerce:has(.th-cart-empty) { display: block; }
.woocommerce-cart .sellabees-content:has(.th-cart-empty) .sellabees-entry__title { display: none; }
.woocommerce-cart .th-cart-empty { text-align: center; padding: 60px 0 72px; font-family: var(--th-font-body); }
.woocommerce-cart .th-cart-empty__title { margin: 0 0 12px; font-family: var(--th-font-heading); font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; color: var(--th-dark); }
.woocommerce-cart .th-cart-empty__text { margin: 0 0 26px; font-size: 15px; color: #444; }
.woocommerce-cart a.th-cart-empty__button.button {
	display: inline-flex; align-items: center; justify-content: center; min-width: 220px;
	height: 46px; padding: 0 34px; border: 0; border-radius: 100px; line-height: 1.2;
	background: var(--th-primary) !important; color: #fff !important;
	font-family: var(--th-font-body); font-weight: 700; font-size: 16px; text-decoration: none;
	transition: background-color .15s ease;
}
.woocommerce-cart a.th-cart-empty__button.button:hover { background: var(--th-primary-deep) !important; color: #fff !important; transform: none; box-shadow: none; }

/* ============================================================
   AFREKENEN -> volledig verhuisd naar pages/woo-checkout.css (Brock-achtige
   2-koloms afrekenpagina in TH-huisstijl: floating labels, login-balk,
   verzendopties, besteloverzicht-kaart, mobiele accordeon). Deze file dekt
   nog wel de gedeelde token (--th-line, boven) + de winkelmand.
   ============================================================ */
/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Cart: één kolom vanaf 980px (totalen onder de items). */
@media (max-width: 980px) {
	.woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-cart .th-cart-trust--desktop { display: none; }
	.woocommerce-cart .th-cart-trust--mobile { display: flex; }
	.woocommerce-cart .cart-collaterals { max-width: none; }
	/* Geen extra rand + minder ruimte boven Totaalbedrag op mobiel (de trust-vinkjes
	   staan hier al bovenaan de items, dus de desktop-scheidingslijn is overbodig). */
	.woocommerce-cart .woocommerce { row-gap: 8px; }
	.woocommerce-cart td.actions { padding: 6px 0 0 !important; }
	.woocommerce-cart .cart_totals .order-total { border-top: 0 !important; margin: 0; padding: 10px 0 0; }
}

@media (max-width: 768px) {
	/* Winkelwagen: WooCommerce' smallscreen-CSS wil de items stapelen met "Label:"-
	   prefixes; we forceren onze grid-rij (kleinere foto) terug. */
		.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item {
		display: grid;
		grid-template-columns: 92px minmax(0, 1fr) auto;
		grid-template-areas: "thumb name remove" "thumb qty price";
		column-gap: 16px; row-gap: 8px; padding: 20px 0; align-content: center;
	}
	.woocommerce-cart .product-thumbnail,
	.woocommerce-cart .product-thumbnail img { width: 92px !important; }
	.woocommerce-cart .product-thumbnail img { height: 92px !important; }
	/* WooCommerce' smallscreen-CSS verbergt .product-thumbnail (<=768) -> terugzetten. */
	.woocommerce-cart table.cart .product-thumbnail { display: block !important; }
	.woocommerce-cart .woocommerce-cart-form__cart-item td::before { content: none !important; } /* geen "Label:"-prefix */
		.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item td { text-align: left !important; }
	.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item td.product-subtotal { text-align: right !important; }
	.woocommerce-cart table.cart td { background: transparent !important; } /* geen even-rij-striping */
	.woocommerce-cart .woocommerce-cart-form__contents td.product-price { display: none !important; }

	/* Totalen-box: WooCommerce-smallscreen zet hier "Label:"-prefixes + striping neer;
	   we forceren onze schone "Totaalbedrag"-regel terug (label komt uit het gettext-filter). */
	.woocommerce-cart .cart_totals table, .woocommerce-cart .cart_totals tbody { display: block; }
	.woocommerce-cart .cart_totals .order-total { display: flex !important; align-items: baseline; justify-content: space-between; gap: 12px; background: none !important; }
	.woocommerce-cart .cart_totals .order-total th, .woocommerce-cart .cart_totals .order-total td { display: block; background: none !important; }
	.woocommerce-cart .cart_totals .order-total td { text-align: right; }
	.woocommerce-cart .cart_totals .order-total th::before, .woocommerce-cart .cart_totals .order-total td::before { content: none !important; }
}

/* Onder 430px: foto BOVEN de naam + aantal-selector (anders wordt de tekst platgedrukt). */
@media (max-width: 430px) {
	.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"thumb  remove"
			"name   name"
			"qty    price";
		row-gap: 12px; align-content: start;
	}
	.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item .product-thumbnail { align-self: start; }
}

/* Discounted line (promotion such as Stapelkorting, or a sale price): the regular line
   total struck through, small and grey, above the price paid. Markup from
   inc/cart-promotion-display.php (wc_format_sale_price). */
.woocommerce-cart .product-subtotal { text-align: right; }
.woocommerce-cart .product-subtotal del { display: block; text-decoration: line-through; color: #767676; }
.woocommerce-cart .product-subtotal del .woocommerce-Price-amount { color: #767676; font-size: 13px; font-weight: 400; }
.woocommerce-cart .product-subtotal ins { text-decoration: none; background: none; }
