/*
 * Crista Tigma v5 — cart page (/gio-hang/) presentation layer.
 * Loads on top of pdp.css (shared tokens, blurred grassland background, glass nav,
 * off-canvas, footer). PRESENTATION ONLY: it restyles the canonical WooCommerce
 * cart ([woocommerce_cart] shortcode) — products panel, coupon row, totals panel,
 * the THANH TOÁN CTA, the free-shipping campaign line, and a mobile-first stacked
 * card layout. No cart/checkout logic, totals math, nonces or form actions change.
 */

/* Cart has no sticky purchase bar → drop the PDP-only mobile bottom padding. */
body.ct-v5-product-page.ct-v5-cart {
	padding-bottom: 0;
}

.ct-cart-shell {
	width: 100%;
	min-height: 100vh;
	padding: 96px 0 clamp(48px, 8vw, 92px);
	overflow-x: clip;
	color: var(--ct-ink);
}

/* ---- Intro block + continue-shopping button (Task 2) ---------------------- */

.ct-cart-intro {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: clamp(18px, 2.4vw, 26px);
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 28px;
	background: rgba(248, 255, 253, 0.42);
	box-shadow: var(--ct-shadow);
	backdrop-filter: blur(22px) saturate(1.3);
	-webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.ct-cart-intro-text {
	min-width: 0;
}

.ct-cart-intro .ct-section-kicker {
	margin-bottom: 8px;
}

.ct-cart-h1 {
	margin: 0;
	color: var(--ct-ink);
	font-size: clamp(30px, 4.4vw, 48px);
	font-weight: 500;
	line-height: 1.05;
}

.ct-cart-intro-line {
	max-width: 640px;
	margin: 10px 0 0;
	color: var(--ct-muted);
	font-size: 14.5px;
	line-height: 1.65;
}

/* Liquid-glass pill — matches the archive round-3 "Xem danh mục" treatment. */
a.ct-cart-continue {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	color: var(--ct-teal-deep);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	box-shadow: 0 12px 28px -14px rgba(20, 58, 64, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.62);
	backdrop-filter: blur(22px) saturate(1.4);
	-webkit-backdrop-filter: blur(22px) saturate(1.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

a.ct-cart-continue:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.3);
	box-shadow: 0 18px 36px -14px rgba(20, 58, 64, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ---- Two-column review layout on desktop, single column ≤1080px ------------ */

.ct-cart-body .woocommerce {
	display: block;
}

/* ROOT FIX: WooCommerce's own `.woocommerce .cart-collaterals .cart_totals
   { float:right; width:48% }` (a ≥768px rule) still matched inside our grid and
   collapsed the totals panel to 48% of its track (~173px), so the rows/prices and
   the THANH TOÁN button spilled out of the glass. Neutralise it — high enough
   specificity (0,3,1) to beat Woo's 0,3,0 — so the panel fills its column/row.
   Same for any inner shop_table width/float leftovers. Verified via computed style. */
body.ct-v5-cart .cart-collaterals .cart_totals {
	float: none;
	width: auto;
}

body.ct-v5-cart .cart-collaterals .cart_totals table.shop_table {
	float: none;
	width: 100%;
}

@media (min-width: 1081px) {
	.ct-cart-body .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
		gap: 24px;
		align-items: start;
	}

	.ct-cart-body .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}

	.ct-cart-body .woocommerce-cart-form {
		grid-column: 1;
		grid-row: 2;
	}

	/* display:contents lets the totals sit in the right rail while cross-sells
	   span the full width on their own row below. */
	.ct-cart-body .cart-collaterals {
		display: contents;
	}

	/* NOT sticky: position:sticky + the panel's backdrop-filter is a known
	   Chromium compositing bug — during scroll the glass/backdrop region detaches
	   from the box and the checkout button appears to spill outside the panel.
	   A normal right-rail totals is fine for this short cart. */
	.ct-cart-body .cart_totals {
		grid-column: 2;
		grid-row: 2;
	}

	.ct-cart-body .cross-sells {
		grid-column: 1 / -1;
		grid-row: 3;
	}
}

/* Mid-tier (901–1080px): two columns stop fitting comfortably, so stack to ONE
   column — full-width product table, then the totals below. The totals panel is
   capped and right-aligned so it reads as a tidy summary, not a stretched band. */
@media (min-width: 901px) and (max-width: 1080px) {
	.ct-cart-body .cart-collaterals {
		margin-top: 20px;
	}

	.ct-cart-body .cart_totals {
		max-width: 440px;
		margin-left: auto;
	}
}

/* ---- Products panel (the cart form + table) ------------------------------- */

.ct-cart-body .woocommerce-cart-form {
	padding: clamp(14px, 2vw, 24px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 24px;
	background: rgba(248, 255, 253, 0.5);
	box-shadow: 0 28px 72px -50px rgba(20, 58, 64, 0.72);
	backdrop-filter: blur(18px) saturate(1.24);
	-webkit-backdrop-filter: blur(18px) saturate(1.24);
}

.ct-cart-body table.woocommerce-cart-form__contents {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

/* Desktop: fixed layout + explicit column widths so the colspan coupon/actions
   row can't inflate the product columns and push the table under the totals
   panel. (Mobile rebuilds each row as a card, below.) */
@media (min-width: 901px) {
	.ct-cart-body table.woocommerce-cart-form__contents {
		table-layout: fixed;
	}

	.ct-cart-body .woocommerce-cart-form__contents th.product-remove,
	.ct-cart-body .woocommerce-cart-form__contents td.product-remove {
		width: 52px;
	}

	.ct-cart-body .woocommerce-cart-form__contents th.product-thumbnail,
	.ct-cart-body .woocommerce-cart-form__contents td.product-thumbnail {
		width: 98px;
	}

	.ct-cart-body .woocommerce-cart-form__contents th.product-price,
	.ct-cart-body .woocommerce-cart-form__contents td.product-price {
		width: 106px;
	}

	.ct-cart-body .woocommerce-cart-form__contents th.product-quantity,
	.ct-cart-body .woocommerce-cart-form__contents td.product-quantity {
		width: 110px;
	}

	.ct-cart-body .woocommerce-cart-form__contents th.product-subtotal,
	.ct-cart-body .woocommerce-cart-form__contents td.product-subtotal {
		width: 116px;
	}
}

.ct-cart-body table.woocommerce-cart-form__contents thead th {
	padding: 4px 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--ct-dark-line);
	color: var(--ct-teal-deep);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: left;
}

.ct-cart-body table.woocommerce-cart-form__contents thead th.product-price,
.ct-cart-body table.woocommerce-cart-form__contents thead th.product-quantity,
.ct-cart-body table.woocommerce-cart-form__contents thead th.product-subtotal {
	text-align: right;
}

.ct-cart-body .woocommerce-cart-form__cart-item td {
	padding: 18px 10px;
	border: 0;
	border-bottom: 1px solid var(--ct-dark-line);
	background: transparent;
	vertical-align: middle;
	color: var(--ct-ink);
}

.ct-cart-body .woocommerce-cart-form__cart-item td.product-price,
.ct-cart-body .woocommerce-cart-form__cart-item td.product-quantity,
.ct-cart-body .woocommerce-cart-form__cart-item td.product-subtotal {
	text-align: right;
}

.ct-cart-body td.product-thumbnail {
	width: 90px;
}

.ct-cart-body td.product-thumbnail img {
	width: 74px;
	height: 74px;
	max-width: none; /* beat pdp.css `img { max-width: 100% }` so the auto-layout column can't collapse it */
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 12px 30px -18px rgba(20, 58, 64, 0.7);
}

.ct-cart-body td.product-name {
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.4;
}

.ct-cart-body td.product-name a {
	color: var(--ct-ink);
}

.ct-cart-body td.product-name a:hover {
	color: var(--ct-teal-deep);
}

.ct-cart-body td.product-name .variation {
	margin: 6px 0 0;
	color: var(--ct-muted);
	font-size: 12px;
	line-height: 1.5;
}

.ct-cart-body td.product-name .variation dt,
.ct-cart-body td.product-name .variation dd {
	display: inline;
	margin: 0;
	font-weight: 400;
}

.ct-cart-body td.product-name .variation dd { margin-right: 8px; }

.ct-cart-body .product-price,
.ct-cart-body .product-subtotal {
	color: var(--ct-ink);
	font-weight: 600;
}

.ct-cart-body .woocommerce-Price-amount {
	white-space: nowrap;
}

/* Remove (×) — borderless liquid-glass round button. */
.ct-cart-body a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--ct-teal-deep) !important;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(47, 147, 168, 0.28);
	transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.ct-cart-body a.remove:hover {
	background: #c0392b;
	color: #fff !important;
	transform: scale(1.05);
}

/* ---- Coupon + update-cart actions row ------------------------------------- */

.ct-cart-body .woocommerce-cart-form__contents td.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 10px 4px;
	border: 0;
	background: transparent;
	overflow: visible;
}

