/* =====================================================================
   Tangsirkala Core — سبد خرید، پرداخت و حساب کاربری
   همهٔ قاعده‌ها با body.tkc-shop شروع می‌شوند تا فقط روی همین صفحه‌ها اثر بگذارند.
   رنگ‌های پایه از tkc-front.css (--tkc-yellow, --tkc-ink, ...) می‌آیند.
   «باکس» = همان سبک باکس منوی هدر: سفید، گوشهٔ ۱۵ پیکسل، سایهٔ خیلی ملایم.
   ===================================================================== */

/* ---------- متغیرهای این صفحه‌ها ---------- */
body.tkc-shop {
	--tkc-card: #FFFFFF;                           /* زمینهٔ باکس‌ها */
	--tkc-radius: 15px;                            /* گوشهٔ باکس‌ها (مثل منوی هدر) */
	--tkc-shadow: 0 3px 15px rgba(0, 0, 0, .04);   /* سایهٔ باکس‌ها (مثل منوی هدر) */
	--tkc-bd: #F1F1F1;                             /* حاشیهٔ خیلی روشن باکس‌ها */
	--tkc-field: #E3E6EA;                          /* حاشیهٔ فیلدها */
	--tkc-soft: #FFFBEA;                           /* زمینهٔ گزینهٔ انتخاب‌شده */
	--tkc-sub: #5B6470;                            /* متن کم‌رنگ (کنتراست کافی) */
	--tkc-sale: #D6123A;                           /* قرمز تخفیف */
	--tkc-pale: #F6F7F9;                           /* زمینهٔ روشن داخل باکس‌ها */
	background: #FFFFFF !important;                /* زمینهٔ صفحه سفید */
}

/* ---------- آیکون عنوان بخش‌های قالب: مربع با گوشهٔ گرد، زرد، آیکون مشکی، بدون سایهٔ آبی ---------- */
body.tkc-shop .mehrnoosh-h3-order-view { display: flex !important; align-items: center; gap: 10px; }
body.tkc-shop .mehrnoosh-h3-order-view > i {
	flex: 0 0 40px;
	width: 40px !important;
	height: 40px !important;
	display: grid !important;
	place-items: center;
	border-radius: 12px !important;
	background: var(--tkc-yellow) !important;
	color: var(--tkc-ink) !important;
	box-shadow: none !important;
	font-size: 18px !important;
	line-height: 1 !important;
}
body.tkc-shop .mehrnoosh-h3-order-view-title { color: var(--tkc-ink); font-size: 16px; font-weight: 900; }

