/* Sheyde Cart Fix 1.0.0: cart page only (enqueued on is_cart()). Matches category/product pages:
   bg #0a0a0c, cards #16161a / border #2a2a32 / radius 16px, cyan #2fd6d2 buttons, white text + links. */

body.woocommerce-cart {
	--scf-bg: #0a0a0c;
	--scf-card: #16161a;
	--scf-line: #2a2a32;
	--scf-text: #f5f5f7;
	--scf-muted: #9a9aa3;
	--scf-accent: #2fd6d2;
	--scf-accent-ink: #061416;
	--scf-danger: #ff5c6c;
	--scf-radius: 16px;
}

/* ---------- shell, font, direction ---------- */
body.woocommerce-cart,
body.woocommerce-cart .ct-container-full,
body.woocommerce-cart article.page {
	background: var(--scf-bg) !important;
	color: var(--scf-text) !important;
}
body.woocommerce-cart .entry-content,
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .woocommerce input,
body.woocommerce-cart .woocommerce button,
body.woocommerce-cart .woocommerce select,
body.woocommerce-cart .woocommerce textarea,
body.woocommerce-cart .woocommerce table,
body.woocommerce-cart .woocommerce .button,
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wp-block-woocommerce-cart input,
body.woocommerce-cart .wp-block-woocommerce-cart button {
	font-family: 'Filimo Variable', Tahoma, 'Segoe UI', sans-serif !important;
}
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .ct-woocommerce-cart-form,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .wp-block-woocommerce-cart {
	direction: rtl !important;
	text-align: right !important;
}
body.woocommerce-cart .hero-section .page-title,
body.woocommerce-cart .entry-header .page-title {
	color: #ffffff !important;
	text-align: right !important;
	font-weight: 800 !important;
}
body.woocommerce-cart .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce-Price-amount bdi {
	color: #ffffff !important;
	direction: rtl;
	unicode-bidi: isolate;
	white-space: nowrap;
}

/* ---------- notices (were white boxes with white text) ---------- */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .cart-empty {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 20px !important;
	padding: 14px 18px !important;
	background: var(--scf-card) !important;
	border: 1px solid var(--scf-line) !important;
	border-inline-start: 3px solid var(--scf-accent) !important;
	border-radius: 12px !important;
	color: var(--scf-text) !important;
	-webkit-text-fill-color: var(--scf-text) !important;
	text-align: right !important;
	list-style: none !important;
	box-shadow: none !important;
}
body.woocommerce-cart .woocommerce-error {
	border-inline-start-color: var(--scf-danger) !important;
}
body.woocommerce-cart .woocommerce-error li {
	margin: 0 !important;
	color: var(--scf-text) !important;
}
body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before {
	color: var(--scf-accent) !important;
	position: static !important;
}
body.woocommerce-cart .woocommerce-message .button,
body.woocommerce-cart .woocommerce-info .button {
	order: 2;
	margin: 0 !important;
	float: none !important;
}

/* ---------- buttons (same cyan as product/category pages) ---------- */
body.woocommerce-cart .woocommerce .button,
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-block-components-button:not(.is-link) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px !important;
	background: var(--scf-accent) !important;
	color: var(--scf-accent-ink) !important;
	-webkit-text-fill-color: var(--scf-accent-ink) !important;
	border: 0 !important;
	border-radius: 12px !important;
	font-weight: 800 !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: filter .15s ease;
}
body.woocommerce-cart .woocommerce .button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .wc-block-components-button:not(.is-link):hover {
	filter: brightness(1.08);
}
body.woocommerce-cart .woocommerce button.button:disabled,
body.woocommerce-cart .woocommerce button.button[disabled] {
	opacity: .45 !important;
	cursor: not-allowed;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	width: 100% !important;
	min-height: 50px;
	font-size: 16px !important;
	margin: 0 !important;
}

/* ---------- cart table as a card ---------- */
body.woocommerce-cart .woocommerce-cart-form {
	background: var(--scf-card) !important;
	border: 1px solid var(--scf-line) !important;
	border-radius: var(--scf-radius) !important;
	padding: 6px 18px !important;
	box-sizing: border-box;
}
body.woocommerce-cart table.shop_table.cart {
	width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	border-collapse: collapse !important;
}
body.woocommerce-cart table.shop_table.cart th,
body.woocommerce-cart table.shop_table.cart td {
	background: transparent !important;
	color: var(--scf-text) !important;
	border-color: var(--scf-line) !important;
	text-align: right !important;
	vertical-align: middle !important;
}
body.woocommerce-cart table.shop_table.cart thead th {
	color: var(--scf-muted) !important;
	font-weight: 700 !important;
	font-size: 13px !important;
}
body.woocommerce-cart table.shop_table.cart th.product-quantity,
body.woocommerce-cart table.shop_table.cart td.product-quantity {
	text-align: center !important;
}
body.woocommerce-cart table.shop_table.cart th.product-subtotal,
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
	text-align: left !important; /* inline end in RTL */
}
body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
	border-radius: 10px !important;
}
body.woocommerce-cart table.shop_table.cart .product-name a,
body.woocommerce-cart table.shop_table a:not(.button):not(.remove),
body.woocommerce-cart .cart_totals a:not(.button) {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}
body.woocommerce-cart table.shop_table.cart .product-name a:hover,
body.woocommerce-cart table.shop_table a:not(.button):not(.remove):hover {
	color: var(--scf-accent) !important;
	-webkit-text-fill-color: var(--scf-accent) !important;
}
body.woocommerce-cart table.shop_table.cart .product-name .price {
	color: var(--scf-muted) !important;
	margin-top: 4px !important;
}
body.woocommerce-cart table.shop_table .remove,
body.woocommerce-cart table.shop_table .remove svg {
	color: var(--scf-muted) !important;
	fill: currentColor !important;
	background: transparent !important;
}
body.woocommerce-cart table.shop_table .remove:hover,
body.woocommerce-cart table.shop_table .remove:hover svg {
	color: var(--scf-danger) !important;
}

