/* ==========================================================================
   Cart page — modern full-width redesign (sports-cards-shop)
   --------------------------------------------------------------------------
   The cart is the classic [woocommerce_cart] shortcode (a <table>), rendered
   via page.php inside .scs-container > .scs-page. This stylesheet:
     - lifts the theme's width caps so the cart runs (nearly) full width;
     - turns the cart TABLE into clean product CARDS with big, fully-visible
       (object-fit:contain) card images;
     - puts the items on the left and a sticky order-summary on the right on
       desktop, stacking cleanly on tablet / mobile;
     - re-skins the coupon, totals, shipping options + checkout button in the
       brand's luxury dark + antique-gold palette.
   Loaded ONLY on is_cart() and AFTER woocommerce.css, so its rules win.
   Scope: body.woocommerce-cart (WC adds it on the cart page only).
   ========================================================================== */

.woocommerce-cart {
	--scs-ca-gold: var(--scs-color-gold, #d4af37);
	--scs-ca-gold-bright: var(--scs-color-gold-bright, #f0ce6a);
	--scs-ca-text: var(--scs-color-text, #faf4e6);
	--scs-ca-muted: var(--scs-color-text-muted, #9a8e78);
	--scs-ca-deep: var(--scs-color-bg-deep, #0b0704);
	--scs-ca-surface: #150d06;
	--scs-ca-surface-2: #1e130a;
	--scs-ca-line: rgba(212, 175, 55, 0.20);
	--scs-ca-line-strong: rgba(212, 175, 55, 0.42);
	--scs-ca-radius: 16px;
	--scs-ca-radius-sm: 10px;
	--scs-ca-shadow: 0 6px 26px rgba(0, 0, 0, 0.45);
	--scs-ca-display: var(--scs-font-display, "Cinzel", serif);
	--scs-ca-sans: var(--scs-font-sans, "Inter", sans-serif);
}

/* ------------------------------------------------------------------ *
 * 1. Full width — lift the theme's .scs-container (1280px) AND
 *    .scs-page (760px) caps on the cart page only.
 * ------------------------------------------------------------------ */
.woocommerce-cart .scs-container {
	max-width: none !important;
	padding: 0 !important;
}
.woocommerce-cart .scs-page {
	max-width: 1440px !important;
	margin-inline: auto !important;
	padding: 0 clamp(16px, 2.5vw, 48px) !important;
}
/* The sticky order-summary needs a scroll context that isn't clipped. The theme
   sets `html, body { overflow-x: hidden }` globally (base.css) which turns the
   body into a scroll container and BREAKS position:sticky. On the cart page,
   switch it to `overflow-x: clip` — still no horizontal scrollbar, but it does
   NOT create a scroll container — so the summary can stick until the products
   scroll past it. */
html:has(body.woocommerce-cart),
body.woocommerce-cart {
	overflow-x: clip !important;
}
.woocommerce-cart .scs-page__title,
.woocommerce-cart .entry-title {
	font-family: var(--scs-ca-display);
	color: var(--scs-ca-gold-bright);
	text-align: left;
}

/* ------------------------------------------------------------------ *
 * 2. Two-column layout — the STICKY grid holds ONLY the products (left) + the
 *    order summary (right). cart.php wraps just those two in .scs-cart-grid so
 *    the sticky Cart Totals is BOUNDED to the products height and never overlaps
 *    the "You may also like" strip below (which sits OUTSIDE this grid). WC
 *    notices render above (full width); the upsell strip renders below.
 * ------------------------------------------------------------------ */
.woocommerce-cart .scs-cart-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 480px;
	gap: 30px;
	align-items: start;
}
.woocommerce-cart .scs-cart-grid > .woocommerce-cart-form {
	grid-column: 1;
	margin: 0 !important;
}
.woocommerce-cart .scs-cart-grid > .cart-collaterals {
	grid-column: 2;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	align-self: start; /* content-height so the sticky has room to move within the grid */
	position: sticky;
	position: -webkit-sticky;
	top: 24px;
}
.woocommerce-cart .cart-collaterals .cart_totals {
	width: 100% !important;
	float: none !important;
}

/* Tablet / mobile — single column, summary drops below the items. */
@media (max-width: 999px) {
	.woocommerce-cart .scs-cart-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.woocommerce-cart .scs-cart-grid > .woocommerce-cart-form,
	.woocommerce-cart .scs-cart-grid > .cart-collaterals {
		grid-column: 1;
	}
	.woocommerce-cart .cart-collaterals {
		position: static;
		max-width: 520px;
	}
}

/* ------------------------------------------------------------------ *
 * 3. Cart items — turn the <table> into product CARDS.
 * ------------------------------------------------------------------ */
.woocommerce-cart .woocommerce-cart-form table.cart {
	display: block;
	width: 100%;
	border: none !important;
	margin: 0 !important;
	background: none !important;
}
.woocommerce-cart .woocommerce-cart-form table.cart thead {
	display: none; /* column headers replaced by per-value labels */
}
.woocommerce-cart .woocommerce-cart-form table.cart tbody {
	display: block;
}
.woocommerce-cart .woocommerce-cart-form table.cart tr {
	display: block;
}

/* Each product row = a horizontal card. `!important` on display because the
   generic `table.cart tr { display:block }` rule above has higher specificity. */
.woocommerce-cart tr.woocommerce-cart-form__cart-item {
	display: grid !important;
	grid-template-columns: 108px minmax(0, 2fr) 1fr 128px 1fr 44px;
	grid-template-areas: "thumb name price qty subtotal remove";
	align-items: center;
	gap: 6px 20px;
	background: var(--scs-ca-surface) !important;
	border: 1px solid var(--scs-ca-line) !important;
	border-radius: var(--scs-ca-radius);
	box-shadow: var(--scs-ca-shadow);
	padding: 16px 20px;
	margin: 0 0 16px !important;
}
.woocommerce-cart tr.woocommerce-cart-form__cart-item td {
	display: block;
	border: none !important;
	padding: 0 !important;
	background: none !important;
	text-align: left !important;
}
.woocommerce-cart td.product-thumbnail { grid-area: thumb; }
.woocommerce-cart td.product-name { grid-area: name; }
.woocommerce-cart td.product-price { grid-area: price; }
.woocommerce-cart td.product-quantity { grid-area: qty; }
.woocommerce-cart td.product-subtotal { grid-area: subtotal; }
.woocommerce-cart td.product-remove { grid-area: remove; }

/* Thumbnail — the FULL card image, never cropped. */
.woocommerce-cart td.product-thumbnail a,
.woocommerce-cart td.product-thumbnail {
	display: block;
}
.woocommerce-cart td.product-thumbnail img {
	box-sizing: border-box !important;
	width: 108px !important;
	height: 140px !important;
	max-width: none !important;
	object-fit: contain !important;
	background: var(--scs-ca-deep);
	border: 1px solid var(--scs-ca-line-strong);
	border-radius: var(--scs-ca-radius-sm);
	padding: 5px;
	display: block;
	margin: 0 !important;
}
/* CRITICAL: WooCommerce's own woocommerce-smallscreen.css (loaded on WC pages at
   <=768px) does `table.cart .product-thumbnail { display:none }` — it HIDES the
   cart product image on mobile. Force it back so our card image shows. It also
   prepends a "<data-title>: " label via `td::before` to every cell — suppress that
   on the thumbnail + product name (they don't need an auto label). */
.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail {
	display: block !important;
}
.woocommerce-cart td.product-thumbnail::before,
.woocommerce-cart td.product-name::before {
	content: none !important;
	display: none !important;
}

/* Product name + card meta. */
.woocommerce-cart td.product-name {
	font-family: var(--scs-ca-sans);
}
.woocommerce-cart td.product-name a {
	color: var(--scs-ca-gold-bright) !important;
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.35;
	text-decoration: none;
}
.woocommerce-cart td.product-name a:hover {
	color: var(--scs-ca-gold) !important;
	text-decoration: underline;
}
.woocommerce-cart td.product-name .wc-item-meta,
.woocommerce-cart td.product-name dl.variation,
.woocommerce-cart td.product-name .backorder_notification {
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: var(--scs-ca-muted);
	line-height: 1.5;
}
.woocommerce-cart td.product-name .wc-item-meta p,
.woocommerce-cart td.product-name dl.variation dd { margin: 0; }

/* Small uppercase value labels (thead is hidden). `!important` + float:none
   defeat WooCommerce's `woocommerce-smallscreen.css` which, at <=768px, sets
   `table.shop_table_responsive td::before { content: attr(data-title); float:left }`
   and would otherwise mangle these labels on mobile. */
.woocommerce-cart td.product-price::before,
.woocommerce-cart td.product-quantity::before,
.woocommerce-cart td.product-subtotal::before {
	content: attr(data-title) !important;
	display: block !important;
	float: none !important;
	font-family: var(--scs-ca-sans);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--scs-ca-muted);
	margin-bottom: 6px;
	font-weight: 600;
}

.woocommerce-cart td.product-price {
	color: var(--scs-ca-text);
	font-weight: 600;
	font-size: 0.98rem;
}
.woocommerce-cart td.product-subtotal {
	color: var(--scs-ca-gold-bright);
	font-weight: 700;
	font-size: 1.02rem;
}
.woocommerce-cart td.product-price del { color: var(--scs-ca-muted); font-weight: 400; }
.woocommerce-cart td.product-price ins { text-decoration: none; }

/* Quantity stepper. */
.woocommerce-cart td.product-quantity .quantity {
	display: inline-flex;
	align-items: center;
}
.woocommerce-cart td.product-quantity input.qty {
	width: 68px;
	height: 42px;
	text-align: center;
	background: var(--scs-ca-deep) !important;
	color: var(--scs-ca-text) !important;
	border: 1px solid var(--scs-ca-line-strong) !important;
	border-radius: var(--scs-ca-radius-sm);
	font-size: 0.98rem;
	font-weight: 600;
	padding: 0 6px;
}
.woocommerce-cart td.product-quantity input.qty:focus {
	outline: none;
	border-color: var(--scs-ca-gold) !important;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

/* Remove (×) — circular crimson outline that fills on hover. */
.woocommerce-cart td.product-remove {
	text-align: center !important;
}
.woocommerce-cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(192, 57, 43, 0.6);
	color: #e07a6f !important;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	background: transparent;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.woocommerce-cart td.product-remove a.remove:hover,
.woocommerce-cart td.product-remove a.remove:focus-visible {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff !important;
}

/* ------------------------------------------------------------------ *
 * 4. Actions row — now only the hidden Update-cart button + nonce (the
 *    coupon moved to the totals box). Collapse it so it adds no gap.
 * ------------------------------------------------------------------ */
.woocommerce-cart .woocommerce-cart-form table.cart tr:has(td.actions) {
	display: block;
	margin: 0;
}
.woocommerce-cart td.actions {
	display: block !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}
.woocommerce-cart td.actions button[name="update_cart"] {
	display: none !important;
}

/* ------------------------------------------------------------------ *
 * 4b. Coupon field — inside the Cart Totals box (top of the card), rendered
 *     by scs_cart_coupon_in_totals() on woocommerce_before_cart_totals.
 * ------------------------------------------------------------------ */
.woocommerce-cart .scs-cart-coupon {
	margin: 0 0 18px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--scs-ca-line);
}
.woocommerce-cart .scs-cart-coupon__label {
	display: block;
	font-family: var(--scs-ca-sans);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--scs-ca-muted);
	font-weight: 600;
	margin-bottom: 10px;
}
.woocommerce-cart .scs-cart-coupon__row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}
.woocommerce-cart .scs-cart-coupon input#scs_coupon_code {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	background: var(--scs-ca-deep) !important;
	color: var(--scs-ca-text) !important;
	border: 1px solid var(--scs-ca-line-strong) !important;
	border-radius: var(--scs-ca-radius-sm);
	padding: 0 16px;
	font-size: 0.95rem;
}
.woocommerce-cart .scs-cart-coupon input#scs_coupon_code::placeholder { color: var(--scs-ca-muted); }
.woocommerce-cart .scs-cart-coupon input#scs_coupon_code:focus {
	outline: none;
	border-color: var(--scs-ca-gold) !important;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.woocommerce-cart .scs-cart-coupon button[name="apply_coupon"] {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 22px;
	border-radius: var(--scs-ca-radius-sm);
	border: 1px solid var(--scs-ca-gold);
	background: transparent;
	color: var(--scs-ca-gold-bright);
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}
.woocommerce-cart .scs-cart-coupon button[name="apply_coupon"]:hover {
	background: var(--scs-ca-gold);
	color: #1a1206;
}

