/* ===================================================================
   صفحة السلة — تكييف ماركب WooCommerce مع تصميم shopping-cart.html
   (مملوك لوكيل السلة وإتمام الطلب)
=================================================================== */

/* تنبيهات WooCommerce */
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info {
	list-style: none;
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: 8px;
	background-color: var(--Surface);
	border-inline-start: 3px solid var(--main);
	font-size: 14px;
}
.woocommerce-cart .woocommerce-error {
	border-inline-start-color: #d9534f;
}
.woocommerce-cart .woocommerce-error a,
.woocommerce-cart .woocommerce-message a,
.woocommerce-cart .woocommerce-info a {
	text-decoration: underline;
	font-weight: 600;
}
.woocommerce-cart .woocommerce-notices-wrapper:empty {
	display: none;
}

/* صف الكوبون + زرار تحديث السلة */
.nestly-cart-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
	margin-top: 24px;
}
.nestly-cart-actions .ip-discount-code {
	flex: 1 1 320px;
	margin-top: 0;
}
.nestly-cart-actions .nestly-update-cart {
	white-space: nowrap;
}
.nestly-cart-actions .nestly-update-cart:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.nestly-cart-actions .coupon-error-notice {
	display: block;
	width: 100%;
	color: #d9534f;
	font-size: 13px;
	margin-top: 6px;
}

/* بيانات متغيرات المنتج داخل السلة */
.tf-cart-item .variant dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 4px 0 0;
}
.tf-cart-item .variant dl.variation dt,
.tf-cart-item .variant dl.variation dd {
	margin: 0;
}
.tf-cart-item .variant dl.variation dd p {
	margin: 0;
	display: inline;
}

/* زرار الحذف */
.tf-cart-item .remove-cart .remove {
	cursor: pointer;
	font-size: 16px;
	color: var(--main);
	display: inline-flex;
	padding: 6px;
}
.tf-cart-item .remove-cart .remove:hover {
	color: #d9534f;
}

/* جدول الشحن داخل ملخص الطلب (box-order) */
.box-order .ship {
	display: block;
}
.nestly-ship-table,
.nestly-ship-table tbody,
.nestly-ship-table tr,
.nestly-ship-table th,
.nestly-ship-table td {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	text-align: start;
}
.nestly-ship-table th {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}
.nestly-ship-table ul#shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.nestly-ship-table ul#shipping_method li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.nestly-ship-table ul#shipping_method li input {
	margin: 0;
	flex: none;
	accent-color: var(--main);
}
.nestly-ship-table ul#shipping_method li label {
	margin: 0;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	flex-grow: 1;
	cursor: pointer;
}
.nestly-ship-table .woocommerce-shipping-destination {
	font-size: 12px;
	color: var(--Secondary2);
	margin: 8px 0 0;
}

/* كوبون مُطبق داخل الملخص */
.box-order .cart-discount .woocommerce-remove-coupon {
	font-size: 12px;
	margin-inline-start: 6px;
	color: #d9534f;
}

/* السلة الفارغة */
.nestly-empty-cart {
	padding: 20px 0 10px;
}
.nestly-empty-cart_icon {
	font-size: 64px;
	display: inline-block;
	margin-bottom: 20px;
	color: var(--main);
}
.nestly-empty-cart_title {
	margin-bottom: 12px;
}
.nestly-empty-cart_text {
	margin-bottom: 24px;
}
.nestly-empty-cart .tf-btn {
	display: inline-flex;
}

@media (max-width: 575px) {
	.nestly-cart-actions .ip-discount-code {
		flex-basis: 100%;
	}
	.nestly-cart-actions .nestly-update-cart {
		width: 100%;
		justify-content: center;
	}
}

/* ===================================================================
   ترقية تصميم صفحة السلة — صفوف أوضح + كروت موبايل + ملخص sticky
=================================================================== */

/* صورة المنتج أكبر وبزوايا دائرية */
.nestly-cart-section .tf-cart-item .tf-cart-item_product .img-box {
	width: 132px;
	height: 132px;
	border-radius: 14px;
	background-color: var(--Surface);
}
.nestly-cart-section .tf-cart-item .tf-cart-item_product .img-box img {
	border-radius: 14px;
	transition: transform 0.35s ease;
}
.nestly-cart-section .tf-cart-item .tf-cart-item_product a.img-box:hover img {
	transform: scale(1.05);
}

