/**
 * Cart page — matches checkout / landing theme (dark, RTL, Arabic).
 */
*,*::before,*::after{box-sizing:border-box}
:root{
	--bg:#06060b;--bg2:#0c0c14;--card:#161622;--card2:#1a1a2a;
	--accent:#7c6cf0;--accent2:#a78bfa;--accent3:#f59e0b;--accent4:#10b981;
	--t1:#f4f3f8;--t2:#b8b4c8;--t3:#7a7590;
	--border:rgba(124,108,240,.12);--border2:rgba(124,108,240,.25);
	--grad:linear-gradient(135deg,#7c6cf0,#a78bfa 40%,#f59e0b);
	--r:14px;--rs:10px;
	--font:'Cairo',sans-serif;--font2:'Tajawal',sans-serif;
}
html,body{direction:rtl;text-align:right}
body.woocommerce-cart,body.woocommerce-page{background:var(--bg);color:var(--t1);font-family:var(--font2);line-height:1.7;min-height:100vh}

/* Header row */
.ai-wc-top-inner{direction:rtl;justify-content:space-between!important;flex-wrap:wrap;gap:12px}
.ai-wc-top-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ai-wc-pill-to-checkout{
	display:inline-flex;align-items:center;justify-content:center;
	min-height:40px;padding:8px 18px;border-radius:999px;
	background:var(--grad);color:#fff!important;font-family:var(--font);font-weight:800;font-size:.82rem;
	text-decoration:none;transition:transform .2s,box-shadow .2s;
}
.ai-wc-pill-to-checkout:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(124,108,240,.35);color:#fff!important}

/* Inner */
.ai-wc-inner{padding-top:8px;padding-bottom:max(48px,env(safe-area-inset-bottom))}
.woocommerce-ai-theme .woocommerce-notices-wrapper{margin-bottom:20px}
.woocommerce-ai-theme .woocommerce-message,
.woocommerce-ai-theme .woocommerce-info,
.woocommerce-ai-theme .woocommerce-error{
	background:var(--card2)!important;border:1px solid var(--border)!important;border-radius:var(--rs)!important;
	color:var(--t1)!important;padding:14px 18px!important;margin:0 0 16px!important;list-style:none
}
.woocommerce-ai-theme .woocommerce-message::before,
.woocommerce-ai-theme .woocommerce-info::before{color:var(--accent4)!important}
.woocommerce-ai-theme .woocommerce-error::before{color:#f43f5e!important}

/* Page title */
.woocommerce-ai-theme .woocommerce-cart-form h1,
.woocommerce-ai-theme h1.page-title{font-family:var(--font);font-size:clamp(1.25rem,3.5vw,1.65rem);font-weight:900;margin:0 0 22px;color:var(--t1)}

/* Form + table */
.woocommerce-ai-theme form.woocommerce-cart-form{margin-bottom:28px}
.woocommerce-ai-theme table.shop_table{
	width:100%;border-collapse:separate;border-spacing:0;
	background:var(--card);border:1px solid var(--border);border-radius:var(--r);overflow:hidden
}
.woocommerce-ai-theme table.shop_table thead th{
	font-family:var(--font);font-size:.78rem;font-weight:800;text-transform:none;letter-spacing:0;
	color:var(--t2);padding:16px 14px;border-bottom:1px solid var(--border);background:rgba(0,0,0,.2)
}
.woocommerce-ai-theme table.shop_table tbody td{
	padding:18px 14px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--t1);font-size:.95rem
}
.woocommerce-ai-theme table.shop_table tbody tr:last-child td{border-bottom:none}
.woocommerce-ai-theme table.shop_table .product-thumbnail{width:88px}
.woocommerce-ai-theme table.shop_table .product-thumbnail img{
	max-width:72px;height:auto;border-radius:var(--rs);border:1px solid var(--border)
}
.woocommerce-ai-theme table.shop_table .product-name a{color:var(--t1);font-weight:700;text-decoration:none}
.woocommerce-ai-theme table.shop_table .product-name a:hover{color:var(--accent2)}
.woocommerce-ai-theme table.shop_table .product-price,
.woocommerce-ai-theme table.shop_table .product-subtotal{font-weight:700;color:var(--accent2)}
.woocommerce-ai-theme .woocommerce-Price-amount{color:inherit}

/* Quantity */
.woocommerce-ai-theme .quantity{
	display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:var(--rs);overflow:hidden;background:var(--bg2)
}
.woocommerce-ai-theme .quantity input.qty{
	width:56px!important;min-height:44px;border:none!important;background:transparent!important;
	color:var(--t1)!important;text-align:center;font-weight:700;padding:8px!important
}
.woocommerce-ai-theme .quantity .screen-reader-text{clip:rect(0,0,0,0);position:absolute}

/* Remove link */
.woocommerce-ai-theme table.shop_table a.remove{
	display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
	border-radius:50%;background:rgba(244,63,94,.12);color:#f43f5e!important;font-size:1.2rem;line-height:1;
	text-decoration:none!important;transition:background .2s
}
.woocommerce-ai-theme table.shop_table a.remove:hover{background:rgba(244,63,94,.25);color:#fff!important}

/* Actions row */
.woocommerce-ai-theme table.shop_table td.actions{padding:16px 14px;background:rgba(0,0,0,.15)}
.woocommerce-ai-theme table.shop_table td.actions .coupon{
	display:flex;flex-wrap:wrap;gap:10px;align-items:stretch
}
.woocommerce-ai-theme table.shop_table td.actions .coupon input.input-text{
	flex:1;min-width:160px;min-height:48px;padding:12px 16px!important;border-radius:var(--rs)!important;
	border:1px solid var(--border)!important;background:var(--bg2)!important;color:var(--t1)!important
}
.woocommerce-ai-theme table.shop_table td.actions .button{
	min-height:48px!important;padding:12px 22px!important;border-radius:var(--rs)!important;
	font-family:var(--font)!important;font-weight:800!important;background:var(--card2)!important;
	border:1px solid var(--border2)!important;color:var(--t1)!important;cursor:pointer
}
.woocommerce-ai-theme table.shop_table td.actions .button:hover{border-color:var(--accent2)!important;color:var(--accent2)!important}
.woocommerce-ai-theme table.shop_table td.actions .button[name="update_cart"]{margin-inline-start:auto}

@media(max-width:768px){
	.woocommerce-ai-theme table.shop_table thead{display:none}
	.woocommerce-ai-theme table.shop_table tbody tr{display:block;padding:16px;border-bottom:1px solid var(--border)}
	.woocommerce-ai-theme table.shop_table tbody td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0!important;border:none!important}
	.woocommerce-ai-theme table.shop_table tbody td::before{content:attr(data-title) " ";font-weight:700;color:var(--t3);font-size:.8rem}
	.woocommerce-ai-theme table.shop_table .product-thumbnail{width:auto}
}

/* Collaterals */
.woocommerce-ai-theme .cart-collaterals{margin-top:8px}
.woocommerce-ai-theme .cart_totals{
	background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:24px;max-width:440px;margin-inline-start:auto
}
.woocommerce-ai-theme .cart_totals h2{
	font-family:var(--font);font-size:1.05rem;font-weight:900;margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--border);color:var(--t1)
}
.woocommerce-ai-theme .cart_totals table.shop_table{margin:0;border:none;background:transparent}
.woocommerce-ai-theme .cart_totals table.shop_table th,
.woocommerce-ai-theme .cart_totals table.shop_table td{padding:10px 0;border:none!important;background:transparent!important}
.woocommerce-ai-theme .cart_totals .order-total th,
.woocommerce-ai-theme .cart_totals .order-total td{
	font-size:1.15rem;font-weight:900;padding-top:16px;border-top:1px dashed var(--border)!important
}
.woocommerce-ai-theme .cart_totals .order-total .woocommerce-Price-amount{
	background:var(--grad);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-size:1.35rem
}
.woocommerce-ai-theme .wc-proceed-to-checkout{padding-top:20px}
.woocommerce-ai-theme .wc-proceed-to-checkout .checkout-button{
	display:flex!important;width:100%!important;justify-content:center!important;align-items:center!important;
	min-height:52px!important;padding:16px 24px!important;border-radius:50px!important;border:none!important;
	background:var(--grad)!important;color:#fff!important;font-family:var(--font)!important;font-weight:800!important;
	font-size:1rem!important;text-decoration:none!important;transition:transform .2s,box-shadow .2s
}
.woocommerce-ai-theme .wc-proceed-to-checkout .checkout-button:hover{
	transform:translateY(-2px);box-shadow:0 10px 36px rgba(124,108,240,.38);color:#fff!important
}

