/* =====================================================================
   MyBabyEG — Brand Update 2026
   Palette: Navy #24214f · Magenta #aa3a7f · Pink #f4a6dc · #fff · #000
   Contrast (WCAG): navy/white 14.9:1 · magenta/white 5.8:1 · pink/black 11.3:1
   Rule: pink is a background/highlight only (never text on white: 1.85:1)
   ===================================================================== */

/* ---------- 1. Font ---------- */
@font-face {
	font-family: "Montserrat Arabic";
	src: url("../fonts/montserrat-arabic-400.woff2") format("woff2");
	font-weight: 100 900; /* ملف واحد؛ المتصفح يولّد الـ bold */
	font-style: normal;
	font-display: swap;
}

/* ---------- 2. Tokens (يغذي كل متغيرات القالب) ---------- */
:root {
	--mbe-navy: #24214f;
	--mbe-magenta: #aa3a7f;
	--mbe-pink: #f4a6dc;
	--mbe-pink-08: rgba(244, 166, 220, .16);  /* خلفيات فاتحة */
	--mbe-pink-30: rgba(244, 166, 220, .45);  /* حدود ناعمة */
	--mbe-navy-08: rgba(36, 33, 79, .06);

	--c-ink: #24214f;
	--c-ink-2: #000000;
	--c-sage: #24214f;
	--c-sage-dk: #24214f;
	--c-sage-lt: var(--mbe-navy-08);
	--c-cta: #aa3a7f;
	--c-cta-2: #24214f;
	--c-sale: #aa3a7f;
	--c-blush: var(--mbe-pink-08);
	--c-clay: #aa3a7f;
	--c-cream: #ffffff;
	--c-photo: #ffffff;
	--c-bg: #ffffff;
	--c-text: #000000;
	--c-muted: rgba(0, 0, 0, .64);          /* 5.9:1 على الأبيض */
	--c-line: rgba(36, 33, 79, .14);
	--c-primary: #24214f;
	--c-bg-soft: var(--mbe-pink-08);

	--f-sans: "Montserrat Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
}

