/* تخصيصات مِيثَاق */
/* فوتر مِيثَاق فقط */
body > footer {
  background-color: #0B3540 !important;
  color: #FFFFFF !important;
}

/* نصوص الفوتر فقط */
body > footer h1,
body > footer h2,
body > footer h3,
body > footer h4,
body > footer p,
body > footer span,
body > footer li {
  color: #FFFFFF !important;
}

/* روابط الفوتر فقط */
body > footer a {
  color: #D7E3E5 !important;
}

/* روابط الفوتر عند المرور */
body > footer a:hover {
  color: #C7A65A !important;
}

/* أيقونات الفوتر */
body > footer svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* الفواصل داخل الفوتر */
body > footer hr {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* =========================
   إصلاح البانر الرئيسي
========================= */

.hero,
.main-slider,
.s-slider,
.s-slider-block,
.swiper,
.swiper-container {
    min-height: auto !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero img,
.main-slider img,
.s-slider img,
.s-slider-block img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}

/* =========================
   تقليل الفراغات العامة
========================= */

section,
.s-block,
.container section {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* =========================
   صفحات المنتجات
========================= */

.products-slider,
.s-products-slider,
.product-block,
.related-products {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =========================
   صفحة المنتج
========================= */

.product-entry,
.product-single,
.product-content,
.product-info,
.product-detail {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* =========================
   الوصف والتفاصيل
========================= */

.product-description,
.product-tabs,
.product-details {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =========================
   العناوين
========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* =========================
   إزالة الفراغات الوهمية
========================= */

.spacer,
.space,
.empty-space {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================
   تحسين الفوتر
========================= */

footer,
.store-footer {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    margin-top: 0 !important;
}

.store-footer .row,
footer .row {
    margin: 0 !important;
}

.store-footer .col,
.store-footer .footer-item,
footer .footer-item {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

.store-footer p,
.store-footer li,
footer p,
footer li {
    margin-bottom: 3px !important;
    line-height: 1.4 !important;
}

/* =========================
   تصغير زر المكافآت
========================= */

.loyalty-widget,
.rewards-widget {
    transform: scale(.80);
    transform-origin: bottom left;
}

/* =========================
   الجوال
========================= */

@media (max-width:768px){

    section,
    .s-block{
        margin-top:5px !important;
        margin-bottom:5px !important;
        padding-top:6px !important;
        padding-bottom:6px !important;
    }

    footer,
    .store-footer{
        padding-top:8px !important;
        padding-bottom:8px !important;
    }

    .store-footer *{
        margin-bottom:4px !important;
    }
  /* =================================
   إصلاح البانر الرئيسي
================================= */

.hero,
.s-slider-block,
.main-slider,
.swiper-container,
.swiper-slide {
    height: auto !important;
    min-height: unset !important;
}

.hero img,
.s-slider-block img,
.main-slider img,
.swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}

/* إلغاء الفراغ الرمادي */
.s-slider-block,
.main-slider,
.hero-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* =================================
   ضغط الفوتر بقوة
================================= */

footer,
.store-footer {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.store-footer .row,
footer .row {
    gap: 0 !important;
    margin: 0 !important;
}

.store-footer h3,
.store-footer h4,
.store-footer h5 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.store-footer p,
.store-footer li,
.store-footer a {
    margin: 2px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.store-footer .footer-item,
.store-footer .col {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* =================================
   تقليل المسافات العامة
================================= */

section,
.s-block {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* =================================
   الجوال
================================= */

@media (max-width:768px){

    .store-footer{
        padding-top:10px !important;
        padding-bottom:10px !important;
    }

    .store-footer *{
        margin-bottom:4px !important;
    }

    section,
    .s-block{
        padding-top:6px !important;
        padding-bottom:6px !important;
    }
  /* إخفاء أيقونات الشحن الموجودة في الفوتر */
.shipping-icons,
.footer .shipping-icons,
.footer .shipping-icons img,
.footer .shipping-icons svg {
    display: none !important;
}

/* إذا كان اسم العنصر مختلفًا، يمكنك استهدافه مباشرةً */
.footer [class*="shipping"] {
    display: none !important;
}

}