@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* =====================================================
   متجر بررة — CSS مخصص لسلة
   الهوية: أخضر بررة #00423F · كهرماني #F2A94E · رملي #F6F3EE
   مكتوب لثيم سلة الافتراضي (رائد). جرّبه على نسخة الثيم قبل النشر.
   ===================================================== */

/* 1) ألوان الهوية + متغيرات ثيم سلة */
:root {
  --brrah-green: #00423F;
  --brrah-green-2: #0B5E57;
  --brrah-amber: #F2A94E;
  --brrah-amber-soft: #FCEFDD;
  --brrah-sand: #F6F3EE;
  --brrah-mint: #E3F1EF;
  --brrah-line: #ECE6DD;
  --brrah-text: #1C2B2A;
  --brrah-muted: #4F5E5C;

  --color-primary: #00423F;
  --color-primary-dark: #002E2C;
  --color-primary-light: #E3F1EF;
  --color-primary-reverse: #FFFFFF;
}

/* 2) الخط والخلفية */
body {
  font-family: 'Tajawal', Tahoma, Arial, sans-serif !important;
  background-color: var(--brrah-sand);
  color: var(--brrah-text);
}
h1, h2, h3, h4,
.s-block__title,
.s-block__title h2 {
  color: var(--brrah-green);
  font-weight: 800;
}
a:hover { color: var(--brrah-green-2); }

/* 3) الهيدر */
.store-header,
.main-nav-container {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E7E1D8;
}

/* 4) أزرار التبرع: كهرماني بنص أخضر (تباين أعلى من 4.5:1) */
.s-button-primary,
.btn--primary,
salla-add-product-button .s-button-element {
  background-color: var(--brrah-amber) !important;
  border-color: var(--brrah-amber) !important;
  color: var(--brrah-green) !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  min-height: 48px;
}
.s-button-primary:hover,
.btn--primary:hover,
salla-add-product-button .s-button-element:hover {
  background-color: #E99A36 !important;
  border-color: #E99A36 !important;
}

/* الأزرار الثانوية: إطار أخضر */
.s-button-outline,
.btn--outline {
  border: 1.5px solid var(--brrah-green) !important;
  color: var(--brrah-green) !important;
  border-radius: 14px !important;
}

/* 5) بطاقات المشاريع */
.s-product-card-entry {
  background: #FFFFFF;
  border: 1px solid var(--brrah-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
}
.s-product-card-content-title,
.s-product-card-content-title a {
  color: var(--brrah-green) !important;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.5;
}
.s-product-card-content-subtitle {
  color: var(--brrah-muted);
  font-size: 0.9rem;
}
.s-product-card-image img { object-fit: cover; }

/* 6) الحقول: خط 16px يمنع التكبير التلقائي في آيفون عند كتابة المبلغ */
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
.form-input {
  font-size: 16px !important;
  border-radius: 12px;
  min-height: 48px;
}
input:focus,
.form-input:focus {
  border-color: var(--brrah-green) !important;
  box-shadow: 0 0 0 3px var(--brrah-mint) !important;
}

/* 7) التذييل */
.store-footer {
  background-color: var(--brrah-green) !important;
  color: #D6ECE9;
}
.store-footer a { color: #FFFFFF; }
.store-footer a:hover { color: var(--brrah-amber); }

/* 8) إمكانية الوصول: إطار واضح عند التنقل بلوحة المفاتيح */
:focus-visible {
  outline: 3px solid var(--brrah-amber);
  outline-offset: 2px;
}

/* 9) الجوال: أزرار أكبر ونص أوضح */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .s-button-element { min-height: 48px; }
  .s-product-card-content-title,
  .s-product-card-content-title a { font-size: 1.1rem; }
}
/* =====================================================
   متجر بررة — نصوص التذييل كلها بيضاء
   يُلصق في: تصميم المتجر ← تخصيص النسخة ← تخصيص متقدم ← CSS
   خلفية التذييل تصير فيروزي غامق (هوية بررة) حتى يظهر النص الأبيض
   ===================================================== */

/* خلفية التذييل */
html body .store-footer,
html body .store-footer .store-footer__info-bar {
  background: #00423F !important;
}
html body .store-footer .store-footer__info-bar {
  border-top: 1px solid rgba(255, 255, 255, .15) !important;
}

/* كل النصوص والروابط */
html body .store-footer,
html body .store-footer *:not(svg):not(path):not(img) {
  color: #fff !important;
}

/* الأيقونات (التواصل والجوال والبريد) */
html body .store-footer svg,
html body .store-footer svg path {
  fill: #fff !important;
  color: #fff !important;
}

/* السطر الأخير «صنع بإتقان على منصة سلة» (الثيم يفرض عليه رمادي) */
html body .store-footer .store-footer__info-bar .text-gray-400,
html body .store-footer .store-footer__info-bar p,
html body .store-footer .store-footer__info-bar span,
html body .store-footer .store-footer__info-bar a {
  color: #fff !important;
}

/* أيقونات التواصل الاجتماعي: مربعة بحواف ناعمة */
html body .store-footer .s-social-link a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, .5) !important;
  background: rgba(255, 255, 255, .08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .2s ease, border-color .2s ease;
}
html body .store-footer .s-social-link {
  width: auto !important;
  height: auto !important;
}
html body .store-footer .s-social-list {
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
}
html body .store-footer .s-social-link a:hover {
  background: #F2A94E !important;
  border-color: #F2A94E !important;
}
html body .store-footer .s-social-link a:hover svg,
html body .store-footer .s-social-link a:hover svg path {
  fill: #00423F !important;
}

