/* =============================================================
   Msallati Demo Fixes
   Reversible, scoped front-end CSS. Deactivate plugin to revert
   everything this stylesheet does. (Does NOT revert DB/product
   changes — those have their own documented rollback.)
   ============================================================= */

/* -------------------------------------------------------------
   TASK 1 — Contact Form 7 direction follows the PAGE LANGUAGE
   -------------------------------------------------------------
   Problem in the theme's CF7 markup:
   - The first fields sit in <div class="row" dir="rtl"> (hard RTL).
   - The .wpcf7 container itself is dir="ltr", and the "Your Message"
     label + the submit button live OUTSIDE the rtl row, so they
     inherit LTR and align LEFT in BOTH languages.
   Result before fix:
     * English form: most labels/fields aligned RIGHT (wrong).
     * Arabic form: «رسالتك» label + «إرسال» button aligned LEFT,
       inconsistent with the rest of the RTL form (wrong).

   Fix: make the WHOLE form follow the language of the page.
   English pages  (body.translatepress-en_US) -> LTR, left.
   Arabic pages   (body.translatepress-ar)    -> RTL, right.
   Scoped by language class so neither side affects the other.
------------------------------------------------------------- */

/* ---- English: whole form LTR, left-aligned ---- */
.translatepress-en_US .wpcf7,
.translatepress-en_US .wpcf7 [dir="rtl"] {
	direction: ltr;
}
.translatepress-en_US .wpcf7,
.translatepress-en_US .wpcf7 p,
.translatepress-en_US .wpcf7 label {
	text-align: left;
}
.translatepress-en_US .wpcf7 input,
.translatepress-en_US .wpcf7 select,
.translatepress-en_US .wpcf7 textarea {
	text-align: left;
}

/* ---- Arabic: whole form RTL, right-aligned ----
   (this is what fixes «رسالتك» label + «إرسال» button position) */
.translatepress-ar .wpcf7,
.translatepress-ar .wpcf7 [dir="ltr"] {
	direction: rtl;
}
.translatepress-ar .wpcf7,
.translatepress-ar .wpcf7 p,
.translatepress-ar .wpcf7 label {
	text-align: right;
}
.translatepress-ar .wpcf7 input,
.translatepress-ar .wpcf7 select,
.translatepress-ar .wpcf7 textarea {
	text-align: right;
}

/* ---- Phone / email: digits read LTR in BOTH languages,
        while field alignment still follows the page language ---- */
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"] {
	direction: ltr;
}
.translatepress-en_US .wpcf7 input[type="tel"],
.translatepress-en_US .wpcf7 input[type="email"] {
	text-align: left;
}
.translatepress-ar .wpcf7 input[type="tel"],
.translatepress-ar .wpcf7 input[type="email"] {
	text-align: right;
}

/* -------------------------------------------------------------
   TASK 1b — fixed bottom toolbar must not trap the submit button
   -------------------------------------------------------------
   Woodmart's mobile bottom toolbar (.wd-toolbar, 55px, position:fixed)
   sat exactly over the bottom 55px, so a submit button resting at the
   bottom edge was covered / hard to tap. Add extra scroll clearance on
   mobile, and scroll-margin so focusing a field/button leaves room. */
@media (max-width: 768px) {
	body {
		padding-bottom: 88px; /* 55px toolbar + ~33px safety */
	}
}
.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea,
.wpcf7 .wpcf7-submit {
	scroll-margin-bottom: 72px;
}

/* -------------------------------------------------------------
   TASK 1c — English (and Arabic) hero text had no side gutter
   -------------------------------------------------------------
   The homepage hero text column (Elementor element b33da06) had 0
   horizontal padding on mobile, so the heading/subtitle touched the
   left edge while sibling text kept a 15px gutter. Add a matching
   gutter on small screens (applies to both languages symmetrically). */
