/* لوازم موترك – الأنماط العامة (تُحمَّل في كل الصفحات). مبنية بخصائص منطقية ليعمل RTL بلا ملف منفصل. */
/* ---------- الأساس والرموز ---------- */
body { margin: 0; background: #fff; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.lmk {
	--navy: #102432; --navy-2: #0b1a25; --navy-3: #1c3a4f;
	--gold: #f3a712; --gold-2: #ffb92e;
	--ink: #16232d; --mut: #586875; --line: #e2e7ec; --tint: #eef2f6; --bg: #f5f7f9;
	--ff: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, -apple-system, Arial, sans-serif;
	font-family: var(--ff); font-size: 16px; line-height: 1.7; color: var(--ink); background: #fff;
	-webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility;
}
.lmk *, .lmk *::before, .lmk *::after { box-sizing: border-box; }
.lmk :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
.lmk :where(ul, ol) { list-style: none; }
.lmk :where(h1, h2, h3) { font-family: inherit; color: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; }
.lmk img, .lmk svg { max-width: 100%; }
.lmk a { color: inherit; text-decoration: none; }
.lmk a:hover, .lmk a:focus { color: inherit; }
.lmk button, .lmk input, .lmk summary { font-family: inherit; }
.lmk [id] { scroll-margin-top: 96px; }
.lmk-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.lmk-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.lmk-sr, .lmk .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lmk-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.lmk-skip:focus { top: 12px; }

