/* components.css — عناصر واجهة قابلة لإعادة الاستخدام (Mirelia LB v2) */

/* ---------- أزرار ---------- */
.mlb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--mlb-radius-sm);
	border: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background-color .15s ease, opacity .15s ease;
}
.mlb-btn--dark   { background: var(--mlb-ink); color: var(--mlb-text-light); }
.mlb-btn--dark:hover { background: var(--mlb-ink-2); color: #fff; }
.mlb-btn--gold   { background: var(--mlb-gold); color: var(--mlb-ink); }
.mlb-btn--gold:hover { background: var(--mlb-gold-dark); color: #fff; }
.mlb-btn--outline { background: transparent; color: var(--mlb-ink); border: 1px solid var(--mlb-ink); }
.mlb-btn[disabled],
.mlb-btn.disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- عنوان قسم ---------- */
.mlb-section-title { text-align: center; margin-bottom: 40px; }
.mlb-section-title .mlb-eyebrow {
	display: block;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mlb-gold);
	margin-bottom: 8px;
}
.mlb-section-title h2 {
	font-family: var(--mlb-font-display);
	font-size: clamp(26px, 4vw, 38px);
	margin: 0 0 10px;
}
.mlb-section-title p { color: var(--mlb-text-muted-2); margin: 0; }
.mlb-section-title:not(.mlb-no-line)::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	background: var(--mlb-gold);
	margin: 16px auto 0;
}

/* ---------- Hero ---------- */
.mlb-hero {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	background-size: cover;
	background-position: center;
	padding: 40px 24px;
}
.mlb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(30,23,18,0.55), rgba(30,23,18,0.75));
}
.mlb-hero-content { position: relative; max-width: 640px; }
.mlb-hero-content h1 {
	font-family: var(--mlb-font-display);
	font-size: clamp(32px, 6vw, 56px);
	margin: 0 0 18px;
}
.mlb-hero-content p { font-size: 15px; line-height: 1.7; opacity: 0.9; margin-bottom: 28px; }

@media (max-width: 600px) {
	/* هيرو أقصر على الموبايل — 70vh كان عم ياخد شاشة كاملة تقريبًا وياكل
	   مساحة قبل ما الزبون يوصل للمحتوى/المنتجات. */
	.mlb-hero { min-height: 56vh; padding: 32px 20px; }
	.mlb-hero-content p { margin-bottom: 22px; font-size: 14px; }
}

/* ---------- شارات الثقة ---------- */
.mlb-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding-block: 48px;
}
.mlb-trust-item { text-align: center; }
.mlb-trust-item .mlb-icon { color: var(--mlb-gold); margin-bottom: 10px; }
.mlb-trust-item h3 { font-size: 14.5px; margin: 0 0 4px; }
.mlb-trust-item p { font-size: 12.5px; color: var(--mlb-text-muted-2); margin: 0; }

@media (max-width: 900px) { .mlb-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
	.mlb-trust-grid { padding-block: 30px; gap: 18px; }
	.mlb-section-title { margin-bottom: 26px; }
	.mlb-promo-banner { padding: 40px 20px; margin-block: 36px; }
}

/* ---------- شارة المخزون (حالتين بس: متوفر/غير متوفر — بدون رقم) ---------- */
.mlb-stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 999px;
	letter-spacing: 0.01em;
	white-space: nowrap;
}
.mlb-stock-badge--in {
	background: rgba(46,107,79,0.1);
	color: var(--mlb-success);
	border: 1px solid rgba(46,107,79,0.3);
}
.mlb-stock-badge--out {
	background: rgba(163,45,45,0.1);
	color: var(--mlb-error);
	border: 1px solid rgba(163,45,45,0.3);
}

