﻿/* ============================================================
   AuraBricks Theme — WooCommerce CSS
   Section : 07. Cart
   Source  : assets/css/woocommerce.css (lines 1663–2118)
   ============================================================ */

/* ============================================================
   07. Cart
   (Populated in Part 7 — woocommerce/cart/cart.php)
   ============================================================ */

/* ── Checkout Steps Indicator ── */
.abr-checkout-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 620px;
	margin: 0 auto 3rem auto;
	gap: 12px;
}

.abr-checkout-step {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--abr-color-text-muted, #94a3b8);
	white-space: nowrap;
}

.abr-checkout-step__num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 700;
	background: var(--abr-color-surface-hover, #f1f5f9);
	border: 2px solid var(--abr-color-border, #cbd5e1);
	color: var(--abr-color-text-muted, #64748b);
	transition: var(--abr-woo-transition);
}

.abr-checkout-step--active {
	color: var(--abr-color-heading, #0f172a);
}

.abr-checkout-step--active .abr-checkout-step__num {
	background: var(--abr-color-primary, #6366f1);
	border-color: var(--abr-color-primary, #6366f1);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.abr-checkout-step__divider {
	flex-grow: 1;
	height: 2px;
	background: var(--abr-color-border, #e2e8f0);
	min-width: 20px;
}

/* ── Cart Layout (2-Column Desktop Grid) ── */
.abr-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(360px, 1.1fr);
	gap: 36px;
	align-items: start;
	margin-bottom: 3rem;
}

.abr-cart-layout__main {
	min-width: 0;
}

.abr-cart-layout__sidebar {
	position: sticky;
	top: 100px;
}

/* ── Cart Table ── */
body.woocommerce table.shop_table.cart,
body.woocommerce-page table.shop_table.cart {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--abr-color-surface, #ffffff);
	border: 1px solid var(--abr-color-border, #e2e8f0);
	border-radius: var(--abr-woo-card-radius, 14px);
	overflow: hidden;
	margin-bottom: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

body.woocommerce table.shop_table.cart thead th,
body.woocommerce-page table.shop_table.cart thead th {
	background: var(--abr-color-surface-hover, #f8fafc);
	color: var(--abr-color-text-muted, #64748b);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 16px 20px;
	border: none;
	border-bottom: 1px solid var(--abr-color-border, #e2e8f0);
}

body.woocommerce table.shop_table.cart tbody td,
body.woocommerce-page table.shop_table.cart tbody td {
	padding: 18px 20px;
	vertical-align: middle;
	border: none;
	border-top: 1px solid var(--abr-color-border, #f1f5f9);
	font-size: 0.95rem;
}

/* Remove Item Button */
body.woocommerce table.shop_table.cart a.remove,
body.woocommerce-page table.shop_table.cart a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #ef4444;
	background: transparent;
	text-decoration: none;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
	transition: var(--abr-woo-transition);
}

body.woocommerce table.shop_table.cart a.remove:hover,
body.woocommerce-page table.shop_table.cart a.remove:hover {
	background: #fee2e2;
	color: #b91c1c;
}

/* Thumbnail */
body.woocommerce table.shop_table.cart td.product-thumbnail img,
body.woocommerce-page table.shop_table.cart td.product-thumbnail img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--abr-color-border, #e2e8f0);
	display: block;
}

/* Product Name */
body.woocommerce table.shop_table.cart td.product-name a,
body.woocommerce-page table.shop_table.cart td.product-name a {
	font-weight: 600;
	color: var(--abr-color-heading, #0f172a);
	text-decoration: none;
	transition: color 0.2s ease;
}

body.woocommerce table.shop_table.cart td.product-name a:hover,
body.woocommerce-page table.shop_table.cart td.product-name a:hover {
	color: var(--abr-color-primary, #6366f1);
}

/* Quantity Input */
body.woocommerce table.shop_table.cart td.product-quantity .qty,
body.woocommerce-page table.shop_table.cart td.product-quantity .qty {
	width: 60px;
	height: 40px;
	padding: 0 6px;
	text-align: center;
	font-weight: 600;
	border: 1px solid var(--abr-color-border, #cbd5e1);
	border-radius: var(--abr-woo-btn-radius, 8px);
	background: var(--abr-color-surface, #ffffff);
}

/* Subtotal */
body.woocommerce table.shop_table.cart td.product-subtotal,
body.woocommerce-page table.shop_table.cart td.product-subtotal {
	font-weight: 700;
	color: var(--abr-color-heading, #0f172a);
}

/* ── Cart Table Actions (Coupon & Buttons) ── */
body.woocommerce table.shop_table.cart td.actions,
body.woocommerce-page table.shop_table.cart td.actions {
	padding: 20px;
	background: var(--abr-color-surface-hover, #f8fafc);
	border-top: 1px solid var(--abr-color-border, #e2e8f0);
}

body.woocommerce table.shop_table.cart td.actions .coupon,
body.woocommerce-page table.shop_table.cart td.actions .coupon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	float: left;
}

body.woocommerce table.shop_table.cart td.actions .coupon input.input-text,
body.woocommerce-page table.shop_table.cart td.actions .coupon input.input-text {
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--abr-color-border, #cbd5e1);
	border-radius: var(--abr-woo-btn-radius, 8px);
	background: #ffffff;
	font-size: 0.9rem;
	width: 150px;
	box-sizing: border-box;
}

body.woocommerce table.shop_table.cart td.actions .coupon button.button,
body.woocommerce-page table.shop_table.cart td.actions .coupon button.button {
	height: 42px;
	padding: 0 18px;
	border-radius: var(--abr-woo-btn-radius, 8px);
	background: var(--abr-color-heading, #1e293b);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
}

body.woocommerce table.shop_table.cart td.actions .coupon button.button:hover,
body.woocommerce-page table.shop_table.cart td.actions .coupon button.button:hover {
	background: #0f172a;
}

.abr-cart-action-buttons {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	float: right;
}

.abr-cart-action-buttons a.button.abr-btn-secondary {
	height: 42px;
	padding: 0 18px;
	border-radius: var(--abr-woo-btn-radius, 8px);
	background: #ffffff;
	color: var(--abr-color-heading, #1e293b);
	border: 1px solid var(--abr-color-border, #cbd5e1);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: var(--abr-woo-transition);
}

.abr-cart-action-buttons a.button.abr-btn-secondary:hover {
	background: var(--abr-color-surface-hover, #f1f5f9);
	border-color: #94a3b8;
}

body.woocommerce table.shop_table.cart td.actions button[name="update_cart"],
body.woocommerce-page table.shop_table.cart td.actions button[name="update_cart"] {
	height: 42px;
	padding: 0 18px;
	border-radius: var(--abr-woo-btn-radius, 8px);
	background: var(--abr-color-primary, #6366f1);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
}

body.woocommerce table.shop_table.cart td.actions button[name="update_cart"]:hover,
body.woocommerce-page table.shop_table.cart td.actions button[name="update_cart"]:hover {
	background: var(--abr-color-primary-dark, #4f46e5);
}

/* ── Cart Totals Box ── */
body.woocommerce .cart-collaterals .cart_totals,
body.woocommerce-page .cart-collaterals .cart_totals {
	width: 100%;
	float: none;
	background: var(--abr-color-surface, #ffffff);
	border: 1px solid var(--abr-color-border, #e2e8f0);
	border-radius: var(--abr-woo-card-radius, 14px);
	padding: 24px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
}

body.woocommerce .cart-collaterals .cart_totals h2,
body.woocommerce-page .cart-collaterals .cart_totals h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--abr-color-heading, #0f172a);
	margin: 0 0 1.25rem 0;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--abr-color-border, #e2e8f0);
}

body.woocommerce .cart-collaterals .cart_totals table.shop_table,
body.woocommerce-page .cart-collaterals .cart_totals table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: none;
	margin-bottom: 1.5rem;
}

body.woocommerce .cart-collaterals .cart_totals table.shop_table th,
body.woocommerce-page .cart-collaterals .cart_totals table.shop_table th {
	font-weight: 600;
	color: var(--abr-color-text-muted, #64748b);
	font-size: 0.925rem;
	padding: 12px 0;
	border: none;
	border-bottom: 1px solid var(--abr-color-border, #f1f5f9);
	background: none;
}

body.woocommerce .cart-collaterals .cart_totals table.shop_table td,
body.woocommerce-page .cart-collaterals .cart_totals table.shop_table td {
	text-align: right;
	padding: 12px 0;
	font-size: 0.95rem;
	color: var(--abr-color-heading, #0f172a);
	border: none;
	border-bottom: 1px solid var(--abr-color-border, #f1f5f9);
}

body.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th,
body.woocommerce-page .cart-collaterals .cart_totals table.shop_table tr.order-total th,
body.woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td,
body.woocommerce-page .cart-collaterals .cart_totals table.shop_table tr.order-total td {
	border-top: 2px solid var(--abr-color-border, #e2e8f0);
	border-bottom: none;
	padding-top: 16px;
	font-size: clamp(1.05rem, 2vw, 1.15rem);
	font-weight: 600;
	color: var(--abr-color-primary, #6366f1);
}

/* Proceed to Checkout Button */
body.woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-page .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--abr-woo-btn-radius, 10px);
	background: var(--abr-color-primary, #6366f1);
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
	transition: var(--abr-woo-transition);
	margin-bottom: 0;
}

body.woocommerce .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-page .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
	background: var(--abr-color-primary-dark, #4f46e5);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* ── Empty Cart Screen ── */
.abr-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 1.5rem;
	background: var(--abr-color-surface, #ffffff);
	border: 1px dashed var(--abr-color-border, #e2e8f0);
	border-radius: var(--abr-woo-card-radius, 14px);
	margin: 2rem 0;
}

.abr-cart-empty__icon {
	color: var(--abr-color-muted, #94a3b8);
	margin-bottom: 1.25rem;
}

.abr-cart-empty__title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--abr-color-heading, #0f172a);
	margin: 0 0 0.5rem 0;
}

.abr-cart-empty__text {
	color: var(--abr-color-text-muted, #64748b);
	font-size: 1rem;
	max-width: 440px;
	margin: 0 0 1.75rem 0;
	line-height: 1.6;
}

.abr-cart-empty .return-to-shop a.button {
	padding: 12px 28px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--abr-woo-btn-radius, 8px);
	background: var(--abr-color-primary, #6366f1);
	color: #ffffff;
	text-decoration: none;
}

/* ── Mobile Cart Responsiveness (< 992px) ── */
@media (max-width: 991px) {
	.abr-cart-layout {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	.abr-cart-layout__sidebar {
		position: static;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.abr-checkout-steps {
		gap: 6px;
		margin-bottom: 2rem;
	}

	.abr-checkout-step {
		font-size: 0.85rem;
	}

	body.woocommerce table.shop_table.cart td.actions .coupon,
	body.woocommerce-page table.shop_table.cart td.actions .coupon,
	.abr-cart-action-buttons {
		float: none;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	body.woocommerce table.shop_table.cart td.actions .coupon input.input-text,
	body.woocommerce-page table.shop_table.cart td.actions .coupon input.input-text,
	body.woocommerce table.shop_table.cart td.actions .coupon button.button,
	body.woocommerce-page table.shop_table.cart td.actions .coupon button.button,
	.abr-cart-action-buttons a.button,
	.abr-cart-action-buttons button.button {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	body.woocommerce table.shop_table.cart td.actions,
	body.woocommerce-page table.shop_table.cart td.actions {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}
}


