/* Add custom CSS styles below */ 
/* ==================================================
   التعديل 01: توسيط بطاقات المنتجات في الصفحة الرئيسية
   المكان: خانة CSS في سلة
   ================================================== */

body.index .fixed-products .s-products-list-vertical-cards {
  --dn-mod01-columns: 2;
  --dn-mod01-gap: 0.625rem;

  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch;
  column-gap: var(--dn-mod01-gap) !important;
}

body.index .fixed-products .s-products-list-vertical-cards > custom-salla-product-card {
  flex: 0 0 calc(
    (100% - (var(--dn-mod01-columns) - 1) * var(--dn-mod01-gap))
    / var(--dn-mod01-columns)
  ) !important;
  min-width: 0 !important;
  height: auto !important;
}

/* الحفاظ على المسافات الأصلية بين البطاقات */
@media (min-width: 640px) {
  body.index .fixed-products .s-products-list-vertical-cards {
    --dn-mod01-gap: 1rem;
  }
}

@media (min-width: 768px) {
  body.index .fixed-products .s-products-list-vertical-cards {
    --dn-mod01-gap: 1.5rem;
  }
}

/* الحفاظ على عدد الأعمدة وعرض البطاقات حسب الشاشة */
@media (min-width: 1024px) {
  body.index .fixed-products .s-products-list-vertical-cards {
    --dn-mod01-columns: 3;
  }
}

@media (min-width: 1200px) {
  body.index .fixed-products .s-products-list-vertical-cards {
    --dn-mod01-columns: 4;
  }
}

/* ================= نهاية التعديل 01 ================= */
/* ==================================================
   التعديل 02: توسيط عناوين المنتجات وإضافة فاصل ذهبي
   يُضاف بعد التعديل 01 في خانة CSS في سلة
   ================================================== */

/* توسيط عنوان كل قسم */
body.index .fixed-products .fixed-products-header {
  position: relative;
  justify-content: center !important;
  text-align: center;
}

body.index .fixed-products .fixed-products-title {
  text-align: center !important;
}

/* فاصل داخل المسافة الموجودة بين العنوان والمنتجات */
body.index .fixed-products .fixed-products-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.5rem;
  transform: translateX(-50%);

  width: clamp(100px, 18vw, 180px);
  height: 2px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    #F5A636 25%,
    #F5A636 50%,
    #F5A636 75%,
    transparent 100%
  );

  pointer-events: none;
}

/* ================= نهاية التعديل 02 ================= */

/* ==================================================
   التعديل 04 — تحسين الفوتر / CSS فقط
   دخون النخبة — عاجي وبرتقالي #F5A636
   ================================================== */

/* 1. الألوان والخلفية */
#app footer.notah-store-footer {
  --dn-f4-accent: #F5A636;
  --dn-f4-text: #efece6;
  --dn-f4-muted: #bcc7d3;
  --dn-f4-line: rgba(239, 236, 230, .13);
  --color-footer-text: var(--dn-f4-text);

  color: var(--dn-f4-text);
  background:
    radial-gradient(
      ellipse at top right,
      rgba(245, 166, 54, .07),
      transparent 55%
    ),
    linear-gradient(135deg, #17232e, #101722 70%);

  border-top: 1px solid rgba(245, 166, 54, .35);
}

#app footer.notah-store-footer .notah-store-footer__inner {
  padding: 48px 0 38px !important;
  background: transparent !important;
  border: 0 !important;
}

/* 2. عرض الفوتر وتوزيع الأعمدة */
#app footer.notah-store-footer .notah-store-footer__inner > .container,
#app footer.notah-store-footer .notah-copyright > .container {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 0 !important;
}

#app footer.notah-store-footer .notah-store-footer__inner > .container {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    repeat(2, minmax(0, 1fr)) !important;

  gap: 32px 40px !important;
  align-items: start;
}

#app footer.notah-store-footer .notah-store-footer__inner > .container > div {
  grid-column: auto !important;
  min-width: 0;
  padding-inline: 0 !important;
}

#app footer.notah-store-footer .notah-store-footer__inner > .container > div + div {
  padding-inline-start: 28px !important;
  border-inline-start: 1px solid var(--dn-f4-line);
}

/* 3. ترتيب الشعار والوصف */
#app footer.notah-store-footer .notah-store-footer__inner > .container > div:first-child {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

/* إزالة مساحة رابط الشعار الفارغ الموجود في القالب */
#app footer.notah-store-footer .notah-store-footer__inner > .container > div:first-child > a.flex.items-center.m-0 {
  display: none;
}

