/* © PlanB SPC. All rights reserved.
   تصميم PlanB SPC لبلامور. الهوية: ألوان الشعار (أسود، فحمي، أخضر) مع رمل عُماني هادئ،
   شُرَف القلاع فاصلاً، وقوس الباب العُماني إطاراً للصور، ونجمة ثُمانية من نقوش الأبواب نقشاً خفيفاً. */

:root {
  --ink: #111517;
  --charcoal: #343c40;
  --green: #006434;
  --teal: #00796B;
  --teal-dark: #005c52;
  --sand: #f7f2e9;
  --sand-2: #efe5d4;
  --line: #e5ddcf;
  --muted: #5d676b;
  --white: #fff;
  --radius: 16px;
  --arch: 999px 999px 18px 18px;
  --shadow: 0 10px 30px rgba(17, 21, 23, .08);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --wrap: 1240px;
  --tabbar: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* شُرَف القلعة: مربعات متدرجة */
  --battlement: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 18V8h6V2h12v6h6v10z' fill='%23f7f2e9'/%3E%3Cpath d='M24 18V8h6V2h12v6h6v10z' fill='%23f7f2e9'/%3E%3C/svg%3E");
  /* نجمة ثمانية من نقوش الأبواب العُمانية */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23006434' stroke-width='1' opacity='.13'%3E%3Cpath d='M28 6 34 22 50 28 34 34 28 50 22 34 6 28 22 22Z'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.pb {
  margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
small { font-weight: 400; }
.pb-en { color: var(--muted); }
.pb-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter, 20px); }
.pb-ico { width: 22px; height: 22px; flex: 0 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.pb-skip { position: absolute; top: -60px; left: 12px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.pb-skip:focus { top: calc(10px + var(--safe-top)); }


/* ---------------------------------------------------------------- اتجاه الكتابة */
[dir="rtl"] body.pb { text-align: right; }
.woocommerce-loop-product__title, .product_title, .pb-buybar b, .woocommerce-breadcrumb { unicode-bidi: plaintext; }
[lang="en"] { unicode-bidi: isolate; }
[dir="rtl"] .pb-drawer__panel { inset-inline-start: 0; }
[dir="rtl"] .woocommerce-ordering { float: left; }
[dir="rtl"] .woocommerce-result-count { float: right; }
.price, .amount { unicode-bidi: plaintext; }

/* ---------------------------------------------------------------- الأزرار */
.pb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 15.5px; transition: transform .15s, background .2s, color .2s;
}
.pb-btn small { font-weight: 400; opacity: .85; font-size: inherit; }
.pb-btn small::before { content: "· "; }
.pb-btn:active { transform: scale(.98); }
.pb-btn--primary { background: var(--teal); color: #fff; }
.pb-btn--primary:hover { background: var(--teal-dark); }
.pb-btn--outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.pb-btn--outline:hover { background: var(--charcoal); color: #fff; }
.pb-btn--light { background: #fff; color: var(--green); }
.pb-btn--ghost { background: var(--sand); color: var(--green); }
.pb-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--charcoal); position: relative; }
.pb-iconbtn:hover { background: var(--sand); }

/* ---------------------------------------------------------------- الرأس */
.pb-topbar { background: var(--charcoal); color: #e9ece9; font-size: 13px; padding-top: var(--safe-top); }
.pb-topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.pb-topbar__in > * { display: inline-flex; align-items: center; gap: 6px; }
.pb-topbar .pb-ico { width: 16px; height: 16px; }
.pb-topbar__wa { color: #fff; font-weight: 600; }

.pb-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.pb-header__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; min-height: 76px; }
.pb-header__menu { display: none; }
.pb-logo img { width: auto; height: 54px; }
.pb-search { display: flex; align-items: center; background: var(--sand); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 620px; width: 100%; justify-self: center; }
.pb-search:focus-within { border-color: var(--teal); background: #fff; }
.pb-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; padding: 0 16px; font: inherit; color: var(--ink); outline: none; }
.pb-search button { width: 52px; height: 46px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.pb-header__actions { display: flex; gap: 4px; }
.pb-cart-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; }
.pb-cart-count[data-count="0"] { display: none; }

.pb-nav { border-top: 1px solid var(--line); }
.pb-nav .pb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.pb-nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pb-nav__list > li { position: relative; }
.pb-nav__list a { display: block; padding: 12px 14px; font-weight: 600; font-size: 15px; color: var(--charcoal); border-radius: 10px; }
.pb-nav__list a:hover, .pb-nav__list .current-menu-item > a { color: var(--green); }
.pb-nav__list .sub-menu { position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 5; }
.pb-nav__list li:hover > .sub-menu, .pb-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pb-nav__offers { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); padding: 8px 14px; border-radius: 99px; background: var(--sand); font-size: 14px; }
.pb-nav__offers .pb-ico { width: 18px; height: 18px; }

/* القائمة الجانبية للجوال */
.pb-drawer { position: fixed; inset: 0; z-index: 200; }
.pb-drawer[hidden] { display: none; }
.pb-drawer__backdrop { position: absolute; inset: 0; background: rgba(17, 21, 23, .45); animation: pbFade .2s; }
.pb-drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 360px); background: #fff; padding: calc(16px + var(--safe-top)) 18px calc(18px + var(--safe-bottom)); overflow-y: auto; animation: pbSlide .25s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 14px; }
[dir="rtl"] .pb-drawer__panel { animation-name: pbSlideR; }
.pb-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.pb-drawer__head img { height: 46px; width: auto; }
.pb-drawer__list, .pb-drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.pb-drawer__list a { display: flex; align-items: center; min-height: 50px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 16.5px; }
.pb-drawer__list a:hover { background: var(--sand); }
.pb-drawer__list .sub-menu a { padding-inline-start: 28px; font-weight: 400; color: var(--muted); }
.pb-drawer__contact { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pb-drawer__contact a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; background: var(--sand); font-size: 13px; font-weight: 600; color: var(--green); }
@keyframes pbFade { from { opacity: 0; } }
@keyframes pbSlide { from { transform: translateX(-100%); } }
@keyframes pbSlideR { from { transform: translateX(100%); } }

/* شريط التنقل السفلي (الجوال) */
.pb-tabbar { display: none; }

/* ---------------------------------------------------------------- الفاصل العُماني */
.pb-battlement { height: 18px; background: var(--battlement) repeat-x bottom left / 48px 18px; }
.pb-battlement--flip { transform: scaleY(-1); }
.pb-battlement--footer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 18V8h6V2h12v6h6v10z' fill='%23343c40'/%3E%3Cpath d='M24 18V8h6V2h12v6h6v10z' fill='%23343c40'/%3E%3C/svg%3E"); margin-top: -17px; }

/* ---------------------------------------------------------------- الواجهة */
.pb-hero { position: relative; background: #fff var(--pattern); overflow: hidden; }
.pb-hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.pb-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 99px; background: var(--sand); color: var(--green); font-weight: 700; font-size: 14px; }
.pb-eyebrow .pb-ico { width: 18px; height: 18px; }
.pb-hero h1 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -.01em; color: var(--ink); }
.pb-hero h1 span { color: var(--green); }
.pb-hero__lead { font-size: 17.5px; color: var(--charcoal); margin: 0 0 6px; max-width: 34em; }
.pb-hero__lead.pb-en { font-size: 15px; }
.pb-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.pb-hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; color: var(--charcoal); font-size: 14px; font-weight: 600; }
.pb-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.pb-hero__trust .pb-ico { width: 18px; height: 18px; color: var(--teal); }
.pb-hero__media { position: relative; margin: 0; }
/* شرائح الواجهة داخل قوس الباب العُماني */
.pb-slider { position: relative; aspect-ratio: 4 / 4.2; border-radius: var(--arch); overflow: hidden; box-shadow: 0 0 0 10px var(--sand), var(--shadow); background: var(--sand); }
.pb-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pb-slides::-webkit-scrollbar { display: none; }
.pb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.pb-slide img { width: 100%; height: 100%; object-fit: cover; }
.pb-slide__link { display: block; width: 100%; height: 100%; }
.pb-slide--contain img { object-fit: contain; padding: 14% 6% 10%; }
.pb-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.pb-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: width .25s, background .25s; cursor: pointer; }
.pb-dots button.is-on { width: 22px; background: #fff; }
/* بطاقة «+60 لوناً» تختفي فوق التصاميم التي فيها نص */
.pb-hero__media figcaption { transition: opacity .3s, transform .3s; }
.pb-hero__media:has(.pb-slider.is-contain) figcaption { opacity: 0; transform: translateY(8px); pointer-events: none; }
.pb-hero__media figcaption { position: absolute; z-index: 3; bottom: 22px; inset-inline-start: -14px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; display: flex; flex-direction: column; line-height: 1.3; }
.pb-hero__media figcaption b { font-size: 22px; color: var(--green); }
.pb-hero__media figcaption small { color: var(--muted); }
.pb-hero > .pb-battlement { position: absolute; bottom: 0; left: 0; right: 0; }

.pb-values { background: var(--sand); padding: 22px 0; }
.pb-values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pb-values__grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.pb-values__grid .pb-ico { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--green); }
.pb-values__grid b { font-size: 15.5px; }
.pb-values__grid span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- الأقسام */
.pb-section { padding: 56px 0 8px; }
.pb-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pb-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.pb-head h2 small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.pb-head > a { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 700; white-space: nowrap; }
.pb-head > a .pb-ico { width: 18px; height: 18px; }
[dir="rtl"] .pb-head > a .pb-ico, [dir="rtl"] .pb-btn .pb-ico { transform: scaleX(-1); }
.pb-head--center { justify-content: center; text-align: center; }