/* ------------------------------------------------------------------ *
 * 5. Order summary (Cart totals) — a padded card, sticky on desktop.
 * ------------------------------------------------------------------ */
.woocommerce-cart .cart_totals {
	display: block !important; /* kill woocommerce.css's old 2-col "table | actions" grid that floated the button */
	background: var(--scs-ca-surface) !important;
	border: 1px solid var(--scs-ca-line) !important;
	border-radius: var(--scs-ca-radius);
	box-shadow: var(--scs-ca-shadow);
	padding: 22px 24px 24px !important;
}
/* Belt-and-suspenders: neutralise the old grid-area placement on the children
   so the totals table, then the Proceed-to-Checkout button, flow in normal
   order (button full-width at the BOTTOM, never floating in a side column). */
.woocommerce-cart .cart_totals > h2,
.woocommerce-cart .cart_totals > .shop_table,
.woocommerce-cart .cart_totals > table,
.woocommerce-cart .cart_totals > .wc-proceed-to-checkout,
.woocommerce-cart .cart_totals > .scs-catalog-mode-cart-notice {
	grid-area: auto !important;
	align-self: auto !important;
	width: 100% !important;
}
.woocommerce-cart .cart_totals h2 {
	font-family: var(--scs-ca-display);
	color: var(--scs-ca-gold-bright);
	font-size: 1.25rem;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--scs-ca-line);
}
.woocommerce-cart .cart_totals table.shop_table {
	display: table;
	width: 100% !important;
	border: none !important;
	margin: 0 !important;
	background: none !important;
}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
	border: none !important;
	border-bottom: 1px solid var(--scs-ca-line) !important;
	padding: 13px 0 !important;
	background: none !important;
	vertical-align: top;
	font-size: 0.95rem;
}
.woocommerce-cart .cart_totals table.shop_table th {
	color: var(--scs-ca-muted);
	font-weight: 600;
	text-align: left;
}
.woocommerce-cart .cart_totals table.shop_table td {
	color: var(--scs-ca-text);
	text-align: right;
	font-weight: 600;
}
/* Grand total — emphasised gold. */
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
	border-bottom: none !important;
	padding-top: 16px !important;
	font-size: 1.05rem;
}
.woocommerce-cart .cart_totals .order-total td,
.woocommerce-cart .cart_totals .order-total .amount {
	color: var(--scs-ca-gold-bright) !important;
	font-weight: 800;
	font-size: 1.35rem;
}