#app footer.notah-store-footer .navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin: 0 !important;
  padding: 10px;
  border-radius: 18px;
  background: var(--dn-f4-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

#app footer.notah-store-footer .navbar-brand img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

#app footer.notah-store-footer .notah-store-footer__inner .max-w-sm {
  max-width: 370px;
  margin: 0;
  color: var(--dn-f4-muted) !important;
  opacity: 1 !important;
  font-size: 15px;
  line-height: 1.95;
}

#app footer.notah-store-footer .notah-store-footer__inner .max-w-sm p {
  margin: 0;
}

/* 4. العناوين والفواصل الصغيرة */
#app footer.notah-store-footer .notah-store-footer__inner h3 {
  position: relative;
  margin: 0 0 16px !important;
  padding-bottom: 12px;
  color: var(--dn-f4-text) !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
}

#app footer.notah-store-footer .notah-store-footer__inner h3::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--dn-f4-accent);
}

/* 5. الروابط المهمة */
#app footer.notah-store-footer salla-menu[source="footer"] a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 7px 0;
  color: var(--dn-f4-muted) !important;
  opacity: 1 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  transition: color .2s ease !important;
}

#app footer.notah-store-footer salla-menu[source="footer"] a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dn-f4-accent);
}

#app footer.notah-store-footer salla-menu[source="footer"] a:hover {
  color: var(--dn-f4-accent) !important;
}

/* 6. أيقونات الشبكات الاجتماعية */
#app footer.notah-store-footer salla-social {
  display: block;
  margin: 0 !important;
}

#app footer.notah-store-footer .s-social-list {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px !important;
}

#app footer.notah-store-footer .s-social-link > a {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid var(--dn-f4-line) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .04) !important;
  color: var(--dn-f4-text) !important;
  opacity: 1 !important;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

#app footer.notah-store-footer .s-social-link > a svg {
  opacity: 1 !important;
}

#app footer.notah-store-footer .s-social-link > a:hover {
  background: var(--dn-f4-accent) !important;
  border-color: var(--dn-f4-accent) !important;
  color: #101722 !important;
}

/* 7. بيانات التواصل */
#app footer.notah-store-footer .s-contacts-list {
  gap: 12px !important;
}

#app footer.notah-store-footer .s-contacts-item {
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--dn-f4-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  opacity: 1 !important;
}

#app footer.notah-store-footer .s-contacts-item:hover {
  border-color: var(--dn-f4-accent);
}

#app footer.notah-store-footer .s-contacts-icon {
  width: 34px;
  height: 34px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 10px;
  background: rgba(245, 166, 54, .12);
  color: var(--dn-f4-accent) !important;
}

#app footer.notah-store-footer .s-contacts-item > .unicode {
  min-width: 0;
  color: var(--dn-f4-text) !important;
  opacity: 1 !important;
  font-size: 15px !important;
  line-height: 1.6;
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

/* 8. السجل التجاري */
#app footer.notah-store-footer salla-trust-badges {
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--dn-f4-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: var(--dn-f4-text);
}

#app footer.notah-store-footer .s-trust-badges-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

#app footer.notah-store-footer .s-trust-badges-content {
  margin: 0 !important;
}

#app footer.notah-store-footer .s-trust-badges-label {
  color: var(--dn-f4-muted);
  font-size: 12px;
}

#app footer.notah-store-footer .s-trust-badges-number {
  color: var(--dn-f4-text);
  font-size: 14px;
}

/* 9. معالجة مساحة التطبيقات الفارغة */
#app footer.notah-store-footer salla-apps-icons {
  grid-column: 1 / -1 !important;
  padding: 24px 0 0 !important;
  border-top: 1px solid var(--dn-f4-line);
}

#app footer.notah-store-footer salla-apps-icons:empty,
#app footer.notah-store-footer salla-trust-badges:empty {
  display: none !important;
}

@supports selector(:has(*)) {
  #app footer.notah-store-footer salla-apps-icons:not(:has(a.s-apps-icons-item)) {
    display: none !important;
  }
}

/* 10. شريط الحقوق ووسائل الدفع */
#app footer.notah-store-footer .notah-copyright {
  background: rgba(0, 0, 0, .15) !important;
  border-top: 1px solid var(--dn-f4-line);
}

#app footer.notah-store-footer .notah-copyright > .container {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between !important;
  gap: 16px;
  padding-block: 18px !important;
  text-align: start;
}