/* ---------- نوار مراحل خرید ---------- */
.tkc-steps { margin: 0 0 16px; padding: 14px 18px; border: 1px solid var(--tkc-bd); border-radius: var(--tkc-radius); background: var(--tkc-card); box-shadow: var(--tkc-shadow); }
.tkc-steps ol { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tkc-steps__item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tkc-sub); white-space: nowrap; }
.tkc-steps__item + .tkc-steps__item::before { content: ""; flex: 1 1 24px; min-width: 16px; height: 3px; margin-inline-end: 2px; border-radius: 3px; background: #EEF0F3; } /* خط بین مرحله‌ها */
.tkc-steps__item:not(:first-child) { flex: 1 1 auto; }
.tkc-steps__item.is-current, .tkc-steps__item.is-done { color: var(--tkc-ink); }
.tkc-steps__item.is-current { font-weight: 800; }
.tkc-steps__item.is-current::before, .tkc-steps__item.is-done::before { background: var(--tkc-yellow); }
.tkc-steps__dot { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #EEF0F3; font-size: 12px; font-weight: 800; }
.tkc-steps__item.is-current .tkc-steps__dot { background: var(--tkc-yellow); color: var(--tkc-ink); }
.tkc-steps__item.is-done .tkc-steps__dot { background: var(--tkc-ink); color: var(--tkc-yellow); }

/* =====================================================================
   سبد خرید
   ===================================================================== */
/* خط عمودی تزئینی قالب کنار جمع سبد حذف */
body.tkc-shop .mehrnoosh-nav-cart-two-khat { display: none !important; }
/* فرم سبد قاب ندارد؛ هر کالا خودش باکس است */
body.tkc-shop .woocommerce-cart-form { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body.tkc-shop table.shop_table.cart { width: 100%; margin: 0 !important; border: 0 !important; background: none !important; border-collapse: collapse; }
body.tkc-shop table.shop_table.cart thead { display: none; }
body.tkc-shop table.shop_table.cart tbody { display: flex; flex-direction: column; gap: 12px; }
/* هر کالا: یک باکس جدا (شبکه: تصویر | نام و قیمت | تعداد | جمع | حذف) */
body.tkc-shop table.shop_table.cart tr.cart_item {
	display: grid !important;
	grid-template-columns: 96px minmax(0, 1fr) auto 150px 42px;
	grid-template-areas:
		"thumb name  qty sub remove"
		"thumb price qty sub remove";
	align-items: center;
	column-gap: 18px;
	row-gap: 6px;
	margin: 0 !important;
	padding: 16px !important;
	border: 1px solid var(--tkc-bd) !important;
	border-radius: var(--tkc-radius) !important;
	background: var(--tkc-card) !important;
	box-shadow: var(--tkc-shadow) !important;
}
body.tkc-shop table.shop_table.cart tr.cart_item td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: right !important; }
body.tkc-shop table.shop_table.cart tr.cart_item td::before { display: none !important; }   /* برچسب‌های «محصول:»، «قیمت:» حذف */
body.tkc-shop tr.cart_item td.product-thumbnail { grid-area: thumb; }
body.tkc-shop tr.cart_item td.product-name { grid-area: name; }
body.tkc-shop tr.cart_item td.product-price { grid-area: price; }
body.tkc-shop tr.cart_item td.product-quantity { grid-area: qty; }
body.tkc-shop tr.cart_item td.product-subtotal { grid-area: sub; text-align: left !important; }
/* دکمهٔ حذف: وسط ارتفاع ردیف، تراز با بقیه */
body.tkc-shop table.shop_table.cart tr.cart_item td.product-remove { grid-area: remove; align-self: center; justify-self: center; display: grid !important; place-items: center; }
/* تصویر کالا: گوشهٔ گرد */
body.tkc-shop tr.cart_item td.product-thumbnail a { display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border-radius: 16px; background: var(--tkc-pale); }
body.tkc-shop tr.cart_item td.product-thumbnail img { width: 84px !important; height: 84px !important; max-width: none; object-fit: contain; mix-blend-mode: multiply; border-radius: 12px !important; }
/* نام کالا: حداکثر دو خط */
body.tkc-shop tr.cart_item td.product-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--tkc-ink) !important; font-size: 14px; font-weight: 700; line-height: 1.8; text-decoration: none !important; }
body.tkc-shop tr.cart_item td.product-price { font-size: 13px; color: var(--tkc-sub); }
/* قیمت قبل، درصد و قیمت فعلی */
.tkc-price { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 8px; }
.tkc-price del { color: #8A9099; font-size: 12px; }
.tkc-off { padding: 1px 7px; border-radius: 999px; background: var(--tkc-sale); color: #FFFFFF; font-size: 11px; font-weight: 800; line-height: 1.6; }
body.tkc-shop tr.cart_item td.product-subtotal { font-size: 16px; font-weight: 900; color: var(--tkc-ink); white-space: nowrap; }
/* شمارندهٔ تعداد */
body.tkc-shop tr.cart_item .quantity { margin: 0 !important; }
body.tkc-shop tr.cart_item .button-plus-minus-mehrnooshj { display: inline-flex !important; align-items: center; gap: 2px; padding: 3px; border: 1px solid #EEF0F3 !important; border-radius: 12px !important; background: #FFFFFF !important; }
body.tkc-shop tr.cart_item .button-plus-minus-mehrnooshj button { width: 36px !important; height: 36px !important; min-height: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; background: var(--tkc-pale) !important; color: var(--tkc-ink) !important; font-size: 18px !important; line-height: 1 !important; box-shadow: none !important; }
body.tkc-shop tr.cart_item .button-plus-minus-mehrnooshj input.qty { width: 34px !important; height: 36px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-weight: 800; text-align: center; box-shadow: none !important; -moz-appearance: textfield; }
body.tkc-shop tr.cart_item .button-plus-minus-mehrnooshj input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
/* دکمهٔ حذف: سطل قرمز کم‌رنگ */
body.tkc-shop tr.cart_item a.remove {
	display: grid !important;
	place-items: center;
	width: 42px !important;
	height: 42px !important;
	margin: 0 !important;
	border-radius: 12px !important;
	background: #FDECEC !important;
	color: transparent !important;       /* علامت × متنی پنهان، آیکون جایش */
	font-size: 0 !important;
	line-height: 0 !important;
	box-shadow: none !important;         /* سایهٔ آبی قالب حذف */
}
body.tkc-shop tr.cart_item a.remove::after {
	content: "";
	width: 18px;
	height: 18px;
	background: var(--tkc-sale);
	/* آیکون سطل با ماسک SVG (رنگ از background) */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* باکس جدای کد تخفیف و به‌روزرسانی سبد */
body.tkc-shop .mehrnoosh-car-button-one-1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px !important; padding: 14px 16px !important; border: 1px solid var(--tkc-bd) !important; border-radius: var(--tkc-radius) !important; background: var(--tkc-card) !important; box-shadow: var(--tkc-shadow) !important; }
body.tkc-shop .mehrnoosh-car-button-one-1 .coupon { display: flex; flex: 1 1 280px; gap: 8px; margin: 0 !important; }
body.tkc-shop .mehrnoosh-car-button-one-1 #coupon_code { flex: 1 1 auto; height: 46px !important; padding: 0 14px !important; border: 1px dashed #D5D9DF !important; border-radius: 12px !important; background: #FAFBFC !important; font-size: 13px; }
body.tkc-shop .mehrnoosh-car-button-one-1 .button { height: 46px !important; padding: 0 18px !important; border: 0 !important; border-radius: 12px !important; background: var(--tkc-yellow) !important; color: var(--tkc-ink) !important; font-size: 13px !important; font-weight: 800 !important; box-shadow: none !important; }
body.tkc-shop .mehrnoosh-car-button-one-1 > .button { background: var(--tkc-pale) !important; }  /* «بروزرسانی سبد» ثانویه */

/* ---------- جمع سبد (ستون کناری) ---------- */
body.tkc-shop .mehrnoosh-nav-cart-two { background: none !important; box-shadow: none !important; padding: 0 !important; }
body.tkc-shop .cart-collaterals { display: flex; flex-direction: column; gap: 12px; }
body.tkc-shop .cart-collaterals > .mehrnoosh-h3-order-view { display: none !important; }   /* عنوان تکراری؛ عنوان داخل باکس هست */
body.tkc-shop .cart_totals { padding: 22px !important; border: 1px solid var(--tkc-bd) !important; border-radius: var(--tkc-radius) !important; background: var(--tkc-card) !important; box-shadow: var(--tkc-shadow) !important; }
body.tkc-shop .cart_totals > h2 { margin: 0 0 12px !important; color: var(--tkc-ink); font-size: 16px !important; font-weight: 900; }
body.tkc-shop .cart_totals table.shop_table { width: 100%; margin: 0 0 12px !important; border: 0 !important; background: none !important; }
body.tkc-shop .cart_totals table.shop_table tr { display: flex !important; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0 !important; border: 0 !important; background: none !important; }
body.tkc-shop .cart_totals table.shop_table th,
body.tkc-shop .cart_totals table.shop_table td { padding: 0 !important; border: 0 !important; background: none !important; font-size: 14px; }
/* عنوان ردیف‌ها همیشه دیده شود (ووکامرس در موبایل پنهانش می‌کند) */
body.tkc-shop .cart_totals table.shop_table th { display: block !important; color: var(--tkc-sub); font-weight: 500; }
body.tkc-shop .cart_totals table.shop_table td::before { display: none !important; }
/* بخش مرسوله در سبد نمایش داده نمی‌شود (ارسال فقط در صفحهٔ پرداخت) */
body.tkc-shop .cart_totals tr.shipping, body.tkc-shop .cart_totals .woocommerce-shipping-calculator { display: none !important; }
body.tkc-shop .cart_totals tr.tkc-savings th, body.tkc-shop .cart_totals tr.tkc-savings td { color: var(--tkc-sale) !important; font-weight: 700; white-space: nowrap; }
body.tkc-shop .cart_totals tr.order-total { margin-top: 6px; padding-top: 14px !important; border-top: 1px solid #F1F1F1 !important; }
body.tkc-shop .cart_totals tr.order-total th, body.tkc-shop .cart_totals tr.order-total td { color: var(--tkc-ink); font-size: 17px; font-weight: 900; }
body.tkc-shop .wc-proceed-to-checkout { padding: 0 !important; }
body.tkc-shop .wc-proceed-to-checkout .checkout-button { display: grid !important; place-items: center; width: 100%; height: 54px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 16px !important; background: var(--tkc-yellow) !important; color: var(--tkc-ink) !important; font-size: 16px !important; font-weight: 900 !important; box-shadow: none !important; }
body.tkc-shop .wc-proceed-to-checkout .checkout-button:hover { background: var(--tkc-yellow-2) !important; }
/* باکس رنگی: ارسال در صفحهٔ پرداخت */
.tkc-ship-note { display: flex; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: var(--tkc-radius); background: #EAF3FF; color: #0B4A8F; font-size: 13px; line-height: 1.9; }
.tkc-ship-note .tkc-i { flex: none; margin-top: 2px; }
.tkc-ship-note b { font-weight: 800; }

/* =====================================================================
   پرداخت
   ===================================================================== */
/* دکمه‌های «برگشت به سبد خرید» و «کد تخفیف»: زرد، متن مشکی، بدون سایهٔ آبی */
body.tkc-shop a.mehrnoosh-back-to-cart,
body.tkc-shop #showcouponmehrnoosh {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 10px 16px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--tkc-yellow) !important;
	color: var(--tkc-ink) !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
body.tkc-shop a.mehrnoosh-back-to-cart i, body.tkc-shop #showcouponmehrnoosh i { color: var(--tkc-ink) !important; }
/* باکس کد تخفیف (زیر باکس ثبت سفارش؛ جابه‌جایی با tkc-shop.js) */
body.tkc-shop .woocommerce-form-coupon-togglesrtertert { margin: 12px 0 0 !important; padding: 16px !important; border: 1px dashed #D5D9DF !important; border-radius: var(--tkc-radius) !important; background: var(--tkc-card) !important; }
/* قالب این ردیف را شناور (float) کرده بود و باکس خالی می‌ماند؛ شناور حذف و عرض کامل */
body.tkc-shop .woocommerce-form-coupon-togglesrtertert .woocommerce-info { float: none !important; width: 100% !important; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--tkc-ink) !important; font-size: 14px; font-weight: 800; box-shadow: none !important; }
body.tkc-shop .woocommerce-form-coupon-togglesrtertert #showcouponmehrnoosh { padding: 9px 14px !important; font-size: 13px !important; }
body.tkc-shop .woocommerce-form-coupon-togglesrtertert .woocommerce-info::before { display: none !important; }
/* قاب سفید دور ستون فرم (قالب) حذف تا باکس‌ها با بقیهٔ صفحه هم‌تراز باشند و قاب تودرتو نشود */
body.tkc-shop .checkout-mehrnoosh-12 { padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
/* بخش‌های فرم: هر کدام یک باکس */
body.tkc-shop .woocommerce-billing-fields,
body.tkc-shop .woocommerce-additional-fields { padding: 20px !important; border: 1px solid var(--tkc-bd) !important; border-radius: var(--tkc-radius) !important; background: var(--tkc-card) !important; box-shadow: var(--tkc-shadow) !important; }
body.tkc-shop .woocommerce-additional-fields { margin-top: 12px; }
body.tkc-shop form.checkout .form-row label { color: var(--tkc-sub); font-size: 12.5px; }
body.tkc-shop form.checkout .form-row .input-text,
body.tkc-shop form.checkout .form-row select,
body.tkc-shop form.checkout .select2-container .select2-selection { min-height: 46px; border: 1px solid var(--tkc-field) !important; border-radius: 12px !important; background: #FFFFFF !important; font-size: 14px; box-shadow: none !important; }
body.tkc-shop form.checkout .form-row .input-text:focus,
body.tkc-shop form.checkout .form-row select:focus { border-color: var(--tkc-yellow-2) !important; outline: none; }
body.tkc-shop form.checkout textarea.input-text { min-height: 84px; padding-top: 10px !important; }
/* ستون کناری: قاب‌های تودرتوی قالب حذف؛ هر بخش باکس جدا */
body.tkc-shop .mehrnoosh-checkout-left-nav-one,
body.tkc-shop #order_review,
body.tkc-shop .woocommerce-checkout-review-order-table,
body.tkc-shop .woocommerce-checkout-footer-12,
body.tkc-shop .woocommerce-checkout-footer-13 { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
body.tkc-shop #order_review { display: flex; flex-direction: column; gap: 12px; }
body.tkc-shop .woocommerce-checkout-review-order-table { display: flex; flex-direction: column; gap: 12px; }
/* باکس ۱: جزئیات سفارش (عنوان + فهرست کالاها) */
body.tkc-shop .woocommerce-checkout-review-order-table > .mehrnoosh-h3-order-view { padding: 16px 16px 8px !important; margin: 0 !important; border: 1px solid var(--tkc-bd); border-bottom: 0; border-radius: var(--tkc-radius) var(--tkc-radius) 0 0; background: var(--tkc-card); }
body.tkc-shop #order-checkout-mehrnoosh { margin-top: -12px !important; padding: 8px 16px 16px !important; border: 1px solid var(--tkc-bd); border-top: 0; border-radius: 0 0 var(--tkc-radius) var(--tkc-radius); background: var(--tkc-card); box-shadow: var(--tkc-shadow); display: flex; flex-direction: column; gap: 8px; }
body.tkc-shop #mehrnoosh-order-checkout-product { margin: 0 !important; padding: 8px !important; border-radius: 12px !important; background: var(--tkc-pale) !important; box-shadow: none !important; }
body.tkc-shop .mehrnoosh-order-checkout-product-product-thumbnail img { border-radius: 10px !important; }
/* جمع جزء و مجموع خود قالب پنهان؛ در باکس پایانی نمایش داده می‌شوند */
body.tkc-shop .woocommerce-checkout-footer-13 > .order-totalnew { display: none !important; }
/* باکس ۲: مرسوله */
body.tkc-shop .woocommerce-checkout-footer-14 { margin: 0 !important; padding: 16px !important; border: 1px solid var(--tkc-bd) !important; border-radius: var(--tkc-radius) !important; background: var(--tkc-card) !important; box-shadow: var(--tkc-shadow) !important; color: var(--tkc-ink); font-size: 16px; font-weight: 900; }
/* باکس ۳: روش پرداخت (عنوان با ::before) */
body.tkc-shop #payment { margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; display: flex; flex-direction: column; gap: 12px; }
body.tkc-shop #payment ul.payment_methods { display: grid; gap: 10px; margin: 0 !important; padding: 16px !important; border: 1px solid var(--tkc-bd) !important; border-radius: var(--tkc-radius) !important; background: var(--tkc-card) !important; box-shadow: var(--tkc-shadow) !important; list-style: none; }
body.tkc-shop #payment ul.payment_methods::before { content: "روش پرداخت"; display: block; margin-bottom: 2px; color: var(--tkc-ink); font-size: 16px; font-weight: 900; }
body.tkc-shop #payment ul.payment_methods > li { margin: 0 !important; padding: 12px 14px !important; border: 1px solid var(--tkc-field); border-radius: 14px; background: #FFFFFF; }
body.tkc-shop #payment ul.payment_methods > li:has(> input:checked) { border: 2px solid var(--tkc-yellow-2); background: var(--tkc-soft); padding: 11px 13px !important; }
body.tkc-shop #payment ul.payment_methods > li > input { width: 18px; height: 18px; margin: 0 0 0 8px !important; vertical-align: middle; accent-color: var(--tkc-ink); }
body.tkc-shop #payment ul.payment_methods > li > label { font-size: 14px; font-weight: 800; cursor: pointer; }
body.tkc-shop #payment .payment_box { margin: 8px 0 0 !important; padding: 0 !important; background: none !important; color: var(--tkc-sub); font-size: 12px; }
body.tkc-shop #payment .payment_box::before { display: none !important; }
/* باکس ۴ (پایانی): جمع‌ها + سود + قوانین + دکمهٔ ثبت سفارش */
/* ترتیب داخل باکس: جمع‌ها و سود ← قوانین ← دکمه (جمع‌ها با order بالا می‌آیند) */
body.tkc-shop #payment .place-order { display: flex; flex-direction: column; margin: 0 !important; padding: 18px !important; border: 2px solid var(--tkc-ink) !important; border-radius: var(--tkc-radius) !important; background: var(--tkc-card) !important; }
body.tkc-shop #payment .place-order > .tkc-final { order: -1; }
.tkc-final { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #F1F1F1; font-size: 14px; }
.tkc-final__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tkc-final__row > span:first-child { color: var(--tkc-sub); }
.tkc-final__row.is-save, .tkc-final__row.is-save > span:first-child { color: var(--tkc-sale); font-weight: 700; }
.tkc-final__row.is-total { padding-top: 8px; color: var(--tkc-ink); font-size: 17px; font-weight: 900; }
.tkc-final__row.is-total > span:first-child { color: var(--tkc-ink); }
body.tkc-shop #payment #place_order { width: 100%; height: 56px; margin: 12px 0 0 !important; border: 0 !important; border-radius: 16px !important; background: var(--tkc-yellow) !important; color: var(--tkc-ink) !important; font-size: 16px !important; font-weight: 900 !important; box-shadow: none !important; }
body.tkc-shop #payment #place_order:hover { background: var(--tkc-yellow-2) !important; }
body.tkc-shop .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--tkc-sub); line-height: 1.9; }

/* ---------- روش‌های ارسال به صورت کارت ---------- */
body.tkc-shop ul#shipping_method { display: grid; gap: 10px; margin: 12px 0 0 !important; padding: 0 !important; list-style: none; font-size: 14px; font-weight: 400; }
body.tkc-shop ul#shipping_method > li { position: relative; display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 !important; padding: 12px 14px !important; border: 1px solid var(--tkc-field); border-radius: 14px; background: #FFFFFF; text-align: right; transition: border-color .2s ease, background-color .2s ease; }
body.tkc-shop ul#shipping_method > li:has(input:checked) { border: 2px solid var(--tkc-yellow-2); background: var(--tkc-soft); padding: 11px 13px !important; }
body.tkc-shop ul#shipping_method > li input.shipping_method { flex: none; width: 18px; height: 18px; margin: 0 !important; accent-color: var(--tkc-ink); }
body.tkc-shop ul#shipping_method > li label { flex: 1 1 auto; display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: 14px; cursor: pointer; }
.tkc-ship__name { font-weight: 800; color: var(--tkc-ink); }
.tkc-ship__cost { margin-inline-start: auto; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tkc-ship__tag { margin-inline-start: auto; padding: 3px 10px; border-radius: 999px; background: #E7F8EE; color: #0F7B3F; font-size: 12px; font-weight: 800; white-space: nowrap; }
body.tkc-shop .tk-pickup-choice { flex: 1 1 100%; margin: 4px 0 0; }
body.tkc-shop .woocommerce-shipping-destination { margin: 8px 0 0 !important; color: var(--tkc-sub); font-size: 12px; }

/* ---------- نوار ثابت پایین (فقط موبایل) ---------- */
.tkc-paybar { display: none; }

/* =====================================================================
   موبایل (تا ۷۶۷ پیکسل)
   ===================================================================== */
@media (max-width: 767px) {
	/* نوار پایین قالب روی سبد و پرداخت جایش را به نوار پرداخت می‌دهد */
	body.tkc-shop.woocommerce-cart .mehrnoosh-footer-box-easy,
	body.tkc-shop.woocommerce-checkout .mehrnoosh-footer-box-easy { display: none !important; }

	/* مراحل: جمع‌وجور؛ فقط عنوان مرحلهٔ فعلی */
	.tkc-steps { padding: 12px 14px; }
	.tkc-steps ol { gap: 6px; }
	.tkc-steps__item { gap: 5px; font-size: 11.5px; }
	.tkc-steps__dot { width: 24px; height: 24px; font-size: 11px; }
	.tkc-steps__item:not(.is-current) .tkc-steps__label { display: none; }

	/* قاب سفید دور فهرست کالاها (قالب) در موبایل حذف؛ هر کالا خودش باکس است و عرض کامل می‌گیرد */
	body.tkc-shop .mehrnoosh-cart-main { padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
	/* هر کالا: ردیف ۱ و ۲ = تصویر | نام و قیمت | حذف؛ ردیف ۳ = تعداد (زیر تصویر) و جمع (عرض باقی‌مانده) تا روی هم نیفتند */
	body.tkc-shop table.shop_table.cart tr.cart_item {
		grid-template-columns: minmax(76px, auto) minmax(0, 1fr) 36px;   /* ستون اول هم‌عرض شمارنده */
		grid-template-areas:
			"thumb name  remove"
			"thumb price price"
			"qty   sub   sub";
		column-gap: 10px;
		padding: 12px !important;
	}
	body.tkc-shop tr.cart_item td.product-thumbnail { justify-self: center; }
	body.tkc-shop tr.cart_item td.product-thumbnail a { width: 76px; height: 76px; border-radius: 14px; }
	body.tkc-shop tr.cart_item td.product-thumbnail img { width: 66px !important; height: 66px !important; }
	body.tkc-shop tr.cart_item td.product-name a { font-size: 13px; }
	body.tkc-shop tr.cart_item td.product-subtotal { font-size: 14px; align-self: center; }
	body.tkc-shop table.shop_table.cart tr.cart_item td.product-remove { align-self: start; }
	body.tkc-shop tr.cart_item a.remove { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
	body.tkc-shop tr.cart_item .button-plus-minus-mehrnooshj button { width: 30px !important; height: 30px !important; font-size: 16px !important; }
	body.tkc-shop tr.cart_item .button-plus-minus-mehrnooshj input.qty { width: 26px !important; height: 30px !important; }
	body.tkc-shop .mehrnoosh-car-button-one-1 .coupon { flex-basis: 100%; }
	body.tkc-shop .mehrnoosh-car-button-one-1 > .button { width: 100%; }
	body.tkc-shop .cart_totals { padding: 16px !important; }
	body.tkc-shop .woocommerce-billing-fields, body.tkc-shop .woocommerce-additional-fields { padding: 16px !important; }

	/* نوار ثابت پایین: جمع و دکمه */
	.tkc-paybar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 16px calc(14px + env(safe-area-inset-bottom));  /* فاصله از نوار خانهٔ آیفون */
		border-top: 1px solid #EEF0F3;
		border-radius: 22px 22px 0 0;
		background: #FFFFFF;
		box-shadow: 0 -10px 30px rgba(20, 29, 38, .08);
		direction: rtl;
		transition: transform .25s ease;
	}
	.tkc-paybar.is-hidden { transform: translateY(110%); }   /* دکمهٔ اصلی صفحه دیده می‌شود */
	.tkc-paybar__btn { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin: 0; padding: 0 12px; border: 0; border-radius: 16px; background: var(--tkc-yellow); color: var(--tkc-ink) !important; font: inherit; font-size: 15px; font-weight: 900; text-decoration: none !important; cursor: pointer; }
	.tkc-paybar__sum { display: flex; flex-direction: column; align-items: flex-end; }
	.tkc-paybar__label { color: var(--tkc-sub); font-size: 11px; }
	.tkc-paybar__total { color: var(--tkc-ink); font-size: 16px; font-weight: 900; white-space: nowrap; }
	.tkc-paybar__total .woocommerce-Price-currencySymbol { font-size: 11px; font-weight: 500; }
	body.tkc-shop.woocommerce-cart, body.tkc-shop.woocommerce-checkout { padding-bottom: 96px; }   /* نوار روی محتوا نیفتد */
}

/* =====================================================================
   داشبورد حساب کاربری (body.tkc-account-home)
   ===================================================================== */
/* متن خوش‌آمد ووکامرس و بلوک‌های داشبورد قالب جایشان را به داشبورد جدید می‌دهند */
body.tkc-account-home .woocommerce-MyAccount-content > p,
body.tkc-account-home .woocommerce-MyAccount-content > .user-account-main-one-box,
body.tkc-account-home .woocommerce-MyAccount-content > .box-asli-user { display: none !important; }
.tkc-acc { clear: both; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; direction: rtl; }
.tkc-acc__hero { display: flex; flex-direction: column; gap: 18px; padding: 22px 18px; border-radius: 24px; background: var(--tkc-ink); color: #FFFFFF; }
.tkc-acc__me { display: flex; align-items: center; gap: 12px; }
.tkc-acc__avatar { flex: 0 0 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--tkc-yellow); color: var(--tkc-ink); font-size: 22px; font-weight: 900; }
.tkc-acc__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tkc-acc__who b { font-size: 17px; }
.tkc-acc__who bdi { color: #C9CED6; font-size: 13px; text-align: right; }
.tkc-acc__edit { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #FFFFFF !important; }
.tkc-acc__wallet { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 210, 31, .12); color: #FFFFFF !important; text-decoration: none !important; font-size: 13px; }
.tkc-acc__wallet b { color: var(--tkc-yellow); font-size: 15px; }
.tkc-acc__wallet b .woocommerce-Price-amount { color: inherit; }
.tkc-acc__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tkc-acc__stat { padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .08); text-align: center; }
.tkc-acc__stat b { display: block; color: var(--tkc-yellow); font-size: 18px; }
.tkc-acc__stat span { color: #C9CED6; font-size: 11.5px; }
.tkc-acc__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tkc-acc__tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid #EEF0F3; border-radius: 18px; background: #FFFFFF; color: var(--tkc-ink) !important; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none !important; transition: border-color .2s ease; }
.tkc-acc__tile:hover { border-color: var(--tkc-yellow-2); }
.tkc-acc__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #FFF6D1; }
.tkc-acc__tile.is-logout { color: #B42318 !important; }
.tkc-acc__tile.is-logout .tkc-acc__ico { background: #FDECEC; }
.tkc-acc__last { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #EEF0F3; border-radius: 20px; background: #FFFFFF; font-size: 13px; }
.tkc-acc__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tkc-acc__row h2 { margin: 0 !important; font-size: 15px; font-weight: 800; }
.tkc-acc__row a { color: #8A5A00 !important; font-size: 12px; font-weight: 700; text-decoration: none !important; }
.tkc-acc__row span { color: var(--tkc-sub); }
.tkc-acc__progress { display: flex; gap: 6px; margin-top: 4px; }
.tkc-acc__progress span { flex: 1; height: 6px; border-radius: 6px; background: #EEF0F3; }
.tkc-acc__progress span.is-on { background: var(--tkc-yellow); }
.tkc-acc__steps { display: flex; justify-content: space-between; color: var(--tkc-sub); font-size: 11px; }
.tkc-acc__view { display: grid; place-items: center; height: 44px; margin-top: 4px; border-radius: 12px; background: var(--tkc-pale); color: var(--tkc-ink) !important; font-weight: 800; text-decoration: none !important; }
@media (min-width: 768px) {
	.tkc-acc__tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body.tkc-account-home .woocommerce-MyAccount-navigation { display: none !important; }
	body.tkc-shop.woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: 100% !important; margin-top: 16px !important; padding: 16px 12px !important; box-sizing: border-box; }
}