/* Shipping options inside the totals. */
.woocommerce-cart .cart_totals .shipping th { vertical-align: top; }
.woocommerce-cart .cart_totals .shipping td { text-align: left !important; }
.woocommerce-cart .cart_totals ul#shipping_method,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-cart .cart_totals ul#shipping_method li {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 10px;
	padding: 0;
	color: var(--scs-ca-text);
	font-weight: 500;
	line-height: 1.4;
}
.woocommerce-cart .cart_totals ul#shipping_method li:last-child { margin-bottom: 0; }
.woocommerce-cart .cart_totals ul#shipping_method input[type="radio"] {
	accent-color: var(--scs-ca-gold);
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
}
.woocommerce-cart .cart_totals ul#shipping_method label {
	color: var(--scs-ca-text);
	cursor: pointer;
	margin: 0;
	font-weight: 500;
}
.woocommerce-cart .cart_totals ul#shipping_method label .amount {
	color: var(--scs-ca-gold-bright);
	font-weight: 700;
}
.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
	color: var(--scs-ca-muted);
	font-size: 0.85rem;
	margin: 12px 0 4px;
	text-align: left;
}
.woocommerce-cart .cart_totals .shipping-calculator-button {
	color: var(--scs-ca-gold-bright);
	font-weight: 600;
	text-decoration: underline;
}