#app footer.notah-store-footer .copyright-text p {
  margin: 0 !important;
  color: var(--dn-f4-muted) !important;
  font-size: 13px;
  line-height: 1.8;
}

#app footer.notah-store-footer .copyright-text a {
  color: var(--dn-f4-text) !important;
}

#app footer.notah-store-footer .s-payments-list-item {
  width: 52px !important;
  height: 34px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* وضوح التركيز عند التنقل بلوحة المفاتيح */
#app footer.notah-store-footer a:focus-visible {
  outline: 2px solid var(--dn-f4-accent);
  outline-offset: 4px;
}

/* 11. الأجهزة اللوحية */
@media (max-width: 1023px) {
  #app footer.notah-store-footer .notah-store-footer__inner > .container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #app footer.notah-store-footer .notah-store-footer__inner > .container > div:first-child {
    grid-column: 1 / -1 !important;
    width: min(100%, 520px);
    margin-inline: auto;
  }

  #app footer.notah-store-footer .notah-store-footer__inner > .container > div:nth-child(2) {
    border-inline-start: 0;
    padding-inline-start: 0 !important;
  }
}

/* 12. الجوال */
@media (max-width: 639px) {
  #app footer.notah-store-footer .notah-store-footer__inner {
    padding: 32px 0 !important;
  }

  #app footer.notah-store-footer .notah-store-footer__inner > .container,
  #app footer.notah-store-footer .notah-copyright > .container {
    width: calc(100% - 36px);
  }

  #app footer.notah-store-footer .notah-store-footer__inner > .container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
    text-align: center;
  }

  #app footer.notah-store-footer .notah-store-footer__inner > .container > div:first-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #app footer.notah-store-footer .notah-store-footer__inner > .container > div + div {
    padding: 24px 0 0 !important;
    border-inline-start: 0;
    border-top: 1px solid var(--dn-f4-line);
  }

  #app footer.notah-store-footer .navbar-brand,
  #app footer.notah-store-footer .notah-store-footer__inner .max-w-sm,
  #app footer.notah-store-footer salla-menu[source="footer"] a,
  #app footer.notah-store-footer .s-contacts-item,
  #app footer.notah-store-footer salla-trust-badges {
    margin-inline: auto !important;
  }

  #app footer.notah-store-footer .s-social-list {
    justify-content: center;
  }

  #app footer.notah-store-footer .notah-store-footer__inner h3::after {
    inset-inline-start: 50%;
    margin-inline-start: -18px;
  }

  #app footer.notah-store-footer .notah-copyright > .container {
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center;
  }
}
/* ==================================================
   تحديث التعديل 04 — تصميم بطاقة الرقم الضريبي
   متناسق مع بطاقة السجل التجاري في الفوتر
   ================================================== */

