/* ==========================================================================
   1. الإعدادات العامة والخلفيات (General & Backgrounds)
   ========================================================================== */

/* ضبط خلفية الصفحة الرئيسية والتطبيق للون الأبيض */
body#app {
  background-color: white;
}

/* خلفية صور البانر الثابت */
.banner--fixed img {
  background-color: rgb(255 255 255);
}
#main-content > section:nth-child(2) > div > a > picture > img {
    background-color: #FFF5EF;
}
/* خلفية الصور ذات التحميل الكسول (Lazy Loaded) */
.lazy__bg.lazy.bg-no-repeat.entered.loaded {
  background-color: #FFF5EF;
}
.index section.s-block.s-block--fixed-banner.wide-placeholder > .container {
  max-width: 100%;
  padding: 0;
}
/* حاوية بتأثير الزجاج الشفاف (Glassmorphism Effect) */
.inner.bg-inherit.w-full {
  background-color: rgb(255 255 255 / 0%); /* نفس اللون بشفافية كاملة */
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3); /* حافة خفيفة زجاجية */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);  /* ظل خفيف */
  border-radius: 12px;
}


/* ==========================================================================
   2. قسم البانر والواجهة الرئيسية (Hero & Main Sections)
   ========================================================================== */

/* ضبط الحاوية داخل أول بانر ثابت لملء الشاشة وإلغاء الهوامش */
section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(1) > .container {
  max-width: 100%;
  margin-top: 0;
  padding: 0;
}

/* ضبط المسافة العلوية للسكشن الثاني في المحتوى الرئيسي */
#main-content > section:nth-child(2) {
  margin-top: 0px;
}



/* ==========================================================================
   3. بطاقة المنتج والمحتوى الداخلي (Product Card Structure)
   ========================================================================== */

/* الحاوية الأساسية لبطاقة المنتج */
.s-product-card-entry {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f1f1f1;
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* تأثير الحركة لصورة المنتج */
.s-product-card-image img {
  transition: transform 0.6s ease;
}

/* محاذاة وتوسيط محتوى البطاقة */
.s-product-card-content {
  display: flex;
  place-content: center;
  align-items: center;
}

/* رابط عنوان المنتج */
.s-product-card-content-title a {
  display: block;
  font-size: 16px;
  color: #5E3C2C;
  transition: color 0.3s ease;
}

/* الحاوية الفرعية لمحتوى البطاقة */
.s-product-card-content-sub {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* تنسيق سعر المنتج */
.s-product-card-price {
  color: #000000;
  font-weight: 700;
  font-size: 21px;
  transition: color 0.3s ease;
}

/* زر الإضافة داخل البطاقة */
.s-product-card-content-footer .s-button-element {
  border-radius: 14px;
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}


/* ==========================================================================
   4. تأثيرات المرور لبطاقة المنتج (Product Card Hover Effects)
   ========================================================================== */

/* رفع البطاقة وتغيير الظل ولون الإطار عند التحويم */
.s-product-card-entry:hover {
  transform: translateY(-8px);
  border-color: #5E3C2C;
  box-shadow: 0 18px 45px rgba(94, 60, 44, 0.25);
}

/* تكبير صورة المنتج بنعومة عند Hover */
.s-product-card-entry:hover .s-product-card-image img {
  transform: scale(1.08);
}

/* تغيير لون العنوان عند Hover */
.s-product-card-entry:hover .s-product-card-content-title a {
  color: #5E3C2C;
}

/* تغيير لون السعر عند Hover */
.s-product-card-entry:hover .s-product-card-price {
  color: #5E3C2C;
}

/* تفعيل زر الإضافة النشط وتغيير لونه عند Hover */
.s-product-card-entry:hover .s-product-card-content-footer .s-button-element:not(.s-button-disabled) {
  background-color: #5E3C2C;
  border-color: #5E3C2C;
  color: #fff;
}


/* ==========================================================================
   5. زر الشراء الرئيسي والتأثيرات الحركية (Custom Primary Button)
   ========================================================================== */

/* التصميم الأساسي للزر مع خلفية متدرجة متحركة */
.s-button-primary-outline.s-button-btn {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #5E3C2C, #825540, #3d2419, #5E3C2C);
  background-size: 350% 350%;
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 12px 30px rgba(94, 60, 44, 0.35);
  animation: 
    softGradientShift 7s ease-in-out infinite,
    buttonPulseGlow 4s ease-in-out infinite;
  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .45s ease,
    filter .45s ease;
}

/* طبقة لمعان مائي فوق الزر (Liquid Light Layer) */
.s-button-primary-outline.s-button-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.38), transparent 28%);
  transform: translateX(-120%) scale(1.2);
  opacity: .8;
  animation: liquidLight 5s ease-in-out infinite;
  pointer-events: none;
}

