/* ##########################################################################
   ##########################################################################
   ##                                                                      ##
   ##   QUMRAN — CUSTOM CSS                                                ##
   ##   (لو الخانة HTML حط الكود كله بين <style> و </style>)               ##
   ##                                                                      ##
   ##   الفهرس:                                                            ##
   ##     01. الهيدر — التخطيط (منيو | لوجو | كارت)                        ##
   ##     02. الهيدر — الشفافية والسكرول                                   ##
   ##     03. الهيدر — فوق فيديو الهيرو                                    ##
   ##     04. المنيو الجانبي (Drawer)                                      ##
   ##     05. سكشن الهيرو (الفيديو)                                       ##
   ##     06. سكشنز المنتجات في الرئيسية (qumran-sections)                 ##
   ##     07. صفحة التصنيف — متغيرات التحكم                                ##
   ##     08. صفحة التصنيف — العنوان + العدد                               ##
   ##     09. صفحة التصنيف — تابات المجموعات                               ##
   ##     10. صفحة التصنيف — شريط الفلتر / العدد / الترتيب                 ##
   ##     11. صفحة التصنيف — شبكة المنتجات                                 ##
   ##     12. صفحة التصنيف — كارت المنتج (صورة بنفس الارتفاع)              ##
   ##     13. صفحة التصنيف — أسهم الصور + زر السلة على الصورة             ##
   ##     14. صفحة التصنيف — الترقيم (Pagination)                          ##
   ##     15. تقليل الحركة (Accessibility)                                 ##
   ##     16. الفوتر — بشكل Keshtban (لينكات + © + دفع + اسم البراند)    ##
   ##     17. المنيو الجانبي — تسوّقي › + التصنيفات + رجوع                 ##
   ##     18. صفحة تواصل معنا — بيانات التواصل                            ##
   ##                                                                      ##
   ##########################################################################
   ########################################################################## */










/* ==========================================================================
   01. الهيدر — التخطيط: 3 أعمدة (علامة المنيو | اللوجو | الكارت)
   ========================================================================== */

/* الهيدر 3 أعمدة */
header nav{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;}

/* الكارت شمال في العربي / يمين في الإنجليزي */
header nav>ul{grid-column:3;grid-row:1;justify-self:end;}
header nav>ul>li:not(.relative){display:none!important;}

/* اللوجو في النص + تكبير بسيط */
header nav>div{grid-column:2;grid-row:1;justify-self:center;gap:0!important;}
header nav>div>ul{display:none!important;}
header nav>div img{position:static!important;translate:none!important;transform:none!important;width:auto!important;}
@media (min-width:768px){header nav>div img{max-height:72px!important;}}
@media (max-width:767px){header nav>div img{height:48px!important;}}

/* علامة المنيو يمين في العربي / شمال في الإنجليزي + تكبير الأيقونة */
header nav>el-dialog>button{grid-column:1;grid-row:1;justify-self:start;display:flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;}
header nav>el-dialog>button>span{width:24px!important;left:10px!important;}
header nav>ul svg{width:27px!important;height:27px!important;}

