/* ==========================================================================
   مس فروشان — صفحه‌های غیرلندینگ در پوسته مستقل (بدون وودمارت)
   سربرگ/پابرگ/نوار پایین از landings/_shared/base.css می‌آیند؛ این فایل محتوای صفحه‌ها را
   (برگه، وبلاگ، فروشگاه، دسته، محصول، سبد، تسویه، حساب کاربری) هم‌شکل صفحه اصلی می‌کند.
   موبایل‌اول؛ همه رنگ‌ها از توکن‌های base.css.
   ========================================================================== */

main.mfs-main { display: block; min-height: 50vh; }
.mfs-body { padding-block: 20px 48px; }
.mfs-narrow { max-width: 860px; }
.mfs-el { width: 100%; }

/* ---------- سربرگ صفحه ---------- */
.mfs-head { position: relative; padding: 18px 0 14px; background: var(--g-mist), var(--bg); border-bottom: 1px solid var(--line); }
.mfs-head::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--g-line); opacity: .55; }
.mfs-head__t { margin: 4px 0 0; font-size: clamp(1.3rem, 4.4vw, 2rem); line-height: 1.5; }
.mfs-head__d { margin-top: 6px; color: var(--mute); max-width: 70ch; }
.mfs-head__d p:last-child { margin-bottom: 0; }
.mfs-head--post { padding-bottom: 20px; }
.mfs-meta { margin: 6px 0 0; color: var(--mute); font-size: 13px; }
.mfs-crumbs, .mfs-crumbs .rank-math-breadcrumb p { margin: 0; color: var(--mute); font-size: 12.5px; line-height: 2; }
.mfs-crumbs a { color: var(--mute); }
.mfs-crumbs a:hover { color: var(--cu); }
.mfs-crumbs .separator, .mfs-crumbs span[aria-hidden] { margin-inline: 6px; opacity: .6; }
.mfs-product > .mfs-crumbs { margin-bottom: 12px; }

/* ---------- محتوای متنی ---------- */
.mfs-content { color: var(--body); font-size: 15.5px; line-height: 2.05; overflow-wrap: anywhere; }
.mfs-content > *:first-child { margin-top: 0; }
.mfs-content h2 { margin: 1.6em 0 .55em; font-size: clamp(1.2rem, 3.4vw, 1.5rem); }
.mfs-content h3 { margin: 1.4em 0 .5em; font-size: clamp(1.05rem, 3vw, 1.25rem); }
.mfs-content h4 { margin: 1.2em 0 .4em; font-size: 1.05rem; color: var(--ink); }
.mfs-content :is(ul, ol) { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
.mfs-content li { margin-bottom: .35em; }
.mfs-content li::marker { color: var(--cu); }
.mfs-content a { color: var(--tq-d); text-decoration: underline; text-decoration-color: rgba(10,143,150,.35); text-underline-offset: 4px; }
.mfs-content a:hover { color: var(--cu); }
.mfs-content img { border-radius: var(--r-s); }
.mfs-content :is(figure, .wp-caption) { margin: 1.2em 0; max-width: 100%; }
.mfs-content figcaption, .mfs-content .wp-caption-text { color: var(--mute); font-size: 13px; text-align: center; }
.mfs-content blockquote { margin: 1.3em 0; padding: 14px 18px; border-inline-start: 4px solid var(--cu); border-radius: var(--r-s); background: var(--cu-t); color: var(--ink); }
.mfs-content hr { border: 0; height: 1px; margin: 2em 0; background: var(--line); }
.mfs-content :is(.alignleft, .alignright) { max-width: 50%; margin-bottom: 1em; }
.mfs-content .alignleft { float: left; margin-right: 1em; }
.mfs-content .alignright { float: right; margin-left: 1em; }
.mfs-content .aligncenter { margin-inline: auto; }
.mfs-tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--r-s); }
.mfs-content table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.mfs-tscroll table { margin: 0; min-width: 520px; }
.mfs-content :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.mfs-content th { background: var(--bg); color: var(--ink); font-weight: 700; }
.mfs-content tr:last-child td { border-bottom: 0; }
.mfs-content iframe, .mfs-content video { max-width: 100%; border-radius: var(--r-s); }
.mfs-cover { margin: 18px auto 6px; }
.mfs-cover img { width: 100%; border-radius: var(--r); }

/* ---------- دکمه‌های عمومی ---------- */
.mfs .button, .mfs button.button, .mfs a.button, .mfs input.button, .mfs input[type="submit"], .mfs .wp-block-button__link, .mfs .woocommerce-button,
.mfs #place_order, .mfs .checkout-button, .mfs .single_add_to_cart_button, .mfs .woocommerce-form-login__submit, .mfs .woocommerce-form-register__submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px;
	border: 1.5px solid transparent; border-radius: 12px; background: var(--g-cu); background-size: 140% 100%; color: #fff;
	font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer;
	transition: background-position .35s, box-shadow .25s, transform .15s; -webkit-appearance: none; appearance: none;
}
.mfs .button:hover, .mfs input[type="submit"]:hover, .mfs #place_order:hover, .mfs .checkout-button:hover, .mfs .single_add_to_cart_button:hover {
	background: var(--g-cu); background-size: 140% 100%; background-position: 100% 0; color: #fff; box-shadow: 0 10px 22px -12px rgba(127,58,15,.7);
}
.mfs .button:active { transform: scale(.97); }
.mfs .button.alt, .mfs .checkout-button, .mfs #place_order { background: var(--g-tq); }
.mfs .button.alt:hover, .mfs .checkout-button:hover, .mfs #place_order:hover { background: var(--g-tq); box-shadow: 0 10px 22px -12px rgba(6,107,112,.7); }
.mfs .button:disabled, .mfs .button.disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.mfs .button.wc-backward, .mfs .woocommerce-button--previous, .mfs button[name="update_cart"] { background: #fff; border-color: var(--cu); color: var(--cu-d); }
.mfs button[name="update_cart"]:hover, .mfs .button.wc-backward:hover { background: var(--cu); color: #fff; }

/* ---------- فرم‌ها ---------- */
.mfs :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], input[type="date"], select, textarea, .input-text) {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
	color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6; transition: border-color .2s, box-shadow .2s;
}
.mfs textarea { min-height: 110px; }
.mfs :is(input, select, textarea):focus { outline: 0; border-color: var(--tq); box-shadow: 0 0 0 3px rgba(10,143,150,.16); }
.mfs input[type="checkbox"], .mfs input[type="radio"] { width: 18px; height: 18px; accent-color: var(--cu); vertical-align: middle; }
.mfs label { color: var(--ink); font-size: 14px; font-weight: 600; }
.mfs .required { color: #b3261e; text-decoration: none; border: 0; }
.mfs .woocommerce form .form-row, .mfs form .form-row { margin: 0 0 12px; padding: 0; }
.mfs .form-row label { display: block; margin-bottom: 4px; line-height: 1.8; }
.mfs .form-row .woocommerce-input-wrapper { display: block; }
.mfs .select2-container .select2-selection--single { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; }
.mfs .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-inline: 12px 28px; }
.mfs .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
.mfs-search { display: flex; gap: 8px; max-width: 560px; }
.mfs-search input { flex: 1; }
.mfs-search .mlp-btn { flex: 0 0 auto; min-height: 46px; }
.mfs-searchbar { margin-bottom: 18px; }