/* actions row: coupon on the right (start), update button on the left (end) */
body.woocommerce-cart table.shop_table.cart td.actions {
	padding: 16px 0 !important;
	border-bottom: 0 !important;
}
body.woocommerce-cart table.shop_table.cart td.actions .coupon {
	display: inline-flex !important;
	gap: 8px;
	align-items: center;
	float: right !important;
	direction: rtl;
}
body.woocommerce-cart table.shop_table.cart td.actions > button[name="update_cart"] {
	float: left !important;
}
body.woocommerce-cart .woocommerce input.input-text,
body.woocommerce-cart .woocommerce input#coupon_code,
body.woocommerce-cart .quantity .qty,
body.woocommerce-cart input.qty,
body.woocommerce-cart .wc-block-components-text-input input {
	min-height: 44px;
	padding: 0 14px !important;
	background: var(--scf-bg) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	border: 1px solid var(--scf-line) !important;
	border-radius: 12px !important;
	text-align: right !important;
	direction: rtl;
	box-shadow: none !important;
}
body.woocommerce-cart .woocommerce input::placeholder {
	color: var(--scf-muted) !important;
	-webkit-text-fill-color: var(--scf-muted) !important;
}
body.woocommerce-cart .woocommerce input:focus {
	border-color: var(--scf-accent) !important;
	outline: none !important;
}

/* ---------- totals card ---------- */
body.woocommerce-cart .cart_totals {
	background: var(--scf-card) !important;
	border: 1px solid var(--scf-line) !important;
	border-radius: var(--scf-radius) !important;
	padding: 20px !important;
	box-sizing: border-box;
}
body.woocommerce-cart .cart_totals h2 {
	margin: 0 0 12px !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	background: transparent !important;
	text-align: right !important;
}
body.woocommerce-cart .cart_totals table.shop_table {
	width: 100% !important;
	margin: 0 0 16px !important;
	border: 0 !important;
	background: transparent !important;
}
body.woocommerce-cart .cart_totals table.shop_table tr,
body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
	background: transparent !important;
	color: var(--scf-text) !important;
	border-color: var(--scf-line) !important;
}
body.woocommerce-cart .cart_totals table.shop_table th {
	text-align: right !important;
	color: var(--scf-muted) !important;
	font-weight: 700 !important;
}
body.woocommerce-cart .cart_totals table.shop_table td {
	text-align: left !important; /* amounts at inline end */
}
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-cart .cart_totals .order-total .woocommerce-Price-amount {
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 800 !important;
}

/* ---------- empty cart ---------- */
body.woocommerce-cart .return-to-shop {
	text-align: right !important;
	margin: 0 !important;
}

/* ---------- mobile ---------- */
@media (max-width: 768px) {
	body.woocommerce-cart .woocommerce-cart-form {
		padding: 4px 12px !important;
	}
	body.woocommerce-cart table.shop_table.cart td.actions .coupon,
	body.woocommerce-cart table.shop_table.cart td.actions > button[name="update_cart"] {
		float: none !important;
		display: flex !important;
		width: 100% !important;
	}
	body.woocommerce-cart table.shop_table.cart td.actions .coupon {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 8px;
	}
	body.woocommerce-cart table.shop_table.cart td.actions .coupon input,
	body.woocommerce-cart table.shop_table.cart td.actions .coupon .button {
		width: 100% !important;
	}
	body.woocommerce-cart .product-mobile-actions {
		display: flex !important;
		align-items: center;
		gap: 6px;
		color: var(--scf-text) !important;
	}
	body.woocommerce-cart .product-mobile-actions .remove {
		margin-inline-start: auto !important;
	}
	/* totals: label right, amount left, with space between (was "جمع جزء:6,893,303") */
	body.woocommerce-cart .cart_totals table.shop_table_responsive tr {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid var(--scf-line);
	}
	body.woocommerce-cart .cart_totals table.shop_table_responsive tr th {
		display: none !important;
	}
	body.woocommerce-cart .cart_totals table.shop_table_responsive tr td {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		width: 100% !important;
		padding: 12px 0 !important;
		border: 0 !important;
		text-align: left !important;
	}
	body.woocommerce-cart .cart_totals table.shop_table_responsive tr td::before {
		content: attr(data-title) !important;
		float: none !important;
		order: -1;
		color: var(--scf-muted) !important;
		font-weight: 700 !important;
	}
	body.woocommerce-cart .cart_totals {
		margin-top: 18px !important;
		padding: 16px !important;
	}
}

/* ---------- Cart block (WooCommerce Blocks), if the page is ever switched to it ---------- */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar {
	background: var(--scf-card) !important;
	border: 1px solid var(--scf-line) !important;
	border-radius: var(--scf-radius) !important;
	padding: 16px !important;
	color: var(--scf-text) !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-item,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items th,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items td,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-metadata {
	color: var(--scf-text) !important;
	border-color: var(--scf-line) !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart a:not(.wc-block-components-button),
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-name {
	color: #ffffff !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
	background: var(--scf-bg) !important;
	border-color: var(--scf-line) !important;
	color: #ffffff !important;
	direction: ltr;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector input,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector button {
	color: #ffffff !important;
	background: transparent !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: #ffffff !important;
	font-weight: 800 !important;
}