/* لون الأيقونات الافتراضي (غامق زي الثيم) */
:root{--qumran-icon:var(--foreground,#1a1a1a);}










/* ==========================================================================
   02. الهيدر — ترانسبيرنت في كل الصفحات + لونه بعد السكرول
   ========================================================================== */

/* بياخد لون خلفية الصفحة */
header{background:transparent!important;border-bottom-color:transparent!important;}

/* الأنيميشن يتفعّل بعد أول رسم بس (مفيش فلاش أبيض وقت التحميل) */
html.qumran-ready header{transition:background-color .35s ease,border-color .35s ease,box-shadow .35s ease;}

/* بعد السكرول: الهيدر يبقى بنفس لون خلفية الصفحة عشان يفضل مدموج */
html.qumran-scrolled header,
html.qumran-scrolled .qumran-header-wrap>header{background:var(--background,#faf8f5)!important;border-bottom-color:var(--border-light,#f2f2f2)!important;box-shadow:none!important;}










/* ==========================================================================
   03. الهيدر فوق فيديو الهيرو: ثابت فوق المحتوى ومش واخد مساحة منه
   ========================================================================== */

html.qumran-hero-page header,
body[data-template="home"] header,
html:has(section.section-video) header{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:60!important;}

/* احتياطي: الغلاف اللي حوالين الهيدر */
html.qumran-hero-page .qumran-header-wrap{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;z-index:60!important;}

/* لو الصفحة الرئيسية من غير فيديو هيرو: الهيدر يفضل في مكانه الطبيعي */
html.qumran-no-hero body[data-template="home"] header{position:static!important;}

/* أيقونات بيضاء فوق فيديو الهيرو بس */
html.qumran-hero-page,
body[data-template="home"],
html:has(section.section-video){--qumran-icon:#fff;}

html.qumran-scrolled{--qumran-icon:var(--foreground,#1a1a1a);}
html.qumran-scrolled body[data-template="home"]{--qumran-icon:var(--foreground,#1a1a1a);}

header nav>ul svg,
header nav>el-dialog:not([open])>button{color:var(--qumran-icon)!important;}










/* ==========================================================================
   04. المنيو الجانبي: من فوق خالص + يمين في العربي / شمال في الإنجليزي
   ========================================================================== */

#mobile-drawer{top:0!important;bottom:0!important;}
#mobile-drawer el-dialog-panel{width:min(400px,100%)!important;margin-inline-start:0!important;margin-inline-end:auto!important;}
html[dir='rtl'] #mobile-drawer el-dialog-panel[data-closed]{translate:100% 0!important;}
html:not([dir='rtl']) #mobile-drawer el-dialog-panel[data-closed]{translate:-100% 0!important;}

/* عناصر المنيو: خط 22 ديسكتوب / 16 موبايل + فواصل + مؤشر اليد + مساحة فوق للهيدر */
#mobile-drawer .overflow-y-auto{padding-top:calc(var(--qumran-header-bottom,99px) + 8px)!important;}
#mobile-drawer a,
#mobile-drawer button{font-size:22px!important;line-height:1.35!important;cursor:pointer!important;}
@media (max-width:767px){#mobile-drawer a,#mobile-drawer button{font-size:16px!important;}}
#mobile-drawer .overflow-y-auto>div:first-child a{padding-block:20px!important;}
#mobile-drawer a+a,
#mobile-drawer .border-border-light>*+*{border-top:1px solid var(--border-light,#f2f2f2);}
#mobile-drawer #mobile-logged-in-links>*+*{border-top:1px solid var(--border-light,#f2f2f2);}
#mobile-drawer .overflow-y-auto>div:last-child{margin-top:auto;}

/* علامة الإغلاق (X) على شمال البانل بنفس بادنج أيتمز المنيو */
#mobile-drawer .qumran-drawer-close{position:absolute!important;top:calc((var(--qumran-header-bottom,99px) - 44px)/2)!important;inset-inline-start:auto!important;inset-inline-end:24px!important;width:44px!important;height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border:0!important;background:transparent!important;color:var(--foreground,#1a1a1a)!important;z-index:5!important;cursor:pointer!important;}
#mobile-drawer .qumran-drawer-close:focus-visible{outline:2px solid currentColor!important;outline-offset:2px!important;border-radius:6px!important;}










/* ==========================================================================
   05. سكشن الهيرو (الفيديو) — عرض كامل + فيديو مختلف للموبايل
   ========================================================================== */

.section-video:has(source[src*="a2d49749-b88f-4ae4-b19c-002ebffd34ca"]),
.section-video.qumran-hero {
  padding: 0 !important;
  background: transparent !important;
}

.section-video:has(source[src*="a2d49749-b88f-4ae4-b19c-002ebffd34ca"]) .video-wrapper,
.section-video.qumran-hero .video-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.section-video:has(source[src*="a2d49749-b88f-4ae4-b19c-002ebffd34ca"]) video,
.section-video.qumran-hero video {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  aspect-ratio: 16 / 9; /* يحجز مساحة الفيديو قبل ما يحمّل → مفيش قفزة في الصفحة */
  background: var(--background, #faf8f5); /* بنفس لون الصفحة بدل الأسود → مفيش سواد وقت الفتح */
}

@media (max-width: 767px) {
  .section-video:has(source[src*="a2d49749-b88f-4ae4-b19c-002ebffd34ca"]) video,
  .section-video.qumran-hero video {
    aspect-ratio: 9 / 16;
    background: var(--background, #faf8f5) url("https://media.zid.store/a2d49749-b88f-4ae4-b19c-002ebffd34ca/089f1e1c-c113-4ab4-9407-4ac1840f919a.png") center / cover no-repeat;
  }
}










/* ==========================================================================
   06. سكشنز المنتجات في الرئيسية (بتتبني من qumran-sections في الـ JS)
   ========================================================================== */

/* ---------- الفاصل بين السكشنز ---------- */
.qumran-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.qumran-sep > span {
  display: block;
  width: min(100%, 1180px);
  height: 1px;
  background: var(--border-light, #ece7e1);
}

/* ---------- حالة التحميل: منع القفزة + وميض خفيف ---------- */
.aigc-prodgrid__grid.is-loading {
  min-height: 220px;
  background:
    linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.03) 50%, transparent 100%)
    0 0 / 200% 100%;
  animation: qumran-skeleton 1.4s ease-in-out infinite;
  border-radius: var(--radius, 8px);
}

@keyframes qumran-skeleton {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ---------- ضمان إن كارت المنتج ياخد عرض الخلية ---------- */
.aigc-prodgrid__cell > [data-product-card] {
  width: 100%;
}

.aigc-prodgrid__cell img {
  max-width: 100%;
}

/* زر المفضلة: بعض قواعد الثيم بتخفيه بالغلط → نرجّعه من هنا */
.aigc-prodgrid__cell [data-wishlist-btn] {
  display: inline-flex !important;
}

/* ---------- زوم ناعم على الصورة داخل إطارها ----------
   للتحكم في قيمة الزوم: حدد --qumran-zoom على السكشن أو :root
   مثال: 1.05 = خفيف · 1.12 = أقوى
-------------------------------------------------------- */
.aigc-prodgrid__cell a[href*="/products/"] {
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .aigc-prodgrid__cell a[href*="/products/"] img {
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform-origin: center center;
  }
  .aigc-prodgrid__cell:hover a[href*="/products/"] img,
  .aigc-prodgrid__cell:focus-within a[href*="/products/"] img {
    transform: scale(var(--qumran-zoom, 1.08));
    will-change: transform;
  }
}










/* ==========================================================================
   07. صفحة التصنيف — متغيرات التحكم
   --------------------------------------------------------------------------
   كل الشكل بتاع صفحة التصنيف بيتظبط من هنا:
     --qc-ratio        : نسبة الصورة (عرض / ارتفاع). 4/5 زي المرجع · 3/4 أطول · 1/1 مربع
     --qc-cols-desktop : عدد الأعمدة على الكمبيوتر
     --qc-cols-mobile  : عدد الأعمدة على الموبايل
     --qc-gap-x / -y   : المسافة بين الكروت أفقي / رأسي
     --qc-max          : أقصى عرض لمحتوى الصفحة
   كل قواعد صفحة التصنيف شغالة بس لما الـ JS يحط كلاس qc-cat على <html>
   ========================================================================== */

html.qc-cat {
  --qc-ratio: 4 / 5;
  --qc-cols-desktop: 4;
  --qc-cols-mobile: 2;
  --qc-gap-x: 12px;
  --qc-gap-y: 32px;
  --qc-max: 1140px;
  --qc-line: var(--border-light, #e7e2dc);
  --qc-muted: var(--muted-foreground, #8a8580);
}

/* إخفاء مسار الصفحة (الرئيسية > التصنيفات > ...) — امسح السطر ده لو عايزه يظهر */
html.qc-cat .qc-crumbs { display: none !important; }

/* توحيد عرض المحتوى في الصفحة */
html.qc-cat .qc-hero .theme-container,
html.qc-cat .qc-products .theme-container {
  max-width: var(--qc-max) !important;
  margin-inline: auto !important;
}










/* ==========================================================================
   08. صفحة التصنيف — العنوان الكبير + عدد المنتجات في الناحية التانية
   ========================================================================== */

/* السكشن من غير خلفية بيضاء (بياخد لون الصفحة) */
html.qc-cat .qc-hero > .bg-secondary.absolute.inset-0,
body[data-template="category_details"] main section:has(> h1, > .theme-container h1) > .bg-secondary.absolute.inset-0 {
  background: transparent !important;
}

html.qc-cat .qc-hero {
  padding-top: 24px !important;
  padding-bottom: 0 !important;
}

/* الثيم بيحدد عرض العنوان بـ 768px → نفكّه عشان العدد يروح للناحية التانية */
html.qc-cat .qc-hero .theme-container > div {
  max-width: none !important;
  width: 100%;
}

/* صف العنوان: العنوان في ناحية والعدد في الناحية التانية */
html.qc-cat .qc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

html.qc-cat .qc-head h1 {
  font-size: clamp(30px, 4.2vw, 48px) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

html.qc-cat .qc-count {
  font-size: 12px;
  color: var(--qc-muted);
  white-space: nowrap;
  padding-bottom: 6px;
}










/* ==========================================================================
   09. صفحة التصنيف — تابات المجموعات (بتتبني لوحدها من منيو زد — الترتيب من قسم 00 في الـ JS)
   ========================================================================== */

html.qc-cat .qc-tabs {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html.qc-cat .qc-tabs::-webkit-scrollbar { display: none; }

html.qc-cat .qc-tab {
  flex: 0 0 auto;
  padding: 6px 0 12px;
  font-size: 13px;
  color: var(--qc-muted);
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

html.qc-cat .qc-tab:hover { color: var(--foreground, #1a1a1a); }

html.qc-cat .qc-tab.is-active {
  color: var(--foreground, #1a1a1a);
  border-bottom-color: var(--foreground, #1a1a1a);
}










/* ==========================================================================
   10. صفحة التصنيف — شريط: الفلاتر (بداية) | العدد (نص) | الترتيب (نهاية)
   ========================================================================== */

html.qc-cat .qc-products { padding-top: 0 !important; }
html.qc-cat .qc-products .theme-container > div { gap: 16px !important; }

html.qc-cat .qc-toolbar {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 8px;
  border-top: 1px solid var(--qc-line);
  border-bottom: 1px solid var(--qc-line);
}

/* زرار الفلاتر (بيفتح لوحة جانبية) — ظاهر في كل المقاسات */
html.qc-cat .qc-filter {
  display: block !important;
  grid-column: 1;
  justify-self: start;
}

html.qc-cat .qc-filter > button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--foreground, #1a1a1a) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

html.qc-cat .qc-filter > button svg { width: 14px; height: 14px; }

/* الفلاتر اللي جوه الشريط على الكمبيوتر → مخفية (موجودة في اللوحة الجانبية) */
html.qc-cat .qc-inline-filters { display: none !important; }

/* العدد في النص */
html.qc-cat .qc-mid {
  grid-column: 2;
  justify-self: center;
}

html.qc-cat .qc-mid > span {
  display: block !important;
  font-size: 12px !important;
  color: var(--qc-muted) !important;
}

/* أزرار تغيير شكل الشبكة → مخفية (الشبكة ثابتة من المتغيرات)
   ملاحظة: الثيم بيفرضها بـ !important جوه layer، فالـ JS كمان بيخفيها inline */
html.qc-cat .qc-mid .btn-group { display: none !important; }

/* الترتيب في النهاية — ظاهر في كل المقاسات */
html.qc-cat .qc-sort {
  display: block !important;
  grid-column: 3;
  justify-self: end;
}

html.qc-cat .qc-sort > div { display: flex !important; align-items: center; gap: 6px; }
html.qc-cat .qc-sort > div > span { display: none !important; } /* كلمة "ترتيب حسب" */
html.qc-cat .qc-sort el-selectedcontent { text-decoration: none !important; font-size: 13px; }

@media (max-width: 767px) {
  html.qc-cat .qc-mid > span { font-size: 11px !important; }
  html.qc-cat .qc-sort el-selectedcontent { font-size: 12px; }
}










/* ==========================================================================
   11. صفحة التصنيف — شبكة المنتجات (4 كمبيوتر / 2 موبايل)
   ========================================================================== */

html.qc-cat [data-grid-root] {
  display: grid !important;
  grid-template-columns: repeat(var(--qc-cols-mobile), minmax(0, 1fr)) !important;
  column-gap: var(--qc-gap-x) !important;
  row-gap: var(--qc-gap-y) !important;
}

@media (min-width: 768px) {
  html.qc-cat [data-grid-root] {
    grid-template-columns: repeat(var(--qc-cols-desktop), minmax(0, 1fr)) !important;
  }
}

/* لو العميل كان مختار عرض "قائمة" قبل كده → نرجّعه شبكة عادية */
html.qc-cat [data-grid-root] > [data-product-card] {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  grid-column: auto !important;
}










/* ==========================================================================
   12. صفحة التصنيف — كارت المنتج: كل الصور بنفس الارتفاع
   ========================================================================== */

/* إطار الصورة بنسبة ثابتة → كل الكروت نفس الارتفاع مهما كان مقاس الصورة الأصلية */
html.qc-cat .qc-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--qc-ratio);
  overflow: hidden;
  border-radius: 0 !important;
  background: var(--secondary, #f1eee9);
}

html.qc-cat .qc-media > img.qc-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top;
}

/* الاسم والسعر: خط صغير وبسيط */
html.qc-cat [data-product-card] h3 {
  font-size: 12px !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.4 !important;
}

html.qc-cat [data-product-card] h3 + * ,
html.qc-cat [data-product-card] .flex-col > p.text-sm:not(.text-muted) {
  font-size: 12px !important;
}

html.qc-cat [data-product-card] > div:not(.qc-media) { gap: 4px !important; }
html.qc-cat [data-product-card] > div > div { gap: 2px !important; }

/* الوصف المختصر + زرار "اختر الخيارات" + الكمية → مخفيين (الزرار اتنقل أيقونة على الصورة) */
html.qc-cat [data-product-card] p.text-muted,
html.qc-cat [data-product-card] [data-open-quick-view],
html.qc-cat [data-product-card] [data-quantity-section] {
  display: none !important;
}

/* زرار المفضلة: فوق في الركن بدل تحت (عشان زرار السلة ياخد مكانه) */
html.qc-cat .qc-media [data-wishlist-btn] {
  top: 10px !important;
  bottom: auto !important;
  inset-inline-end: 10px !important;
  inset-inline-start: auto !important;
  left: auto;
  right: auto;
  z-index: 3;
}










/* ==========================================================================
   13. صفحة التصنيف — أسهم تقليب الصور + زر السلة (بيظهروا مع الهوفر)
   ========================================================================== */

html.qc-cat .qc-arrow,
html.qc-cat .qc-quick {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--foreground, #1a1a1a);
  opacity: 0;
  transition: opacity .25s ease;
}

/* الأسهم: في نص الصورة، يمين وشمال */
html.qc-cat .qc-arrow {
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  background: transparent;
  display: none; /* بتظهر بس لو المنتج عنده أكتر من صورة */
}

html.qc-cat .qc-media.qc-has-gallery .qc-arrow { display: flex; }
html.qc-cat .qc-prev { inset-inline-start: 4px; }
html.qc-cat .qc-next { inset-inline-end: 4px; }
html.qc-cat .qc-arrow svg { width: 18px; height: 18px; }
/* اتجاه السهم: بيشاور لبرّه في العربي والإنجليزي */
html.qc-cat .qc-next svg { transform: scaleX(-1); }
html[dir="rtl"].qc-cat .qc-next svg { transform: none; }
html[dir="rtl"].qc-cat .qc-prev svg { transform: scaleX(-1); }

/* زرار السلة: دايرة صغيرة تحت في الركن */
html.qc-cat .qc-quick {
  bottom: 10px;
  inset-inline-end: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

html.qc-cat .qc-quick svg { width: 17px; height: 17px; }

/* كمبيوتر: يظهروا مع الهوفر */
@media (hover: hover) and (pointer: fine) {
  html.qc-cat [data-product-card]:hover .qc-arrow,
  html.qc-cat [data-product-card]:hover .qc-quick,
  html.qc-cat .qc-arrow:focus-visible,
  html.qc-cat .qc-quick:focus-visible { opacity: 1; }
}

/* موبايل: زرار السلة ظاهر على طول، والتقليب بالسحب بالصباع */
@media (hover: none) {
  html.qc-cat .qc-quick { opacity: 1; width: 32px; height: 32px; }
  html.qc-cat .qc-arrow { display: none !important; }
}

/* نقط صغيرة تحت الصورة بتوضح رقم الصورة */
html.qc-cat .qc-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  gap: 4px;
}

html.qc-cat .qc-media.qc-has-gallery .qc-dots { display: flex; }

html.qc-cat .qc-dots > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

html.qc-cat .qc-dots > i.is-on { background: #fff; }










/* ==========================================================================
   14. صفحة التصنيف — الترقيم (Pagination) بشكل هادي
   ========================================================================== */

html.qc-cat [data-pagination-root] {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--qc-line);
  font-size: 12px;
}










/* ==========================================================================
   15. تقليل الحركة — للي مفعّل "Reduce motion" في جهازه
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html.qumran-ready header { transition: none; }

  .aigc-prodgrid__cell a[href*="/products/"] img { transition: none !important; }
  .aigc-prodgrid__cell:hover a[href*="/products/"] img,
  .aigc-prodgrid__cell:focus-within a[href*="/products/"] img { transform: none !important; }
  .aigc-prodgrid__grid.is-loading { animation: none; }

  html.qc-cat .qc-tab,
  html.qc-cat .qc-arrow,
  html.qc-cat .qc-quick { transition: none; }
}










/* ==========================================================================
   16. الفوتر — بشكل Keshtban (بيتبني من قسم 05 في الـ JS)
   --------------------------------------------------------------------------
   متغيرات التحكم:
     --qf-c-*            : ألوان الويفز
     --qf-speed-*        : سرعة حركة كل طبقة (رقم أكبر = أبطأ)
     --qf-alpha-*        : شفافية كل طبقة (أقل = أشف)
     --qf-word-size      : حجم اسم البراند الكبير
     --qf-word-track     : المسافة بين حروف اسم البراند
     --qf-word-lift      : رفع اسم البراند من تحت
     --qf-band-height    : ارتفاع شريط البراند
     --qf-band-gap       : المسافة بين أيقونات الدفع والويفز
     --qf-waves-top      : مكان بداية الويفز (أقل = أعلى)
   ========================================================================== */

/* خط Newsreader بيتحمّل من الـ JS (قسم 05) */

:root {
  --qf-line: #e7e1d9;
  --qf-text: #1a1a1a;
  --qf-muted: #6f6a64;
  --qf-serif: "Newsreader", var(--font-heading, "Changa"), serif;
  --qf-band-top: var(--background, #faf8f5);
  --qf-band-bottom: #c4a9d3;

  /* ألوان الويفز — من لوجو قمران (موف + أخضر الورقة)، بتتخلط جوه كل طبقة بتدرّج مايل */
  --qf-c-pearl: #f6f2f4;  /* أبيض مايل للموف */
  --qf-c-cream: #ece5ef;  /* موف فاتح جدًا */
  --qf-c-linen: #e6edc6;  /* أخضر فاتح جدًا */
  --qf-c-blush: #c4a9d3;  /* لافندر */
  --qf-c-rose:  #b383c9;  /* موف اللوجو (لون كلمة QUMRAN) */
  --qf-c-sage:  #cfdc7e;  /* أخضر فاتح */
  --qf-c-olive: #a3b83f;  /* أخضر ورقة اللوجو */
  --qf-c-sand:  #8d6aa1;  /* موف أغمق (من خلفية اللوجو) */
  --qf-c-crest: #f6f2f4;  /* الخط الفاتح على قمة الموجة */

  /* الحركة: مدة كل طبقة (رايح جاي) */
  --qf-speed-rose: 14s;
  --qf-speed-olive: 17s;
  --qf-speed-sand: 15s;

  /* الشفافية: كل طبقة بيبان من تحتها اللي وراها (1 = مصمتة · 0 = مختفية) */
  --qf-alpha-rose: .8;
  --qf-alpha-olive: .72;
  --qf-alpha-sand: .5;
  --qf-word-size: clamp(54px, 12.5vw, 190px);
  --qf-word-track: .32em;                   /* المسافة بين حروف اسم البراند (زي اللوجو) */
  --qf-band-height: clamp(180px, 26vw, 380px);
  --qf-band-gap: clamp(0px, 1vw, 12px);     /* المسافة بين أيقونات الدفع والويفز */
  --qf-waves-top: 2%;                       /* مكان بداية الويفز من فوق (أقل = أعلى) */
  --qf-word-lift: clamp(10px, 2.4vw, 34px); /* رفع اسم البراند من تحت */
}

/* إخفاء فوتر الثيم الأصلي بعد ما الجديد يتبني */
footer.qf-on {
  padding: 0 !important;
  background: transparent !important;
  border-top: 1px solid var(--qf-line) !important;
  color: var(--qf-text) !important;
}

footer.qf-on > .theme-container { display: none !important; }

footer .qf {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1) صف اللينكات */
footer .qf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 80px;
  width: min(100% - 32px, 1176px);
  padding: 22px 0;
  border-bottom: 1px solid var(--qf-line);
}

footer .qf-links a {
  font-family: var(--qf-serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--qf-text) !important;
  text-decoration: none !important;
}

footer .qf-links a:hover { text-decoration: underline !important; text-underline-offset: 4px; }

/* 3) © + السوشيال */
footer .qf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 1176px);
  padding: 18px 0 14px;
}

footer .qf-copy {
  direction: ltr;           /* عشان "© 2026 qumran" ماتتقلبش في العربي */
  unicode-bidi: isolate;
  font-size: 14px;
  color: var(--qf-muted);
}

footer .qf-social { display: flex; align-items: center; gap: 14px; }
footer .qf-social a { color: var(--qf-text) !important; display: inline-flex; }
footer .qf-social svg { width: 20px; height: 20px; }

/* 4) أيقونات الدفع */
footer .qf-pay {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 14px;
}

footer .qf-pay img {
  height: 26px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  border-radius: 4px;
}

/* 5) BY ... */
footer .qf-credit {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--qf-muted);
  padding-bottom: 8px;
}

footer .qf-credit a { color: inherit !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* 6) شريط البراند: تدرّج + تلال + الاسم الضخم */
footer .qf-band {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--qf-band-height);
  margin-top: var(--qf-band-gap);   /* المسافة بين أيقونات الدفع والويفز */
  overflow: hidden;
  background: linear-gradient(to bottom,
    var(--qf-band-top) 0%, var(--qf-band-top) 12%,
    var(--qf-c-pearl) 42%, var(--qf-band-bottom) 100%);
}

/* الويفز ورا الكلمة، ونازلة شوية من فوق */
footer .qf-hills {
  position: absolute;
  top: var(--qf-waves-top);         /* أقل = الويفز أعلى */
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* كل طبقة بتتحرك يمين وشمال وفوق وتحت، رايح جاي، بسرعة مختلفة → تداخل دايم */
footer .qf-silk-rose  { animation: qf-silk-rose  var(--qf-speed-rose)  ease-in-out infinite alternate; opacity: var(--qf-alpha-rose); }
footer .qf-silk-olive { animation: qf-silk-olive var(--qf-speed-olive) ease-in-out infinite alternate; opacity: var(--qf-alpha-olive); }
footer .qf-silk-sand  { animation: qf-silk-sand  var(--qf-speed-sand)  ease-in-out infinite alternate; opacity: var(--qf-alpha-sand); }

/* الحركة: يمين/شمال واسعة، ولتحت بسيطة (الرقم التاني في translate: موجب = لتحت) */
@keyframes qf-silk-rose  { from { transform: translate(-200px, 8px); }   to { transform: translate(220px, -45px); } }
@keyframes qf-silk-olive { from { transform: translate(240px, -20px); }  to { transform: translate(-230px, 15px); } }
@keyframes qf-silk-sand  { from { transform: translate(-170px, 8px); }   to { transform: translate(200px, -45px); } }

/* الخط الفاتح على قمة الموجة */
footer .qf-crest {
  fill: none;
  stroke: var(--qf-c-crest);
  stroke-width: 2;
  stroke-opacity: .7;
  vector-effect: non-scaling-stroke;
}

/* تدرّج فاتح من فوق بيدمج الويفز مع خلفية الصفحة */
footer .qf-fade { pointer-events: none; }

footer .qf-word {
  position: absolute;
  left: 50%;
  bottom: var(--qf-word-lift);      /* أكبر = الاسم أعلى */
  transform: translateX(-50%);
  font-family: "Roboto Mono", ui-monospace, monospace;  /* أقرب خط لخط كلمة QUMRAN في اللوجو */
  font-size: var(--qf-word-size);
  font-weight: 400;
  line-height: .8;
  letter-spacing: var(--qf-word-track);
  padding-left: var(--qf-word-track);   /* يعادل المسافة بعد آخر حرف عشان الكلمة تتوسّط */
  text-transform: uppercase;
  color: #fff !important;
  white-space: nowrap;
  direction: ltr;
  user-select: none;
  pointer-events: none;
}

/* حرف Q بشكل اللوجو (SVG من قسم 05 في الـ JS)
   مقاسه بالنسبة لحجم الخط، فبيكبر ويصغر مع الكلمة */
footer .qf-qsvg {
  display: inline-block;
  width: .6em;                                 /* عرض الحرف في الخط */
  height: 1em;
  vertical-align: -.2em;                       /* يقعد على نفس سطر باقي الحروف */
  margin-right: var(--qf-word-track, .32em);   /* نفس المسافة بين الحروف */
  overflow: visible;
}

footer .qf-qsvg path,
footer .qf-qsvg line {
  fill: none;
  stroke: currentColor;
  stroke-width: 88;          /* سُمك الخط (نفس سُمك حرف U في الخط) */
}

footer .qf-qsvg line {
  stroke-linecap: butt;      /* نهاية الشرطة حادة (مقصوصة مستقيم) */
}

/* للي مفعّل "تقليل الحركة" في جهازه: الويفز ثابتة */
@media (prefers-reduced-motion: reduce) {
  footer .qf-silk { animation: none !important; }
}

/* موبايل */
@media (max-width: 767px) {
  footer .qf-links { gap: 10px 28px; padding: 18px 0; }
  footer .qf-links a { font-size: 18px; }
  footer .qf-copy { font-size: 12px; }
  footer .qf-pay img { height: 22px; }
}










/* ==========================================================================
   17. المنيو الجانبي — "تسوّقي ›" + لوحة التصنيفات + زرار الرجوع
   --------------------------------------------------------------------------
   بيشتغل مع قسم 06 في الـ JS. الخط والمسافات الأساسية في قسم 04
   ========================================================================== */

/* الغلاف: لوحة واحدة ظاهرة في المرة */
#mobile-drawer .qm-menu {
  width: 100%;
}

#mobile-drawer .qm-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid var(--border-light, #f2f2f2);
  border-bottom: 1px solid var(--border-light, #f2f2f2);
}

#mobile-drawer .qm-menu[data-view="main"] .qm-shop,
#mobile-drawer .qm-menu[data-view="shop"] .qm-main {
  display: none;
}

/* حركة دخول ناعمة من الجنب */
#mobile-drawer .qm-menu[data-view="shop"] .qm-shop { animation: qm-in-end .28s ease both; }
#mobile-drawer .qm-menu[data-view="main"] .qm-main { animation: qm-in-start .28s ease both; }

@keyframes qm-in-end   { from { opacity: 0; transform: translateX(24px); }  to { opacity: 1; transform: none; } }
@keyframes qm-in-start { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] #mobile-drawer .qm-menu[data-view="shop"] .qm-shop { animation-name: qm-in-start; }
html[dir="rtl"] #mobile-drawer .qm-menu[data-view="main"] .qm-main { animation-name: qm-in-end; }

/* كل عنصر: نفس الشكل (لينك أو زرار) + خط فاصل */
#mobile-drawer .qm-panel > a,
#mobile-drawer .qm-panel > button {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: 20px !important;
  padding-inline: 24px !important;
  text-align: start;
  background: transparent;
  border: 0;
  color: var(--foreground, #1a1a1a);
}

#mobile-drawer .qm-panel > * + * {
  border-top: 1px solid var(--border-light, #f2f2f2);
}

/* سهم "تسوّقي ›" — بيشاور لجوّه حسب اللغة */
#mobile-drawer .qm-shop-btn svg { flex: 0 0 auto; opacity: .7; }
html[dir="rtl"] #mobile-drawer .qm-shop-btn svg { transform: scaleX(-1); }

/* زرار الرجوع "‹ تسوّقي": فوق في نفس صف علامة X، بيظهر بس جوه التصنيفات */
#mobile-drawer .qm-back {
  position: absolute;
  top: calc((var(--qumran-header-bottom, 99px) - 44px) / 2);
  inset-inline-start: 18px;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--foreground, #1a1a1a);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 767px) {
  #mobile-drawer .qm-back { font-size: 18px; }
}

#mobile-drawer .qm-back svg { transform: scaleX(-1); }
html[dir="rtl"] #mobile-drawer .qm-back svg { transform: none; }

#mobile-drawer .qm-in-shop .qm-back { display: inline-flex; }

#mobile-drawer .qm-back:focus-visible,
#mobile-drawer .qm-shop-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  #mobile-drawer .qm-menu .qm-panel { animation: none !important; }
}










/* ==========================================================================
   18. صفحة "تواصل معنا" — بيانات التواصل (بتتبني من قسم 07 في الـ JS)
   --------------------------------------------------------------------------
     --qct-width : أقصى عرض للقائمة
   ========================================================================== */

/* محتوى الصفحة الأصلي ومسار الصفحة → مخفيين */
html.qct-page .qct-hidden { display: none !important; }

.qct {
  --qct-width: 680px;
  --qct-line: var(--qf-line, #e7e1d9);
  --qct-muted: var(--qf-muted, #6f6a64);
  padding: clamp(36px, 7vw, 88px) 16px clamp(48px, 8vw, 104px);
}

.qct-inner {
  width: min(100%, var(--qct-width));
  margin-inline: auto;
}

/* العنوان + السطر التعريفي */
.qct-head {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.qct-title {
  font-family: "Newsreader", var(--font-heading, "Changa"), serif;
  font-size: clamp(34px, 5vw, 56px) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em;
  margin: 0 0 14px !important;
  color: var(--foreground, #1a1a1a);
}

.qct-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--qct-muted);
  margin: 0;
}

/* القائمة: صفوف بخطوط فاصلة */
.qct-list {
  border-top: 1px solid var(--qct-line);
}

.qct-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--qct-line);
  color: var(--foreground, #1a1a1a) !important;
  text-decoration: none !important;
  transition: background-color .25s ease, padding .25s ease;
}

.qct-item:hover {
  background: rgba(0, 0, 0, .025);
  padding-inline: 16px;
}

.qct-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

/* الأيقونة في دايرة رفيعة */
.qct-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--qct-line);
  border-radius: 50%;
}

.qct-icon svg { width: 20px; height: 20px; }

.qct-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.qct-label {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--qct-muted);
}

.qct-value {
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* في العربي القيم الإنجليزي (إيميل/رقم) تفضل مقروءة وفي نفس الناحية */
html[dir="rtl"] .qct-value[dir="ltr"] { text-align: right; }

/* السهم ↗ */
.qct-go {
  display: inline-flex;
  opacity: .45;
  transition: opacity .25s ease, transform .25s ease;
}

.qct-go svg { width: 18px; height: 18px; }
html[dir="rtl"] .qct-go svg { transform: scaleX(-1); }

.qct-item:hover .qct-go {
  opacity: 1;
  transform: translate(2px, -2px);
}

html[dir="rtl"] .qct-item:hover .qct-go { transform: translate(-2px, -2px); }

@media (max-width: 767px) {
  .qct-item { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 16px 4px; }
  .qct-icon { width: 40px; height: 40px; }
  .qct-value { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .qct-item, .qct-go { transition: none; }
}