/* Neutralise WooCommerce's clearfix ::before/::after — as flex items they force
   the coupon field / apply / update buttons onto staggered rows. */
.ct-cart-body td.actions::before,
.ct-cart-body td.actions::after,
.ct-cart-body td.actions .coupon::before,
.ct-cart-body td.actions .coupon::after {
	display: none !important;
}

.ct-cart-body td.actions .coupon {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: center;
	float: none;
}

.ct-cart-body td.actions .coupon label.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.ct-cart-body td.actions input#coupon_code,
.ct-cart-body td.actions input.input-text {
	flex: 0 0 240px;
	min-width: 0;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid rgba(47, 147, 168, 0.24);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.84);
	color: var(--ct-ink);
	font: inherit;
	font-size: 14px;
}

.ct-cart-body td.actions input#coupon_code::placeholder {
	color: var(--ct-muted);
}

/* Secondary liquid-glass buttons (Áp mã / Cập nhật giỏ hàng). */
.ct-cart-body td.actions button.button,
.ct-cart-body td.actions input.button {
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	color: var(--ct-teal-deep);
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(47, 147, 168, 0.32), 0 10px 26px -16px rgba(20, 58, 64, 0.5);
	backdrop-filter: blur(16px) saturate(1.3);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ct-cart-body td.actions .coupon button.button {
	flex: none;
}

.ct-cart-body td.actions button.button:hover,
.ct-cart-body td.actions input.button:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.68);
}