/* ---------- 3. Typography everywhere ---------- */
html, body,
h1, h2, h3, h4, h5, h6,
p, a, li, span, label, small, strong, b,
button, input, select, textarea, .button,
.woocommerce-loop-product__title, .product_title, .price,
.mbe-header, .mbe-header *, .mbe-drawer, .mbe-drawer *, nav, nav * {
	font-family: var(--f-sans) !important;
}
body {
	color: #000;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .product_title, .woocommerce-loop-product__title { color: #24214f; }

/* ---------- 4. Links & navigation ---------- */
a { color: #24214f; transition: color .18s ease; }
a:hover, a:focus-visible { color: #aa3a7f; }
.mbe-header nav a:hover, .mbe-header nav .current-menu-item > a,
.mbe-drawer__body a:hover { color: #aa3a7f; }
.mbe-header nav .current-menu-item > a { box-shadow: inset 0 -2px 0 #f4a6dc; }
:focus-visible { outline: 2px solid #aa3a7f; outline-offset: 2px; }

/* ---------- 5. Buttons (اطلب الآن + أزرار ووكومرس) ---------- */
.mbe-btn, .button, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .single_add_to_cart_button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .checkout-button {
	background: #aa3a7f !important;
	border-color: #aa3a7f !important;
	color: #ffffff !important;
	transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.mbe-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.single_add_to_cart_button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.checkout-button:hover {
	background: #24214f !important;
	border-color: #24214f !important;
	color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(244, 166, 220, .6);
}
.mbe-btn:active, .button:active, .single_add_to_cart_button:active { transform: translateY(1px); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled {
	background: rgba(36, 33, 79, .35) !important; border-color: transparent !important;
}
.mbe-btn--lg { box-shadow: 0 6px 18px -8px rgba(170, 58, 127, .55); }
/* زر ثانوي/محيطي */
.mbe-btn--ghost, .mbe-btn--outline {
	background: #ffffff !important; color: #24214f !important; border: 1.5px solid #24214f !important;
}
.mbe-btn--ghost:hover, .mbe-btn--outline:hover { background: #24214f !important; color: #ffffff !important; }

/* ---------- 6. Prices, badges, sale ---------- */
.price, .price ins, .woocommerce-Price-amount { color: #24214f; }
.price del, .price del .woocommerce-Price-amount { color: rgba(0, 0, 0, .55); }
.onsale, .woocommerce span.onsale { background: #aa3a7f !important; color: #fff !important; }

/* ---------- 7. Header / drawer / footer ---------- */
.mbe-header { border-bottom-color: rgba(36, 33, 79, .12); }
.mbe-drawer__scrim { background: rgba(36, 33, 79, .45); }
.mbe-drawer__body a, .mbe-dnav__help a { border-bottom-color: var(--mbe-pink-30); }
.mbe-footer { background: #24214f; color: #ffffff; }
.mbe-footer a, .mbe-footer__links a { color: rgba(255, 255, 255, .88); }
.mbe-footer a:hover { color: #f4a6dc; }
.mbe-footer__bottom { color: rgba(255, 255, 255, .72); border-top-color: rgba(255, 255, 255, .14); }

/* ---------- 8. Home sections ---------- */
.mbe-hero__lead { color: rgba(0, 0, 0, .7); }
.mbe-hero__alt { border-bottom: 1.5px solid #f4a6dc; }
.mbe-cats--cards .mbe-cat a::after {
	background: linear-gradient(180deg, rgba(36, 33, 79, 0) 45%, rgba(36, 33, 79, .72) 100%);
}
.mbe-reels, .mbe-about { background: var(--mbe-pink-08); }
.mbe-story p { color: #000; }
.mbe-story .mbe-why__item svg { color: #aa3a7f; }
.mbe-about__facts b { color: #24214f; }

/* ---------- 9. Free-shipping / rewards bar ---------- */
.mbe-rewards, .mbe-strip { background: #24214f; box-shadow: 0 14px 30px -18px rgba(36, 33, 79, .75); color: #fff; }
.mbe-rewards__msg b, .mbe-strip__msg b { color: #f4a6dc; }
.mbe-rewards__track { background: rgba(255, 255, 255, .18); }
.mbe-rewards__fill, .mbe-strip__fill,
.mbe-rewards.is-start .mbe-rewards__fill { background: linear-gradient(90deg, #f4a6dc, #aa3a7f) !important; }
.mbe-rewards.is-ship .mbe-rewards__fill, .mbe-rewards.is-full .mbe-rewards__fill { background: #f4a6dc !important; }
.mbe-rewards__stop { color: #24214f; border-color: #f4a6dc; background: #fff; }
.mbe-rewards__stop.is-on { background: #aa3a7f; color: #fff; box-shadow: 0 0 0 4px rgba(244, 166, 220, .5); }
.mbe-strip__dot.is-on { background: #f4a6dc; box-shadow: 0 0 0 3px rgba(244, 166, 220, .35); }

/* ---------- 10. Product page helpers (size, variations, filters) ---------- */
.mbe-sc__beta, .mbe-sc__warn, .mbe-sc__res em, .mbe-select-msg {
	background: var(--mbe-pink-08); color: #aa3a7f; border-color: var(--mbe-pink-30);
}
.mbe-sc__res { border-color: var(--mbe-pink-30); }
.variations tr.mbe-missing th.label { color: #aa3a7f; }
.variations tr.mbe-missing td.value { outline: 2px solid #f4a6dc; }
.mbe-filters__f select { border-color: rgba(36, 33, 79, .25); }
.mbe-size-help { background: var(--mbe-navy-08); border-color: rgba(36, 33, 79, .14); }
.mbe-size-help a { color: #24214f; }
.mbe-size-table th, .mbe-size-table td { border-color: var(--mbe-pink-30); }
.mbe-size-table th { background: var(--mbe-pink-08); color: #24214f; }
/* سواتشات الألوان والمقاسات */
.mbe-swatch[aria-pressed="true"], .mbe-swatch.is-selected,
.variations .selected { border-color: #aa3a7f !important; box-shadow: 0 0 0 2px #f4a6dc; }

/* ---------- 11. FIX A: صورة المنتج الثابتة فوق «منتجات مقترحة» ----------
   الجاليري sticky داخل div.product (grid) والأقسام اللي تحته في نفس الحاوية.
   - الموبايل/التابلت: إلغاء الـ sticky تمامًا.
   - الديسكتوب: sticky محصور في منطقة الصورة/التفاصيل فقط  + الأقسام السفلية في طبقة مستقلة بخلفية بيضاء. */
.single-product div.product > .related,
.single-product div.product > .upsells,
.single-product .related.products,
.single-product .upsells.products,
.single-product .woocommerce-tabs {
	position: relative;
	z-index: 3;
	background: #ffffff;
	isolation: isolate;
	clear: both;
}
.single-product .woocommerce-product-gallery { z-index: 1; align-self: start; }

@media (max-width: 991px) {
	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary {
		position: relative !important;
		top: auto !important;
	}
}
/* الديسكتوب: الجاليري يفضل sticky داخل منطقته فقط (صفّي التفاصيل والتبويبات) */
@media (min-width: 992px) {
	.single-product div.product > .woocommerce-product-gallery { grid-row: 1 / span 2; align-self: start; top: 110px; }
}

/* ---------- 12. FIX B: الجاليري — مصغرات بترتيب ثابت ---------- */
.single-product .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.single-product .flex-control-thumbs li { order: 0 !important; }
.single-product .flex-control-thumbs img.flex-active { outline: 2px solid #aa3a7f; outline-offset: 1px; opacity: 1; }