/* الخطوط الفاصلة */
html body .store-footer hr,
html body .store-footer [class*="border"] {
  border-color: rgba(255, 255, 255, .15) !important;
}

/* مرور الماوس على الروابط: برتقالي الهوية */
html body .store-footer a:hover,
html body .store-footer a:hover * {
  color: #F2A94E !important;
}

/* شعار الجمعية في التذييل أبيض حتى يظهر على الخلفية الغامقة */
html body .store-footer img.object-contain {
  filter: brightness(0) invert(1);
}
/* =====================================================
   متجر بررة — نصوص التذييل كلها بيضاء
   يُلصق في: تصميم المتجر ← تخصيص النسخة ← تخصيص متقدم ← CSS
   خلفية التذييل تصير فيروزي غامق (هوية بررة) حتى يظهر النص الأبيض
   ===================================================== */

/* خلفية التذييل */
html body .store-footer,
html body .store-footer .store-footer__info-bar {
  background: #00423F !important;
}
html body .store-footer .store-footer__info-bar {
  border-top: 1px solid rgba(255, 255, 255, .15) !important;
}

/* كل النصوص والروابط */
html body .store-footer,
html body .store-footer *:not(svg):not(path):not(img) {
  color: #fff !important;
}

/* الأيقونات (التواصل والجوال والبريد) */
html body .store-footer svg,
html body .store-footer svg path {
  fill: #fff !important;
  color: #fff !important;
}

/* السطر الأخير «صنع بإتقان على منصة سلة» (الثيم يفرض عليه رمادي) */
html body .store-footer .store-footer__info-bar .text-gray-400,
html body .store-footer .store-footer__info-bar p,
html body .store-footer .store-footer__info-bar span,
html body .store-footer .store-footer__info-bar a {
  color: #fff !important;
}

/* أيقونات التواصل الاجتماعي: مربعة بحواف ناعمة */
html body .store-footer .s-social-link a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, .5) !important;
  background: rgba(255, 255, 255, .08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .2s ease, border-color .2s ease;
}
html body .store-footer .s-social-link {
  width: auto !important;
  height: auto !important;
}
html body .store-footer .s-social-list {
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
}
html body .store-footer .s-social-link a:hover {
  background: #F2A94E !important;
  border-color: #F2A94E !important;
}
html body .store-footer .s-social-link a:hover svg,
html body .store-footer .s-social-link a:hover svg path {
  fill: #00423F !important;
}

/* الخطوط الفاصلة */
html body .store-footer hr,
html body .store-footer [class*="border"] {
  border-color: rgba(255, 255, 255, .15) !important;
}

/* مرور الماوس على الروابط: برتقالي الهوية */
html body .store-footer a:hover,
html body .store-footer a:hover * {
  color: #F2A94E !important;
}

/* شعار الجمعية في التذييل أبيض حتى يظهر على الخلفية الغامقة */
html body .store-footer img.object-contain {
  filter: brightness(0) invert(1);
}