/* ---------- بطاقة منتج ---------- */
.mlb-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
@media (max-width: 1024px) { .mlb-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .mlb-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.mlb-product-card {
	background: var(--mlb-white-warm);
	border: 1px solid var(--mlb-border);
	border-radius: var(--mlb-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.mlb-product-card:hover { box-shadow: 0 12px 28px rgba(30,23,18,0.08); transform: translateY(-2px); }
.mlb-product-card .mlb-product-thumb {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--mlb-bg-soft);
}
.mlb-product-card .mlb-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .4s ease;
}
.mlb-product-card:hover .mlb-product-thumb img { transform: scale(1.06); }
.mlb-product-card .mlb-stock-badge { position: absolute; top: 10px; inset-inline-start: 10px; background-color: var(--mlb-white-warm); }
.mlb-product-card .mlb-sale-badge {
	position: absolute; top: 10px; inset-inline-end: 10px;
	background: var(--mlb-error); color: #fff; font-size: 11px; font-weight: 700;
	padding: 3px 9px; border-radius: 2px;
}
.mlb-product-card .mlb-product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mlb-product-card h3 { font-size: 14.5px; margin: 0; font-weight: 500; line-height: 1.35; }
.mlb-product-card h3 a { color: inherit; text-decoration: none; }
.mlb-product-price { font-size: 15px; font-weight: 600; }
.mlb-product-price del { color: var(--mlb-text-muted-3); font-weight: 400; margin-inline-end: 6px; }
.mlb-product-price ins { text-decoration: none; color: var(--mlb-sale); }
.mlb-product-card .mlb-btn { margin-top: auto; width: 100%; }

@media (max-width: 600px) {
	/* بطاقات أضيق (عمودين)، فـpadding أخف بشوي بيخلّي المحتوى يتنفّس أكتر
	   بدل ما ياكل مساحة العرض الضيقة أصلًا. */
	.mlb-product-card .mlb-product-body { padding: 11px; gap: 6px; }
	.mlb-product-card h3 { font-size: 13px; }
	.mlb-product-price { font-size: 13.5px; }
	.mlb-stock-badge { font-size: 10.5px; padding: 3px 8px; }
	.woocommerce ul.products li.product .button,
	.mlb-product-grid li.product .button {
		font-size: 12.5px;
		padding: 10px 14px;
	}
}

/* padding-block موحّد لأقسام الهوم (كان style inline مكرر 3 مرات — نفس
   القيمة 56px تمامًا متل قبل، بس هلق قابلة للتصغير بميديا كويري للموبايل
   بدل ما تبقى مقفولة جوا style="" ثابت). */
.mlb-section-pad { padding-block: 56px; }
@media (max-width: 600px) {
	.mlb-section-pad { padding-block: 34px; }
}

/* ---------- بانر ترويجي ---------- */
.mlb-promo-banner {
	background: var(--mlb-ink);
	color: var(--mlb-text-light);
	text-align: center;
	padding: 64px 24px;
	margin-block: 64px;
}
.mlb-promo-banner h2 { font-family: var(--mlb-font-display); font-size: clamp(24px, 4vw, 34px); margin: 0 0 12px; }
.mlb-promo-banner p { color: rgba(237,230,214,0.75); margin: 0 0 24px; }

/* ---------- آراء العملاء ---------- */
.mlb-reviews {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 900px) { .mlb-reviews { grid-template-columns: 1fr; } }
.mlb-review-card {
	background: var(--mlb-white-warm);
	border: 1px solid var(--mlb-border);
	border-radius: var(--mlb-radius-md);
	padding: 22px;
}
.mlb-review-card .mlb-stars { color: var(--mlb-gold); font-size: 14px; margin-bottom: 10px; }
.mlb-review-card p { font-size: 13.5px; color: var(--mlb-text-brown); margin: 0 0 12px; }
.mlb-review-card strong { font-size: 13px; }

/* ---------- صفحات عامة (About/Contact) ---------- */
.mlb-page-content { max-width: 760px; margin: 0 auto; padding-block: 20px 60px; }
.mlb-page-body { color: var(--mlb-text-brown); line-height: 1.8; }
.mlb-contact-form p { margin-bottom: 16px; }
.mlb-contact-form label { display: block; font-size: 13px; color: var(--mlb-text-muted); margin-bottom: 6px; }
.mlb-contact-form input,
.mlb-contact-form textarea {
	width: 100%;
	padding: 11px;
	border: 1px solid var(--mlb-border);
	border-radius: var(--mlb-radius-sm);
	font-family: inherit;
	font-size: 14px;
}

/* ---------- Wishlist heart (يستخدم أصلًا mirelia-lb-core) ---------- */
.mlb-wishlist-btn { background: none; border: none; cursor: pointer; color: var(--mlb-text-muted); }
.mlb-wishlist-btn.is-active,
.mlb-wishlist-btn:hover { color: var(--mlb-error); }

/* ---------- زر واتساب بالهيدر — شارة خضراء دائرية كبيرة ومستقلة ----------
   بطلب صريح من المستخدم: أكبر من باقي أيقونات الهيدر، لون أخضر واتساب
   الرسمي، مستقلة بصريًا (فاصل خفيف بعدها) عن باقي الأيقونات. */
.mlb-header-whatsapp {
	background: #25d366;
	color: #fff;
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mlb-header-whatsapp:hover,
.mlb-header-whatsapp:focus-visible {
	background: #1ebc59;
	color: #fff;
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 5px 14px rgba(37, 211, 102, 0.5);
}
.mlb-header-divider {
	display: inline-block;
	width: 1px;
	height: 26px;
	background: rgba(237, 230, 214, 0.25);
	margin-inline: 4px;
}
@media (max-width: 600px) {
	.mlb-header-whatsapp { width: 40px; height: 40px; min-width: 40px; }
	.mlb-header-whatsapp svg { width: 23px; height: 23px; }
}

/* ---------- ثلاث أيقونات تواصل بأعلى الهيدر (WhatsApp + Facebook +
   Instagram) — بطلب صريح من المستخدم (2026-09-17): بجانب بعض، بنفس
   الحجم بالضبط، شارات دائرية بألوان العلامات الرسمية، واضحة وسهلة اللمس
   على الموبايل، وبدون أي تداخل مع الـLogo/Menu/Search/Cart. ---------- */
.mlb-header-social {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mlb-header-social-btn {
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 50%;
	color: #fff;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mlb-header-social-btn:hover,
.mlb-header-social-btn:focus-visible {
	color: #fff;
	transform: translateY(-2px) scale(1.04);
}
.mlb-header-facebook {
	background: #1877f2;
	box-shadow: 0 3px 10px rgba(24, 119, 242, 0.4);
}
.mlb-header-facebook:hover,
.mlb-header-facebook:focus-visible {
	background: #1461d1;
	box-shadow: 0 5px 14px rgba(24, 119, 242, 0.5);
}
.mlb-header-instagram {
	background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
	box-shadow: 0 3px 10px rgba(214, 36, 159, 0.35);
}
.mlb-header-instagram:hover,
.mlb-header-instagram:focus-visible {
	box-shadow: 0 5px 14px rgba(214, 36, 159, 0.5);
}
@media (max-width: 600px) {
	.mlb-header-social { gap: 6px; }
	.mlb-header-social-btn { width: 38px; height: 38px; min-width: 38px; }
	.mlb-header-social-btn svg { width: 19px; height: 19px; }
}

/* ---------- عناصر ثانوية بالهيدر (بحث/حسابي) — تختفي على الموبايل بعد
   ما صار في 3 أيقونات تواصل + Language selector، وبتظهر بدالها جوا
   القائمة المنسدلة (mlb-mobile-nav-utility بالأسفل) حتى ما يزدحم الهيدر
   ولا نصغّر الأيقونات بشكل مبالغ فيه. الوظيفة نفسها موجودة 100%، بس
   بمكان تاني على الموبايل فقط — الديسكتوب ما تغيّر إطلاقًا. ---------- */
@media (max-width: 900px) {
	.mlb-header-secondary { display: none; }
}

/* ---------- Language switcher بالهيدر — AR | EN (Polylang، نظام محتوى
   ثنائي حقيقي، بدون أي ترجمة آلية). شكل "pill" بسيط بهوية الموقع
   (ذهبي/داكن). ما إلها أي تأثير لحد ما يصير Polylang مفعّل ومهيّأ —
   العنصر أصلًا ما بيطبع إذا الدالة مش موجودة أو ما في لغات. ---------- */
.mlb-lang-switcher--codes {
	display: flex;
	align-items: center;
}
.mlb-lang-switcher-list {
	list-style: none;
	margin: 0;
	padding: 4px 6px;
	display: flex;
	align-items: center;
	gap: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
}
.mlb-lang-switcher-item {
	display: flex;
	align-items: center;
}
/* فاصل "|" بين AR وEN — عنصر حدّ بدل نص، بينعكس تلقائيًا صح بالـRTL. */
.mlb-lang-switcher-item + .mlb-lang-switcher-item {
	margin-inline-start: 8px;
	padding-inline-start: 8px;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.3);
}
.mlb-lang-switcher-item a {
	display: block;
	color: var(--mlb-text-light);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	opacity: 0.7;
	padding: 4px 6px;
	border-radius: 999px;
	transition: opacity 0.15s ease, color 0.15s ease;
}
.mlb-lang-switcher-item a:hover,
.mlb-lang-switcher-item a:focus-visible {
	opacity: 1;
}
.mlb-lang-switcher-item.is-active a {
	opacity: 1;
	color: var(--mlb-gold);
}
@media (max-width: 600px) {
	.mlb-lang-switcher-list { padding: 3px 5px; }
	.mlb-lang-switcher-item a { font-size: 12px; padding: 3px 5px; }
	.mlb-lang-switcher-item + .mlb-lang-switcher-item { margin-inline-start: 6px; padding-inline-start: 6px; }
}
/* ---------- شبكة أمان لشاشات ضيقة جدًا (<360px، مثل iPhone SE القديم):
   منقلّل المسافات بدل ما نسمح بأي Overflow أفقي أو عنصر يطلع خارج
   الشاشة — بالضبط زي ما طلب المستخدم: "استخدم Responsive Layout مناسب
   بدل تصغير الأيقونات بشكل مبالغ فيه". ---------- */
@media (max-width: 359px) {
	.mlb-header-actions { gap: 5px; }
	.mlb-header-social { gap: 4px; }
	.mlb-header-divider { display: none; }
	.mlb-lang-switcher-item a { font-size: 11px; padding: 2px 4px; }
	.mlb-lang-switcher-item + .mlb-lang-switcher-item { margin-inline-start: 4px; padding-inline-start: 4px; }
}

/* ---------- عناصر "بحث/حسابي" جوا القائمة المنسدلة بالموبايل ---------- */
.mlb-mobile-nav-utility {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	margin-bottom: 6px;
	padding-bottom: 6px;
}
.mlb-mobile-nav-utility button,
.mlb-mobile-nav-utility a {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: none;
	border: none;
	text-align: start;
	padding: 10px 4px;
	color: var(--mlb-text-light);
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}

/* ---------- أيقونات فيسبوك/انستغرام بالفوتر — كبيرة وواضحة وبارزة ----------
   بطلب صريح من المستخدم: أكبر بكثير من النسخة السابقة، مسافة واضحة بينهما،
   واضحة جدًا على الديسكتوب والموبايل، بنفس هوية ألوان الموقع (ذهبي/كريمي). */
.mlb-footer-social {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 18px;
}
.mlb-footer-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1.5px solid rgba(237, 230, 214, 0.5);
	background: rgba(237, 230, 214, 0.07);
	color: var(--mlb-text-light, #ede6d6);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.mlb-footer-social-btn svg { width: 28px; height: 28px; }
.mlb-footer-social-btn:hover,
.mlb-footer-social-btn:focus-visible {
	background: var(--mlb-gold);
	border-color: var(--mlb-gold);
	color: var(--mlb-ink);
	transform: translateY(-2px);
}
@media (max-width: 600px) {
	.mlb-footer-social { gap: 14px; }
	.mlb-footer-social-btn { width: 50px; height: 50px; }
	.mlb-footer-social-btn svg { width: 25px; height: 25px; }
}