/* البطاقة الخارجية للرقم الضريبي */
#app footer.notah-store-footer
.notah-store-footer__inner
.flex.flex-col.gap-4 > .flex.items-end {

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  width: fit-content;
  max-width: 100%;
  min-height: 64px;

  gap: 10px;
  padding: 10px 12px;

  border: 1px solid var(
    --dn-f4-line,
    rgba(239, 236, 230, .13)
  );

  border-radius: 12px;

  background: rgba(255, 255, 255, .035);

  box-sizing: border-box;
  transition: border-color .25s ease;
}
/* عنوان الرقم الضريبي */
#app footer.notah-store-footer
.notah-store-footer__inner
.flex.flex-col.gap-4 > .flex.items-end > div > p {

  margin: 0 0 4px !important;

  color: var(--dn-f4-muted, #bcc7d3) !important;

  font-size: 12px !important;
  line-height: 1.5 !important;

  opacity: 1 !important;
}

/* قيمة الرقم الضريبي */
#app footer.notah-store-footer
.notah-store-footer__inner
.flex.flex-col.gap-4 > .flex.items-end > div > b {

  display: block;

  color: var(--dn-f4-text, #EFECE6) !important;

  font-size: 14px !important;
  font-weight: 600;

  line-height: 1.6;

  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

/* تفاعل بسيط عند مرور المؤشر */
#app footer.notah-store-footer
.notah-store-footer__inner
.flex.flex-col.gap-4 > .flex.items-end:hover {

  border-color: rgba(245, 166, 54, .45);
}

/* توسيط البطاقة في الهاتف */
@media (max-width: 639px) {

  #app footer.notah-store-footer
  .notah-store-footer__inner
  .flex.flex-col.gap-4 > .flex.items-end {

    margin-inline: auto !important;
    text-align: start;
  }

}

/* نهاية تحديث الرقم الضريبي — التعديل 04 */
/* نهاية التعديل 04 */
/* ==================================================
   التعديل 05: خلفية المتجر مع هالات ضبابية دائرية
   ================================================== */

body#app {
  /* لون الخلفية الأصلي */
  --dn-mod04-base: #EFECE6;

  /* حجم الهالات والمسافة بين مجموعاتها */
  --dn-mod04-radius-y: 280px;
  --dn-mod04-cycle: 1200px;

  --color-background: var(--dn-mod04-base);

  background-color: var(--dn-mod04-base) !important;

  background-image:

    /* هالة بنية — لون العود */
    radial-gradient(
      circle var(--dn-mod04-radius-y) at 80% 25%,
      rgba(91, 58, 41, 0.10) 0%,
      rgba(91, 58, 41, 0.08) 27%,
      rgba(91, 58, 41, 0.04) 55%,
      transparent 100%
    ),

    /* هالة كحلية — الهوية البصرية */
    radial-gradient(
      circle var(--dn-mod04-radius-y) at 12% 75%,
      rgba(37, 55, 70, 0.08) 0%,
      rgba(37, 55, 70, 0.06) 27%,
      rgba(37, 55, 70, 0.03) 55%,
      transparent 100%
    ),

    /* هالة برتقالية خفيفة */
    radial-gradient(
      circle var(--dn-mod04-radius-y) at 46% 49%,
      rgba(245, 166, 54, 0.12) 0%,
      rgba(245, 166, 54, 0.08) 27%,
      rgba(245, 166, 54, 0.03) 55%,
      transparent 100%
    ) !important;

  background-size: 100% var(--dn-mod04-cycle) !important;
  background-repeat: repeat-y !important;
  background-position: center top !important;
  background-attachment: scroll !important;
}

/* إظهار الخلفية خلف أقسام الصفحة الرئيسية */
body#app.index #main-content > .notah-create-fragrance,
body#app.index #main-content > .fixed-products {
  background-color: transparent !important;
}

/* ضبط حجم الهالات للجوال */
@media (max-width: 767px) {
  body#app {
    --dn-mod04-radius-y: 220px;
    --dn-mod04-cycle: 1000px;
  }
}

/* ================= نهاية التعديل 05 ================= */
/* ==================================================
   التعديل 06 — خلفية الهيدر وقوائم الهاتف
   ================================================== */

body#app {
  --dn-mod06-bg: #EFECE6;
}

/* الهيدر */
body#app .notah-store-header {
  --color-header-background: var(--dn-mod06-bg);
  background-color: var(--dn-mod06-bg) !important;
}

/* شريط الهيدر في وضعه العادي وعند التثبيت أثناء التمرير */
body#app .notah-store-header #mainnav,
body#app .notah-store-header #mainnav > .inner {
  background-color: var(--dn-mod06-bg) !important;
}

/* القائمة الجانبية في الهاتف */
body#app .mm-ocd__content:has(> #mobile-menu),
body#app #mobile-menu.mm-spn {
  background-color: var(--dn-mod06-bg) !important;
}

/* شريط التنقل السفلي في الهاتف */
body#app .nav-mobile {
  background-color: var(--dn-mod06-bg) !important;
}

/* إبقاء أيقونة القائمة وأيقونات الهيدر وروابطه واضحة */
body#app .notah-store-header a[href="#mobile-menu"] .sicon-menu,
body#app .notah-store-header .header-btn__icon:hover,
body#app .notah-store-header #mobile-menu .main-menu li a:hover {
  color: var(--color-header-text, #253746) !important;
}

/* ================= نهاية التعديل 06 ================= */
/* ==================================================
   التعديل 07 — النسخة المصححة لبطاقات المنتجات
   يستبدل كود التعديل 07 السابق بالكامل
   ================================================== */