/* النص الداخلي للزر وضبط المحاذاة */
.s-button-primary-outline .s-button-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* أيقونة سلة الشراء (مخفية بالوضع الافتراضي) */
.s-button-primary-outline .sicon-shopping-bag {
  margin-left: 0;
  opacity: 0;
  transform: translateY(18px) scale(.7) rotate(-12deg);
  width: 0;
  overflow: hidden;
  transition:
    opacity .45s ease,
    transform .45s cubic-bezier(.2,.9,.2,1.2),
    width .45s ease;
}

/* تفاعل الزر عند مرور الماوس (Hover) */
.s-button-primary-outline.s-button-btn:hover {
  transform: translateY(-5px) scale(1.045);
  box-shadow: 0 24px 55px rgba(94, 60, 44, 0.58);
  filter: saturate(1.08);
}

/* إظهار أيقونة السلة وتحريكها عند Hover */
.s-button-primary-outline.s-button-btn:hover .sicon-shopping-bag {
  opacity: 1;
  width: 18px;
  transform: translateY(0) scale(1) rotate(0deg);
  animation: bagWiggle .75s ease .15s;
}

/* تسريع دورة اللمعان وقت Hover */
.s-button-primary-outline.s-button-btn:hover::before {
  animation-duration: 2s;
}

/* تأثير الضغط على الزر (Active Click) */
.s-button-primary-outline.s-button-btn:active {
  transform: scale(.96);
}

.footer-is-light .store-footer .store-footer__inner {
    background-color rgb(243 244 246  0%);
}
.footer-is-light .store-footer .store-footer__inner {
    background-color: rgb(243 244 246 / 0%);
}
.footer-is-light .store-footer {
    background-color: rgb(249 250 251 / 0%);
}
.footer-is-light .store-footer {
    background-color: rgb(249 250 251 / 0%);
    background-image: url(https://cdn.files.salla.network/other/97233264/4fd6e7ad-62e2-4732-9a87-11aaed68fb0b-original.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* ==========================================================================
   6. حركات ومؤثرات Keyframes (Button Keyframes)
   ========================================================================== */

/* حركة تموج التدرج اللوني للخلفية */
@keyframes softGradientShift {
  0% { background-position: 0% 50%; }
  35% { background-position: 80% 20%; }
  70% { background-position: 100% 80%; }
  100% { background-position: 0% 50%; }
}

/* حركة نبض الظل والتوهج */
@keyframes buttonPulseGlow {
  0%, 100% { box-shadow: 0 12px 30px rgba(94, 60, 44, .35); }
  50% { box-shadow: 0 18px 42px rgba(130, 85, 64, .55); }
}

/* حركة مرور لمعة الضوء عبر الزر */
@keyframes liquidLight {
  0% { transform: translateX(-120%) scale(1.2); opacity: 0; }
  25% { opacity: .85; }
  55% { transform: translateX(120%) scale(1.2); opacity: 0; }
  100% { transform: translateX(120%) scale(1.2); opacity: 0; }
}

/* حركة اهتزاز أيقونة الحقيبة عند الظهور */
@keyframes bagWiggle {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-3px) rotate(-10deg); }
  70% { transform: translateY(1px) rotate(7deg); }
  100% { transform: translateY(0) rotate(0deg); }
}



/* توحيد لون نصوص الحقوق باللون الأبيض */
.copyright-text p,
.store-footer .copyright {
  color: #000000 !important;
}
@media (min-width: 1024px) {
  #main-content > section:nth-child(9) > div {
    max-width: 50% !important;
  }
}

/* ==========================================================================
   8. التجاوب وتنسيقات الجوال حتى 768px (Mobile Media Queries)
   ========================================================================== */
@media (max-width: 768px) {

  /* تصغير حجم خط عنوان المنتج ليتناسب مع شاشات الجوال */
  .s-product-card-content-title a {
    font-size: 14px;
    text-align: center;
    word-break: break-word;
    display: block;
  }

  /* ضبط ارتفاع البانر الرئيسي على الجوال */
  .banner-entry {
    height: 300px !important;
  }


media (min-width: 1024px) {
  #main-content > section:nth-child(9) > div {
    max-width: 50% !important;
  }
}