/* MOBILE: the totals table goes block so the long Shipment row uses the full
   width. Subtotal + Total keep label-left / value-right on one line; the
   Shipment label sits above its (now full-width) courier options so
   "BLUEDART/DELHIVERY/DTDC: ₹150" fits on ONE line instead of wrapping. */
@media (max-width: 767px) {
	.woocommerce-cart .cart_totals { padding: 20px 18px 22px !important; }
	.woocommerce-cart .cart_totals table.shop_table,
	.woocommerce-cart .cart_totals table.shop_table tbody {
		display: block !important;
		width: 100% !important;
	}
	.woocommerce-cart .cart_totals table.shop_table tr {
		display: block !important;
		width: 100% !important;
		border-bottom: 1px solid var(--scs-ca-line) !important;
		padding: 12px 0 !important;
	}
	.woocommerce-cart .cart_totals table.shop_table tr:last-child { border-bottom: none !important; }
	.woocommerce-cart .cart_totals table.shop_table th,
	.woocommerce-cart .cart_totals table.shop_table td {
		display: block !important;
		width: 100% !important;
		border-bottom: none !important;
		padding: 0 !important;
		text-align: left !important;
	}
	/* Every row EXCEPT shipping: label + value on one line (subtotal, total,
	   coupon discount, fee, etc.). Shipping stays stacked (block) so its long
	   courier options get the full width. */
	.woocommerce-cart .cart_totals tr:not(.shipping) {
		display: flex !important;
		justify-content: space-between;
		align-items: baseline;
		gap: 12px;
	}
	.woocommerce-cart .cart_totals tr:not(.shipping) th,
	.woocommerce-cart .cart_totals tr:not(.shipping) td { width: auto !important; }
	.woocommerce-cart .cart_totals tr:not(.shipping) td { text-align: right !important; }
	/* Shipment: label above, options full-width. */
	.woocommerce-cart .cart_totals tr.shipping th { padding-bottom: 8px !important; }
	.woocommerce-cart .cart_totals ul#shipping_method li { font-size: 0.9rem; }
}

