/* تحويل الخلفية البيضاء في الفوتر إلى أسود */
footer,
.footer,
.footer-bottom,
.footer-payments,
.copyright {
    background-color: #000 !important;
}

/* تغيير لون النصوص للأبيض عشان تبان */
footer *,
.footer-bottom *,
.copyright * {
    color: #fff !important;
}
/* إخفاء شعار المتجر (الأفاتار) فقط من الهيدر */
.header-logo, 
.logo-wrapper, 
header a[href="/"] img, 
header a[href="/"] h2, 
header a[href="/"] span,
.zid-kit-logo {
    display: none !important;
    visibility: hidden !important;
}

/* التأكد من أن الحاوية لا تأخذ مساحة */
.header-logo-container {
    width: 0 !important;
    overflow: hidden !important;
}
[class*="wishlist"],
[class*="favorite"],
.fa-heart,
.icon-heart,
.product-wishlist-btn {
    display: none !important;
}
footer ul,
.footer-links ul,
.template-footer ul {
    columns: 3 !important;
    -webkit-columns: 3 !important;
    column-gap: 30px !important;
}

footer ul li {
    margin-bottom: 12px !important;
    break-inside: avoid !important;
}
@media (min-width: 768px) {
    footer ul {
        columns: 3 !important;
        column-gap: 30px !important;
    }
}
footer ul,
.footer-links,
.template-footer ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
}

footer ul li {
    text-align: center !important;
}
footer ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 15px 30px !important;
}
/* ترتيب الروابط 3 أعمدة */
footer ul,
.template-footer ul,
.footer-links ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px 25px !important;
    padding: 0 !important;
}

footer ul li {
    list-style: none !important;
    font-size: 14px !important;
}