@media (min-width: 1024px) {
  #main-content > section:nth-child(9) > div {
    max-width: 50% !important;
  }
}

/* ==========================================================================
   8. التجاوب وتنسيقات الجوال حتى 768px (Mobile Media Queries)
   ========================================================================== */
@media (max-width: 768px) {

  /* تصغير حجم خط عنوان المنتج ليتناسب مع شاشات الجوال */
  .s-product-card-content-title a {
    font-size: 14px;
    text-align: center;
    word-break: break-word;
    display: block;
  }
}

@media (max-width: 768px) {
  
  /* ضبط الحاوية الرئيسية للفوتر */
  footer.store-footer {
    text-align: center !important;
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* تحويل محتوى الفوتر لترتيب عمودي سلس وتوسيط كامل */
  footer.store-footer .container,
  footer.store-footer > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
  }

  /* 1. قسم البراند واللوجو والاسم في المنتصف تماماً */
  footer.store-footer .store-footer__brand,
  footer.store-footer .footer-brand,
  footer.store-footer .max-w-sm {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  /* رابط اللوجو وتوسيعه */
  footer.store-footer a.flex {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* تطبيق اللوجو بالخلفية وإخفاء النص مع التوسيط */
  .store-footer a.flex h3 {
    font-size: 0 !important;
    background-image: url('https://cdn.files.salla.network/theme/97233264/e05954e5-b66d-4f9a-9637-415c10632761-original.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
    width: 200px !important;
    height: 100px !important;
    margin: 0 auto 0.5rem auto !important;
  }

  /* إخفاء صورة اللوجو الافتراضية للاكتفاء باللوجو المخصص */
  footer.store-footer .store-footer__brand img:not([src*="6f8ee17c"]),
  footer.store-footer .footer-brand img:not([src*="6f8ee17c"]) {
    display: none !important;
  }

  /* وصف المتجر */
  footer.store-footer p.ql-direction-rtl,
  footer.store-footer .max-w-sm p {
    font-size: 0.85rem !important;
    line-height: 1.7 !important;
    opacity: 0.9 !important;
    max-width: 320px !important;
    margin: 0 auto 0.75rem auto !important;
    text-align: center !important;
  }

  /* شارات التوثيق (وثيقة العمل الحر / معروف) */
  footer.store-footer salla-trust-badges {
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0.5rem auto !important;
  }

  /* 2. الروابط المهمة في المنتصف */
  footer.store-footer salla-menu {
    order: 3 !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
  }

  footer.store-footer .s-menu-footer-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    padding: 0 !important;
    margin: 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
  }

  footer.store-footer .s-menu-footer-item {
    font-size: 0.9rem !important;
    opacity: 0.9 !important;
    text-align: center !important;
  }

  /* 3. شريط أزرار التواصل */
  footer.store-footer salla-contacts {
    order: 4 !important;
    width: 100% !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.2) !important;
    padding-top: 1.25rem !important;
  }

  footer.store-footer salla-contacts .s-contacts-title {
    display: none !important;
  }

  footer.store-footer .s-contacts-list {
    display: flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0 !important;
  }

  footer.store-footer .s-contacts-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    font-size: 0.8rem !important;
    color: inherit !important;
  }

  /* 4. أيقونات السوشيال ميديا في دوائر مفرغة */
  footer.store-footer salla-social {
    order: 5 !important;
    margin: 0.25rem 0 1rem 0 !important;
  }

  footer.store-footer salla-social ul.s-social-list {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  footer.store-footer salla-social li.s-social-link a {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
  }

  footer.store-footer salla-social svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
  }

  /* 5. الشريط السفلي (طرق الدفع والحقوق) */
  footer.store-footer salla-payments {
    order: 6 !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 1rem !important;
  }

  footer.store-footer .s-payments-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
  }

  footer.store-footer .store-footer__bottom,
  footer.store-footer .copyright {
    order: 7 !important;
    font-size: 0.8rem !important;
    opacity: 0.8 !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
  }
}
.store-footer a.flex h3 {
    font-size: 0 !important;
    background-image: url('https://cdn.files.salla.network/theme/97233264/e05954e5-b66d-4f9a-9637-415c10632761-original.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
    width: 200px !important;
    height: 100px !important;
    margin: 0 auto 0.5rem auto !important;
  }