.lmk :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(243, 167, 18, .6); }
.lmk .lmk-dark :focus-visible, .lmk .lmk-dark:focus-visible { outline-color: #fff; }

.lmk-ico { width: 24px; height: 24px; flex: none; }
.lmk-ico--sm { width: 18px; height: 18px; }
.lmk-ico--xl { width: 44px; height: 44px; stroke-width: 1.5; }

/* ---------- الأزرار ---------- */
.lmk .lmk-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
	border: 2px solid transparent; border-radius: 10px; font-size: 16px; font-weight: 700; line-height: 1.3;
	text-align: center; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.lmk .lmk-btn--lg { min-height: 52px; padding: 12px 28px; font-size: 17px; }
.lmk .lmk-btn--gold, .lmk .lmk-btn--gold:hover, .lmk .lmk-btn--gold:focus { background: var(--gold); color: var(--navy); }
.lmk .lmk-btn--gold:hover { background: var(--gold-2); }
.lmk .lmk-btn--ghost, .lmk .lmk-btn--ghost:hover, .lmk .lmk-btn--ghost:focus { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.lmk .lmk-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.lmk .lmk-btn--navy, .lmk .lmk-btn--navy:hover, .lmk .lmk-btn--navy:focus { background: var(--navy); color: #fff; }
.lmk .lmk-btn--navy:hover { background: var(--navy-3); }

/* ---------- الشريط العلوي ---------- */
.lmk-topbar { background: var(--navy-2); color: #fff; font-size: 13.5px; text-align: center; padding: 4px 0; }
.lmk-topbar a, .lmk-topbar span { display: inline-block; padding-block: 4px; }
.lmk .lmk-topbar a, .lmk .lmk-topbar a:hover, .lmk .lmk-topbar a:focus { color: var(--gold); }
.lmk-topbar span { color: var(--gold); font-weight: 500; }

/* ---------- الرأس ---------- */
.lmk-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .lmk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lmk-header { top: 46px; } }
.lmk-header__grid {
	display: grid; align-items: center; gap: 8px 12px; padding-block: 10px;
	grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo cart" "search search search";
}
.lmk-header__grid > .lmk-burger { grid-area: menu; }
.lmk-header__grid > .lmk-logo { grid-area: logo; display: flex; align-items: center; gap: 10px; min-width: 0; }
.lmk-header__grid > .lmk-nav { grid-area: nav; display: none; }
.lmk-header__grid > .lmk-search { grid-area: search; }
.lmk-header__grid > .lmk-cart { grid-area: cart; }

.lmk-iconbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border-radius: 10px; color: var(--navy); cursor: pointer; list-style: none; background: var(--tint);
}
.lmk-iconbtn::-webkit-details-marker, .lmk-faq__item > summary::-webkit-details-marker { display: none; }
.lmk-cart-count {
	position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.lmk-cart-count[data-count="0"] { display: none; }

.lmk-logo__img { height: 40px; width: auto; }
.lmk-logo__mark { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.lmk-logo__mark--txt { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 22px; }
.lmk-logo__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lmk-logo__text strong { font-size: 18px; color: var(--navy); white-space: nowrap; }
.lmk-logo__text small { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lmk-search { position: relative; }
.lmk .lmk-search input[type="search"] {
	width: 100%; height: 46px; margin: 0; padding: 0 16px; padding-inline-end: 52px; border: 1.5px solid var(--line);
	border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.lmk .lmk-search input[type="search"]:focus { border-color: var(--navy); }
.lmk .lmk-search input::-webkit-search-cancel-button { display: none; }
.lmk .lmk-search button {
	position: absolute; inset-block: 3px; inset-inline-end: 3px; width: 42px; border: 0; border-radius: 8px;
	background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.lmk .lmk-search button:hover { background: var(--navy-3); }

.lmk-burger > summary { background: var(--tint); }
.lmk-burger__close, .lmk-burger[open] .lmk-burger__open { display: none; }
.lmk-burger[open] .lmk-burger__close { display: block; }
.lmk-burger__panel {
	position: absolute; inset-inline: 0; top: 100%; max-height: calc(100vh - 140px); overflow-y: auto;
	background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
}
.lmk-burger__panel a { display: flex; align-items: center; min-height: 48px; padding-inline: 4px; border-bottom: 1px solid var(--tint); font-weight: 500; }
.lmk-burger__panel .sub-menu a { padding-inline-start: 18px; font-weight: 400; color: var(--mut); }

@media (min-width: 960px) {
	.lmk-header__grid { grid-template-columns: auto auto minmax(220px, 1fr) auto; grid-template-areas: "logo nav search cart"; gap: 24px; }
	.lmk-burger { display: none; }
	.lmk-header__grid > .lmk-nav { display: block; }
	.lmk-nav .lmk-menu { display: flex; align-items: center; gap: 4px; }
	.lmk-nav .lmk-menu > li { position: relative; }
	.lmk-nav .lmk-menu a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 8px; font-weight: 500; color: var(--ink); }
	.lmk .lmk-nav .lmk-menu a:hover, .lmk-nav .lmk-menu > li:focus-within > a { background: var(--tint); }
	.lmk-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-inline-start: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
	.lmk-nav .sub-menu {
		display: none; position: absolute; top: 100%; inset-inline-start: 0; z-index: 60; min-width: 260px; padding: 8px;
		background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 36, 50, .12);
	}
	.lmk-nav .menu-item-has-children:hover > .sub-menu, .lmk-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
	.lmk-nav .sub-menu a { width: 100%; }
}

/* ---------- الأقسام ---------- */
.lmk-sec { padding: clamp(40px, 6vw, 72px) 0; }
.lmk-sec--alt { background: var(--bg); }
.lmk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.lmk-head h2 { font-size: clamp(22px, 3.6vw, 32px); line-height: 1.35; }
.lmk-head h2::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--gold); }
.lmk-head p { margin-top: 10px; color: var(--mut); max-width: 56ch; }
.lmk-dark .lmk-head p { color: rgba(255, 255, 255, .75); }
.lmk .lmk-more, .lmk .lmk-more:hover, .lmk .lmk-more:focus { flex: none; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; padding-block: 8px; }

/* ---------- التذييل ---------- */
.lmk-footer { background: var(--navy-2); color: rgba(255, 255, 255, .78); font-size: 15px; }
.lmk-footer__grid { display: grid; gap: 28px; padding-block: 48px 36px; grid-template-columns: 1fr 1fr; }
.lmk-footer__brand { grid-column: 1 / -1; }
.lmk-footer__name { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.lmk-footer__brand p + p { margin-top: 14px; }
.lmk-footer__h { margin-bottom: 10px; font-weight: 700; color: #fff; }
.lmk-footer li { margin: 0; }
.lmk .lmk-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: rgba(255, 255, 255, .82); }
.lmk .lmk-footer li a:hover { color: var(--gold); text-decoration: underline; }
.lmk-footer__legal { margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.lmk-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: 13.5px; }
.lmk-footer__bar .lmk-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.lmk-footer__pol { display: flex; gap: 18px; }
.lmk .lmk-footer__pol a:hover { color: var(--gold); text-decoration: underline; }
@media (min-width: 1024px) {
	.lmk-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
	.lmk-footer__brand { grid-column: auto; }
}

/* ---------- هيكل الصفحة العام ---------- */
.lmk { display: flex; flex-direction: column; min-height: 100vh; }
.lmk > main, .lmk > .lmk-main { flex: 1 0 auto; }
.lmk-main { padding-block: 28px 64px; }
.lmk-page .lmk-wrap { width: min(820px, 100% - 32px); }
.lmk-page--wide .lmk-wrap, .lmk-woo .lmk-wrap { width: min(1180px, 100% - 32px); }
.lmk-article__head { margin-bottom: 24px; }
.lmk-article__head h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.35; }
.lmk-article__head h1::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--gold); }
.lmk-meta { color: var(--mut); font-size: 14px; margin-top: 6px; }
.lmk-article__img { margin-bottom: 24px; }
.lmk-article__img img { width: 100%; height: auto; border-radius: 14px; }
.lmk-article__foot { margin-top: 24px; color: var(--mut); font-size: 14.5px; }
.lmk-pagelinks { margin-top: 16px; font-weight: 700; }

/* ---------- النصوص (محتوى الصفحات والمقالات) ---------- */
.lmk-prose { font-size: 17px; line-height: 1.95; }
.lmk-prose > * + * { margin-top: 1em; }
.lmk-prose h2 { font-size: 26px; line-height: 1.4; margin-top: 1.8em; }
.lmk-prose h3 { font-size: 21px; line-height: 1.5; margin-top: 1.5em; }
.lmk-prose h4 { font-size: 18px; margin-top: 1.4em; }
.lmk-prose a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lmk-prose ul, .lmk-prose ol { padding-inline-start: 1.4em; }
.lmk-prose ul { list-style: disc; }
.lmk-prose ol { list-style: decimal; }
.lmk-prose li + li { margin-top: .4em; }
.lmk-prose img, .lmk-prose video, .lmk-prose iframe { max-width: 100%; height: auto; border-radius: 10px; }
.lmk-prose blockquote { margin-inline: 0; padding: 4px 18px; border-inline-start: 4px solid var(--gold); color: var(--mut); }
.lmk-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.lmk-prose th, .lmk-prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: start; }
.lmk-prose th { background: var(--tint); }
.lmk-prose .alignwide { width: min(1180px, 100vw - 32px); margin-inline: calc(50% - min(590px, 50vw - 16px)); }
.lmk-prose .alignleft { float: left; margin-inline: 0 1em; }
.lmk-prose .alignright { float: right; margin-inline: 1em 0; }
.lmk-prose .aligncenter { display: block; margin-inline: auto; }
.lmk-prose figcaption, .lmk-prose .wp-caption-text { font-size: 13.5px; color: var(--mut); text-align: center; }
.lmk-page--wide .lmk-prose { font-size: 16px; line-height: 1.7; }