/* عناوين فوق كل عمود */
footer ul li:nth-child(1)::before {
    content: "روابط مهمة";
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

footer ul li:nth-child(2)::before {
    content: "المتجر";
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

footer ul li:nth-child(3)::before {
    content: "خدمة العملاء";
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}
footer ul,
footer .links,
.template-footer ul,
.footer-menu ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 15px 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

footer ul li,
.template-footer ul li {
    text-align: right !important;
    font-size: 14px !important;
    margin: 0 !important;
}
/* اسم التصنيف / المنتج */
.category-name,
.product-title {
  display: block;          /* يضمن ظهوره */
  visibility: visible;
  opacity: 1;

  direction: rtl;          /* اتجاه عربي */
  text-align: center;

  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.6;

  /* منع القص والاختفاء */
  overflow: visible;
  white-space: normal;     /* يسمح بالنزول لسطر ثاني */
  text-overflow: unset;
  max-height: none;

  margin: 12px 0 8px;
}
.product-title {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
}
.product-title {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
}
/* ترتيب روابط الفوتر على 3 أسطر (شبكة 3 أعمدة) */
footer ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 أعمدة */
  gap: 10px 16px;
  direction: rtl;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

footer ul li {
  margin: 0;
}

footer ul li a {
  display: block;
  font-size: 14px;
  color: #e0e0e0;
  text-align: right;
  padding: 6px 0;
  border-bottom: none; /* نشيل الخط لأن الشبكة مرتبة */
}

/* على الجوال الصغير جداً نخليها عمودين عشان ما ينضغط النص */
@media (max-width: 380px) {
  footer ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* شبكة الفوتر: 3 أعمدة × 3 أسطر */
footer ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 عناصر في كل سطر */
  grid-auto-rows: minmax(44px, auto);    /* ارتفاع موحد لكل سطر */
  gap: 8px 12px;
  direction: rtl;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

footer ul li {
  margin: 0;
}

footer ul li a {
  display: flex;
  align-items: center;
  justify-content: center;   /* توسيط النص داخل الخانة */
  text-align: center;
  font-size: 13px;
  color: #e0e0e0;
  background: rgba(255,255,255,0.06); /* خلفية خفيفة تبين الترتيب */
  border-radius: 8px;
  padding: 8px 6px;
  min-height: 44px;
  line-height: 1.4;
  transition: 0.2s;
}

footer ul li a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}
footer ul,
footer .footer-links,
footer nav,
[class*="footer"] ul {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px 12px !important;
  direction: rtl !important;
  list-style: none !important;
  padding: 0 !important;
}

footer ul li,
[class*="footer"] ul li {
  width: auto !important;
  margin: 0 !important;
}
/

.footer-about-us-links-div {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* إنشاء 3 أعمدة متساوية */
    gap: 10px !important; /* المسافة بين الروابط */
    direction: rtl !important; /* التأكد من الاتجاه من اليمين لليسار */
    align-items: start !important;
}

/* إلغاء الهوامش الافتراضية للفقرات داخل الحاوية لضمان الترتيب */
.footer-about-us-links-div p {
    margin: 0 !important;
    padding: 5px 0 !important;
    text-align: right !important;
}

/* تنسيق الروابط لتكون واضحة وسهلة النقر */
.footer-about-us-links-div a {
    display: block !important;
    font-size: 14px !important;
    white-space: nowrap !important; /* منع انكسار السطر داخل الرابط الواحد */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* تحسين المظهر على الجوال */
@media (max-width: 768px) {
    .footer-about-us-links-div {
        grid-template-columns: repeat(2, 1fr) !important; /* عمودين فقط على الشاشات الصغيرة */
    }
}

.footer-about-us-links-div {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 أعمدة متساوية */
    gap: 0 !important; /* إلغاء الفجوات لاستخدام الحدود كفواصل */
    direction: rtl !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important; /* خط علوي بسيط */
    padding-top: 20px !important;
}

/* تنسيق الفقرات التي تحتوي على الروابط */
.footer-about-us-links-div p {
    margin: 0 !important;
    padding: 15px 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; /* خط فاصل أفقي */
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important; /* خط فاصل رأسي */
    text-align: center !important; /* توسيط النص كما في الصورة */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* إزالة الحدود الزائدة */
.footer-about-us-links-div p:nth-child(3n) {
    border-left: none !important; /* إزالة الخط الرأسي من العمود الأخير */
}

/* تنسيق الروابط */
.footer-about-us-links-div a {
    color: #ffffff !important; /* لون أبيض */
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

/* إضافة سهم صغير قبل الرابط كما في الصورة (اختياري) */
.footer-about-us-links-div a::before {
    content: '<' !important;
    margin-left: 8px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* تأثير عند تمرير الماوس */
.footer-about-us-links-div a:hover {
    color: #ffd700 !important; /* تغيير اللون للذهبي عند التمرير */
    transform: translateX(-5px) !important;
}

/* تحسين المظهر للجوال */
@media (max-width: 768px) {
    .footer-about-us-links-div {
        grid-template-columns: repeat(2, 1fr) !important; /* عمودين فقط في الجوال */
    }
    .footer-about-us-links-div p:nth-child(3n) {
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    .footer-about-us-links-div p:nth-child(2n) {
        border-left: none !important;
    }
}*
 * توحيد مقاسات نصوص فوتر متجر زد
 * ضع هذا الكود في نهاية خانة CSS المخصص.
 */

/* قسم «من نحن»: إلغاء الشبكة الموروثة عنه فقط */
.footer-store-section .footer-about-us-div {
  display: block !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* عنوان «من نحن» */
.footer-store-section .footer-about-us-div h2 {
  margin: 0 0 6px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* وصف المتجر أسفل «من نحن» */
.footer-store-section .footer-about-us-div p {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-align: right !important;
}

/* شبكة روابط الفوتر: عمودان متساويان */
.footer-store-section
.col-lg-7 > .row > .col-lg-4:first-child
.footer-about-us-links-div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding-top: 0 !important;
}

/* إخفاء العنوان الفارغ الموجود داخل قالب زد */
.footer-store-section
.col-lg-7 > .row > .col-lg-4:first-child
.footer-about-us-links-div > h2:empty {
  display: none !important;
}

/* جعل جميع خانات الروابط بالمقاس نفسه */
.footer-store-section
.col-lg-7 > .row > .col-lg-4:first-child
.footer-about-us-links-div > p {
  box-sizing: border-box !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* إزالة الفاصل من نهاية كل صف */
.footer-store-section
.col-lg-7 > .row > .col-lg-4:first-child
.footer-about-us-links-div > p:nth-of-type(2n) {
  border-left: 0 !important;
}

/* المقاس الموحد والدقيق لجميع أسماء الروابط */
.footer-store-section
.col-lg-7 > .row > .col-lg-4:first-child
.footer-about-us-links-div a {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  transform: none !important;
}

/* السهم الصغير */
.footer-store-section
.col-lg-7 > .row > .col-lg-4:first-child
.footer-about-us-links-div a::before {
  margin-left: 7px !important;
  font-size: 11px !important;
}

/* تثبيت النتيجة على الجوال */
@media (max-width: 768px) {
  .footer-store-section
  .col-lg-7 > .row > .col-lg-4:first-child
  .footer-about-us-links-div {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

 * تحديث روابط الهاتف والبريد في فوتر متجر زد.
 * أضف هذا الجزء في خانة JavaScript المخصص أو قبل إغلاق body.
 */

document.addEventListener('DOMContentLoaded', function () {
  const footer = document.querySelector('.footer-store-section');
  if (!footer) return;

  const phoneLink = footer.querySelector('.social-icons a[href^="tel:"]');
  const emailLink = footer.querySelector('.social-icons a[href^="mailto:"]');

  if (phoneLink) {
    phoneLink.setAttribute('href', 'tel:0162993761');
    phoneLink.setAttribute('aria-label', 'اتصل على 0162993761');
  }

  if (emailLink) {
    emailLink.setAttribute('href', 'mailto:zaoo99ni@hmail.com');
    emailLink.setAttribute('aria-label', 'راسلنا على zaoo99ni@hmail.com');
  }
});
*
 * تحديث روابط الهاتف والبريد في فوتر متجر زد.
 * أضف هذا الجزء في خانة JavaScript المخصص أو قبل إغلاق body.
 */

document.addEventListener('DOMContentLoaded', function () {
  const footer = document.querySelector('.footer-store-section');
  if (!footer) return;

  const phoneLink = footer.querySelector('.social-icons a[href^="tel:"]');
  const emailLink = footer.querySelector('.social-icons a[href^="mailto:"]');

  if (phoneLink) {
    phoneLink.setAttribute('href', 'tel:0162993761');
    phoneLink.setAttribute('aria-label', 'اتصل على 0162993761');
  }

  if (emailLink) {
    emailLink.setAttribute('href', 'mailto:zaoo99ni@hmail.com');
    emailLink.setAttribute('aria-label', 'راسلنا على zaoo99ni@hmail.com');
  }
});
*
 * تحديث روابط الهاتف والبريد في فوتر متجر زد.
 * أضف هذا الجزء في خانة JavaScript المخصص أو قبل إغلاق body.
 */

document.addEventListener('DOMContentLoaded', function () {
  const footer = document.querySelector('.footer-store-section');
  if (!footer) return;

  const phoneLink = footer.querySelector('.social-icons a[href^="tel:"]');
  const emailLink = footer.querySelector('.social-icons a[href^="mailto:"]');

  if (phoneLink) {
    phoneLink.setAttribute('href', 'tel:0162993761');
    phoneLink.setAttribute('aria-label', 'اتصل على 0162993761');
  }

  if (emailLink) {
    emailLink.setAttribute('href', 'mailto:zaoo99ni@hmail.com');
    emailLink.setAttribute('aria-label', 'راسلنا على zaoo99ni@hmail.com');
  }
});
*
 * تحديث روابط الهاتف والبريد في فوتر متجر زد.
 * أضف هذا الجزء في خانة JavaScript المخصص أو قبل إغلاق body.
 */

document.addEventListener('DOMContentLoaded', function () {
  const footer = document.querySelector('.footer-store-section');
  if (!footer) return;

  const phoneLink = footer.querySelector('.social-icons a[href^="tel:"]');
  const emailLink = footer.querySelector('.social-icons a[href^="mailto:"]');

  if (phoneLink) {
    phoneLink.setAttribute('href', 'tel:0162993761');
    phoneLink.setAttribute('aria-label', 'اتصل على 0162993761');
  }

  if (emailLink) {
    emailLink.setAttribute('href', 'mailto:zaoo99ni@hmail.com');
    emailLink.setAttribute('aria-label', 'راسلنا على zaoo99ni@hmail.com');
  }
});
  *
 * تحديث روابط الهاتف والبريد في فوتر متجر زد.
 * أضف هذا الجزء في خانة JavaScript المخصص أو قبل إغلاق body.
 */

document.addEventListener('DOMContentLoaded', function () {
  const footer = document.querySelector('.footer-store-section');
  if (!footer) return;

  const phoneLink = footer.querySelector('.social-icons a[href^="tel:"]');
  const emailLink = footer.querySelector('.social-icons a[href^="mailto:"]');

  if (phoneLink) {
    phoneLink.setAttribute('href', 'tel:0162993761');
    phoneLink.setAttribute('aria-label', 'اتصل على 0162993761');
  }

  if (emailLink) {
    emailLink.setAttribute('href', 'mailto:zaoo99ni@hmail.com');
    emailLink.setAttribute('aria-label', 'راسلنا على zaoo99ni@hmail.com');
  }
});
/*
 * تحديث روابط الهاتف والبريد في فوتر متجر زد.
 * أضف هذا الجزء في خانة JavaScript المخصص أو قبل إغلاق body.
 */

document.addEventListener('DOMContentLoaded', function () {
  const footer = document.querySelector('.footer-store-section');
  if (!footer) return;

  const phoneLink = footer.querySelector('.social-icons a[href^="tel:"]');
  const emailLink = footer.querySelector('.social-icons a[href^="mailto:"]');

  if (phoneLink) {
    phoneLink.setAttribute('href', 'tel:0162993761');
    phoneLink.setAttribute('aria-label', 'اتصل على 0162993761');
  }

  if (emailLink) {
    emailLink.setAttribute('href', 'mailto:zaoo99ni@hmail.com');
    emailLink.setAttribute('aria-label', 'راسلنا على zaoo99ni@hmail.com');
  }
});
  *
 * تحديث وإظهار بيانات التواصل (الهاتف والبريد) في فوتر متجر زد.
 * ضع هذا الكود في نهاية خانة CSS المخصص في لوحة تحكم زد.
 * هذا الكود يستخدم !important لضمان تجاوز أي تنسيقات سابقة.
 */

.footer-store-section .social-icons {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.footer-store-section .social-icons a[href^="tel:"],
.footer-store-section .social-icons a[href^="mailto:"] {
  display: flex !important;
  align-items: center !important;
  width: auto !important; /* السماح للمحتوى بتحديد العرض */
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-decoration: none !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  padding: 0 !important; /* إزالة أي حشوة افتراضية */
  margin: 0 !important; /* إزالة أي هوامش افتراضية */
}

/* إخفاء الأيقونات الأصلية تمامًا */
.footer-store-section .social-icons a[href^="tel:"] span,
.footer-store-section .social-icons a[href^="mailto:"] span {
  display: none !important;
  visibility: hidden !important;
}

/* عرض رقم الهاتف الجديد */
.footer-store-section .social-icons a[href^="tel:"]::after {
  content: "0162993761" !important;
  display: inline !important;
}

/* عرض عنوان البريد الإلكتروني الجديد */
.footer-store-section .social-icons a[href^="mailto:"]::after {
  content: "zaoo99ni@gmail.com" !important;
  display: inline !important;
}

 * تحديث روابط الهاتف والبريد في فوتر متجر زد.
 * ضع هذا الكود في خانة JavaScript المخصص أو قبل إغلاق وسم </body>.
 * هذا الكود يستخدم DOMContentLoaded لضمان تنفيذ التعديل بعد تحميل الصفحة بالكامل.
 */

document.addEventListener('DOMContentLoaded', function () {
  const footer = document.querySelector('.footer-store-section');
  if (!footer) return;

  const phoneLink = footer.querySelector('.social-icons a[href^="tel:"]');
  const emailLink = footer.querySelector('.social-icons a[href^="mailto:"]');

  if (phoneLink) {
    phoneLink.setAttribute('href', 'tel:0162993761');
    phoneLink.setAttribute('aria-label', 'اتصل على 0162993761');
  }

  if (emailLink) {
    emailLink.setAttribute('href', 'mailto:zaoo99ni@gmail.com');
    emailLink.setAttribute('aria-label', 'راسلنا على zaoo99ni@gmail.com');
  }
});
  .footer-copyright::before {
  content: "";
  display: block;
  width: 120px;
  height: 60px;
  margin: 0 auto 15px auto;
  background-image: url('رابط-الشعار-هنا');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}