/* Add custom CSS styles below */ 
/* تنسيق مميزات متجر AuraGlam */
:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) {
  direction: rtl !important;
  margin-block: 28px !important;
}

/* ترتيب البطاقات: بطاقة واحدة على الجوال */
:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) > .grid,
:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) .grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

/* شكل كل بطاقة */
:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) .s-block--features__item,
:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) .grid > * {
  min-width: 0 !important;
  height: 100% !important;
  padding: 18px 14px !important;
  text-align: center !important;
  background: #fbf8f8 !important;
  border: 1px solid #eee4e5 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(66, 44, 48, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* خلفية الأيقونات ولونها */
:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) .feature-icon {
  width: 52px !important;
  height: 52px !important;
  margin: 0 auto 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9b777b !important;
  background: #f2e8e9 !important;
  border-radius: 50% !important;
}

:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) .feature-icon i,
:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) .feature-icon svg {
  color: #9b777b !important;
  font-size: 24px !important;
}

/* العنوان والوصف */
:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) .grid h2 {
  margin: 0 0 6px !important;
  color: #30272a !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
}

:is(
  .s-block--features,
  [data-testid="store-home-features"],
  .features-section,
  #features-section
) .grid p {
  margin: 0 !important;
  color: #71686a !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}

/* جهاز لوحي: بطاقتان في الصف */
@media (min-width: 768px) {
  :is(
    .s-block--features,
    [data-testid="store-home-features"],
    .features-section,
    #features-section
  ) > .grid,
  :is(
    .s-block--features,
    [data-testid="store-home-features"],
    .features-section,
    #features-section
  ) .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* كمبيوتر: خمس بطاقات متساوية */
@media (min-width: 1100px) {
  :is(
    .s-block--features,
    [data-testid="store-home-features"],
    .features-section,
    #features-section
  ) > .grid,
  :is(
    .s-block--features,
    [data-testid="store-home-features"],
    .features-section,
    #features-section
  ) .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

/* حركة بسيطة عند مرور المؤشر على الكمبيوتر */
@media (hover: hover) and (min-width: 768px) {
  :is(
    .s-block--features,
    [data-testid="store-home-features"],
    .features-section,
    #features-section
  ) .s-block--features__item:hover,
  :is(
    .s-block--features,
    [data-testid="store-home-features"],
    .features-section,
    #features-section
  ) .grid > *:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 22px rgba(66, 44, 48, 0.11) !important;
  }
}
/* إظهار الفوتر على الجوال */

@media (max-width: 768px) {
  /* إظهار الفوتر وضبط الهوامش */
  .store-footer__inner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
  }

  /* ترتيب حاوية العناصر بنظام flex-wrap */
  .store-footer__inner .container.grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
  }

  .store-footer__brand {
    display: contents !important;
  }

  /* 1. الشعار بالمنتصف */
  .store-footer__logo {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 6px auto !important;
  }
  .store-footer__logo img {
    height: 52px !important;
    max-height: 52px !important;
    width: auto !important;
  }

  /* 2. الكلام التعريفي */
  .store-footer__desc {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 4px auto 10px auto !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* 3. أيقونات التواصل الاجتماعي */
  .store-footer__brand > div:nth-child(3),
  .store-footer__brand salla-social,
  .store-footer__brand ul.s-social-list {
    order: 3 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 4px 0 16px 0 !important;
  }

  /* 4. روابط مهمة (يمين) - تنصيص كامل وقريبة من القسم المقابل */
  .store-footer__links {
    order: 4 !important;
    width: 48% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }
  .store-footer__links h3, .store-footer__links h4 {
    font-size: 14px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    width: 100% !important;
  }
  .store-footer__links * {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 4. تواصل معنا (يسار) - تنصيص كامل */
  .store-footer__contact-list {
    order: 5 !important;
    width: 48% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }
  .store-footer__contact-list h3, .store-footer__contact-list h4 {
    font-size: 14px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    width: 100% !important;
  }
  .store-footer__contact-list * {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .store-footer__contact-list .s-contacts-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* 5. التوثيق ووثيقة العمل الحر - في الأخير تماماً */
  .store-footer__trust {
    order: 6 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 15px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
}
/* إظهار وترتيب وسائل الدفع وحقوق المتجر في أسفل الصفحة للجوال */
@media (max-width: 768px) {
  /* ضمان ظهور الحاوية السفلية بالكامل */
  footer .footer-bottom,
  footer [class*="footer__bottom"],
  footer [class*="sub-footer"],
  footer [class*="copyright"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    padding: 15px 10px !important;
  }

  /* إظهار وترتيب أيقونات وسائل الدفع */
  footer [class*="payment"],
  footer [class*="methods"],
  footer .payment-methods {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* إظهار النص والحقوق */
  footer [class*="copy"],
  footer [class*="rights"] {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}