/* "Cập nhật giỏ hàng" sits to the right of the coupon on desktop (flex row). */
.ct-cart-body td.actions > button[name="update_cart"],
.ct-cart-body td.actions > input[name="update_cart"] {
	flex: none;
	margin-left: auto;
}

/* ---- Quantity — reuse the PDP treatment (no native spinner overlap) -------- */

.ct-cart-body .quantity {
	display: inline-flex;
	margin: 0;
}

.ct-cart-body .quantity .qty {
	width: 84px;
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid rgba(47, 147, 168, 0.24);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.84);
	color: var(--ct-ink);
	font: inherit;
	font-size: 14px;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.ct-cart-body .quantity .qty::-webkit-outer-spin-button,
.ct-cart-body .quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* ---- Totals panel --------------------------------------------------------- */

.ct-cart-body .cart_totals {
	padding: clamp(16px, 2vw, 24px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 24px;
	background: rgba(248, 255, 253, 0.5);
	box-shadow: 0 28px 72px -50px rgba(20, 58, 64, 0.72);
	backdrop-filter: blur(18px) saturate(1.24);
	-webkit-backdrop-filter: blur(18px) saturate(1.24);
}

.ct-cart-body .cart_totals > h2 {
	margin: 0 0 14px;
	color: var(--ct-ink);
	font-size: 20px;
	font-weight: 600;
}

.ct-cart-body .cart_totals table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

.ct-cart-body .cart_totals table th,
.ct-cart-body .cart_totals table td {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--ct-dark-line);
	background: transparent;
	color: var(--ct-ink);
	font-size: 14px;
	vertical-align: top;
	text-align: left;
}

.ct-cart-body .cart_totals table th {
	color: var(--ct-muted);
	font-weight: 600;
	white-space: nowrap;
}

.ct-cart-body .cart_totals table td {
	padding-left: 14px;
	text-align: right;
	font-weight: 600;
}

.ct-cart-body .cart_totals .order-total th,
.ct-cart-body .cart_totals .order-total td {
	border-bottom: 0;
	padding-top: 16px;
	font-size: 16px;
}

.ct-cart-body .cart_totals .order-total td .woocommerce-Price-amount {
	color: var(--ct-teal-deep);
	font-size: 22px;
	font-weight: 700;
}

.ct-cart-body .cart_totals .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: right;
}

.ct-cart-body .cart_totals .woocommerce-shipping-methods li {
	margin: 0 0 4px;
}

/* ---- Free-shipping campaign band (Task 3) --------------------------------- */

/* Free shipping reads as a BENEFIT, not a table row: a prominent teal-glass band
   above the cart. WooCommerce's own shipping calculator, destination line and the
   computed shipping totals row are hidden below (display only — totals unchanged). */
