/* Add custom CSS styles below */ 
/* ========= Product Details Sections ========= */
.lr-sections {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.lr-section {
  background: #f7f1ec !important;
  border: 1px solid rgba(191, 134, 141, 0.18) !important;
  border-radius: 18px !important;
  padding: 16px !important;
}

.lr-section__title {
  color: #775c4e !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
}

.lr-section__body {
  color: #4b3a32 !important;
  line-height: 1.9 !important;
}

/* خلفية المتجر بالكامل */
html,
body,
#app,
.app-inner {
  background-color: #f7f1ec !important;
}

/* إلغاء أي خلفية داخلية */
.store-header,
.store-header .top-navbar,
.store-header .main-nav-container,
.store-header .inner {
  background: transparent !important;
  box-shadow: none !important;
}

.s-block--full-banner {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.s-block--full-banner .full-banner-entry {
  min-height: 100vh;   /* البنر يغطي الشاشة */
  position: relative;
}
@media (max-width: 768px) {
  .full-banner-entry {
    background-position: center top !important;
  }
}

/* إزالة أي خلفية/حواف من العناصر الداخلية */
.store-header .header-btn *,
.store-header salla-cart-summary * {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #c0868d;
}
/* الديسكتوب: غالبًا cover حلو */
.full-banner-entry{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* إلغاء أي أشكال أو overlays افتراضية */
.s-block--full-banner::before,
.s-block--full-banner::after,
.full-banner-entry::before,
.full-banner-entry::after {
  display: none !important;
}

/* نخلي المحتوى فوق الطبقة */
.s-block--full-banner .banner-content {
  position: relative;
  z-index: 2;
}

/* محاذاة محتوى البنر لليمين */
.banner-content {
  direction: rtl;
  text-align: right !important;
  margin-left: auto;   /* يدفع المحتوى لليمين */
  margin-right: 0px;
  max-width: 800px;
  display: block;
}

/* نخلي البنر مرجع للتموضع */
.s-block--full-banner .full-banner-entry {
  position: relative !important;
}

/* نخلي محتوى البنر يتموضع يمين */
.s-block--full-banner .banner-content {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  text-align: right !important;
  direction: rtl !important;

  margin: 0 !important;
  max-width: 520px; /* عدّليها */
  padding-right: 0 !important;
}

.banner-content h2 {
  color: #775c4e !important;
  font-size: 20px !important;
}

.banner-content p {
  color: #c0868d !important;
  font-size: 15px !important;
}

.banner-content a:first-of-type {
  background-color: #8ba856 !important; /* وردي غامق */
  color: #ffffff !important;
  border-color: #8ba856 !important;
}

.banner-content a:last-of-type {
  background-color: transparent !important;
  color: #8ba856 !important;
  border: 1px solid #8ba856 !important;
}

/* كل بوتنز البنر*/
.banner-content a {
  background-color: #FFB3C1 !important; /* وردي */
  color: #5A2A3A !important;
  border: 1px solid #FFB3C1 !important;
  text-decoration: none;
  
  padding: 8px 26px !important;   /* ← أصغر */
 font-size: 10px !important;     /* ← نص أصغر */
 font-weight: 600;

  border-radius: 9999px !important;
  display: inline-block;
  margin-left: 12px;              /* ← المسافة نفسها */
  white-space: nowrap;
}

.banner-content a:first-of-type:hover {
  background-color: transparent !important;
  color: #8ba856 !important;
}

.banner-content a:last-of-type:hover {
  background-color: #8ba856 !important;
  color: #ffffff !important;
}

/* Loader overlay */
#page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* Center content */
#page-loader .loader-content {
  text-align: center;
}

/* Logo */
#page-loader .loader-content img {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Dots */
#page-loader .loader-dots {
  margin-top: 18px;
  display: flex;
  flex-direction: row-reverse; /* RTL: right -> left */
  gap: 6px;
  justify-content: center;
}

#page-loader .loader-dots span {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 9999px;
  opacity: 0;
  animation: dotMove 1.2s infinite;
}

/* delays (right -> left) */
#page-loader .loader-dots span:nth-child(1) { animation-delay: 0s; }
#page-loader .loader-dots span:nth-child(2) { animation-delay: 0.15s; }
#page-loader .loader-dots span:nth-child(3) { animation-delay: 0.3s; }
#page-loader .loader-dots span:nth-child(4) { animation-delay: 0.45s; }
#page-loader .loader-dots span:nth-child(5) { animation-delay: 0.6s; }

@keyframes dotMove {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; transform: translateY(-6px); }
  60%  { opacity: 0.6; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

/* توسيط سلايدر الأقسام */
.s-block--categories salla-slider #main-links-1,
.s-block--categories salla-slider {
  display: block;
}

.s-block--categories .s-slider-wrapper,
.s-block--categories .swiper-wrapper {
  justify-content: center !important;
}




/* كروت مميزات المتجر */
.s-block--features__item {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;

  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: all 0.35s ease;
}

.s-block--features__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.s-block--features__item .feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;

  background-color: #f7f1ec;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.s-block--features__item .feature-icon i {
  font-size: 26px;
  color: #8ba856;
}