@media (max-width: 767px) {

  /* منع أغلفة القائمة من التمدد خارج المساحة المتاحة */
  body#app:not(.index):not(.product-single) #main-content,
  body#app:not(.index):not(.product-single)
  #main-content :is(div, section):has(salla-products-list) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body#app:not(.index):not(.product-single)
  #main-content salla-products-list {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-inline: 4px;
    box-sizing: border-box;
  }

  /* بطاقتان في الصف، مع تغطية أنواع القوائم المختلفة */
  body#app:not(.index):not(.product-single)
  #main-content salla-products-list
  .s-products-list-wrapper:not(.s-products-list-horizontal-cards):not(.s-products-list-compact-cards) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: stretch;
  }

  /* ضبط عرض البطاقة داخل العمود */
  body#app:not(.index):not(.product-single)
  #main-content salla-products-list .s-product-card-vertical {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    grid-column: auto !important;
  }

  /* توحيد ارتفاع الصور */
  body#app:not(.index):not(.product-single)
  #main-content salla-products-list
  .s-product-card-vertical > .s-product-card-image {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 5;
  }

  body#app:not(.index):not(.product-single)
  #main-content salla-products-list
  .s-product-card-vertical > .s-product-card-image > a {
    display: block;
    width: 100%;
    height: 100%;
  }

  body#app:not(.index):not(.product-single)
  #main-content salla-products-list
  .s-product-card-vertical > .s-product-card-image img {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }

  /* المحتوى داخل البطاقة */
  body#app:not(.index):not(.product-single)
  #main-content salla-products-list
  .s-product-card-vertical > .s-product-card-content {
    flex: 1;
    min-width: 0;
    padding: 10px !important;
  }

  /* اسم المنتج بحد أقصى سطرين */
  body#app:not(.index):not(.product-single)
  #main-content salla-products-list
  .s-product-card-vertical .s-product-card-content-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 42px;
    color: #253746 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
  }

  /* توزيع السعر والتقييم */
  body#app:not(.index):not(.product-single)
  #main-content salla-products-list
  .s-product-card-vertical .s-product-card-content-sub {
    flex-wrap: wrap;
    gap: 6px;
  }

  body#app:not(.index):not(.product-single)
  #main-content salla-products-list
  .s-product-card-vertical .s-product-card-sale-price {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  body#app:not(.index):not(.product-single)
  #main-content salla-products-list .s-product-card-vertical
  :is(.s-product-card-price, .s-product-card-sale-price h4) {
    font-size: 16px !important;
  }

  /* زر سلة واضح ومناسب للمس */
  body#app:not(.index):not(.product-single)
  #main-content salla-products-list .s-product-card-vertical
  .s-product-card-content-footer salla-add-product-button {
    min-width: 0;
    width: 100%;
  }

  body#app:not(.index):not(.product-single)
  #main-content salla-products-list .s-product-card-vertical
  .s-product-card-content-footer salla-add-product-button button {
    width: 100%;
    min-height: 44px;
    height: auto;
    padding: 8px 6px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  body#app:not(.index):not(.product-single)
  #main-content salla-products-list .s-product-card-vertical
  .s-product-card-content-footer .s-button-text {
    gap: 4px;
    white-space: normal;
    text-align: center;
  }
}

/* نهاية التعديل 07 */


/* ==================================================
   تصميم خاص بالهاتف
   ================================================== */

@media (max-width: 767px) {

  /* تقليل ارتفاع القسم بالكامل */
  body#app.index #main-content > section:has(.pyramid-layer) {
    padding-top: 28px !important;
    padding-bottom: 30px !important;
  }

  /* وضع المزايا الثلاث في صف واحد */
  body#app.index #main-content
  .pyramid-layer {
    padding: 8px 3px !important;
  }

  body#app.index #main-content
  .pyramid-layer > [data-dn-mod03-ready="true"] {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 8px !important;
  }

  body#app.index #main-content
  .pyramid-layer > h3 {
    font-size: 12px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }

  /* استهداف الشبكة التي تحتوي البطاقات الثلاث */
  body#app.index #main-content
  .grid:has(> .pyramid-layer) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: start !important;
  }

  /* إلغاء أي ارتفاع زائد للبطاقات */
  body#app.index #main-content
  .grid > .pyramid-layer {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
  }
}

/* ================= نهاية التعديل 08 ================= */
/* DN-FEATURES-START | المميزات — أيقونات بحجم أصغر */

body#app #main-content>section.notah-features[data-dn-features="v3"] {
  --dn-f-bg: #efece6;
  --dn-f-ink: #253746;
  --dn-f-accent: #f5a636;
  --dn-f-muted: #626b70;
  box-sizing: border-box;
  display: block;
  position: relative;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 26px !important;
  background: var(--dn-f-bg) !important;
  color: var(--dn-f-ink);
  font-family: inherit;
  direction: rtl;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] *,
body#app #main-content>section.notah-features[data-dn-features="v3"] *::before,
body#app #main-content>section.notah-features[data-dn-features="v3"] *::after {
  box-sizing: border-box;
}