/* Proceed to checkout — full-width gold CTA. */
.woocommerce-cart .wc-proceed-to-checkout {
	padding: 20px 0 0 !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: block !important;
	width: 100% !important;
	text-align: center;
	padding: 16px 24px !important;
	font-family: var(--scs-ca-sans);
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a1206 !important;
	background: linear-gradient(135deg, var(--scs-ca-gold-bright), var(--scs-ca-gold)) !important;
	border: none !important;
	border-radius: var(--scs-ca-radius-sm) !important;
	box-shadow: 0 6px 20px rgba(212, 175, 55, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
}

/* Catalog-mode WhatsApp notice (when online ordering is paused) sits in the
   same slot — give it breathing room. */
.woocommerce-cart .cart_totals .scs-catalog-mode-cart-notice {
	margin-top: 18px;
}

/* Cross-sells — hidden on the cart for a clean, focused summary (our own
   "You may also like" strip below replaces it). */
.woocommerce-cart .cross-sells {
	display: none;
}

/* ------------------------------------------------------------------ *
 * 5b. "You may also like" — upsell strip BELOW the cart (spans full width).
 *     Rendered by scs_cart_upsells_section() on woocommerce_after_cart.
 * ------------------------------------------------------------------ */
.woocommerce-cart .scs-cart-upsells {
	clear: both;
	margin-top: 44px;
	padding-top: 30px;
	border-top: 1px solid var(--scs-ca-line);
}
.woocommerce-cart .scs-cart-upsells__title {
	font-family: var(--scs-ca-display);
	color: var(--scs-ca-gold-bright);
	font-size: clamp(1.3rem, 3vw, 1.7rem);
	margin: 0 0 22px;
	text-align: left;
}
.woocommerce-cart .scs-cart-upsells__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}
.woocommerce-cart .scs-upsell {
	display: flex;
	flex-direction: column;
	background: var(--scs-ca-surface);
	border: 1px solid var(--scs-ca-line);
	border-radius: var(--scs-ca-radius);
	padding: 14px;
	transition: border-color 0.18s ease, transform 0.18s ease;
}
.woocommerce-cart .scs-upsell:hover {
	border-color: var(--scs-ca-line-strong);
	transform: translateY(-3px);
}
.woocommerce-cart .scs-upsell__media {
	position: relative;
	display: block;
	background: var(--scs-ca-deep);
	border: 1px solid var(--scs-ca-line);
	border-radius: var(--scs-ca-radius-sm);
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 12px;
}
.woocommerce-cart .scs-upsell__media img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain !important;
	padding: 8px;
	box-sizing: border-box;
	display: block;
	margin: 0 !important;
}
.woocommerce-cart .scs-upsell__flag {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #c0392b;
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 5px;
}
.woocommerce-cart .scs-upsell__title {
	color: var(--scs-ca-text) !important;
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.35;
	text-decoration: none;
	margin-bottom: 8px;
	min-height: 2.5em;
	display: block;
}
.woocommerce-cart .scs-upsell__title:hover { color: var(--scs-ca-gold-bright) !important; }
.woocommerce-cart .scs-upsell__price {
	color: var(--scs-ca-gold-bright);
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 12px;
}
.woocommerce-cart .scs-upsell__price del { color: var(--scs-ca-muted); font-weight: 400; font-size: 0.85rem; }
.woocommerce-cart .scs-upsell__price ins { text-decoration: none; }
.woocommerce-cart .scs-upsell__btn {
	margin-top: auto;
	display: block;
	text-align: center;
	padding: 10px 12px !important;
	border-radius: var(--scs-ca-radius-sm) !important;
	border: 1px solid var(--scs-ca-gold) !important;
	background: transparent !important;
	color: var(--scs-ca-gold-bright) !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}