/* ---------- پیام‌ها ---------- */
.mfs :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, .wc-block-components-notice-banner) {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 12px 16px;
	border: 1px solid var(--pt-t); border-inline-start: 4px solid var(--pt); border-radius: 12px; background: #f3faf6; color: var(--pt-d); list-style: none; font-size: 14.5px; line-height: 1.9;
}
.mfs :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { content: none; }
.mfs .woocommerce-info { border-color: var(--tq-t); border-inline-start-color: var(--tq); background: #f1fafa; color: var(--tq-d); }
.mfs .woocommerce-error { display: block; border-color: #f3d2cd; border-inline-start-color: #b3261e; background: #fdf3f2; color: #8a1c14; }
.mfs .woocommerce-error li { margin: 0; }
.mfs :is(.woocommerce-message, .woocommerce-info) .button { order: 2; min-height: 36px; margin-inline-start: auto; padding: 6px 14px; font-size: 13px; }

/* ---------- دکمه‌های سریع (زیردسته‌ها، موضوع‌ها، برچسب‌ها) ---------- */
.mfs-chips { display: flex; gap: 8px; margin: 0 0 18px; padding-bottom: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.mfs-chips a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.mfs-chips a:hover { border-color: var(--cu); color: var(--cu); }
.mfs-chips a.is-on { border-color: var(--cu); background: var(--g-cu); color: #fff; }
@media (min-width: 1024px) { .mfs-chips { flex-wrap: wrap; overflow: visible; } }

/* ---------- فروشگاه و دسته‌ها ---------- */
.mfs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.mfs-toolbar .woocommerce-notices-wrapper { flex: 1 0 100%; }
.mfs-toolbar .woocommerce-notices-wrapper:empty { display: none; }
.mfs .woocommerce-result-count { margin: 0; color: var(--mute); font-size: 13.5px; float: none; }
.mfs .woocommerce-ordering { margin: 0; float: none; }
.mfs .woocommerce-ordering select { width: auto; min-width: 210px; min-height: 42px; padding-block: 6px; font-size: 14px; }
.mfs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
@media (min-width: 700px) { .mfs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .mfs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1500px) { .mfs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mfs-grid::before, .mfs-grid::after { content: none; }
.mfs .mlp-card .added_to_cart { display: none; }
.mfs-term-desc { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.mfs-term-desc:empty { display: none; }
.mfs .woocommerce-no-products-found .woocommerce-info { justify-content: center; }

/* صفحه‌بندی */
.mfs :is(.woocommerce-pagination, .mfs-pages) { margin: 8px 0 0; text-align: center; }
.mfs :is(.woocommerce-pagination, .mfs-pages) ul.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.mfs :is(.woocommerce-pagination, .mfs-pages) ul.page-numbers li { border: 0; float: none; }
.mfs :is(.woocommerce-pagination, .mfs-pages) .page-numbers :is(a, span) { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; }
.mfs :is(.woocommerce-pagination, .mfs-pages) .page-numbers a:hover { border-color: var(--cu); color: var(--cu); background: #fff; }
.mfs :is(.woocommerce-pagination, .mfs-pages) .page-numbers .current { border-color: var(--cu); background: var(--g-cu); color: #fff; }

/* ---------- محصول (طرح پیش‌فرض، برای محصولاتی که هنوز طرح جدید ندارند) ---------- */
.mfs-product div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.mfs-product div.product > :is(.woocommerce-tabs, .related, .upsells, .up-sells, section) { grid-column: 1 / -1; }
@media (min-width: 900px) { .mfs-product div.product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.mfs-product div.product div.images, .mfs-product div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.mfs-product .woocommerce-product-gallery { position: relative; }
.mfs-product .woocommerce-product-gallery__image img { border-radius: var(--r); background: var(--bg); }
.mfs-product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 0 !important; padding: 0; list-style: none; }
.mfs-product .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
.mfs-product .flex-control-thumbs img { border-radius: 10px; opacity: .65; cursor: pointer; transition: opacity .2s; }
.mfs-product .flex-control-thumbs img.flex-active, .mfs-product .flex-control-thumbs img:hover { opacity: 1; }
.mfs-product .woocommerce-product-gallery__trigger { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); font-size: 0; }
.mfs-product .woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 18px; color: var(--ink); }
.mfs-product .product_title { margin: 0 0 6px; font-size: clamp(1.25rem, 4vw, 1.8rem); }
.mfs-product .summary .price { margin: 8px 0 14px; color: var(--tq-d); font-size: 1.45rem; font-weight: 800; }
.mfs-product .summary .price del { color: var(--mute); font-size: .75em; font-weight: 500; }
.mfs-product .summary .price ins { text-decoration: none; }
.mfs-product .woocommerce-product-details__short-description { color: var(--body); }
.mfs-product .stock { font-weight: 700; }
.mfs-product .stock.in-stock { color: var(--pt); }
.mfs-product .stock.out-of-stock { color: #b3261e; }
.mfs-product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.mfs-product form.cart.variations_form { display: block; }
.mfs-product table.variations { width: 100%; margin-bottom: 10px; border: 0; }
.mfs-product table.variations :is(th, td) { padding: 6px 0; border: 0; display: block; text-align: start; }
.mfs-product .reset_variations { font-size: 13px; }
.mfs-product .single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.mfs .quantity { display: inline-flex; }
.mfs .quantity .qty { width: 84px; min-height: 46px; text-align: center; }
.mfs-product .single_add_to_cart_button { flex: 1 1 200px; min-height: 50px; font-size: 16px; }
.mfs-product .product_meta { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--mute); font-size: 13px; }
.mfs-product .product_meta a { color: var(--tq-d); }
.mfs-product .woocommerce-tabs { margin-top: 18px; }
.mfs-product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; margin: 0 0 14px !important; padding: 0 0 8px !important; overflow-x: auto; border-bottom: 1px solid var(--line); list-style: none; }
.mfs-product .woocommerce-tabs ul.tabs::before, .mfs-product .woocommerce-tabs ul.tabs li::before, .mfs-product .woocommerce-tabs ul.tabs li::after { content: none !important; display: none !important; }
.mfs-product .woocommerce-tabs ul.tabs li { flex: 0 0 auto; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.mfs-product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px !important; border: 1px solid var(--line); border-radius: 99px; color: var(--ink) !important; font-weight: 700; white-space: nowrap; }
.mfs-product .woocommerce-tabs ul.tabs li.active a { border-color: var(--cu); background: var(--g-cu); color: #fff !important; }
.mfs-product .woocommerce-Tabs-panel { font-size: 15px; line-height: 2.05; }
.mfs-product .woocommerce-Tabs-panel > h2:first-child { font-size: 1.15rem; }
.mfs-product :is(.related, .upsells, .up-sells) > h2 { margin: 28px 0 14px; font-size: clamp(1.15rem, 3.4vw, 1.45rem); }
.mfs .star-rating { color: var(--au); }
.mfs #reviews .commentlist { margin: 0; padding: 0; list-style: none; }
.mfs #reviews .commentlist li { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.mfs #reviews .commentlist li img.avatar { float: right; width: 40px; height: 40px; margin-left: 10px; border-radius: 50%; position: static; border: 0; padding: 0; }
.mfs #reviews .commentlist li .comment-text { margin: 0; border: 0; padding: 0; }

/* ---------- جدول‌های ووکامرس (سبد، سفارش‌ها) ---------- */
.mfs table.shop_table { width: 100%; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; font-size: 14.5px; }
.mfs table.shop_table :is(th, td) { padding: 12px 14px; border: 0; border-top: 1px solid var(--line); text-align: start; vertical-align: middle; }
.mfs table.shop_table thead th { border-top: 0; background: var(--bg); color: var(--ink); font-weight: 800; }
.mfs table.shop_table .product-thumbnail img { width: 64px; border-radius: 10px; }
.mfs table.shop_table .product-name a { color: var(--ink); font-weight: 700; }
.mfs table.shop_table .product-subtotal, .mfs table.shop_table .order-total td { color: var(--tq-d); font-weight: 800; }
.mfs table.shop_table a.remove { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fdf3f2; color: #b3261e !important; font-size: 20px; line-height: 1; }
.mfs table.shop_table a.remove:hover { background: #b3261e; color: #fff !important; }
.mfs table.shop_table td.actions { background: var(--bg); }
.mfs table.shop_table td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; float: none; }
.mfs table.shop_table td.actions .coupon .input-text { flex: 1 1 160px; width: auto; }
.mfs table.shop_table td.actions > .button { float: left; }
@media (max-width: 768px) {
	.mfs table.shop_table_responsive tr { display: block; border-top: 1px solid var(--line); }
	.mfs table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; border-top: 0; text-align: end !important; }
	.mfs table.shop_table_responsive tr td::before { content: attr(data-title); color: var(--mute); font-weight: 700; float: none; }
	.mfs table.shop_table_responsive tr td.product-thumbnail, .mfs table.shop_table_responsive tr td.actions { display: block; text-align: center !important; }
	.mfs table.shop_table_responsive tr td.product-thumbnail::before, .mfs table.shop_table_responsive tr td.actions::before { content: none; }
	.mfs table.shop_table td.actions > .button { float: none; width: 100%; margin-top: 8px; }
}

/* سبد و جمع کل */
.mfs-woo .woocommerce { display: block; }
.mfs .cart-collaterals { display: grid; gap: 20px; }
.mfs .cart-collaterals .cart_totals { width: 100% !important; float: none !important; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.mfs .cart-collaterals .cart_totals h2 { margin: 0 0 10px; font-size: 1.15rem; }
.mfs .cart_totals table.shop_table { margin-bottom: 12px; }
.mfs .wc-proceed-to-checkout { padding: 0; }
.mfs .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 52px; font-size: 16px; }
@media (min-width: 1024px) {
	.mfs-woo .woocommerce:has(> .woocommerce-cart-form) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
	.mfs-woo .woocommerce:has(> .woocommerce-cart-form) > :is(.woocommerce-notices-wrapper, .woocommerce-message, .woocommerce-info, .woocommerce-error) { grid-column: 1 / -1; }
	.mfs .cart-collaterals { position: sticky; top: calc(var(--mlp-stick, 0px) + 16px); }
	.mfs .cart-collaterals .cross-sells { display: none; }
}

/* تسویه حساب */
.mfs form.checkout { display: grid; gap: 20px; }
.mfs form.checkout .col2-set { width: 100%; }
.mfs form.checkout .col2-set :is(.col-1, .col-2) { width: 100% !important; float: none !important; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.mfs form.checkout h3 { margin: 0 0 12px; font-size: 1.1rem; }
.mfs #order_review_heading { margin: 0; font-size: 1.15rem; }
.mfs #order_review { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.mfs #payment { border-radius: 12px; background: #fff !important; }
.mfs #payment ul.payment_methods { padding: 12px !important; border-bottom: 1px solid var(--line) !important; }
.mfs #payment ul.payment_methods li { margin-bottom: 6px; line-height: 2 !important; }
.mfs #payment div.payment_box { border-radius: 10px !important; background: var(--tq-t) !important; color: var(--tq-d) !important; }
.mfs #payment div.payment_box::before { border-bottom-color: var(--tq-t) !important; }
.mfs #payment .place-order { padding: 12px !important; }
.mfs #place_order { width: 100%; min-height: 54px; font-size: 16.5px; float: none; }
@media (min-width: 1024px) {
	.mfs form.checkout { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
	.mfs form.checkout > .col2-set { grid-column: 1; grid-row: 1 / span 3; }
	.mfs form.checkout > :is(#order_review_heading, #order_review) { grid-column: 2; }
	.mfs form.checkout > #order_review { position: sticky; top: calc(var(--mlp-stick, 0px) + 16px); }
}

/* ---------- حساب کاربری ---------- */
.mfs-woo .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; gap: 18px; }
.mfs .woocommerce-MyAccount-navigation { width: 100% !important; float: none !important; }
.mfs .woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; margin: 0; padding: 0 0 6px; overflow-x: auto; list-style: none; -webkit-overflow-scrolling: touch; }
.mfs .woocommerce-MyAccount-navigation li { flex: 0 0 auto; margin: 0; }
.mfs .woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.mfs .woocommerce-MyAccount-navigation a:hover { border-color: var(--cu); color: var(--cu); }
.mfs .woocommerce-MyAccount-navigation .is-active a { border-color: var(--cu); background: var(--g-cu); color: #fff; }
.mfs .woocommerce-MyAccount-navigation-link--customer-logout a { color: #b3261e; }
.mfs .woocommerce-MyAccount-content { width: 100% !important; float: none !important; min-width: 0; }
.mfs .woocommerce-MyAccount-content > p:first-of-type { padding: 14px 16px; border-radius: var(--r); background: var(--g-mist), var(--bg); }
@media (min-width: 900px) {
	.mfs-woo .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
	.mfs .woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--mlp-stick, 0px) + 16px); padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
	.mfs .woocommerce-MyAccount-navigation ul { flex-direction: column; overflow: visible; padding: 0; }
	.mfs .woocommerce-MyAccount-navigation a { border-color: transparent; background: transparent; }
}
.mfs .woocommerce-Addresses { display: grid; gap: 16px; }
@media (min-width: 700px) { .mfs .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.mfs .woocommerce-Addresses .woocommerce-Address { width: auto !important; float: none !important; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.mfs .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mfs .woocommerce-Address-title h2 { margin: 0; font-size: 1.05rem; }
.mfs address { font-style: normal; line-height: 2; }
.mfs .woocommerce-orders-table .button { min-height: 34px; margin: 2px; padding: 4px 12px; font-size: 12.5px; }

/* ورود و ثبت‌نام */
.mfs #customer_login { display: grid; gap: 18px; }
.mfs #customer_login :is(.u-column1, .u-column2) { width: 100% !important; float: none !important; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; box-shadow: 0 18px 40px -32px rgba(127,58,15,.45); }
.mfs #customer_login h2 { margin: 0 0 12px; font-size: 1.2rem; }
.mfs .woocommerce-form-login, .mfs .woocommerce-form-register { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.mfs .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 500; }
.mfs :is(.woocommerce-form-login__submit, .woocommerce-form-register__submit) { width: 100%; min-height: 50px; }
.mfs .lost_password { margin: 10px 0 0; font-size: 13.5px; }
@media (min-width: 900px) { .mfs #customer_login { grid-template-columns: 1fr 1fr; gap: 24px; } }
.mfs-woo .woocommerce > .woocommerce-form-login:only-of-type { max-width: 480px; margin-inline: auto !important; }

/* ---------- وبلاگ ---------- */
.mfs-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
@media (min-width: 700px) { .mfs-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .mfs-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mfs-post { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
@media (hover: hover) { .mfs-post:hover { transform: translateY(-3px); border-color: #cfe7e4; box-shadow: 0 14px 28px -18px rgba(6,107,112,.45); } }
.mfs-post__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.mfs-post__img img { width: 100%; height: 100%; object-fit: cover; }
.mfs-post__ph { display: block; width: 100%; height: 100%; background: var(--g-mist), var(--bg); }
.mfs-post__b { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.mfs-post__cat { align-self: flex-start; margin-bottom: 6px; padding: 2px 10px; border-radius: 99px; background: var(--tq-t); color: var(--tq-d); font-size: 12px; font-weight: 700; }
.mfs-post__t { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.75; }
.mfs-post__t a { color: var(--ink); }
.mfs-post__t a:hover { color: var(--cu); }
.mfs-post__b p { margin: 0 0 10px; color: var(--mute); font-size: 14px; line-height: 1.95; }
.mfs-post__m { margin-top: auto; color: var(--mute); font-size: 12.5px; }
.mfs-posts__prod { display: contents; }
.mfs-related { padding-block: 24px 8px; }
.mfs-related > h2 { margin-bottom: 14px; font-size: 1.3rem; }

/* دیدگاه‌ها */
.mfs-comments { margin: 28px 0 40px; }
.mfs-comments__t { font-size: 1.2rem; margin-bottom: 12px; }
.mfs-comments__list, .mfs-comments__list ol { margin: 0 0 20px; padding: 0; list-style: none; }
.mfs-comments__list .comment-body { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.mfs-comments__list .children { margin-inline-start: 20px; }
.mfs-comments__list .avatar { float: right; margin-left: 10px; border-radius: 50%; }
.mfs-comments__list .comment-meta { font-size: 13px; color: var(--mute); }
.mfs .comment-respond { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.mfs .comment-reply-title { margin: 0 0 10px; font-size: 1.1rem; }

/* ---------- ۴۰۴ و خالی ---------- */
.mfs-404 { padding-block: 56px 72px; text-align: center; }
.mfs-404__n { margin: 0; font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; line-height: 1; background: var(--g-cu); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mfs-404 h1 { margin: 10px 0 6px; font-size: clamp(1.3rem, 4vw, 1.8rem); }
.mfs-404 p { color: var(--mute); }
.mfs-404 .mfs-search { margin: 18px auto; }
.mfs-404__a { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mfs-empty { padding: 28px 0; color: var(--mute); }

/* ---------- المنتور: هم‌خوانی ظاهری ---------- */
.mfs .elementor-widget-text-editor { line-height: 2; }
.mfs .elementor-button { border-radius: 12px; font-family: var(--f); }

/* ---------- دکان (پیشخوان فروشنده در سایت) ---------- */
.mfs .dokan-dashboard-wrap, .mfs .dokan-store-wrap { font-family: var(--f); }

@media (prefers-reduced-motion: reduce) { .mfs-post, .mfs .button { transition: none; } .mfs-post:hover { transform: none; } }
.mfs-pnew > .mfs-crumbs { margin-bottom: 12px; }
.mfs :is(.woocommerce-message, .woocommerce-info) .button { color: #fff !important; }

/* ---------- گالری محصول ---------- */
.mfs-g { position: relative; min-width: 0; }
.mfs-g__main { position: relative; }
.mfs-g__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); background: var(--bg); overscroll-behavior-x: contain; }
.mfs-g__track::-webkit-scrollbar { display: none; }
.mfs-g__track:focus-visible { outline: 2px solid var(--tq); outline-offset: 2px; }
.mfs-g__s { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: 1; scroll-snap-align: start; scroll-snap-stop: always; }
.mfs-g__s img { width: 100%; height: 100%; object-fit: contain; }
.mfs-g__open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.mfs-g__s[data-video] .mfs-g__open { cursor: pointer; }
.mfs-g__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(18,63,55,.82); color: #fff; transform: translate(-50%, -50%); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: transform .2s; }
.mfs-g__play .mlp-i { width: 40px; height: 40px; }
.mfs-g__open:hover .mfs-g__play { transform: translate(-50%, -50%) scale(1.06); }
.mfs-g__v { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.mfs-g__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; }
.mfs-g__nav--prev { inset-inline-start: 10px; }
.mfs-g__nav--next { inset-inline-end: 10px; }
.mfs-g__nav--prev .mlp-i { transform: scaleX(-1); }
[dir="rtl"] .mfs-g__nav--prev .mlp-i { transform: none; }
[dir="rtl"] .mfs-g__nav--next .mlp-i { transform: scaleX(-1); }
.mfs-g__count { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 0 10px; border-radius: 99px; background: rgba(31,24,19,.6); color: #fff; font-size: 12px; line-height: 24px; }
.mfs-g__count:empty, .mfs-g.is-single .mfs-g__nav, .mfs-g.is-single .mfs-g__thumbs { display: none; }
.mfs-g__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.mfs-g__t { position: relative; flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.mfs-g__t img { width: 100%; height: 100%; object-fit: cover; }
.mfs-g__t.is-on, .mfs-g__t:hover { border-color: var(--cu); opacity: 1; }
.mfs-g__t.is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18,63,55,.45); color: #fff; font-size: 16px; }
.mfs-g__labels { top: 12px; inset-inline-start: 12px; }
.mfs-g__box { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(15,12,10,.94); color: #fff; }
.mfs-g__box::backdrop { background: rgba(15,12,10,.94); }
.mfs-g__stage { display: grid; place-items: center; width: 100%; height: 100%; overflow: auto; }
.mfs-g__stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; touch-action: pinch-zoom; }
.mfs-g__stage img.is-zoom { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.mfs-g__stage .mfs-g__s { width: min(100%, 1100px); aspect-ratio: 16 / 9; flex: none; }
.mfs-g__x { position: fixed; top: 14px; inset-inline-end: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.mfs-g__box .mfs-g__nav { position: fixed; border: 0; background: rgba(255,255,255,.14); color: #fff; }
@media (min-width: 900px) { .mfs-g__t { flex-basis: 76px; height: 76px; } }
@media (hover: none) { .mfs-g__main > .mfs-g__nav { display: none; } }

/* ---------- علاقه‌مندی، مقایسه، اشتراک ---------- */
.mfs-pacts, .mfs-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mfs-pact { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.mfs-pact .mlp-i { width: 18px; height: 18px; }
.mfs-pact:hover { border-color: var(--cu); color: var(--cu); }
.mfs-pact[aria-pressed="true"] { border-color: var(--cu); background: var(--cu-t); color: var(--cu-d); }
.mfs-pact[data-mfs-list="wl"][aria-pressed="true"] .mlp-i { fill: currentColor; }
.mfs-share a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 99px; background: var(--bg); color: var(--ink); font-size: 13px; font-weight: 600; }
.mfs-share a:hover { color: var(--cu); }
.mfs-list-n { color: var(--mute); }
.mfs-list-load { color: var(--mute); }
.mfs-list-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 16px; border: 1px dashed var(--line); border-radius: var(--r-l); text-align: center; color: var(--mute); }
.mfs-list-empty > .mlp-i { width: 44px; height: 44px; color: var(--cu-l); }
.mfs-list-empty p { max-width: 46ch; margin: 0; }
.mfs-cmp { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); }
.mfs-cmp__t { width: 100%; min-width: calc(140px + var(--n) * 180px); border-collapse: collapse; font-size: 14px; }
.mfs-cmp__t :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.mfs-cmp__t tbody th { position: sticky; inset-inline-start: 0; z-index: 1; width: 140px; background: var(--bg); color: var(--ink); text-align: start; }
.mfs-cmp__t thead th { position: relative; background: #fff; }
.mfs-cmp__t thead img { width: 120px; margin: 0 auto 6px; border-radius: 10px; }
.mfs-cmp__t thead a { display: block; color: var(--ink); font-size: 13.5px; line-height: 1.7; }
.mfs-cmp__x { position: absolute; top: 6px; inset-inline-end: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #fdf3f2; color: #b3261e; cursor: pointer; }
.mfs-cmp__x .mlp-i { width: 16px; height: 16px; }
.mfs-cmp__t .is-ok { color: var(--pt); font-weight: 700; }
.mfs-cmp__t .is-no { color: #b3261e; font-weight: 700; }
.mfs-cmp__buy { min-height: 38px; padding: 6px 14px; font-size: 13px; }
.mlp-acc__menu .mlp-badge { position: static; margin-inline-start: auto; }

/* ---------- واحد قیمت، کاشی حساب، محصول قبلی/بعدی ---------- */
.mfs-unit { color: var(--mute); font-size: .78em; font-weight: 600; }
.mfs-acc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
@media (min-width: 700px) { .mfs-acc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mfs-acc-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); font-weight: 700; text-align: center; transition: border-color .2s, transform .2s, box-shadow .2s; }
.mfs-acc-tile .mlp-i { width: 28px; height: 28px; color: var(--cu); }
.mfs-acc-tile:hover { border-color: var(--cu); transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(127,58,15,.6); color: var(--cu-d); }
.mfs-acc-tile.is-out .mlp-i { color: #b3261e; }
.mfs-pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.mfs-pnav a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
.mfs-pnav a:last-child { flex-direction: row-reverse; text-align: end; }
.mfs-pnav img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.mfs-pnav span { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.mfs-pnav small { color: var(--mute); font-size: 12px; }
.mfs-pnav b { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.mfs-pnav a:hover { border-color: var(--cu); }

/* ---------- سربرگ با تصویر دسته، کشوی فیلترها، برگشت به بالا ---------- */
.mfs-head--img { background: linear-gradient(0deg, rgba(18,63,55,.72), rgba(18,63,55,.38)), var(--mfs-hbg) center / cover no-repeat; }
.mfs-head--img :is(.mfs-head__t, .mfs-crumbs, .mfs-crumbs a, .mfs-head__d) { color: #fff; }
.mfs-filter-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.mfs-filter-btn:hover { border-color: var(--cu); color: var(--cu); }
.mfs-filter-btn .mlp-i { width: 18px; height: 18px; }
.mfs-drawer { position: fixed; inset: 0; z-index: 9990; background: rgba(15,12,10,0); transition: background .25s; }
.mfs-drawer.is-open { background: rgba(15,12,10,.45); }
.mfs-drawer__in { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(360px, 88vw); padding: 14px 16px 90px; overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .25s; }
[dir="rtl"] .mfs-drawer__in, .rtl .mfs-drawer__in { transform: translateX(100%); }
.mfs-drawer.is-open .mfs-drawer__in { transform: none; }
.mfs-drawer__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 1.1rem; }
.mfs-drawer__x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; }
.mfs-widget { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mfs-widget__t { margin: 0 0 10px; font-size: 1rem; }
.mfs-widget ul { margin: 0; padding: 0; list-style: none; }
.mfs-widget li { padding: 4px 0; }
.mfs-widget .children { padding-inline-start: 14px; }
.mfs .price_slider_wrapper .ui-slider { margin: 10px 6px 16px; }
.mfs .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mfs-top { position: fixed; bottom: 96px; inset-inline-start: 16px; z-index: 50; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g-cu); color: #fff; font-size: 20px; box-shadow: 0 10px 22px -12px rgba(127,58,15,.8); }
.mfs-top[hidden] { display: none; }
.mfs-toolbar .mfs-layout { flex: 1 0 100%; } .mfs-layout { margin-block: 16px; }

/* ---------- ابزارک‌های المنتوری سازگار با وودمارت (wd_*) ---------- */
.mfs .text-center { text-align: center; } .mfs .text-left { text-align: left; } .mfs .text-right { text-align: right; }
.mfs-wd-title { margin-bottom: 14px; }
.mfs-wd-title .img-wrapper { display: inline-block; margin-bottom: 8px; }
.mfs-wd-title .img-wrapper img { display: inline-block; max-width: 96px; }
.mfs-wd-title .title-subtitle { color: var(--cu); font-size: 13.5px; font-weight: 700; }
.mfs-wd-title .title { margin: 2px 0 0; font-size: clamp(1.15rem, 3.2vw, 1.6rem); line-height: 1.6; }
.mfs-wd-title .title-after_title { margin-top: 6px; color: var(--mute); }
.wd-text-block { line-height: 2; }
.wd-text-block img { display: inline-block; }
.wd-button-wrapper { margin: 8px 0; }
.wd-button-wrapper .is-full { width: 100%; }
.mfs-wd-banner { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg); }
.mfs-wd-banner .banner-image img { width: 100%; height: auto; transition: transform .5s; }
.mfs-wd-banner:hover .banner-image img { transform: scale(1.04); }
.mfs-wd-banner .wrapper-content-banner { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(0deg, rgba(18,24,20,.62), rgba(18,24,20,0) 62%); color: #fff; }
.mfs-wd-banner .banner-title { margin: 2px 0 6px; color: #fff; font-size: clamp(1.05rem, 3vw, 1.45rem); }
.mfs-wd-banner .banner-subtitle { font-size: 13px; font-weight: 700; color: var(--au-l); }
.mfs-wd-banner .banner-inner { font-size: 14px; }
.mfs-wd-banner .banner-btn-wrapper { margin-top: 8px; }
.mfs-wd-banner .wd-promo-banner-link { position: absolute; inset: 0; z-index: 2; }
.mfs-wd-banner.banner-content-background .wrapper-content-banner, .mfs-wd-banner:not(:has(.banner-image img)) .wrapper-content-banner { position: static; background: none; color: var(--body); }
.mfs-wd-banner:not(:has(.banner-image img)) .banner-title { color: var(--ink); }
.mfs-wd-info { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.mfs-wd-info.text-center { align-items: center; }
.mfs-wd-info.box-icon-align-left, .mfs-wd-info.box-icon-align-right { flex-direction: row; align-items: flex-start; }
.mfs-wd-info .info-box-icon img { width: 56px; height: 56px; object-fit: contain; }
.mfs-wd-info .info-icon { font-size: 1.6rem; font-weight: 800; color: var(--cu); }
.mfs-wd-info .info-box-title { margin: 0 0 4px; font-size: 1.05rem; }
.mfs-wd-info .info-box-subtitle { color: var(--cu); font-size: 13px; font-weight: 700; }
.mfs-wd-info .info-box-inner { color: var(--body); font-size: 14.5px; line-height: 1.95; }
.mfs-wd-info .wd-info-box-link { position: absolute; inset: 0; }
.mfs-wd-list { margin: 0; padding: 0; list-style: none; }
.mfs-wd-list li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; }
.mfs-wd-list .list-icon img { width: 22px; height: 22px; object-fit: contain; }
.mfs-wd-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: .75em; border-radius: 50%; background: var(--cu); }
.mfs-wd-acc details { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mfs-wd-acc summary { padding: 12px 14px; font-weight: 700; cursor: pointer; list-style: none; }
.mfs-wd-acc summary::-webkit-details-marker { display: none; }
.mfs-wd-acc summary::after { content: "+"; float: left; color: var(--cu); font-weight: 800; }
.mfs-wd-acc details[open] summary::after { content: "−"; }
.mfs-wd-acc .wd-accordion-content { padding: 0 14px 12px; line-height: 2; }
.mfs-wd-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .mfs-wd-gal { grid-template-columns: repeat(var(--wd-cols, 3), minmax(0, 1fr)); } }
.mfs-wd-gal figure, .mfs-wd-scroll figure { margin: 0; }
.mfs-wd-gal img, .mfs-wd-scroll figure img { width: 100%; border-radius: var(--r-s); }
.mfs-wd-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.mfs-wd-scroll > * { flex: 0 0 calc((100% - 12px) / 1.6); scroll-snap-align: start; }
@media (min-width: 768px) { .mfs-wd-scroll > * { flex-basis: calc((100% - 12px * (var(--wd-cols, 4) - 1)) / var(--wd-cols, 4)); } }
.mfs-wd-tabs .tabs-name { margin-bottom: 10px; }
.mfs-wd-menu, .mfs-wd-menu ul { margin: 0; padding: 0; list-style: none; }
.mfs-wd-menu > li > a { display: inline-flex; gap: 6px; margin-bottom: 6px; color: var(--ink); }
.mfs-wd-menu ul a { display: block; padding: 4px 0; color: var(--body); }
.mfs-wd-menu .menu-label { padding: 0 6px; border-radius: 6px; background: var(--cu); color: #fff; font-size: 11px; }
.mfs-wd-mp { display: flex; gap: 12px; align-items: flex-start; }
.mfs-wd-mp .menu-price-image img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.mfs-wd-mp .menu-price-title { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.mfs-wd-mp .price { color: var(--tq-d); }
.mfs-wd-counter .counter-value { display: block; font-size: 2rem; font-weight: 800; color: var(--cu); }
.mfs-wd-counter .counter-label { color: var(--mute); }
.mfs-wd-cd span { display: inline-block; min-width: 2.2em; padding: 4px 6px; border-radius: 8px; background: var(--bg); font-weight: 800; color: var(--cu-d); }
.mfs-wd-cmp { position: relative; }
.mfs-wd-cmp .wd-compare-img-wrapp { position: relative; overflow: hidden; border-radius: var(--r); }
.mfs-wd-cmp img { width: 100%; }
.mfs-wd-cmp__b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.mfs-wd-cmp input { width: 100%; margin-top: 8px; accent-color: var(--cu); }
.mfs-wd-price { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.mfs-wd-price.is-best { border-color: var(--cu); box-shadow: 0 14px 30px -22px rgba(127,58,15,.7); }
.mfs-wd-price .wd-price-value { font-size: 1.5rem; font-weight: 800; color: var(--tq-d); }
.mfs-wd-price ul { margin: 12px 0; padding: 0; list-style: none; }
.mfs-wd-label { position: absolute; top: 10px; inset-inline-end: 10px; padding: 0 8px; border-radius: 8px; background: var(--cu); color: #fff; font-size: 12px; }
.mfs-wd-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--r); }

/* ---------- صفحات کاربر: هم‌شکل با طرح فرزند (سبد، پرداخت، حساب، ورود) ---------- */
.mfs .woocommerce-Price-amount, .mfs .shop_table .amount, .mfs .order-total .amount, .mfs .woocommerce-orders-table__cell-order-total { white-space: nowrap; }
.mfs .cart-collaterals .cart_totals, .mfs #order_review { background: #fff; border-color: #efe4dc; border-radius: 16px; box-shadow: 0 18px 40px -30px rgba(127,58,15,.45); }
.mfs .cart_totals table.shop_table, .mfs #order_review table.shop_table { border: 0; }
.mfs .cart_totals .order-total :is(th, td), .mfs #order_review .order-total :is(th, td) { font-size: 1.05rem; font-weight: 900; }
.mfs table.shop_table td.actions .coupon .button { background: var(--g-tq); color: #fff; border-color: transparent; }
.mfs button[name="update_cart"]:disabled, .mfs button[name="update_cart"][disabled] { opacity: 1; background: #f6ebe3; border-color: #ead6c8; color: #b08a73; }
.mfs .woocommerce-cart-form .quantity { display: inline-flex; align-items: center; }
.mfs .woocommerce-cart-form .quantity .qty { width: 64px; min-height: 40px; text-align: center; border-radius: 10px; }
.mfs .woocommerce-checkout #payment .payment_methods label { font-weight: 700; cursor: pointer; }
.mfs .woocommerce-checkout #payment .payment_methods label img { max-height: 42px; width: auto; vertical-align: middle; margin-inline-start: 6px; }
.mfs .woocommerce-terms-and-conditions-wrapper { margin: 0 0 12px; font-size: 14px; line-height: 1.9; }
.mfs .woocommerce-terms-and-conditions-wrapper a { color: var(--tq-d); font-weight: 700; }
.mfs .woocommerce-form-coupon-toggle .woocommerce-info, .mfs .woocommerce-form-login-toggle .woocommerce-info { border-radius: 12px; }
.mfs form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px !important; border: 1px dashed var(--line) !important; border-radius: 12px !important; }
.mfs form.checkout_coupon p { margin: 0; float: none !important; width: auto !important; }
.mfs form.checkout_coupon .form-row-first { flex: 1 1 180px; }
.mfs form.checkout_coupon .button { background: var(--g-tq); }
.mfs .woocommerce-order { display: grid; gap: 16px; }
.mfs .woocommerce-thankyou-order-received { margin: 0; padding: 18px; border-radius: 16px; background: var(--tq-t); color: var(--tq-d); font-size: 1.1rem; font-weight: 800; text-align: center; }
.mfs ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mfs ul.woocommerce-order-overview li { margin: 0 !important; padding: 12px 14px !important; border: 1px solid var(--line) !important; border-radius: 12px; background: #fff; font-size: 13px; color: var(--mute); }
.mfs ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; color: var(--ink); font-size: 15px; }
.mfs .woocommerce-ResetPassword, .mfs .woocommerce-lost-password .woocommerce-form { max-width: 480px; margin-inline: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -32px rgba(127,58,15,.45); }
.mfs .woocommerce-ResetPassword .form-row { width: 100% !important; float: none !important; }
.mfs .woocommerce-ResetPassword .button { width: 100%; min-height: 50px; }
.mfs .woocommerce-password-strength { margin-top: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.mfs .show-password-input { inset-inline-end: 10px; inset-inline-start: auto; }
.mfs .woocommerce-MyAccount-content .button, .mfs .woocommerce-EditAccountForm .button { min-height: 46px; }

/* ---------- 0.28.5: چیدمان حساب کاربری (موبایل‌اول) ---------- */
/* clearfix ووکامرس (::before/::after) در گرید خانه می‌گرفت و منو را به ستون پهن می‌برد */
.mfs-woo .woocommerce::before, .mfs-woo .woocommerce::after { content: none !important; display: none !important; }
/* ستون گرید موبایل باید جمع شود؛ وگرنه ردیف لغزان منو صفحه را ۱۰۰۰px پهن می‌کرد */
.mfs-woo .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
.mfs .woocommerce-MyAccount-navigation, .mfs .woocommerce-MyAccount-content { min-width: 0; }
.mfs .woocommerce-MyAccount-navigation ul { scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
.mfs .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.mfs .woocommerce-MyAccount-navigation a, .mfs .woocommerce-MyAccount-content .button, .mfs .woocommerce-info a.button { text-decoration: none !important; }
@media (min-width: 900px) {
	.mfs-woo .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 260px minmax(0, 1fr); }
	.mfs .woocommerce-MyAccount-navigation { padding: 10px; }
	.mfs .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; gap: 4px; }
	.mfs .woocommerce-MyAccount-navigation a { min-height: 44px; border-radius: 10px; }
	.mfs .woocommerce-MyAccount-navigation li:not(.is-active) a:hover { background: #fff; }
}
/* پیام‌ها: متن اول، دکمه زیرش تمام‌عرض در موبایل */
.mfs :is(.woocommerce-message, .woocommerce-info) { min-width: 0; overflow-wrap: anywhere; }
.mfs :is(.woocommerce-message, .woocommerce-info) .button { float: none !important; }
@media (max-width: 599px) {
	.mfs :is(.woocommerce-message, .woocommerce-info) .button { flex: 1 0 100%; justify-content: center; margin-inline-start: 0; min-height: 42px; }
}

/* ورود/ثبت‌نام پیامکی (فراز اس‌ام‌اس): کارت جمع‌وجور، موبایل‌اول */
.mfs .farazsms-inline-login-wrapper { max-width: 440px; margin-inline: auto; }
.mfs .farazsms-inline-login-wrapper .logo { margin: 0 0 8px !important; text-align: center; }
.mfs .farazsms-inline-login-wrapper .logo img { width: 96px !important; height: auto !important; max-width: 40%; }
.mfs .farazsms-inline-login-wrapper h1, .mfs .farazsms-inline-login-wrapper h2, .mfs .farazsms-inline-login-wrapper h3 { margin: 4px 0 10px !important; font-size: 1.25rem !important; text-align: center; }
.mfs .farazsms-inline-login-wrapper input[name="identifier"], .mfs .farazsms-inline-login-wrapper input[type="tel"], .mfs .farazsms-inline-login-wrapper input[inputmode="numeric"] { min-height: 52px; direction: ltr; text-align: center; font-size: 18px; letter-spacing: .5px; }
.mfs .farazsms-inline-login-wrapper input[type="submit"], .mfs .farazsms-inline-login-wrapper button[type="submit"] { width: 100%; min-height: 52px; font-size: 16px; }
@media (max-width: 599px) { .mfs .farazsms-inline-login-wrapper .login-register-form { padding: 16px !important; } }

/* نوار قیمت (طرح فرزند): وقتی نرخ نسبت به لحظه باز شدن صفحه عوض شود، واضح‌تر چشمک بزند */
.mf-tk__n.is-tick { border-radius: 6px; animation: mfsTkTick 2.6s ease-out !important; }
@keyframes mfsTkTick { 0%, 25% { background: rgba(176, 138, 58, .45); box-shadow: 0 0 0 3px rgba(176, 138, 58, .25); } 100% { background: transparent; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .mf-tk__n.is-tick { animation: none !important; } }

/* ---------- «معمولاً با هم خریده می‌شوند» ---------- */
.mfs-fbt { margin: 24px 0; padding: 16px; border: 1px solid #efe4dc; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px -28px rgba(127,58,15,.5); }
.mfs-fbt__h { margin: 0 0 12px; font-size: 1.15rem; font-weight: 900; }
.mfs-fbt__l { display: flex; gap: 10px; margin: 0 0 14px; padding: 2px 2px 6px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mfs-fbt__i { position: relative; flex: 0 0 min(46%, 190px); display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); scroll-snap-align: start; transition: opacity .2s; }
.mfs-fbt__i + .mfs-fbt__i::before { content: "+"; position: absolute; top: 34%; inset-inline-start: -15px; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cu); color: #fff; font-size: 14px; font-weight: 900; }
.mfs-fbt__i.is-off { opacity: .45; }
.mfs-fbt__i.is-main { border-color: var(--cu); background: #fbf3ee; }
.mfs-fbt__chk { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); cursor: pointer; }
.mfs-fbt__chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--cu); }
.mfs-fbt__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.mfs-fbt__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; line-height: 1.7; }
.mfs-fbt__t > a { display: -webkit-box; overflow: hidden; color: var(--ink); font-weight: 700; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mfs-fbt__p { color: var(--tq-d); font-weight: 800; }
.mfs-fbt__p del { color: var(--mute); font-weight: 500; font-size: .9em; }
.mfs-fbt__p ins { text-decoration: none; }
.mfs-fbt__off { display: inline-block; padding: 0 6px; border-radius: 99px; background: #fdecea; color: #b3261e; font-size: 11px; }
.mfs-fbt__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mfs-fbt__sum p { margin: 0; font-weight: 700; }
.mfs-fbt__sum b { color: var(--tq-d); font-size: 1.1rem; font-weight: 900; white-space: nowrap; }
.mfs-fbt__btn { flex: 1 1 220px; min-height: 48px; }
@media (min-width: 768px) { .mfs-fbt__i { flex-basis: 180px; } .mfs-fbt__btn { flex: 0 0 auto; } }

/* نوار خرید چسبان صفحه محصول (اسنیپت ۳۰ یا نسخه پوسته): همیشه بالای نوار پایین و دکمه چت، بدون تداخل */
body.mfs .mf-sb { bottom: var(--mfs-bb-h, 0px) !important; }
body.mfs.mf-sb-body { padding-bottom: calc(var(--mf-sbh, 0px) + var(--mfs-bb-h, 0px)) !important; }
body.mfs.mf-sb-body .mfs-top { bottom: calc(var(--mf-sbh, 0px) + var(--mfs-bb-h, 0px) + 10px); transition: bottom .3s; }

/* ---------- محصولات مکمل و مرتبط (همه صفحه‌های محصول، هر دو طرح): یک ردیف لغزان جمع‌وجور ---------- */
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) { position: relative; margin: 26px 0 8px; }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) > h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 900; text-align: start; }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products {
	display: flex !important; flex-wrap: nowrap !important; grid-template-columns: none !important; gap: 10px; margin: 0 !important; padding: 2px 2px 10px !important;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; list-style: none;
}
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products::before,
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products::after { content: none !important; display: none !important; }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products { --n: 2.25; scrollbar-width: none; scroll-padding-inline: 2px; }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products { --n: 3.25; } }
@media (min-width: 900px) { .single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products { --n: 4; } }
@media (min-width: 1200px) { .single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products { --n: 5; } }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) ul.products > * { flex: 0 0 calc((100% - (var(--n) - 1) * 10px) / var(--n)); min-width: 0; width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; scroll-snap-align: start; }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) .mlp-card { padding: 8px; }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) .mlp-card__t { font-size: 13px; }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) .mlp-card__p { font-size: 14px; margin-bottom: 8px; }
.single-product :is(section.related, section.upsells, section.up-sells, .cross-sells) .mlp-card .mlp-btn { min-height: 38px; font-size: 13px; }

/* کروسل: فلش‌ها وسط دو لبه، نقطه‌ها زیر ردیف (site.js می‌سازد) */
.mfs-car { position: relative; }
.mfs-car__btn { position: absolute; top: 38%; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px -8px rgba(31, 24, 19, .45); cursor: pointer; transform: translateY(-50%); transition: opacity .2s, color .2s, border-color .2s; }
.mfs-car__btn.is-prev { inset-inline-start: -6px; }
.mfs-car__btn.is-next { inset-inline-end: -6px; }
.mfs-car__btn:hover { border-color: var(--cu); color: var(--cu); }
.mfs-car__btn:disabled { opacity: 0; pointer-events: none; }
.mfs-car.is-static .mfs-car__btn { display: none; }
@media (hover: none) and (max-width: 1024px) { .mfs-car__btn { width: 34px; height: 34px; } .mfs-car__btn.is-prev { inset-inline-start: 0; } .mfs-car__btn.is-next { inset-inline-end: 0; } }
.mfs-car__dots { display: flex; justify-content: center; gap: 6px; min-height: 8px; margin-top: 4px; }
.mfs-car__dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .25s, background .25s; }
.mfs-car__dots i.is-on { width: 20px; background: var(--cu); }
.mfs-rownav { display: none !important; }

/* ---------- صفحه محصول در لپ‌تاپ/دسکتاپ: گالری هم چسبان (ستون خرید از قبل چسبان است)؛ هر ستون کوتاه‌تر کنار دیگری می‌ماند و فضای خالی نمی‌ماند ---------- */
@media (min-width: 1024px) {
	body.mfp-layout div.product.mfp .mfp-hero > .mfp-hero__media { position: sticky; top: calc(var(--mlp-stick, 0px) + 16px); align-self: start; }
}
@media (min-width: 769px) {
	/* طرح قدیم هم: هر دو ستون چسبان؛ هر کدام کوتاه‌تر باشد کنار دیگری می‌ماند */
	.mfs-sp .mfs-product div.product div.images { position: sticky; top: calc(var(--mlp-stick, 0px) + 16px); align-self: start; }
}

/* برگه المنتوری که H1 خودش را دارد: فقط نوار باریک مسیر صفحه، مثل لندینگ‌ها */
.mfs-head--slim { padding: 10px 0 8px; }
.mfs-head--slim .mfs-crumbs { margin: 0; }

/* ---------- توضیحات دسته (و توضیح محصول): عکس‌های عمودی کنار متن، نه یک ستون وسط با دو طرف خالی ---------- */
.mfs-term-desc :is(img, figure) { max-width: 100%; height: auto; }
.mfs-term-desc .mf-fig, .mfs-term-desc figure { max-width: min(100%, 520px); margin-inline: auto; }
@media (min-width: 900px) {
	.mfs-term-desc .term-description::after, .mfs-term-desc .wd-term-desc::after { content: ""; display: table; clear: both; }
	.mfs-term-desc :is(.mf-fig, figure.wp-block-image, figure.wp-caption) { float: inline-start; width: min(40%, 460px); max-width: none; margin: 4px 0 18px; margin-inline-end: 28px; }
	.mfs-term-desc :is(.mf-fig, figure.wp-block-image, figure.wp-caption):nth-of-type(even) { float: inline-end; margin-inline: 28px 0; }
	.mfs-term-desc :is(.mf-fig, figure) img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 14px; }
	.mfs-term-desc :is(table, .mf-table, .wp-block-table, ul, ol, blockquote) { overflow: hidden; }
	.mfs-term-desc :is(table, .wp-block-table) { clear: both; }
}

/* کادر درخواست خرید (دسته کاتد و شمش صنعتی) */
.mfs-reqbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-inline-start: 4px solid var(--cu); border-radius: 16px; background: linear-gradient(90deg, #fff 55%, #fbf3ee); }
.mfs-reqbox > div { flex: 1 1 260px; min-width: 0; }
.mfs-reqbox strong { display: block; font-size: 16px; font-weight: 900; }
.mfs-reqbox p { margin: 4px 0 0; color: var(--mute); font-size: 14px; line-height: 1.9; }
.mfs-reqbox .mlp-btn { flex: 0 0 auto; }
@media (max-width: 520px) { .mfs-reqbox .mlp-btn { width: 100%; justify-content: center; } }