.ct-cart-freeship {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: clamp(16px, 2.2vw, 22px);
	padding: 16px clamp(18px, 2.4vw, 24px);
	border: 1px solid rgba(47, 147, 168, 0.28);
	border-radius: 20px;
	background: linear-gradient(120deg, rgba(147, 216, 181, 0.5), rgba(191, 239, 255, 0.46) 60%, rgba(248, 255, 253, 0.4));
	box-shadow: 0 22px 52px -40px rgba(20, 58, 64, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(18px) saturate(1.3);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	color: var(--ct-teal-deep);
}

.ct-cart-freeship-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.6);
	color: var(--ct-teal-deep);
	box-shadow: inset 0 0 0 1px rgba(47, 147, 168, 0.24);
}

.ct-cart-freeship-icon svg {
	width: 24px;
	height: 24px;
}

.ct-cart-freeship-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ct-cart-freeship-text strong {
	color: var(--ct-teal-deep);
	font-size: clamp(16px, 2vw, 19px);
	font-weight: 700;
	letter-spacing: 0.01em;
}

.ct-cart-freeship-text span {
	color: var(--ct-ink);
	font-size: 13px;
	line-height: 1.5;
	opacity: 0.85;
}

/* Hide WooCommerce's shipping noise on the cart (Task 3) — the benefit band above
   carries the free-shipping message. The shipping method/zone/cost are untouched
   and the checkout page still shows shipping in full. */
.ct-cart-body .woocommerce-shipping-calculator,
.ct-cart-body .woocommerce-shipping-destination,
.ct-cart-body .cart_totals tr.woocommerce-shipping-totals,
.ct-cart-body .cart_totals tr.shipping {
	display: none !important;
}

/* ---- THANH TOÁN — the strongest CTA on the page (deep-teal glass pill) ----- */

.ct-cart-body .wc-proceed-to-checkout {
	margin-top: 18px;
	padding: 0;
}

.ct-cart-body .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ct-teal-deep), var(--ct-teal));
	color: #fff;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 22px 44px -20px rgba(21, 108, 126, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ct-cart-body .wc-proceed-to-checkout a.checkout-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 30px 56px -20px rgba(21, 108, 126, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ---- Cross-sells (kept, styled as a quiet glass strip) -------------------- */

.ct-cart-body .cross-sells {
	margin-top: clamp(20px, 3vw, 32px);
	padding-top: 8px;
}

.ct-cart-body .cross-sells > h2 {
	margin: 0 0 16px;
	color: var(--ct-ink);
	font-size: 20px;
	font-weight: 600;
}

.ct-cart-body .cross-sells ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 20px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-cart-body .cross-sells ul.products li.product {
	width: auto;
	margin: 0;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 18px;
	background: rgba(248, 255, 253, 0.5);
	box-shadow: 0 24px 60px -50px rgba(20, 58, 64, 0.7);
	backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	text-align: center;
}

.ct-cart-body .cross-sells ul.products img {
	margin: 0 0 10px;
	border-radius: 12px;
}

.ct-cart-body .cross-sells ul.products .woocommerce-loop-product__title {
	padding: 0;
	color: var(--ct-ink);
	font-size: 13.5px;
	font-weight: 500;
}

.ct-cart-body .cross-sells ul.products .price {
	color: var(--ct-teal-deep);
	font-weight: 700;
}

.ct-cart-body .cross-sells ul.products a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 8px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	color: var(--ct-teal-deep);
	font-size: 12px;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px rgba(47, 147, 168, 0.3);
}

/* ---- Empty-cart state (Task 4) -------------------------------------------- */

.ct-cart-body .cart-empty,
.ct-cart-body .wc-empty-cart-message,
.ct-cart-body p.cart-empty {
	margin: 0;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 24px;
	background: rgba(248, 255, 253, 0.5);
	box-shadow: 0 28px 72px -50px rgba(20, 58, 64, 0.72);
	backdrop-filter: blur(18px) saturate(1.24);
	-webkit-backdrop-filter: blur(18px) saturate(1.24);
	color: var(--ct-ink);
	font-size: 16px;
	text-align: center;
}

.ct-cart-body .cart-empty::before {
	content: "🛍️";
	display: block;
	margin-bottom: 10px;
	font-size: 34px;
}

.ct-cart-body .return-to-shop {
	margin: 18px 0 0;
	text-align: center;
}

.ct-cart-body .return-to-shop a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ct-teal-deep), var(--ct-teal));
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	box-shadow: 0 20px 42px -22px rgba(21, 108, 126, 0.9);
}

/* ---- Mobile-first: stacked product cards ≤900px --------------------------- */