body#app #main-content>section.notah-features[data-dn-features="v3"]>.container {
  display: block;
  min-width: 0;
  padding-inline: 16px;
}

body#app #main-content>section.notah-features[data-dn-features="v3"]>.container::before {
  content: "";
  display: block;
  width: auto;
  height: 1px;
  margin: 0 0 52px;
  background: #25374626;
  pointer-events: none;
}

body#app #main-content>section.notah-features[data-dn-features="v3"]>.container>.max-w-4xl {
  display: block;
  width: 100%;
  max-width: 1120px !important;
  min-width: 0;
  margin: 0 auto !important;
  padding: 0;
  text-align: center;
}

body#app #main-content>section.notah-features[data-dn-features="v3"]>.container>.max-w-4xl>h2 {
  margin: 0 !important;
  color: var(--dn-f-ink) !important;
  font-family: inherit;
  font-size: 28px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

body#app #main-content>section.notah-features[data-dn-features="v3"]>.container>.max-w-4xl>p:not(:empty) {
  margin: 10px 0 0 !important;
  color: var(--dn-f-muted) !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

body#app #main-content>section.notah-features[data-dn-features="v3"]>.container>.max-w-4xl>p:empty {
  display: none !important;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-features-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start;
  gap: 32px 20px !important;
  width: 100%;
  min-width: 0;
  margin: 42px 0 0 !important;
  padding: 0;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] [data-dn-feature="payment"] {
  order: 1;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] [data-dn-feature="reach"] {
  order: 2;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] [data-dn-feature="support"] {
  order: 3;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] [data-dn-feature="shipping"] {
  order: 4;
}

/* أبعاد الأيقونات على الحاسوب */

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-trigger {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px;
  min-height: 80px;
  max-width: none;
  max-height: none;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  color: var(--dn-f-ink);
  box-shadow: none !important;
  font-family: inherit;
  touch-action: manipulation;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-trigger>.dn-feature-still {
  display: block;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-trigger>.dn-feature-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-calendar {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: var(--dn-f-bg);
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-calendar>.dn-feature-still {
  display: block;
  width: 32px;
  height: 32px;
  max-width: none;
  max-height: none;
}

/* مطابقة طبقات الحركة مع الأبعاد الجديدة */

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-motion {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-motion-card {
  inset: auto;
  top: 0;
  right: 0;
  width: 74px;
  height: 74px;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-calendar>.dn-feature-motion {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-trigger[data-playing="true"] .dn-feature-motion {
  opacity: 1;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-trigger[data-playing="true"] .dn-feature-still {
  visibility: hidden;
}

/* نصوص المميزات */

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-item>h3 {
  max-width: 100%;
  margin: 0 !important;
  color: var(--dn-f-ink) !important;
  font-family: inherit;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  overflow-wrap: break-word;
}

body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-item>p {
  max-width: 100%;
  margin: 0 !important;
  color: var(--dn-f-muted) !important;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  overflow-wrap: break-word;
}

/* رابط مصدر الأيقونات المعتمد في أسفل المتجر */

body#app footer.notah-store-footer .notah-copyright>.container>a.dn-features-credit {
  flex: 0 0 100%;
  margin: 0;
  padding: 0;
  color: var(--dn-f4-muted, #c7c9c9) !important;
  font-family: inherit;
  font-size: 11px !important;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body#app footer.notah-store-footer .notah-copyright>.container>a.dn-features-credit:hover {
  color: #f5a636 !important;
}

/* الجوال */

@media (max-width: 599px) {
  body#app #main-content>section.notah-features[data-dn-features="v3"] {
    padding-bottom: 24px !important;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"]>.container::before {
    margin-bottom: 36px;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"]>.container>.max-w-4xl>h2 {
    font-size: 24px !important;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"]>.container>.max-w-4xl>p:not(:empty) {
    font-size: 13px !important;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 32px !important;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-item {
    gap: 10px;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-trigger,
  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-trigger>.dn-feature-still {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    min-height: 72px;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-trigger>.dn-feature-card,
  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-motion-card {
    width: 68px !important;
    height: 68px !important;
    min-width: 0;
    min-height: 0;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-calendar {
    width: 31px;
    height: 31px;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-calendar>.dn-feature-still,
  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-calendar>.dn-feature-motion {
    width: 28px;
    height: 28px;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-item>h3 {
    font-size: 16px !important;
  }

  body#app #main-content>section.notah-features[data-dn-features="v3"] .dn-feature-item>p {
    line-height: 1.8 !important;
  }
}

/* DN-FEATURES-END | نهاية كود المميزات الكامل */
/* ==========================================
   التعديل 09 — ألوان بطاقات المنتجات
   ========================================== */

body#app {
  --color-title-card: #253746;
  --color-subtitle-card: #766E65;
  --color-price-card: #253746;
  --color-promotion-title-card: #FFFFFF;
}

/* الشارة الترويجية */
body#app custom-salla-product-card
:is(.s-product-card-promotion-title, [class*="promotion-title"]) {
  background-color: #C62828 !important;
  color: #FFFFFF !important;
  border-radius: 999px;
}

/* نهاية التعديل 09 */

/* DN-OPEN-CATALOGUE-START | كود بطاقة المنتج المعتمد */

body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) {
  --dn-card-navy: #253746;
  --dn-card-orange: #f5a636;
  --dn-card-red: #c62828;
  --dn-card-subtitle: #766e65;
  --dn-card-muted: #626b70;
  --color-title-card: var(--dn-card-navy);
  --color-subtitle-card: var(--dn-card-subtitle);
  --color-price-card: var(--dn-card-red);
  --color-original-price-card: var(--dn-card-red);
  --color-btn-card: var(--dn-card-navy);
  --color-btn-hover-card: var(--dn-card-orange);
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-self: stretch;
  position: relative;
  min-width: 0 !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
  color: var(--dn-card-navy);
}

body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation):hover {
  box-shadow: none !important;
  transform: none !important;
}

/* الصورة والإعلان الترويجي */
body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) > .s-product-card-image {
  display: block !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 320px !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: var(--dn-card-navy) !important;
  opacity: 1 !important;
}

body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) > .s-product-card-image::before,
body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) > .s-product-card-image::after {
  content: none !important;
  display: none !important;
}

body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) > .s-product-card-image > a {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: inherit !important;
  overflow: hidden;
}

body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) > .s-product-card-image > a > img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) .s-product-card-image :is(.s-product-card-promotion-title, .s-product-card-quantity, .s-product-card-out-badge) {
  position: absolute !important;
  z-index: 2;
  inset: auto !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: calc(100% - 24px) !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--dn-card-red) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  white-space: normal !important;
  text-align: center;
  overflow-wrap: break-word;
  transform: none !important;
  box-shadow: none !important;
}

body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) .s-product-card-wishlist-btn {
  display: none !important;
}