/* اسم المنتج Bold */
.nestly-cart-section .tf-cart-item .cart-title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.5;
	color: var(--main);
}

/* السعر والإجمالي بلون الهوية */
.nestly-cart-section .tf-cart-item .cart-price,
.nestly-cart-section .tf-cart-item .cart-total {
	color: var(--main);
	font-weight: 600;
}
.nestly-cart-section .tf-cart-item .cart-total {
	font-weight: 700;
	font-size: 16px;
}

/* زرار الحذف — أيقونة سلة مهملات أنيقة */
.nestly-cart-section .tf-cart-item .remove-cart .nestly-remove-btn {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 99px;
	border: 1px solid var(--line);
	background-color: var(--White);
	color: var(--Secondary);
	cursor: pointer;
	transition: all 0.25s ease;
}
.nestly-cart-section .tf-cart-item .remove-cart .nestly-remove-btn:hover {
	border-color: var(--Critical);
	background-color: var(--Critical);
	color: var(--White);
}
.nestly-cart-section .tf-cart-item .remove-cart .nestly-trash-icon {
	display: block;
}

/* رأس الجدول بخلفية خفيفة (ديسكتوب) */
@media (min-width: 768px) {
	.nestly-cart-section .tf-table-page-cart thead tr {
		background-color: var(--Surface);
	}
	.nestly-cart-section .tf-table-page-cart th {
		padding-top: 14px;
		padding-bottom: 14px;
		font-weight: 600;
		color: var(--main);
	}
	.nestly-cart-section .tf-table-page-cart th:first-child {
		padding-inline-start: 16px;
		border-start-start-radius: 12px;
		border-end-start-radius: 12px;
	}
	.nestly-cart-section .tf-table-page-cart th:last-child {
		padding-inline-end: 16px;
		border-start-end-radius: 12px;
		border-end-end-radius: 12px;
	}
}

/* ملخص الطلب sticky على الديسكتوب */
@media (min-width: 1200px) {
	.nestly-cart-section .fl-sidebar-cart {
		position: sticky;
		top: 110px;
	}
}

/* الموبايل: كل صف منتج = كارت مرتب */
@media (max-width: 767px) {
	.nestly-cart-section .tf-table-page-cart,
	.nestly-cart-section .tf-table-page-cart tbody {
		display: block;
		width: 100%;
	}
	.nestly-cart-section .tf-table-page-cart .tf-cart-item {
		border: 1px solid var(--line);
		border-radius: 14px;
		padding: 16px 16px 16px 16px;
		padding-inline-start: 142px;
		background-color: var(--White);
		box-shadow: 0 2px 10px rgba(40, 43, 87, 0.04);
		min-height: 150px;
	}
	.nestly-cart-section .tf-table-page-cart .tf-cart-item:not(:last-child) {
		margin-bottom: 16px;
	}
	.nestly-cart-section .tf-cart-item .tf-cart-item_product .img-box {
		width: 110px;
		height: 110px;
		top: 16px;
		inset-inline-start: 16px;
		border-radius: 12px;
	}
	.nestly-cart-section .tf-table-page-cart .tf-cart-item td {
		padding: 9px 0;
	}
	.nestly-cart-section .tf-table-page-cart .tf-cart-item td:first-child {
		padding-top: 0;
	}
	.nestly-cart-section .tf-table-page-cart .tf-cart-item td[data-cart-title]:before {
		font-size: 13px;
		font-weight: 500;
		color: var(--Secondary);
	}
	.nestly-cart-section .tf-cart-item .remove-cart {
		justify-content: space-between;
	}
	.nestly-cart-section .tf-cart-item .wg-quantity {
		width: 104px;
		height: 36px;
	}
	.nestly-cart-section .tf-cart-item .wg-quantity input {
		height: 34px;
		width: 32px;
	}
	.nestly-cart-section .tf-cart-item .wg-quantity .btn-quantity {
		width: 34px;
		height: 32px;
		font-size: 22px;
	}
}

/* السلة الفاضية — زرارين جنب بعض */
.nestly-empty-cart_actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.nestly-empty-cart_actions .tf-btn {
	display: inline-flex;
}
.nestly-empty-cart_icon {
	width: 110px;
	height: 110px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--Surface);
	font-size: 48px;
}