.s-block--features__item h2 {
  font-size: 16px;
  font-weight: 700;
  color: #775c4e;
  margin-bottom: 8px;
}

.s-block--features__item p {
  font-size: 14px;
  line-height: 1.7;
  color: #9a7f72;
  margin: 0;
}

@media (max-width: 768px) {
  .s-block--features__item {
    padding: 22px 18px;
  }

  .s-block--features__item h2 {
    font-size: 15px;
  }

  .s-block--features__item p {
    font-size: 13.5px;
  }
}

/* عنوان مميزات المتجر */
.features-header {
  text-align: center;
  margin-bottom: 40px;
}
.store-logo img {
  max-height: 150px;   /* عدّلي الرقم حسب ذوقك */
}

.store-logo {
  display: flex;https://s.salla.sa/themes/editor/customization?version_id=476173230
  align-items: center;     /* توسيط عمودي */
  justify-content: center; /* توسيط أفقي */
}

.features-header h5 {
  font-size: 14.5px;
  color: #9a7f72;
  margin: 0;
}

/* إزالة أي خلفية من مميزات المتجر */
.s-block--features,
.s-block--features .grid,
.s-block--features__item {
  background: transparent !important;
  box-shadow: none !important;
}

/* إزالة أي حدود */
.s-block--features__item {
  border: 0 !important;
}

/* نخلي رابط البنر مرجع للتراكب */
.s-block--fixed-banner .hero-fixed {
  position: relative !important;
  display: block;
  overflow: hidden;
}

/* الصورة داخل fixed-banner */
.s-block--fixed-banner .hero-fixed > img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
}

/* المحتوى يمين بالنسبة للصورة نفسها */
.s-block--fixed-banner .hero-fixed .hero-content {
  position: absolute;
  top: 28%;
  right: 0;
  transform: translateY(-50%);

  max-width: 520px;
  padding: 0 18px; /* إذا تبين لصق أكثر قلليها */

  direction: rtl;
  text-align: right;
  z-index: 2;
}

/* العنوان والوصف */
.s-block--fixed-banner .hero-fixed .hero-content h2 {
  margin: 0 0 10px;
  color: #775c4e !important;
  font-weight: 700;
}

.s-block--fixed-banner .hero-fixed .hero-content p {
  margin: 0 0 16px;
  color: #c0868d !important;
  line-height: 1.8;
}

/* الأزرار جنب بعض حتى بالجوال */
.s-block--fixed-banner .hero-fixed .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}

/* شكل الأزرار */
.s-block--fixed-banner .hero-fixed .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 9999px !important;
  padding: 8px 18px !important; /* صغري/كبّري هنا */
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

/* زر أساسي */
.s-block--fixed-banner .hero-fixed .hero-btn--primary {
  background: #8ba856 !important;
  color: #fff !important;
  border: 1px solid #8ba856 !important;
}

/* زر شفاف */
.s-block--fixed-banner .hero-fixed .hero-btn--ghost {
  background: transparent !important;
  color: #8ba856 !important;
  border: 1px solid #8ba856 !important;
}

/* خلفية ذيل الصفحة */
.store-footer,
.store-footer__inner {
  background-color: #8ba856 !important;
  color: white;
}
.store-footer {
  background-color: #8ba856 !important;
  position: relative;
  overflow: hidden;

  padding-top: 100px; /* ← هذا هو المفتاح */
}


/* هذه القطعة هي اللي “تقص” أعلى الفوتر وتخليه يظهر بلون المتجر */
.store-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; /* نفس padding-top فوق */
  z-index: 1;

  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 220' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23f7f1ec' d='M0,120 C160,200 360,30 560,90 C760,150 960,60 1160,95 C1320,120 1440,85 1440,85 L1440,0 L0,0 Z'/%3E%3C/svg%3E");
}

/* نخلي محتوى الفوتر فوق الموجة */
.store-footer__inner,
.store-footer .container {
  position: relative;
  z-index: 2;
}

@font-face {
  font-family: 'AmiriQuran';
  src: url('https://cdn.jsdelivr.net/gh/alif-type/amiri@master/AmiriQuran-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

.store-footer__inner::before {
  content: "﴿ وَمَا تَوْفِيقِي إِلَّا بِاللَّهِ ۚ عَلَيْهِ تَوَكَّلْتُ وَإِلَيْهِ أُنِيبُ ﴾";
  display: block;
  text-align: center;

  font-family: 'AmiriQuran', serif;
  font-size: 18px;          /* أكبر شوي يطلع أفخم */
  line-height: 2;

  color: #ffffff;
  margin-bottom: 100px;
}