/* Cross-sells */
.woocommerce-ai-theme .cross-sells{margin-top:40px}
.woocommerce-ai-theme .cross-sells h2{font-family:var(--font);font-size:1.1rem;margin-bottom:18px}
.woocommerce-ai-theme ul.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;list-style:none;padding:0;margin:0}
.woocommerce-ai-theme ul.products li.product{background:var(--card);border:1px solid var(--border);border-radius:var(--r);padding:16px;text-align:center}
.woocommerce-ai-theme ul.products li.product .button{margin-top:10px;border-radius:var(--rs)!important;font-weight:700!important}

/* Empty cart */
.ai-cart-empty-state{
	text-align:center;padding:48px 20px 56px;background:var(--card);border:1px solid var(--border);border-radius:var(--r);max-width:520px;margin:0 auto
}
.ai-cart-empty-icon{color:var(--accent2);opacity:.85;margin-bottom:20px}
.ai-cart-empty-title{font-family:var(--font);font-size:1.35rem;font-weight:900;margin:0 0 12px;color:var(--t1)}
.ai-cart-empty-text{color:var(--t2);font-size:.95rem;margin:0 0 28px;line-height:1.75}
.ai-cart-empty-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.ai-cart-empty-actions .button{
	min-height:48px;padding:12px 24px!important;border-radius:50px!important;font-family:var(--font)!important;font-weight:800!important;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center
}
.ai-cart-btn-primary{
	background:var(--grad)!important;color:#fff!important;border:none!important
}
.ai-cart-btn-secondary{
	background:var(--card2)!important;border:1px solid var(--border2)!important;color:var(--t1)!important
}
.ai-cart-btn-secondary:hover{border-color:var(--accent2)!important;color:var(--accent2)!important}