@media (max-width: 900px) {
	.ct-cart-body .woocommerce-cart-form {
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.ct-cart-body table.woocommerce-cart-form__contents,
	.ct-cart-body table.woocommerce-cart-form__contents tbody {
		display: block;
		width: 100%;
	}

	.ct-cart-body table.woocommerce-cart-form__contents thead {
		display: none;
	}

	/* Each product row becomes a glass card. WooCommerce's shop_table_responsive
	   CSS forces tr{display:block} and hides the thumbnail on mobile, so the card
	   grid + the image are re-asserted with !important to win specificity. */
	.ct-cart-body .woocommerce-cart-form__cart-item {
		position: relative;
		display: grid !important;
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 4px 14px;
		margin-bottom: 14px;
		padding: 16px;
		border: 1px solid rgba(255, 255, 255, 0.5);
		border-radius: 20px;
		background: rgba(248, 255, 253, 0.56);
		box-shadow: 0 24px 60px -50px rgba(20, 58, 64, 0.72);
		backdrop-filter: blur(16px) saturate(1.22);
		-webkit-backdrop-filter: blur(16px) saturate(1.22);
	}

	.ct-cart-body .woocommerce-cart-form__cart-item td {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: auto;
		padding: 0;
		border: 0;
		text-align: left;
	}

	.ct-cart-body td.product-thumbnail {
		grid-column: 1;
		grid-row: 1 / span 4;
		align-self: start;
		justify-content: flex-start;
	}

	.ct-cart-body td.product-thumbnail img {
		width: 84px;
		height: 84px;
		max-width: none;
	}

	.ct-cart-body td.product-name {
		grid-column: 2;
		justify-content: flex-start;
		padding-right: 34px; /* clear the × button */
	}

	/* Woo adds ::before data-title labels; redundant/empty on name & media cells. */
	.ct-cart-body td.product-name::before,
	.ct-cart-body td.product-thumbnail::before,
	.ct-cart-body td.product-remove::before {
		display: none !important;
	}

	.ct-cart-body td.product-price,
	.ct-cart-body td.product-quantity,
	.ct-cart-body td.product-subtotal {
		grid-column: 2;
		text-align: left;
	}

	/* Data-title labels on the value rows. */
	.ct-cart-body td.product-price::before,
	.ct-cart-body td.product-quantity::before,
	.ct-cart-body td.product-subtotal::before {
		content: attr(data-title);
		color: var(--ct-muted);
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.02em;
	}

	.ct-cart-body td.product-remove {
		position: absolute;
		top: 12px;
		right: 12px;
		grid-column: 2;
	}

	/* Coupon + update stack full-width. */
	.ct-cart-body .woocommerce-cart-form__contents td.actions {
		display: block;
		margin-top: 4px;
		padding: 16px;
		border: 1px solid rgba(255, 255, 255, 0.5);
		border-radius: 20px;
		background: rgba(248, 255, 253, 0.56);
		box-shadow: 0 24px 60px -50px rgba(20, 58, 64, 0.72);
		backdrop-filter: blur(16px) saturate(1.22);
		-webkit-backdrop-filter: blur(16px) saturate(1.22);
	}

	/* Coupon field + "Áp mã" stack full-width (Task 4). */
	.ct-cart-body td.actions .coupon {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 10px;
	}

	.ct-cart-body td.actions input#coupon_code {
		flex: 1 1 auto;
		width: 100%;
	}

	.ct-cart-body td.actions .coupon button.button {
		flex: none;
		width: 100%;
	}

	.ct-cart-body td.actions > button[name="update_cart"],
	.ct-cart-body td.actions > input[name="update_cart"] {
		float: none;
		width: 100%;
		margin-top: 12px;
	}

	/* Totals panel full-width; checkout thumb-reachable. */
	.ct-cart-body .cart-collaterals,
	.ct-cart-body .cart_totals {
		width: 100%;
		margin-top: 16px;
		float: none;
	}

	.ct-cart-body .cross-sells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.ct-cart-intro {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	a.ct-cart-continue {
		justify-content: center;
		width: 100%;
	}

	.ct-cart-body .wc-proceed-to-checkout a.checkout-button {
		min-height: 54px;
		font-size: 15px;
	}
}

@media (max-width: 360px) {
	.ct-cart-body .woocommerce-cart-form__cart-item {
		grid-template-columns: 68px minmax(0, 1fr);
	}

	.ct-cart-body td.product-thumbnail img {
		width: 68px;
		height: 68px;
	}
}