.woocommerce-cart .scs-upsell__btn:hover,
.woocommerce-cart .scs-upsell__btn.added {
	background: var(--scs-ca-gold) !important;
	color: #1a1206 !important;
}
/* WC's default "View cart" link that appears after an AJAX add — keep it tidy. */
.woocommerce-cart .scs-upsell .added_to_cart {
	display: block;
	text-align: center;
	margin-top: 8px;
	color: var(--scs-ca-gold-bright);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: underline;
}
/* Responsive upsell grid: 4 -> 3 -> 2 -> 1. */
@media (max-width: 1100px) {
	.woocommerce-cart .scs-cart-upsells__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.woocommerce-cart .scs-cart-upsells__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.woocommerce-cart .scs-cart-upsells { margin-top: 32px; padding-top: 24px; }
}
@media (max-width: 380px) {
	.woocommerce-cart .scs-cart-upsells__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 * 6. Empty cart.
 * ------------------------------------------------------------------ */
.woocommerce-cart .cart-empty,
.woocommerce-cart .wc-empty-cart-message {
	text-align: center;
	font-size: 1.1rem;
	color: var(--scs-ca-text);
	margin: 40px 0 20px;
}
.woocommerce-cart .return-to-shop {
	text-align: center;
	margin-bottom: 40px;
}
.woocommerce-cart .return-to-shop .button {
	display: inline-block;
	padding: 14px 30px;
	color: #1a1206;
	background: linear-gradient(135deg, var(--scs-ca-gold-bright), var(--scs-ca-gold));
	border-radius: var(--scs-ca-radius-sm);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}

/* ------------------------------------------------------------------ *
 * 7. Responsive — clean stacked product card on phones / small tablets.
 *    Image sits on the LEFT (full height, spanning all rows); Name, Price,
 *    then a Qty + Subtotal row stack on the RIGHT; the Remove × floats in the
 *    top-right corner. Nothing is cut and every value keeps its label.
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.woocommerce-cart tr.woocommerce-cart-form__cart-item {
		position: relative;
		grid-template-columns: 96px minmax(0, 1fr) auto !important;
		grid-template-areas:
			"thumb name     name"
			"thumb price    price"
			"thumb qty      subtotal" !important;
		column-gap: 14px;
		row-gap: 10px;
		align-items: center;
		padding: 14px 46px 16px 14px; /* right room for the absolute × */
	}
	.woocommerce-cart td.product-thumbnail { align-self: center; }
	.woocommerce-cart td.product-thumbnail img {
		width: 96px !important;
		height: 124px !important;
	}
	.woocommerce-cart td.product-name {
		align-self: end;
		white-space: normal;
	}
	.woocommerce-cart td.product-name a { font-size: 0.98rem; }
	.woocommerce-cart td.product-price { align-self: start; }
	.woocommerce-cart td.product-quantity { align-self: center; }
	.woocommerce-cart td.product-subtotal {
		align-self: center;
		text-align: right !important;
	}
	/* Remove × floats at the card's top-right corner (out of grid flow). */
	.woocommerce-cart td.product-remove {
		grid-area: unset !important;
		position: absolute;
		top: 12px;
		right: 12px;
		margin: 0;
		text-align: center !important;
	}
	.woocommerce-cart .scs-page { padding: 0 14px !important; }
	/* Coupon input + Apply stay on one row but allow wrapping if very narrow. */
	.woocommerce-cart .scs-cart-coupon__row { flex-wrap: wrap; }
}

@media (max-width: 400px) {
	.woocommerce-cart tr.woocommerce-cart-form__cart-item {
		grid-template-columns: 82px minmax(0, 1fr) auto !important;
		column-gap: 11px;
		padding: 12px 40px 14px 12px;
	}
	.woocommerce-cart td.product-thumbnail img {
		width: 82px !important;
		height: 106px !important;
	}
	.woocommerce-cart td.product-quantity input.qty { width: 58px; }
	.woocommerce-cart td.product-price::before,
	.woocommerce-cart td.product-quantity::before,
	.woocommerce-cart td.product-subtotal::before {
		font-size: 0.56rem !important;
		letter-spacing: 0.08em;
	}
}