/* الاسم والعنوان الفرعي */
body#app :is(#main-content,#viewed-section) custom-salla-product-card.s-product-card-entry.s-product-card-vertical:not(.s-product-card-special):not(.s-product-card-donation) > .s-product-card-content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
}


body.product-single {
  --color-price-single-product: #B91C1C;
}






























/* دخون النخبة — لون سعر العرض في صفحة المنتج */
body.product-single {
  --color-price-single-product: #B91C1C;
  --dn-pdp-ink: #253746;
  --dn-pdp-surface: #faf7f1;
  --dn-pdp-line: rgba(37, 55, 70, 0.16);
}

/* السعر ورقم المنتج والتفاصيل */
body.product-single .dn-pdp-price-note {
  margin: 0 0 4px;
  color: #5d605e;
  font-size: 0.8125rem;
  line-height: 1.5;
}

body.product-single .dn-pdp-model {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  inline-size: fit-content;
  max-inline-size: 100%;
  margin-block: 10px 0;
  padding: 10px 12px !important;
  border: 1px solid var(--dn-pdp-line);
  border-radius: 9px;
  background: var(--dn-pdp-surface) !important;
  color: var(--dn-pdp-ink);
}

body.product-single .dn-pdp-model > .text-unicode {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.product-single .dn-pdp-description {
  padding-inline: 0 !important;
}

/* بطاقتا تابي وتمارا بعد تفاصيل المنتج */
body.product-single .dn-pdp-installment-heading {
  margin: 16px 0 8px;
  color: var(--dn-pdp-ink);
}

body.product-single salla-installment.dn-pdp-installments {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 8px !important;
  margin: 0 0 16px !important;
}

body.product-single salla-installment.dn-pdp-installments > .dn-pdp-installment-card {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--dn-pdp-line) !important;
  border-radius: 9px !important;
  background: var(--dn-pdp-surface) !important;
  box-shadow: none !important;
}

body.product-single .dn-pdp-installment-card tamara-widget {
  display: block;
}

body.product-single salla-installment.dn-pdp-installments.dn-pdp-installments-single {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* شعارات طرق الدفع من تذييل المتجر */
body.product-single .dn-pdp-payments {
  margin-block: 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--dn-pdp-line);
  border-radius: 9px;
  background: var(--dn-pdp-surface);
  color: var(--dn-pdp-ink);
}