.pb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.pb-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pb-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.pb-cat__img { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: var(--arch); background: var(--sand); overflow: hidden; margin-bottom: 8px; color: var(--green); }
.pb-cat__img img { width: 92%; height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.pb-cat__img .pb-ico { width: 46px; height: 46px; }
.pb-cat b { font-size: 16px; }
.pb-cat small { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- بطاقات المنتجات (قالب WooCommerce القياسي) */
ul.products, .pb-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
  position: relative; display: flex; flex-direction: column; margin: 0 !important; width: auto !important; float: none !important;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 14px; transition: box-shadow .2s, transform .2s;
}
ul.products li.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--sand); border-radius: 14px; margin: 0 0 12px; padding: 6px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0 0 6px; padding: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; text-align: center; }
ul.products li.product .price { color: var(--green); font-weight: 700; font-size: 16px; margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 6px; text-align: center; }
ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 13.5px; opacity: .8; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .star-rating { font-size: 12px; margin: 0 auto 6px; color: #e2a200; }
ul.products li.product .button, .woocommerce ul.products li.product .button {
  margin-top: 10px; display: flex !important; align-items: center; justify-content: center; min-height: 42px; line-height: 1.2 !important; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 0 12px; border: 0; text-align: center;
}
ul.products li.product .button:hover { background: var(--teal); }
ul.products li.product .button.loading { opacity: .6; }
ul.products li.product .added_to_cart { display: block; text-align: center; margin-top: 6px; font-size: 13px; color: var(--teal); font-weight: 600; }
ul.products li.product.outofstock .button { background: var(--sand); color: var(--charcoal); }
ul.products li.product .onsale {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 3; margin: 0; min-width: 0; min-height: 0; line-height: 1;
  padding: 7px 10px; border-radius: 8px; background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700;
  white-space: nowrap; /* «تخفيض · Sale!»: الجزء الإنجليزي معزول الاتجاه من الخادم فتبقى علامة التعجب في مكانها */
}

/* ---------------------------------------------------------------- الرسالة والقيم */
.pb-mission { position: relative; margin-top: 64px; background: var(--green) var(--pattern); color: #fff; padding: 0 0 56px; }
.pb-mission > .pb-battlement { margin-top: -1px; }
.pb-mission__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 48px; padding-top: 44px; }
.pb-mission .pb-eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.pb-mission h2 { font-size: clamp(24px, 3vw, 36px); }
.pb-mission p { color: #e2efe9; font-size: 16.5px; }
.pb-mission .pb-en { color: #bcd8cc; font-size: 14.5px; }
.pb-mission__values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.pb-mission__values li { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; }
.pb-mission__values b { font-size: 18px; }
.pb-mission__values span { font-size: 13px; color: #cfe3da; }
.pb-awards { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pb-awards li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: #fff; color: var(--ink); }
.pb-awards .pb-ico { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--sand); color: var(--green); }
.pb-awards b { display: block; font-size: 15px; }
.pb-awards span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- الصيانة والتواصل */
.pb-service { padding: 56px 0 0; }
.pb-service__in { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 22px; background: var(--sand); border: 1px solid var(--line); }
.pb-service__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--arch); background: var(--charcoal); color: #fff; flex: 0 0 64px; }
.pb-service__ico .pb-ico { width: 30px; height: 30px; }
.pb-service h2 { font-size: 21px; margin: 0 0 4px; }
.pb-service p { margin: 0; color: var(--muted); }
.pb-service__in > div { flex: 1; }
.pb-contact { padding: 56px 0 64px; }
.pb-contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pb-contact__grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px; border-radius: 18px; border: 1px solid var(--line); text-align: center; transition: .2s; }
.pb-contact__grid a:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.pb-contact__grid .pb-ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--sand); color: var(--green); margin-bottom: 6px; }
.pb-contact__grid b { font-size: 17px; }
.pb-contact__grid span { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- التذييل */
.pb-footer { position: relative; background: var(--charcoal); color: #d9dedc; margin-top: 40px; }
.pb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.pb-footer__brand img { height: 64px; width: auto; margin-bottom: 14px; }
.pb-footer__brand p { font-size: 14.5px; margin: 0 0 6px; color: #c5ccc9; }
.pb-footer h2 { font-size: 16px; color: #fff; margin: 4px 0 14px; }
.pb-footer h2 small { display: block; font-size: 12.5px; color: #9aa5a1; }
.pb-footer nav a { display: block; padding: 6px 0; font-size: 14.5px; color: #d9dedc; }
.pb-footer nav a:hover { color: #fff; }
.pb-social { display: flex; gap: 8px; margin-top: 14px; }
.pb-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.pb-social a:hover { background: var(--teal); }
.pb-footer__cta { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.pb-footer__cta span { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; color: #fff; }
.pb-footer__cta small { color: #9aa5a1; font-size: 12.5px; }
.pb-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #aeb7b3; }
.pb-footer__bottom .pb-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: calc(16px + var(--safe-bottom)); }
.pb-credit b { color: #fff; }

/* ---------------------------------------------------------------- الصفحات العامة */
.pb-main { min-height: 50vh; }
.pb-pagehead { padding: 32px 0 18px; }
.pb-pagehead h1 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.pb-article--builder .pb-content { margin: 0 calc(-1 * var(--gutter, 20px)); }
.pb-content { padding-bottom: 32px; }
.pb-list { display: grid; gap: 12px; }
.pb-list__item { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.pb-list__item span { display: block; color: var(--muted); font-size: 14px; }
.pb-empty { padding: 32px 0; color: var(--muted); }
.pb-404 { padding: 56px 0; }
.pb-404__box { max-width: 560px; margin: 0 auto; text-align: center; }
.pb-404__arch { display: inline-grid; place-items: center; width: 150px; height: 170px; border-radius: var(--arch); background: var(--sand); color: var(--green); font-size: 42px; font-weight: 700; margin-bottom: 18px; }
.pb-404 h1 small { display: block; font-size: 15px; color: var(--muted); }
.pb-404 .pb-search { margin: 18px auto; }
.pb-404__links { display: flex; gap: 10px; justify-content: center; }

/* ---------------------------------------------------------------- المتجر وصفحة المنتج (WooCommerce) */
.pb-shop { padding-top: 8px; padding-bottom: 40px; }
.woocommerce-breadcrumb { font-size: 13.5px; color: var(--muted); padding: 16px 0 6px; }
.woocommerce-breadcrumb a { color: var(--teal); }
.woocommerce-products-header__title, .pb-shop h1.page-title { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 10px; }
.woocommerce-result-count { color: var(--muted); font-size: 14px; margin: 0 0 16px; float: left; }
[dir="rtl"] .woocommerce-result-count { float: right; }
.woocommerce-ordering { float: right; margin: 0 0 16px; }
[dir="rtl"] .woocommerce-ordering { float: left; }
.woocommerce-ordering select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; }
.pb-shop ul.products { clear: both; }
.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 28px 0 0; border: 0 !important; }
.woocommerce-pagination li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding: 8px 0 24px; position: relative; }
.single-product div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; background: var(--sand); border-radius: 22px; padding: 14px; }
.single-product div.product .woocommerce-product-gallery img { border-radius: 14px; }
.single-product .flex-control-thumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.single-product .flex-control-thumbs li { width: 64px !important; }
.single-product .flex-control-thumbs img { border-radius: 10px; opacity: .6; cursor: pointer; }
.single-product .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--teal); }
.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; min-width: 0; }
.single-product .product_title { font-size: clamp(24px, 2.8vw, 34px); margin: 4px 0 10px; }
.single-product .summary .price { font-size: 26px; color: var(--green); font-weight: 700; margin: 0 0 14px; }
.single-product .summary .price del { font-size: 17px; color: var(--muted); font-weight: 400; }
.single-product .summary .price ins { text-decoration: none; }
.single-product .woocommerce-product-details__short-description { color: var(--charcoal); }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 18px 0; }
.single-product .quantity { display: flex; }
.single-product .quantity, .woocommerce-cart-form .quantity { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.quantity input.qty { width: 52px; height: 50px; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 17px; -moz-appearance: textfield; background: transparent; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pb-step { width: 44px; border: 0; background: var(--sand); color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1; }
.pb-step:active { background: var(--sand-2); }
.single-product .single_add_to_cart_button { flex: 1; min-height: 52px; border-radius: 12px; border: 0; background: var(--teal) !important; color: #fff !important; font-weight: 700; font-size: 16.5px; padding: 6px 18px; white-space: normal; line-height: 1.3; }
.single-product .single_add_to_cart_button:hover { background: var(--teal-dark) !important; }
.single-product .product_meta { font-size: 14px; color: var(--muted); display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.single-product .product_meta a { color: var(--teal); }
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 18px; }
.woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 2px 6px; list-style: none; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 16px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-color: var(--teal); }
.related.products, .upsells.products { grid-column: 1 / -1; margin-top: 18px; }
.related.products > h2, .upsells.products > h2 { font-size: 22px; }

.pb-buybar { display: none; }

/* زر التكبير في المعرض في الجهة المقابلة لشارة نفاد المخزون، وألوان الهوية بدل ألوان WooCommerce الافتراضية */
.woocommerce-product-gallery__trigger { position: absolute; top: 22px !important; inset-inline-end: 22px !important; left: auto; right: auto; z-index: 7; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid !important; place-items: center; box-shadow: var(--shadow); }
[dir="rtl"] .woocommerce-product-gallery__trigger { left: 22px !important; right: auto !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--green) !important; }
.woocommerce div.product .stock, .stock.in-stock { color: var(--teal) !important; font-weight: 600; }

/* إشعارات WooCommerce */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; margin: 14px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); color: var(--ink);
  border-inline-start: 4px solid var(--teal); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.woocommerce-error { border-inline-start-color: #b42318; background: #fdf3f2; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 700; }

/* حقول النماذج العامة (الحساب، التواصل) */
.pb-content input[type="text"], .pb-content input[type="email"], .pb-content input[type="tel"], .pb-content input[type="password"], .pb-content input[type="number"], .pb-content textarea, .pb-content select,
.woocommerce form .input-text, .woocommerce form select {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px; background: #fff;
}
.pb-content input:focus, .pb-content textarea:focus, .woocommerce form .input-text:focus { border-color: var(--teal); outline: none; }
.woocommerce button.button, .woocommerce a.button, .pb-content input[type="submit"], .wpcf7-submit {
  min-height: 48px; border-radius: 12px; border: 0; background: var(--teal); color: #fff; font-weight: 700; padding: 0 22px; font-size: 15.5px; cursor: pointer;
}

/* ---------------------------------------------------------------- الجهاز اللوحي */
@media (max-width: 1080px) {
  ul.products, .pb-products { grid-template-columns: repeat(3, 1fr); }
  .pb-footer__grid { grid-template-columns: 1fr 1fr; }
  .pb-values__grid { grid-template-columns: repeat(2, 1fr); }
  .pb-awards { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- الجوال */
@media (max-width: 860px) {
  body.pb { padding-bottom: calc(var(--tabbar) + var(--safe-bottom)); }
  :root { --gutter: 16px; }
  .pb-topbar__in { min-height: 32px; }
  .pb-topbar__msg { font-size: 12px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .pb-topbar__msg [lang="en"] { display: none; }
  .pb-topbar__wa { white-space: nowrap; font-size: 12.5px; }
  .pb-header__in { grid-template-columns: auto 1fr auto; gap: 8px; min-height: 60px; }
  .pb-header__menu { display: inline-grid; }
  .pb-logo { justify-self: center; }
  .pb-logo img { height: 42px; }
  .pb-header .pb-search { grid-column: 1 / -1; grid-row: 2; margin: 0 0 10px; max-width: none; }
  .pb-search input { height: 44px; font-size: 16px; } /* 16px يمنع تكبير آيفون عند الكتابة */
  .pb-search button { height: 44px; width: 48px; }
  .pb-hide-sm { display: none; }
  .pb-nav { display: none; }

  .pb-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 95; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transition: transform .2s;
  }
  .pb-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
  .pb-tabbar a.is-active { color: var(--green); }
  .pb-tabbar a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--green); }
  .pb-tabbar .pb-ico { width: 23px; height: 23px; }
  .pb-tabbar .pb-cart-count { top: 6px; inset-inline-end: calc(50% - 22px); }
  body.pb-typing .pb-tabbar, body.pb-typing .pb-buybar { transform: translateY(110%); } /* يختفي أثناء الكتابة ثم يعود */

  .pb-hero__in { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; padding-bottom: 40px; }
  .pb-hero__media { order: 2; }
  .pb-slider { aspect-ratio: 4 / 3.2; border-radius: 160px 160px 16px 16px; box-shadow: 0 0 0 6px var(--sand), var(--shadow); }
  .pb-slide--contain img { padding: 16% 4% 8%; }
  .pb-hero__media figcaption { inset-inline-start: 8px; bottom: 12px; padding: 8px 12px; }
  .pb-hero__lead { font-size: 16px; }
  .pb-hero__cta { margin: 18px 0 14px; }
  .pb-hero__cta .pb-btn { flex: 1; min-width: 140px; }
  .pb-hero__cta .pb-btn small { font-size: 13px; }

  .pb-values { padding: 16px 0; }
  .pb-values__grid { gap: 12px; }
  .pb-values__grid .pb-ico { width: 34px; height: 34px; padding: 7px; }
  .pb-values__grid b { font-size: 14px; }
  .pb-values__grid span { font-size: 12px; }

  .pb-section { padding: 40px 0 4px; }
  .pb-cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .pb-cats::-webkit-scrollbar { display: none; }
  .pb-cat { flex: 0 0 132px; scroll-snap-align: start; }

  ul.products, .pb-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  ul.products li.product { padding: 8px 8px 10px; border-radius: 14px; }
  ul.products li.product img { border-radius: 10px; margin-bottom: 8px; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
  ul.products li.product .button { min-height: 40px; font-size: 13px; }

  .pb-mission { margin-top: 44px; padding-bottom: 40px; }
  .pb-mission__grid { grid-template-columns: 1fr; padding-top: 32px; }
  .pb-service__in { flex-direction: column; align-items: stretch; text-align: center; }
  .pb-service__ico { margin: 0 auto; }
  .pb-contact__grid { grid-template-columns: 1fr; gap: 10px; }
  .pb-contact__grid a { flex-direction: row; justify-content: flex-start; text-align: start; padding: 14px 16px; gap: 12px; }
  .pb-contact__grid .pb-ico { margin: 0; }
  .pb-contact__grid span { margin-inline-start: auto; }

  .pb-footer__grid { grid-template-columns: 1fr; gap: 22px; padding-top: 40px; }
  .pb-footer nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .pb-footer nav h2 { grid-column: 1 / -1; }

  .single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .single-product div.product .woocommerce-product-gallery { border-radius: 16px; padding: 8px; }
  .pb-buybar {
    display: flex; position: fixed; z-index: 94; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-bottom)); gap: 10px; align-items: center;
    padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); transition: transform .2s;
  }
  .pb-buybar[hidden] { display: none; }
  .pb-buybar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .pb-buybar b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pb-buybar span { color: var(--green); font-weight: 700; font-size: 14.5px; }
  .pb-buybar .pb-btn { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
  .woocommerce-result-count, .woocommerce-ordering { float: none !important; }
  /* السلة والدفع الكلاسيكيان على الجوال: لا شيء أعرض من الشاشة */
  .woocommerce-cart-form, .cart_totals, .woocommerce-checkout { max-width: 100%; overflow-wrap: anywhere; }
  .woocommerce table.shop_table { width: 100%; table-layout: auto; }
  .woocommerce-cart .coupon { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .woocommerce-cart .coupon .input-text { flex: 1 1 160px; min-width: 0; width: auto !important; }
  .woocommerce-ordering select { width: 100%; }
}

@media (max-width: 380px) {
  .pb-hero h1 { font-size: 28px; }
  .pb-values__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* وضع التطبيق المثبّت: الرأس يحترم مساحة الساعة والجزيرة */
@media (display-mode: standalone) {
  .pb-topbar { display: none; }
  .pb-header { padding-top: var(--safe-top); }
}

/* الدفع على الجوال: الاسم الأول واسم العائلة كلٌّ بعرض الصف، فلا تنكسر تسميتهما الثنائية */
@media (max-width: 600px) {
  .woocommerce form .form-row-first, .woocommerce form .form-row-last,
  .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last { width: 100% !important; float: none !important; }
}
@media (max-width: 600px) { .woocommerce-tabs ul.tabs li a { padding: 10px 10px; font-size: 14px; } }