/* ---------- النماذج العامة (تواصل معنا، WPForms، المراجعات...) ---------- */
.lmk :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], textarea, select) {
	max-width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5;
}
.lmk :where(input, textarea, select):focus { border-color: var(--navy); }
.lmk :where(textarea) { width: 100%; min-height: 140px; }
.lmk :where(label) { font-weight: 500; }
.lmk-prose :where(button, input[type="submit"]), .lmk .wpforms-container .wpforms-submit {
	min-height: 48px; padding: 10px 24px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.lmk-prose :where(button, input[type="submit"]):hover, .lmk .wpforms-container .wpforms-submit:hover { background: var(--navy-3); }

/* ---------- مسار التنقل (Breadcrumb) ---------- */
.lmk .lmk-breadcrumb { margin: 0 0 20px; font-size: 14px; color: var(--mut); }
.lmk .lmk-breadcrumb a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.lmk .lmk-bc-sep { margin-inline: 8px; color: var(--line); }

/* ---------- الترقيم ---------- */
.lmk .navigation.pagination, .lmk .woocommerce-pagination { margin: 32px 0 0; text-align: center; }
.lmk .nav-links, .lmk .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
.lmk .woocommerce-pagination ul.page-numbers li { margin: 0; border: 0; float: none; }
.lmk .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 500; }
.lmk a.page-numbers:hover { border-color: var(--gold); background: #fff; color: var(--ink); }
.lmk .page-numbers.current, .lmk .woocommerce-pagination ul.page-numbers li span.current { border-color: var(--navy); background: var(--navy); color: #fff; }
.lmk .woocommerce-pagination ul.page-numbers li a, .lmk .woocommerce-pagination ul.page-numbers li span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.lmk .woocommerce-pagination ul.page-numbers li a:hover, .lmk .woocommerce-pagination ul.page-numbers li a:focus { background: #fff; border-color: var(--gold); color: var(--ink); }
.lmk .woocommerce-pagination ul.page-numbers li span.current { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- المقالات ---------- */
.lmk-postgrid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lmk-postgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lmk-postgrid { grid-template-columns: repeat(3, 1fr); } }
.lmk-postcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lmk-postcard__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.lmk-postcard__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.lmk-postcard__body h2 { font-size: 19px; line-height: 1.5; }
.lmk .lmk-postcard__body h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.lmk-postcard__body p { color: var(--mut); font-size: 15px; }
.lmk .post-navigation { margin-top: 32px; }
.lmk .post-navigation .nav-links { justify-content: space-between; }

/* ---------- التعليقات ---------- */
.lmk-comments { margin-top: 40px; }
.lmk-comments h2 { font-size: 22px; margin-bottom: 16px; }
.lmk-comments__list { list-style: none; padding: 0; }
.lmk-comments__list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lmk-comments .comment-form p { margin-top: 12px; }
.lmk-comments .form-submit input { min-height: 48px; padding: 10px 24px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- حالات فارغة و 404 ---------- */
.lmk-empty { display: grid; gap: 16px; justify-items: start; padding: 24px; border: 1px dashed var(--line); border-radius: 14px; background: var(--bg); }
.lmk-empty .lmk-search { width: min(480px, 100%); }
.lmk-404__box { display: grid; gap: 16px; justify-items: center; max-width: 640px; margin-inline: auto; padding-block: 24px; text-align: center; }
.lmk-404__box .lmk-search { width: min(480px, 100%); }
.lmk-404__code { font-size: clamp(72px, 16vw, 128px); font-weight: 700; line-height: 1; color: var(--navy); }
.lmk-404__box h1 { font-size: clamp(24px, 4vw, 34px); }
.lmk-404__box > p { color: var(--mut); }
.lmk-404__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lmk-404__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lmk-404__cats a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
.lmk .lmk-404__cats a:hover { border-color: var(--gold); }
.lmk-admin-note { margin-top: 14px; padding: 10px 14px; border: 1px dashed #c98b00; border-radius: 10px; background: #fff8e6; color: #5a3d00; font-size: 13.5px; }

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
	.lmk *, .lmk *::before, .lmk *::after { transition: none !important; animation: none !important; }
}