@media (max-width: 767px) {
	.elementor-element-b33da06 {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* -------------------------------------------------------------
   TASK 5 — Wholesale calculator (offer / delivered / next-tier panel)
   Brand: cream surface, olive accents, subtle gold for the offer.
------------------------------------------------------------- */
.msdf-calc-extra {
	margin: 14px 0 4px;
	padding: 14px 16px;
	background: #f7f4ea;
	border: 1px solid #e3dcc5;
	border-radius: 12px;
	font-size: 15px;
}
.msdf-calc-extra .msdf-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
}
.msdf-calc-extra .msdf-row strong { color: #2f4515; }
.msdf-calc-extra .msdf-free strong { color: #c2a24a; }
.msdf-calc-extra .msdf-msg {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #eef3e2;
	color: #3f5a1c;
	border-inline-start: 3px solid #6f8f3f;
	line-height: 1.5;
}
.msdf-calc-extra .msdf-msg.msdf-pending {
	background: #fbf3df;
	color: #8a6d16;
	border-inline-start-color: #c2a24a;
}
.msdf-sachet-unit,
#wc-range { max-width: 100%; }
.msdf-sachet-unit {
	padding: 8px 12px;
	border: 1px solid #d8cfb4;
	border-radius: 8px;
	background: #fff;
}

/* -------------------------------------------------------------
   TASK 7 — Homepage interactive price block
------------------------------------------------------------- */
.msdf-home-block {
	max-width: 1000px;
	margin: 40px auto;
	padding: 0 16px;
}
.msdf-home-block .msdf-hb-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	background: #f7f4ea;
	border: 1px solid #e3dcc5;
	border-radius: 18px;
	padding: 24px;
}
.msdf-home-block .msdf-hb-media { flex: 0 0 200px; max-width: 200px; }
.msdf-home-block .msdf-hb-media img { width: 100%; height: auto; border-radius: 12px; display: block; }
.msdf-home-block .msdf-hb-body { flex: 1 1 320px; }
.msdf-home-block .msdf-hb-title { color: #2f4515; margin: 0 0 14px; font-size: 1.25em; }
.msdf-home-block .msdf-hb-qtyrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.msdf-home-block .msdf-hb-qlabel { color: #3f5a1c; font-weight: 600; margin-inline-end: 6px; }
.msdf-home-block .msdf-hb-step {
	width: 38px; height: 38px; border-radius: 10px; border: 1px solid #c9bd98;
	background: #fff; color: #3f5a1c; font-size: 20px; line-height: 1; cursor: pointer;
}
.msdf-home-block .msdf-hb-step:hover { background: #eef3e2; }
.msdf-home-block .msdf-hb-qty {
	width: 72px; height: 38px; text-align: center; border: 1px solid #c9bd98;
	border-radius: 10px; background: #fff; font-weight: 700; color: #2f4515;
}
.msdf-home-block .msdf-hb-prices { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 10px; }
.msdf-home-block .msdf-hb-price span { color: #6b6b5e; font-size: .9em; display: block; }
.msdf-home-block .msdf-hb-price strong { color: #2f4515; font-size: 1.5em; }
.msdf-home-block .msdf-hb-totalrow strong { color: #6f8f3f; }
.msdf-home-block .msdf-hb-msg {
	margin: 6px 0 12px; padding: 10px 12px; border-radius: 8px;
	background: #eef3e2; color: #3f5a1c; border-inline-start: 3px solid #6f8f3f; line-height: 1.5;
}
.msdf-home-block .msdf-hb-msg:empty { display: none; }
.msdf-home-block .msdf-hb-msg.msdf-free { background: #fbf6e6; border-inline-start-color: #c2a24a; color: #7a5f12; }
.msdf-home-block .msdf-hb-msg.msdf-pending { background: #fbf3df; border-inline-start-color: #c2a24a; color: #8a6d16; }
.msdf-home-block .msdf-hb-hint { color: #7c7c6e; font-size: .9em; margin: 0 0 14px; }
.msdf-home-block .msdf-hb-cta { background: #6f8f3f; color: #fff; border-radius: 30px; padding: 12px 30px; display: inline-block; }
.msdf-home-block .msdf-hb-cta:hover { background: #5c7832; color: #fff; }
@media (max-width: 575px) {
	.msdf-home-block .msdf-hb-media { flex-basis: 100%; max-width: 160px; margin: 0 auto; }
}

/* -------------------------------------------------------------
   TASK 05 (2026-10-27) — Mobile side navigation drawer: OLIVE GREEN
   -------------------------------------------------------------
   Client update — SUPERSEDES the earlier "light drawer" (TASK 2b).
   The whole mobile menu panel should use the brand olive-green
   (#394024) with white / warm-ivory text, like a full green panel.
   WoodMart renders the drawer with the `color-scheme-light` class
   (= light content for a dark surface), so text is already light; we
   set the surface to olive and tune hover / active / icons / close /
   language-switcher / account links for contrast. Scoped to the nav
   drawer only (.mobile-nav) — the side cart, header and desktop nav
   are untouched. Works for RTL (AR) and LTR (EN). The drawer's open /
   close behaviour is WoodMart's and is left intact.
   Reversible: deactivate the plugin.
------------------------------------------------------------- */

/* Panel surface + inner menu + heading + any sub-menus -> olive green */
.mobile-nav.wd-side-hidden-nav,
.mobile-nav.wd-side-hidden-nav .wd-nav-mobile,
.mobile-nav.wd-side-hidden-nav .wd-heading,
.mobile-nav.wd-side-hidden-nav .wd-sub-menu,
.mobile-nav.wd-side-hidden-nav .sub-menu,
.mobile-nav.wd-side-hidden-nav .wd-dropdown-menu {
	background-color: #394024 !important;
}

/* All primary text / links / headings -> white */
.mobile-nav.color-scheme-light,
.mobile-nav.color-scheme-light .woodmart-nav-link,
.mobile-nav.color-scheme-light .nav-link-text,
.mobile-nav.color-scheme-light a,
.mobile-nav.color-scheme-light .wd-heading .title,
.mobile-nav.color-scheme-light .trp-ls-language-name,
.mobile-nav.color-scheme-light .trp-menu-ls-label {
	color: #FFFFFF !important;
}
/* Secondary / sub-menu text -> warm ivory */
.mobile-nav.color-scheme-light .sub-menu a,
.mobile-nav.color-scheme-light .wd-sub-menu a,
.mobile-nav.color-scheme-light .menu-item-description {
	color: #F2F0E6 !important;
}

/* Hover / current item -> bright white accent on the olive */
.mobile-nav.color-scheme-light .woodmart-nav-link:hover .nav-link-text,
.mobile-nav.color-scheme-light a:hover,
.mobile-nav.color-scheme-light .current-menu-item > .woodmart-nav-link .nav-link-text,
.mobile-nav.color-scheme-light .current_page_item > .woodmart-nav-link .nav-link-text {
	color: #FFFFFF !important;
	opacity: 1 !important;
}

/* Row dividers: subtle light lines on the dark surface */
.mobile-nav.wd-side-hidden-nav .wd-nav-mobile > li,
.mobile-nav.wd-side-hidden-nav .wd-nav-mobile li {
	border-color: rgba( 255, 255, 255, 0.14 ) !important;
}

/* Parent-item caret (::after) + mobile sub-menu opener arrow -> light */
.mobile-nav.color-scheme-light .menu-item-has-children > a:after,
.mobile-nav.color-scheme-light .wd-nav-opener,
.mobile-nav.color-scheme-light .wd-nav-opener:before,
.mobile-nav.color-scheme-light .wd-nav-opener:after {
	color: #FFFFFF !important;
	border-color: #FFFFFF !important;
}
/* Active sub-opener: lighter-olive fill */
.mobile-nav .wd-nav-opener.wd-active {
	background-color: #5B653B !important;
	color: #FFFFFF !important;
}
.mobile-nav .wd-nav-opener.wd-active:before,
.mobile-nav .wd-nav-opener.wd-active:after {
	color: #FFFFFF !important;
	border-color: #FFFFFF !important;
}

/* Close (X) button inside the drawer -> light */
.mobile-nav.color-scheme-light .close-side-widget,
.mobile-nav.color-scheme-light .close-side-widget .wd-action-icon,
.mobile-nav.color-scheme-light .close-side-widget .wd-action-text {
	color: #FFFFFF !important;
}

/* Icons (account / login / nav icons, font + svg) -> light */
.mobile-nav.color-scheme-light .wd-nav-icon i,
.mobile-nav.color-scheme-light .nav-link-icon,
.mobile-nav.color-scheme-light .wd-tools-icon:before,
.mobile-nav.color-scheme-light i,
.mobile-nav.color-scheme-light svg {
	color: #FFFFFF !important;
	fill: #FFFFFF !important;
}

/* -------------------------------------------------------------
   PRICING SPEC — Regular product page dynamic alert (.msdf-pp-alert)
   Brand: cream surface, olive accents, gold for the unlocked offer.
------------------------------------------------------------- */
.msdf-pp-alert {
	margin: 14px 0 16px;
	padding: 14px 16px;
	background: #f7f4ea;
	border: 1px solid #e3dcc5;
	border-radius: 12px;
	font-size: 15px;
}
.msdf-pp-alert .msdf-pp-prices {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin-bottom: 8px;
}
.msdf-pp-alert .msdf-pp-price span { color: #6b6b5e; font-size: .85em; display: block; }
.msdf-pp-alert .msdf-pp-price strong { color: #2f4515; font-size: 1.35em; }
.msdf-pp-alert .msdf-pp-totalrow strong { color: #6f8f3f; }
.msdf-pp-alert .msdf-pp-deliverrow strong { color: #c2a24a; }
.msdf-pp-alert .msdf-pp-msg {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #eef3e2;
	color: #3f5a1c;
	border-inline-start: 3px solid #6f8f3f;
	line-height: 1.5;
}
.msdf-pp-alert .msdf-pp-msg:empty { display: none; }
.msdf-pp-alert .msdf-pp-msg.msdf-free { background: #fbf6e6; border-inline-start-color: #c2a24a; color: #7a5f12; font-weight: 600; }
.msdf-pp-alert .msdf-pp-msg.msdf-pending { background: #fbf3df; border-inline-start-color: #c2a24a; color: #8a6d16; }
@keyframes msdfPpPulse {
	0%   { box-shadow: 0 0 0 0 rgba(194,162,74,.45); }
	100% { box-shadow: 0 0 0 14px rgba(194,162,74,0); }
}
.msdf-pp-alert.msdf-pp-pulse { animation: msdfPpPulse .7s ease-out 1; }

/* =============================================================
   BULK ORDERS REDESIGN — طلبات الجملة (.msb)
   Premium organic minimalism. Scoped entirely under .msb so it
   never leaks into the rest of the theme. Reversible with the
   plugin + the CF7 form-template rollback.
   ============================================================= */
.msb {
	--msb-olive-900: #394024;
	--msb-olive-700: #5B653B;
	--msb-olive-500: #7C8A52;
	--msb-ivory:     #FAF8F3;
	--msb-sage:      #D6DCA3;
	--msb-ink:       #1B1F0E;
	--msb-line:      #ECE7DA;
	--msb-muted:     #8A8A7A;
	direction: rtl;
	color: var(--msb-ink);
	max-width: 1120px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
}
.msb *, .msb *::before, .msb *::after { box-sizing: border-box; }

.msb-grid {
	display: grid;
	grid-template-columns: 1fr 1fr; /* RTL: first (calc) sits right, form left */
	gap: 28px;
	align-items: start;
}
.msb-col {
	background: var(--msb-ivory);
	border: 1px solid var(--msb-line);
	border-radius: 20px;
	padding: 24px;
}

/* --- shared cards --- */
.msb-card {
	background: #fff;
	border: 1px solid var(--msb-line);
	border-radius: 16px;
	padding: 18px 20px;
	margin-bottom: 16px;
}
.msb-card:last-child { margin-bottom: 0; }
.msb-sub { display: block; font-weight: 700; color: var(--msb-olive-900); margin-bottom: 12px; }

/* --- product card --- */
.msb-product { display: flex; gap: 16px; align-items: center; }
.msb-product-media { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--msb-ivory); border: 1px solid var(--msb-line); display: flex; align-items: center; justify-content: center; }
.msb-product-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.msb-product-name { margin: 0 0 4px; font-size: 1.15em; color: var(--msb-olive-900); font-weight: 700; }
.msb-product-cap { color: var(--msb-muted); font-size: .92em; }

/* --- quantity stepper --- */
.msb-stepper { display: flex; align-items: stretch; gap: 10px; max-width: 260px; }
.msb-minus, .msb-plus {
	flex: 0 0 52px; height: 52px; border: 1px solid var(--msb-line); background: var(--msb-ivory);
	color: var(--msb-olive-900); font-size: 24px; line-height: 1; border-radius: 12px; cursor: pointer;
	transition: background .15s, border-color .15s;
}
.msb-minus:hover, .msb-plus:hover { background: var(--msb-sage); border-color: var(--msb-olive-500); }
.msb-qtyinput {
	flex: 1 1 auto; min-width: 0; height: 52px; text-align: center; font-size: 1.35em; font-weight: 700;
	color: var(--msb-olive-900); border: 1px solid var(--msb-line); border-radius: 12px; background: #fff;
	-moz-appearance: textfield;
}
.msb-qtyinput::-webkit-outer-spin-button, .msb-qtyinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.msb-quick { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.msb-quick button {
	flex: 1 1 0; min-width: 56px; padding: 10px 6px; border: 1px solid var(--msb-line); background: #fff;
	color: var(--msb-olive-700); font-weight: 700; border-radius: 10px; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.msb-quick button:hover { background: var(--msb-ivory); border-color: var(--msb-olive-500); }

/* --- tier cards --- */
.msb-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.msb-tier {
	display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 12px 8px;
	background: #fff; border: 1px solid var(--msb-line); border-radius: 14px; cursor: pointer;
	transition: background .15s, border-color .15s, box-shadow .15s; color: var(--msb-ink);
}
.msb-tier:hover { border-color: var(--msb-olive-500); }
.msb-tier.is-active { background: var(--msb-olive-900); border-color: var(--msb-olive-900); box-shadow: 0 4px 14px rgba(57,64,36,.18); }
.msb-tier.is-active .msb-tier-range, .msb-tier.is-active .msb-tier-desc { color: #fff; }
.msb-tier-range { font-weight: 700; color: var(--msb-olive-900); font-size: .98em; }
.msb-tier-desc { font-size: .8em; color: var(--msb-muted); }

/* --- live summary --- */
.msb-summary { transition: opacity .15s; }
.msb.is-loading .msb-summary { opacity: .55; }
.msb-sum-rows { display: flex; flex-direction: column; gap: 2px; }
.msb-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--msb-line); }
.msb-row:last-child { border-bottom: 0; }
.msb-row span { color: var(--msb-muted); }
.msb-row strong { color: var(--msb-olive-900); font-weight: 700; }
.msb-row-free strong { color: var(--msb-olive-500); }
.msb-row-save strong { color: var(--msb-olive-500); }
.msb-sum-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 14px; border-top: 2px solid var(--msb-line); }
.msb-sum-total span { color: var(--msb-olive-700); font-weight: 700; }
.msb-sum-total strong { color: var(--msb-olive-900); font-size: 1.9em; font-weight: 800; line-height: 1; }
.msb-sum-msg { margin-top: 12px; padding: 11px 13px; border-radius: 10px; background: #f2f4e6; color: var(--msb-olive-700); border-inline-start: 3px solid var(--msb-olive-500); line-height: 1.5; }
.msb-sum-msg.is-free { background: #f6f3e2; border-inline-start-color: #c2a24a; color: #7a5f12; font-weight: 600; }
.msb-sum-msg.is-pending { background: #fbf3df; border-inline-start-color: #c2a24a; color: #8a6d16; }

/* --- custom quote (101+) --- */
.msb-custom { text-align: center; background: var(--msb-olive-900); border-color: var(--msb-olive-900); color: #fff; }
.msb-custom-title { margin: 4px 0 8px; color: #fff; font-size: 1.3em; font-weight: 800; }
.msb-custom-text { color: #e9ecd9; margin: 0 0 16px; line-height: 1.6; }
.msb-custom-cta { background: var(--msb-sage); color: var(--msb-olive-900); border: 0; border-radius: 30px; padding: 13px 30px; font-weight: 800; font-size: 1.02em; cursor: pointer; transition: background .15s; }
.msb-custom-cta:hover { background: #e6ebbf; }

/* --- customer form --- */
.msb-form-title { margin: 0 0 20px; font-size: 1.25em; font-weight: 800; color: var(--msb-olive-900); }
.msb-field { margin-bottom: 16px; text-align: right; }
.msb-field > label { display: block; margin-bottom: 7px; font-weight: 700; color: var(--msb-olive-900); }
.msb-opt { color: var(--msb-muted); font-weight: 400; font-size: .85em; }
.msb .msb-field input[type="text"],
.msb .msb-field input[type="tel"],
.msb .msb-field select,
.msb .msb-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--msb-line);
	border-radius: 12px; background: #fff; color: var(--msb-ink); font-size: 1em; font-family: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.msb .msb-field textarea { min-height: 96px; resize: vertical; }
.msb .msb-field input:focus, .msb .msb-field select:focus, .msb .msb-field textarea:focus {
	outline: none; border-color: var(--msb-olive-500); box-shadow: 0 0 0 3px rgba(124,138,82,.2);
}
.msb-phone { display: flex; gap: 8px; align-items: stretch; direction: ltr; }
.msb-phone-code { flex: 0 0 auto; display: flex; align-items: center; padding: 0 14px; background: var(--msb-ivory); border: 1px solid var(--msb-line); border-radius: 12px; font-weight: 700; color: var(--msb-olive-900); }
.msb-phone input[type="tel"] { direction: ltr; text-align: left; }

/* submit + CF7 states */
.msb .msb-submit, .msb input.msb-submit, .msb .wpcf7-submit {
	width: 100%; background: var(--msb-olive-900); color: #fff; border: 0; border-radius: 30px;
	padding: 15px 24px; font-size: 1.05em; font-weight: 800; cursor: pointer; margin-top: 6px;
	transition: background .15s;
}
.msb .msb-submit:hover, .msb .wpcf7-submit:hover { background: var(--msb-olive-700); }
.msb .wpcf7-spinner { margin: 12px auto 0; display: block; }
.msb .wpcf7-response-output { margin: 16px 0 0 !important; border-radius: 12px; padding: 12px 14px !important; border-width: 1px !important; }
.msb form.wpcf7-form.sent .wpcf7-response-output { background: #eef4e2; border-color: var(--msb-olive-500) !important; color: var(--msb-olive-900); }
.msb form.wpcf7-form.invalid .wpcf7-response-output, .msb form.wpcf7-form.failed .wpcf7-response-output { background: #fbeaea; border-color: #d99; color: #7a2b2b; }
.msb .wpcf7-not-valid-tip { color: #b33; font-size: .85em; margin-top: 4px; }
.msb .wpcf7-form.submitting .msb-submit { opacity: .7; pointer-events: none; }

/* --- responsive --- */
@media (max-width: 900px) {
	.msb-grid { grid-template-columns: 1fr; gap: 18px; }
	/* mobile order: product, qty, tiers, summary, then the form */
}
@media (max-width: 560px) {
	.msb-tiers { grid-template-columns: repeat(2, 1fr); }
	.msb-col { padding: 18px; }
	.msb-sum-total strong { font-size: 1.6em; }
}
@media (prefers-reduced-motion: reduce) {
	.msb * { transition: none !important; }
}

/* --- BULK: premium quantity SLIDER (replaces the ± stepper) --- */
.msb-qtyshow { text-align: center; margin: 4px 0 16px; }
.msb-qtynum { font-size: 2.3em; font-weight: 800; color: var(--msb-olive-900); line-height: 1; }
.msb-qtyunit { color: var(--msb-muted); font-weight: 700; margin-inline-start: 6px; }

.msb-slider {
	-webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
	background: transparent; direction: rtl; cursor: pointer; margin: 2px 0; --pct: 10%;
}
/* webkit track: light-gray with olive fill from the RTL start (right edge) */
.msb-slider::-webkit-slider-runnable-track {
	height: 8px; border-radius: 999px;
	background: linear-gradient( to left, var(--msb-olive-500) 0%, var(--msb-olive-500) var(--pct), #e7e3d6 var(--pct), #e7e3d6 100% );
}
.msb-slider::-moz-range-track { height: 8px; border-radius: 999px; background: #e7e3d6; }
.msb-slider::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--msb-olive-500); }
/* thumb */
.msb-slider::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%;
	background: #fff; border: 3px solid var(--msb-olive-900); box-shadow: 0 1px 3px rgba(27,31,14,.2);
	cursor: pointer; transition: transform .1s;
}
.msb-slider::-webkit-slider-thumb:active { transform: scale(1.12); }
.msb-slider::-moz-range-thumb {
	width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--msb-olive-900);
	box-shadow: 0 1px 3px rgba(27,31,14,.2); cursor: pointer;
}
.msb-slider:focus-visible { outline: none; }
.msb-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(124,138,82,.35); }
.msb-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(124,138,82,.35); }

.msb-precise { margin-top: 16px; text-align: right; }
.msb-precise label { display: block; font-size: .85em; color: var(--msb-muted); margin-bottom: 6px; }
.msb-precise .msb-qtyinput {
	width: 130px; height: 46px; text-align: center; font-size: 1.1em; font-weight: 700; color: var(--msb-olive-900);
	border: 1px solid var(--msb-line); border-radius: 12px; background: #fff; -moz-appearance: textfield;
}
.msb-precise .msb-qtyinput:focus { outline: none; border-color: var(--msb-olive-500); box-shadow: 0 0 0 3px rgba(124,138,82,.2); }
.msb-precise .msb-qtyinput::-webkit-outer-spin-button,
.msb-precise .msb-qtyinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- BULK: intl-tel-input integration (keep it visually consistent) --- */
.msb .iti { width: 100%; display: block; }
.msb .iti input[type="tel"] { width: 100%; }
.msb-phone.is-invalid input[type="tel"] { border-color: #d99; box-shadow: 0 0 0 3px rgba(200,80,80,.15); }
/* Inline country dropdown: open directly beneath the input, aligned to the
   RTL start edge, full width of the field; scroll long lists; keep above the
   header. (Root-cause fix for the detached far-left dropdown — logical RTL
   positioning, not arbitrary pixel offsets.) */
/* Higher specificity than the library's own `.iti--inline-dropdown
   .iti__dropdown-content` rule (which loads after ours and uses !important), so
   this wins. The dropdown's offset parent is .iti__country-container, flush at
   the input's right (RTL start) edge; the list is LTR. Anchoring its right edge
   there (+ the library's input-width) opens it exactly under the full input. */
.msb .iti .iti__country-container .iti__dropdown-content {
	left: auto !important;
	right: 0 !important;
	inset-inline-start: auto !important;
	inset-inline-end: 0 !important;
	max-height: 280px;
	overflow-y: auto;
	z-index: 1001;
}
.msb .iti__search-input { width: 100%; box-sizing: border-box; }
/* fullscreen popup (mobile default) stays above everything */
.iti--fullscreen-popup { z-index: 100000 !important; }

/* =============================================================
   PRODUCT PAGE — "احسب سعر طلب الجملة" CTA (secondary to Add to Cart)
   ============================================================= */
.msdf-bulk-cta {
	display: flex; align-items: center; gap: 12px; width: 100%;
	margin: 14px 0 4px; padding: 14px 18px;
	background: #FAF8F3; border: 1.5px solid #7C8A52; border-radius: 14px;
	color: #394024; text-decoration: none;
	transition: background .15s, border-color .15s, box-shadow .15s;
}
.msdf-bulk-cta:hover { background: #eef0e2; border-color: #394024; color: #394024; }
.msdf-bulk-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(124,138,82,.4); }
.msdf-bulk-cta-ic { flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #7C8A52; }
.msdf-bulk-cta-ic svg { width: 26px; height: 26px; display: block; }
.msdf-bulk-cta-txt { display: flex; flex-direction: column; line-height: 1.3; }
.msdf-bulk-cta-txt strong { font-size: 1.02em; font-weight: 800; }
.msdf-bulk-cta-txt small { color: #6b6b5e; font-weight: 400; font-size: .82em; }
@media (max-width: 480px) { .msdf-bulk-cta-txt small { display: none; } }

/* =============================================================
   RECIPES (BLOG) — "COMING SOON" premium section
   Palette: #394024 primary · #5B653B secondary · #7C8A52 soft
            #FAF8F3 ivory · #1B1F0E deep
   ============================================================= */
.msdf-soon {
	background: #FAF8F3;
	border-radius: 24px;
	margin: 48px auto;
	max-width: 880px;
	padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
	position: relative;
	overflow: hidden;
	text-align: center;
}
.msdf-soon::before,
.msdf-soon::after {
	content: "";
	position: absolute;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(124,138,82,.12), rgba(124,138,82,0) 70%);
	pointer-events: none;
}
.msdf-soon::before { top: -70px; inset-inline-start: -70px; }
.msdf-soon::after { bottom: -80px; inset-inline-end: -60px; }
.msdf-soon-inner { position: relative; z-index: 1; }
.msdf-soon-deco { display: inline-flex; color: #7C8A52; margin-bottom: 22px; }
.msdf-soon-eyebrow {
	color: #7C8A52;
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .06em;
	margin: 0 0 14px;
}
.msdf-soon-title {
	color: #394024;
	font-size: clamp(1.9rem, 4.6vw, 3rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 20px;
}
.msdf-soon-copy {
	color: #5B653B;
	font-size: clamp(1.05rem, 2.4vw, 1.25rem);
	line-height: 1.9;
	max-width: 620px;
	margin: 0 auto 14px;
}
.msdf-soon-second {
	color: #7C8A52;
	font-size: 1rem;
	line-height: 1.8;
	max-width: 560px;
	margin: 0 auto 34px;
}
.msdf-soon-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: #394024;
	color: #FAF8F3;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	padding: 15px 36px;
	border-radius: 999px;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
	box-shadow: 0 10px 24px -12px rgba(27,31,14,.6);
}
.msdf-soon-cta:hover {
	background: #1B1F0E;
	color: #FAF8F3;
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -12px rgba(27,31,14,.7);
}
.msdf-soon-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(124,138,82,.5); }
.msdf-soon-yt { flex: 0 0 auto; }
@media (max-width: 575px) {
	.msdf-soon { margin: 28px auto; border-radius: 18px; }
}

/* =============================================================
   HOMEPAGE — combined "Products Section" (intro + calculator)
   The calculator is an Elementor Shortcode widget placed right
   below the moved intro (eyebrow / heading / description). These
   rules tighten the intro↔calculator gap so the block reads as
   one cohesive section. Scoped to the shortcode-rendered block.
   ============================================================= */
.elementor-widget-shortcode .msdf-home-block {
	margin-top: 14px;
	margin-bottom: 8px;
}

/* =============================================================
   BULK ORDERS — ENGLISH (LTR) layout.
   The .msb design is authored RTL (Arabic). On the English site the
   wpcf7_form_elements filter sets dir="ltr" on the wrapper; these rules
   mirror the RTL-specific declarations so the English page reads left-to-right
   (number→unit, label→value, slider fills from the left). Arabic is untouched.
   ============================================================= */
.msb[dir="ltr"] { direction: ltr; }
.msb[dir="ltr"] .msb-field,
.msb[dir="ltr"] .msb-precise { text-align: left; }
.msb[dir="ltr"] .msb-slider { direction: ltr; }
.msb[dir="ltr"] .msb-slider::-webkit-slider-runnable-track {
	background: linear-gradient( to right, var(--msb-olive-500) 0%, var(--msb-olive-500) var(--pct), #e7e3d6 var(--pct), #e7e3d6 100% );
}

/* -------------------------------------------------------------
   TASK 03 (2026-10-27) — Store page: hide category navigation
   -------------------------------------------------------------
   The main Store (WooCommerce shop archive) renders WoodMart's
   product-category navigation (ul.wd-nav-product-cat, in the page
   title block) plus a per-card category label (.wd-product-cats).
   The client wants a simpler store showing products directly, with
   no category clutter. We HIDE these presentation elements only —
   categories, product→category assignments, permalinks, the product
   grid, sorting and pagination are all untouched in the backend.
   Scoped to the shop archive (body.woocommerce-shop), so it applies
   on both the Arabic and English Store pages and nowhere else.
   Reversible: deactivate the plugin.
------------------------------------------------------------- */
body.woocommerce-shop .wd-nav-product-cat,
body.woocommerce-shop .wd-page-title .wd-nav-product-cat {
	display: none !important;
}
/* Per-product-card category label (category-related clutter). WoodMart renders
   product cards as .product / .wd-product (div, not li), so scope to the shop. */
body.woocommerce-shop .wd-product-cats {
	display: none !important;
}
