/**
 * Cart page — visual alignment with Minimog (Storefront-compatible markup).
 * Reference: minimog/assets/scss/.../wc/frontend/_cart.scss
 */
body.woocommerce-cart {
	--brand-shell-border-soft: #e6e6e6;
	--brand-shell-border-row: #eee;
	--brand-shell-heading: #111;
	--brand-shell-text-muted: #444;
	--brand-shell-qty-size: 40px;
	--brand-shell-qty-border: #dedede;
}

body.woocommerce-cart .woocommerce {
	max-width: 1210px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

body.woocommerce-cart .entry-title,
body.woocommerce-cart .page-title {
	text-align: center;
	font-size: clamp(34px, 4.5vw, 42px);
	font-weight: 600;
	line-height: 1.3;
	margin: 18px 0 34px;
	color: var(--brand-shell-heading);
}

/* Main cart area: white panel + border (Minimog block-style cart form) */
body.woocommerce-cart form.woocommerce-cart-form {
	float: left;
	width: calc(100% - 390px);
	margin: 0;
	padding: 40px 40px 50px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--brand-shell-border-soft);
	border-radius: 8px;
}

body.woocommerce-cart .cart-collaterals {
	float: right;
	width: 360px;
	margin: 50px 0 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	max-width: 400px;
	margin: 0 0 0 auto;
	padding: 20px 30px 30px;
	border: 0;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.woocommerce-cart .cart-collaterals .cart_totals > h2 {
	font-size: 0;
	margin: 0;
}

body.woocommerce-cart table.shop_table {
	border: 0;
	background: transparent;
	margin: 0;
}

body.woocommerce-cart table.shop_table thead th {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--brand-shell-heading);
	padding: 0 15px 12px;
	border: 0;
	text-transform: uppercase;
}

body.woocommerce-cart table.shop_table thead th:first-child {
	padding-left: 0;
}

body.woocommerce-cart table.shop_table thead th:last-child {
	padding-right: 0;
	text-align: end;
}

body.woocommerce-cart table.shop_table tbody td {
	border-top: 1px solid var(--brand-shell-border-row);
	padding: 24px 15px;
	vertical-align: middle;
	font-size: 16px;
	line-height: 1.45;
}

body.woocommerce-cart table.shop_table tbody td:first-child {
	padding-left: 0;
}

body.woocommerce-cart table.shop_table tbody td:last-child {
	padding-right: 0;
	text-align: end;
}

body.woocommerce-cart table.shop_table tbody tr:first-child td {
	border-top: 1px solid var(--brand-shell-border-row);
}

body.woocommerce-cart table.shop_table .product-thumbnail {
	width: 110px;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
	width: 60px;
	height: auto;
}

body.woocommerce-cart table.shop_table .product-name a {
	color: var(--brand-shell-heading);
	text-decoration: none;
	font-weight: 500;
}

body.woocommerce-cart table.shop_table .product-name a:hover {
	text-decoration: underline;
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
	white-space: nowrap;
	text-align: end;
}

body.woocommerce-cart table.shop_table .product-subtotal .amount {
	font-weight: 500;
	color: var(--brand-shell-heading);
}

/* Minimog quantity: ~40px controls, ~120px group width */
body.woocommerce-cart table.shop_table .product-quantity .quantity {
	--size: var(--brand-shell-qty-size);
	display: inline-flex;
	align-items: center;
	width: 120px;
	max-width: 100%;
	border: 1px solid var(--brand-shell-qty-border);
	border-radius: 2px;
	overflow: hidden;
}

body.woocommerce-cart table.shop_table .product-quantity .quantity input.qty,
body.woocommerce-cart table.shop_table .product-quantity .quantity .plus,
body.woocommerce-cart table.shop_table .product-quantity .quantity .minus {
	height: var(--brand-shell-qty-size);
	min-height: var(--brand-shell-qty-size);
	border: 0;
	background: transparent;
	box-shadow: none;
}

body.woocommerce-cart .actions {
	padding-top: 14px !important;
}

body.woocommerce-cart .actions .coupon,
body.woocommerce-cart .actions button[name='update_cart'] {
	display: none !important;
}

body.woocommerce-cart .cart_totals table.shop_table {
	margin: 0;
	border: 0;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
	padding: 12px 0;
	border-top: 1px solid var(--brand-shell-border-row);
	font-size: 14px;
}

body.woocommerce-cart .cart_totals table.shop_table tr:first-child th,
body.woocommerce-cart .cart_totals table.shop_table tr:first-child td {
	border-top: 0;
}

body.woocommerce-cart .cart_totals table.shop_table th {
	font-weight: 400;
	color: var(--brand-shell-text-muted);
}

body.woocommerce-cart .cart_totals table.shop_table td {
	text-align: right;
	font-weight: 500;
	color: var(--brand-shell-heading);
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	padding-top: 16px;
	padding-bottom: 16px;
}

body.woocommerce-cart .wc-proceed-to-checkout {
	margin: 10px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--brand-shell-border-row);
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	margin: 0 !important;
	width: 100%;
	height: 52px;
	line-height: 52px;
	padding: 0 14px;
	border-radius: 2px;
	border: 1px solid var(--brand-shell-heading);
	background: var(--brand-shell-heading);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

@media (max-width: 991px) {
	body.woocommerce-cart form.woocommerce-cart-form,
	body.woocommerce-cart .cart-collaterals {
		float: none;
		width: 100%;
	}

	body.woocommerce-cart form.woocommerce-cart-form {
		padding: 28px 20px 40px;
	}

	body.woocommerce-cart .cart-collaterals {
		margin-top: 24px;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals {
		margin-left: 0;
		max-width: none;
	}
}