body.product-single .dn-pdp-payments ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.product-single .dn-pdp-payments li {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 46px;
  height: 30px;
  padding: 3px 5px;
  border: 1px solid var(--dn-pdp-line);
  border-radius: 5px;
  background: #fff;
}

body.product-single .dn-pdp-payments img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

#dn-pdp-mobile-bar {
  display: none;
}

@media (min-width: 768px) {
  /* السعر والكمية وأزرار الشراء في بطاقة واحدة على الكمبيوتر */
  body.product-single .notah-main-content form.product-form >
    :is(.sticky-product-bar, .dn-product-total, section:has(.price-wrapper .total-price)) {
    background: var(--dn-pdp-surface) !important;
    border: 1px solid var(--dn-pdp-line) !important;
    border-radius: 9px !important;
  }

  body.product-single .notah-main-content form.product-form >
    :is(.dn-product-total, section:has(.price-wrapper .total-price)):not(.dn-product-total--duplicate, .hidden, [hidden]):has(+ .sticky-product-bar) {
    border-block-end: 0 !important;
    border-end-start-radius: 0 !important;
    border-end-end-radius: 0 !important;
    padding-block-end: 4px !important;
  }

  body.product-single .notah-main-content form.product-form >
    :is(.dn-product-total, section:has(.price-wrapper .total-price)):not(.dn-product-total--duplicate, .hidden, [hidden]) + .sticky-product-bar {
    border-block-start: 0 !important;
    border-start-start-radius: 0 !important;
    border-start-end-radius: 0 !important;
  }
}

@media (max-width: 767px) {
  /* الشريط الثابت مع مساحة له عند الوصول إلى أسفل الصفحة */
  body.product-single.dn-pdp-has-mobile-bar {
    padding-bottom: var(--dn-pdp-mobile-bar-height, calc(120px + env(safe-area-inset-bottom, 0px))) !important;
  }

  /* يبقى الشراء السريع ضمن عرض الكمبيوتر فقط. */
  body.product-single .notah-main-content form.product-form salla-add-product-button
    :is(salla-mini-checkout-widget, salla-quick-buy),
  body.product-single.dn-pdp-has-mobile-bar .dn-pdp-native-total,
  body.product-single.dn-pdp-has-mobile-bar .dn-pdp-native-quantity,
  body.product-single.dn-pdp-has-mobile-bar .dn-pdp-native-submit,
  body.product-single.dn-pdp-has-mobile-bar .dn-pdp-native-actions > salla-add-product-button {
    display: none !important;
  }

  body.product-single.dn-pdp-has-mobile-bar .dn-pdp-native-actions {
    position: fixed !important;
    z-index: 30;
    inset: auto 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-top: 1px solid var(--dn-pdp-line) !important;
    border-radius: 0 !important;
    background: var(--dn-pdp-surface) !important;
    color: var(--dn-pdp-ink);
    box-shadow: 0 -6px 20px rgba(37, 55, 70, 0.09);
    direction: rtl;
  }

  body.product-single.dn-pdp-has-mobile-bar #dn-pdp-mobile-bar:not([hidden]) {
    display: grid;
    gap: 7px;
  }

  #dn-pdp-mobile-bar .dn-pdp-bar-line,
  #dn-pdp-mobile-bar .dn-pdp-bar-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-width: 0;
  }

  #dn-pdp-mobile-bar .dn-pdp-bar-price {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
  }

  #dn-pdp-mobile-bar .dn-pdp-bar-price--sale {
    color: var(--color-price-single-product, #B91C1C);
  }

  #dn-pdp-mobile-bar .dn-pdp-bar-quantity button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--dn-pdp-line);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 1.125rem;
  }

  #dn-pdp-mobile-bar .dn-pdp-bar-quantity output {
    min-width: 2ch;
    text-align: center;
    font-weight: 700;
  }

  #dn-pdp-mobile-bar .dn-pdp-bar-add {
    width: 100%;
    min-height: 44px;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--dn-pdp-ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
  }

  #dn-pdp-mobile-bar button:disabled {
    opacity: 0.5;
  }

  #dn-pdp-mobile-bar button:focus-visible {
    outline: 2px solid var(--dn-pdp-ink);
    outline-offset: 2px;
  }
}

@media (max-width: 340px) {
  body.product-single salla-installment.dn-pdp-installments {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}