/* تكبير شعار بررة في التذييل (كان 70px) */
html body .store-footer img.object-contain {
  width: 160px !important;
  max-width: 160px !important;
  height: auto !important;
  max-height: none !important;
}
@media (max-width: 640px) {
  html body .store-footer img.object-contain {
    width: 130px !important;
    max-width: 130px !important;
  }
/* =====================================================
   الهيدر: شعار بررة (الكتابة بيضاء والأيقونة برتقالي) + الإيميل أبيض
   ===================================================== */

/* الشعار: نفس شعار المتجر لكن ملوّن عبر قناع، بدون تغيير صورة الشعار الأصلية */
html body header .navbar-brand img[src*="eacbb32e"] {
  object-position: -99999px 0 !important;           /* يخفي ألوان الصورة الأصلية */
  background: linear-gradient(to right, #FFFFFF 0 62.7%, #F2A94E 62.7% 100%) !important;
  -webkit-mask: url("https://cdn.files.salla.network/other/503039680/eacbb32e-d730-44bb-aa62-e32ac6cb8930-standard.webp") center / contain no-repeat;
          mask: url("https://cdn.files.salla.network/other/503039680/eacbb32e-d730-44bb-aa62-e32ac6cb8930-standard.webp") center / contain no-repeat;
}

/* الشريط العلوي (الإيميل والجوال) أبيض */
html body header .top-nav a,
html body header .top-nav span,
html body header .top-nav i,
html body header .top-nav .s-contacts-topnav-link {
  color: #FFFFFF !important;
}
html body header .top-nav svg,
html body header .top-nav svg path {
  fill: #FFFFFF !important;
}
  /* =====================================================
   الهيدر: شعار بررة (الكتابة بيضاء والأيقونة برتقالي) + الإيميل أبيض
   ===================================================== */

/* الشعار: نفس شعار المتجر لكن ملوّن عبر قناع، بدون تغيير صورة الشعار الأصلية */
html body header .navbar-brand img[src*="eacbb32e"] {
  object-position: -99999px 0 !important;           /* يخفي ألوان الصورة الأصلية */
  background: linear-gradient(to right, #FFFFFF 0 62.7%, #F2A94E 62.7% 100%) !important;
  -webkit-mask: url("https://cdn.files.salla.network/other/503039680/eacbb32e-d730-44bb-aa62-e32ac6cb8930-standard.webp") center / contain no-repeat;
          mask: url("https://cdn.files.salla.network/other/503039680/eacbb32e-d730-44bb-aa62-e32ac6cb8930-standard.webp") center / contain no-repeat;
}

/* الشريط العلوي (الإيميل والجوال) أبيض */
html body header .top-nav a,
html body header .top-nav span,
html body header .top-nav i,
html body header .top-nav .s-contacts-topnav-link {
  color: #FFFFFF !important;
}
html body header .top-nav svg,
html body header .top-nav svg path {
  fill: #FFFFFF !important;
}/* =====================================================
   الهيدر: شعار بررة (الكتابة بيضاء والأيقونة برتقالي) + الإيميل أبيض
   ===================================================== */

/* الشعار: نفس شعار المتجر لكن ملوّن عبر قناع، بدون تغيير صورة الشعار الأصلية */
html body header .navbar-brand img[src*="eacbb32e"] {
  object-position: -99999px 0 !important;           /* يخفي ألوان الصورة الأصلية */
  background: linear-gradient(to right, #FFFFFF 0 62.7%, #F2A94E 62.7% 100%) !important;
  -webkit-mask: url("https://cdn.files.salla.network/other/503039680/eacbb32e-d730-44bb-aa62-e32ac6cb8930-standard.webp") center / contain no-repeat;
          mask: url("https://cdn.files.salla.network/other/503039680/eacbb32e-d730-44bb-aa62-e32ac6cb8930-standard.webp") center / contain no-repeat;
}

/* الشريط العلوي (الإيميل والجوال) أبيض */
html body header .top-nav a,
html body header .top-nav span,
html body header .top-nav i,
html body header .top-nav .s-contacts-topnav-link {
  color: #FFFFFF !important;
}
html body header .top-nav svg,
html body header .top-nav svg path {
  fill: #FFFFFF !important;
}


/* أيقونة الإيميل في الهيدر: دائرة بيضاء والظرف فيروزي، وعند الضغط تتلوّن الدائرة برتقالي (ما تختفي) */
html body header .top-nav a.s-contacts-topnav-link::before {
  background-color: #FFFFFF !important;
  color: #00423F !important;
  transition: background-color .15s ease, color .15s ease;
}
html body header .top-nav a.s-contacts-topnav-link:hover::before,
html body header .top-nav a.s-contacts-topnav-link:focus::before,
html body header .top-nav a.s-contacts-topnav-link:active::before {
  background-color: #F2A94E !important;
  color: #FFFFFF !important;
}
html body header .top-nav a.s-contacts-topnav-link:hover,
html body header .top-nav a.s-contacts-topnav-link:focus,
html body header .top-nav a.s-contacts-topnav-link:active {
  color: #F2A94E !important;
  opacity: 1 !important;   /* الثيم كان يبهّت الرابط ويخفي الدائرة عند المرور */
}
  /* =====================================================
   الهيدر: شعار بررة (الكتابة بيضاء والأيقونة برتقالي) + الإيميل أبيض
   ===================================================== */

/* الشعار: نفس شعار المتجر لكن ملوّن عبر قناع، بدون تغيير صورة الشعار الأصلية */
html body header .navbar-brand img[src*="eacbb32e"] {
  object-position: -99999px 0 !important;           /* يخفي ألوان الصورة الأصلية */
  background: linear-gradient(to right, #FFFFFF 0 62.7%, #F2A94E 62.7% 100%) !important;
  -webkit-mask: url("https://cdn.files.salla.network/other/503039680/eacbb32e-d730-44bb-aa62-e32ac6cb8930-standard.webp") center / contain no-repeat;
          mask: url("https://cdn.files.salla.network/other/503039680/eacbb32e-d730-44bb-aa62-e32ac6cb8930-standard.webp") center / contain no-repeat;
}

/* تكبير الشعار قليلًا (كان 48px في الكمبيوتر و40px في الجوال) */
html body header .navbar-brand img[src*="eacbb32e"] {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
}
@media (max-width: 640px) {
  html body header .navbar-brand img[src*="eacbb32e"] {
    height: 48px !important;
  }
}

/* الشريط العلوي (الإيميل والجوال) أبيض */
html body header .top-nav a,
html body header .top-nav span,
html body header .top-nav i,
html body header .top-nav .s-contacts-topnav-link {
  color: #FFFFFF !important;
}
html body header .top-nav svg,
html body header .top-nav svg path {
  fill: #FFFFFF !important;
}


/* أيقونة الإيميل في الهيدر: دائرة بيضاء والظرف فيروزي، وعند الضغط تتلوّن الدائرة برتقالي (ما تختفي) */
html body header .top-nav a.s-contacts-topnav-link::before {
  background-color: #FFFFFF !important;
  color: #00423F !important;
  transition: background-color .15s ease, color .15s ease;
}
html body header .top-nav a.s-contacts-topnav-link:hover::before,
html body header .top-nav a.s-contacts-topnav-link:focus::before,
html body header .top-nav a.s-contacts-topnav-link:active::before {
  background-color: #F2A94E !important;
  color: #FFFFFF !important;
}
html body header .top-nav a.s-contacts-topnav-link:hover,
html body header .top-nav a.s-contacts-topnav-link:focus,
html body header .top-nav a.s-contacts-topnav-link:active {
  color: #F2A94E !important;
  opacity: 1 !important;   /* الثيم كان يبهّت الرابط ويخفي الدائرة عند المرور */
}
/* =====================================================
   متجر بررة — مؤشر الماوس نجمة بررة + نجوم صغيرة تتناثر خلفه
   يُلصق في آخر خانة JavaScript (تحت كود الأسهم، بدون حذف شيء)
   - يعمل في الكمبيوتر فقط (الجوال ما فيه ماوس).
   - يتوقف التناثر تلقائيًا لمن فعّل «تقليل الحركة» في جهازه.
   ===================================================== */
(function () {
  'use strict';
  if (window.__brrahStar) return;
  window.__brrahStar = true;

  var COLORS = ['#F2A94E', '#F2A94E', '#E8962F', '#F7B964', '#1FA39B'];  // برتقالي بدرجاته + لمسة فيروزي
  var STAR = 'M16 2C17.2 11 21 14.8 30 16C21 17.2 17.2 21 16 30C14.8 21 11 17.2 2 16C11 14.8 14.8 11 16 2Z';

  function svgUrl(color, size) {
    var svg = "<svg xmlns='http://www.w3.org/2000/svg' width='" + size + "' height='" + size +
      "' viewBox='0 0 32 32'><path d='" + STAR + "' fill='" + color + "'/></svg>";
    return 'data:image/svg+xml,' + encodeURIComponent(svg);
  }

  // 1) المؤشر: نجمة برتقالية بدون حدود
  var cur = 'url("' + svgUrl('#F2A94E', 28) + '") 14 14, auto';
  var css = [
    'html,body,a,button,label,select,summary,[role="button"],salla-button,.s-button-element{cursor:' + cur + '!important}',
    'input[type="text"],input[type="email"],input[type="tel"],input[type="number"],input[type="search"],input[type="password"],textarea{cursor:text!important}',
    '.brrah-spark{position:fixed;left:0;top:0;width:12px;height:12px;pointer-events:none;z-index:2147483647;',
    'background:no-repeat center/contain;will-change:transform,opacity;animation:brrahSpark 1s ease-out forwards}',
    '@keyframes brrahSpark{0%{opacity:1;transform:translate(var(--x0),var(--y0)) scale(1) rotate(0deg)}60%{opacity:.9}',
    '100%{opacity:0;transform:translate(var(--x1),var(--y1)) scale(.35) rotate(var(--r))}}'
  ].join('');
  var st = document.createElement('style');
  st.id = 'brrah-star-css';
  st.textContent = css;
  (document.head || document.documentElement).appendChild(st);

  // 2) التناثر: نجوم صغيرة تطلع من المؤشر وتختفي
  var fine = window.matchMedia && window.matchMedia('(pointer: fine)').matches;
  var calm = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  if (!fine || calm) return;

  var urls = COLORS.map(function (c) { return 'url("' + svgUrl(c, 24) + '")'; });
  var last = 0, live = 0, MAX = 40;

  document.addEventListener('mousemove', function (e) {
    var now = Date.now();
    if (now - last < 35 || live >= MAX) return;   // نجمة كل 35ms تقريبًا
    last = now;
    var s = document.createElement('span');
    var size = 8 + Math.random() * 10;                 // 8–18px
    var dx = (Math.random() - 0.5) * 40;
    var dy = 12 + Math.random() * 28;                  // تنزل لتحت شوي كأنها تتساقط
    s.className = 'brrah-spark';
    s.style.width = s.style.height = size + 'px';
    s.style.backgroundImage = urls[(Math.random() * urls.length) | 0];
    s.style.setProperty('--x0', (e.clientX - size / 2) + 'px');
    s.style.setProperty('--y0', (e.clientY - size / 2) + 'px');
    s.style.setProperty('--x1', (e.clientX - size / 2 + dx) + 'px');
    s.style.setProperty('--y1', (e.clientY - size / 2 + dy) + 'px');
    s.style.setProperty('--r', ((Math.random() - 0.5) * 180) + 'deg');
    document.body.appendChild(s);
    live++;
    setTimeout(function () { s.remove(); live--; }, 1020);
  }, { passive: true });
})();
                                       } /* يقفل أي قوس ناقص قبله — لا تحذفه */
.brrah-guard {}

/* =====================================================
   متجر بررة — البنر الرئيسي (فوق) في الجوال فقط:
   يفتح بمقاسه الصحيح من أول لحظة بدون ما يكبر ويصغر
   يُلصق في آخر خانة CSS — الكمبيوتر ما يتأثر
   ⚠️ إذا غيّرتي صورة البنر بمقاس مختلف، غيّري الرقمين 464 و 1440
      (ارتفاع الصورة / عرضها)
   ===================================================== */
@media (max-width: 768px) {
  html body .s-block--main-slider,
  html body .s-block--main-slider salla-slider,
  html body .s-block--main-slider .swiper,
  html body .s-block--main-slider .swiper-wrapper,
  html body .s-block--main-slider .swiper-slide,
  html body .s-block--main-slider .swiper-slide .swiper-lazy {
    height: calc(100vw * 464 / 1440) !important;
    min-height: 0 !important;
  }
  html body .s-block--main-slider .swiper-slide .swiper-lazy {
    background-size: cover !important;
    background-position: center !important;
  }
}
                                       .s-product-card-wishlist-btn,
.s-product-card-wishlist {
    display: none !important;
}