/* Add custom CSS styles below */ 
/* Add custom CSS styles below */


iframe.ql-video:not(.moved) {
    display: none !important;
    visibility: hidden !important;
}


/* استهداف جميع أيقونات السلة */
.sicon-cart:before,
.sicon-shopping:before,
[class*="sicon-cart"]:before,
[class*="sicon-shopping"]:before {
    content: "" !important;
    background: url(https://media.zid.store/eeebe6f0-dc0e-46e7-a4fb-56c7c4f3196f/9c7396f1-52ed-4e15-b1ca-6f67ad456553.svg) no-repeat center / cover !important;
    width: 25px !important;
    height: 25px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* تخصيص حجم أصغر للأيقونات في الأزرار */
.s-button-element .sicon-shopping:before {
    width: 16px !important;
    height: 16px !important;
}

/* إخفاء النص الأصلي */
.sicon-cart,
.sicon-shopping,
[class*="sicon-cart"],
[class*="sicon-shopping"] {
    font-size: 0 !important;
    overflow: hidden !important;
}

/* نظام badge التقسيط المخصص مع prefix EngMohamed */
/* Custom Installment Badge System CSS with EngMohamed prefix */
/* نظام badge التقسيط المخصص مع prefix EngMohamed */
/* Custom Installment Badge System CSS with EngMohamed prefix */
/* نظام badge التقسيط المخصص مع prefix EngMohamed */
/* Custom Installment Badge System CSS with EngMohamed prefix */
/* نظام badge التقسيط المخصص مع prefix EngMohamed */
/* Custom Installment Badge System CSS with EngMohamed prefix */

/* حاوي الـ Badge الرئيسي - امتداد للصورة */
.EngMohamed-badge-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    background: transparent;
    z-index: 5;
    /* محاذاة مع الصورة لتبدو كامتداد مباشر */
    margin-top: 0; 
}

/* إلغاء تأثير Global Styling من Salla على الـ Badge */
 .fit-slider-products .s-slider-swiper-wrapper .swiper-slide custom-salla-product-card .EngMohamed-badge-container,
.fit-slider-products .product-card--vertical.product-card--fit-height .EngMohamed-badge-container,
custom-salla-product-card .EngMohamed-badge-container {
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0 !important;
}



/* رابط الـ Badge - يحاكي شكل الصورة */
.EngMohamed-installment-badge {
    display: block;
    position: relative;
    text-decoration: none;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* إلغاء border-radius ليكون امتداد مسطح */
    border-radius: 0 0 12px 12px;
    border: none;
    box-shadow: none;
    background: transparent;
    line-height: 0;
    margin: 0;
}


/* ضمان عدم تأثير Global Styles على الرابط */
.fit-slider-products .EngMohamed-installment-badge,
.product-card--vertical .EngMohamed-installment-badge,
custom-salla-product-card .EngMohamed-installment-badge {
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    align-self: stretch !important;
}

/* إلغاء تأثير height: 100% من Global Styling */
.product-card:has(.EngMohamed-badge-container) .product-slider,
.product-card:has(.EngMohamed-badge-container) .s-slider-container,
.product-card:has(.EngMohamed-badge-container) .s-slider-wrapper,
.product-card:has(.EngMohamed-badge-container) > div > a {
    height: auto !important;
}

/* إضافة حماية إضافية للعناصر المحتوية على البادج */
.product-card .product-slider:has(.EngMohamed-badge-container),
.product-card .s-slider-container:has(.EngMohamed-badge-container),
.product-card .s-slider-wrapper:has(.EngMohamed-badge-container),
.product-card > div > a:has(.EngMohamed-badge-container) {
    height: auto !important;
    min-height: auto !important;
}


/* صورة الـ Badge - تحاكي عرض الصورة الأساسية */
.EngMohamed-badge-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
    /* بدون border-radius للاتصال المباشر مع الصورة */
    border-radius: 0;
    /* الحفاظ على النسبة الطبيعية للصورة */
    aspect-ratio: auto;
}



/* تأثير Loading للصورة */
.EngMohamed-badge-image[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: EngMohamed-shimmer 1.5s infinite;
    min-height: 40px;
}

@keyframes EngMohamed-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}



/* تحسينات للشاشات المختلفة */

/* للشاشات الكبيرة */
@media (min-width: 1024px) {
    .EngMohamed-badge-image {
        /* عرض كامل لمطابقة صورة المنتج */
        max-width: none;
    }
}

/* للأجهزة اللوحية */
@media (max-width: 1023px) and (min-width: 768px) {
    .EngMohamed-badge-image {
        /* عرض كامل لمطابقة صورة المنتج */
        max-width: none;
    }
}

/* للجوال */
@media (max-width: 767px) {
    .EngMohamed-badge-image {
        /* عرض كامل لمطابقة صورة المنتج */
        max-width: none;
        min-width: auto;
    }
    
}



/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .EngMohamed-badge-image {
        /* عرض كامل لمطابقة صورة المنتج */
        max-width: none;
        min-width: auto;
    }
    
    .EngMohamed-installment-badge:hover {
        transform: scale(1.01);
    }
    
        salla-products-list .product-card--vertical.product-card--fit-height .product-card__content {
       justify-content: flex-start !important;
        }
  salla-products-list .product-card--vertical.product-card--fit-height .product-card__image{

        flex-shrink: 1 !important;    
  }
  .product-card--fit-height .product-card__image {
    height: auto !important;
  }

  salla-products-list .product-card--vertical.product-card--fit-height .product-card__content{
    justify-content: space-evenly !important;
    height: fit-content;
  }
}

/* تحسينات إضافية للأداء */
.EngMohamed-badge-container,
.EngMohamed-installment-badge,
.EngMohamed-badge-image {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* تأثير خاص عند التحميل */
.EngMohamed-badge-container {
    animation: EngMohamed-fadeIn 0.5s ease-out;
}

@keyframes EngMohamed-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* حالة الخطأ في تحميل الصورة */
.EngMohamed-badge-image:not([src]),
.EngMohamed-badge-image[src=""],
.EngMohamed-badge-image[src="#"] {
    display: none;
}

/* تحسينات للطباعة */
@media print {
    .EngMohamed-badge-container {
        display: none;
    }
}

/* تحسين للحركة المخفضة */
@media (prefers-reduced-motion: reduce) {
    .EngMohamed-installment-badge,
    .EngMohamed-badge-image,
    .EngMohamed-badge-container {
        transition: none;
        animation: none;
    }
    
    .EngMohamed-installment-badge:hover {
        transform: none;
    }
}

/* تحسينات للثيم المظلم */
@media (prefers-color-scheme: dark) {
    .EngMohamed-badge-container {
        background: linear-gradient(135deg, rgba(30,30,30,0.95) 0%, rgba(45,45,45,0.9) 100%);
        border-top-color: rgba(75,85,99,0.6);
        border-bottom-color: rgba(75,85,99,0.6);
    }
    
    .EngMohamed-installment-badge {
        background: #1f2937;
        border-color: rgba(75,85,99,0.8);
    }
    
    .EngMohamed-installment-badge:hover {
        border-color: #60a5fa;
    }
}

.payment-icons {
  background: none !important ;
  border:  none !important ;
}





/* =====================================
   DESKTOP HEADER REORDER (SALLA SAFE)
   [ icons ] [ nav ] [ logo ]
===================================== */

@media (min-width: 1024px) {

  /* Target the exact header row */
  .flex.items-stretch.justify-between.relative {
    display: flex;
    align-items: center;
  }

  /* ICONS (cart, search, user) */
  .flex.items-stretch.justify-between.relative > div:nth-child(3) {
    order: 3;
    display: flex;
    align-items: center;
    width: auto;
  }

  /* NAV ITEMS (menu) */
  .flex.items-stretch.justify-between.relative > div:nth-child(1) {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* LOGO */
  .flex.items-stretch.justify-between.relative > div:nth-child(2) {
    order: 1;
    display: flex;
    justify-content: flex-end;
    width: auto;

  }


  /* ==========================
   NAV CENTERED & TIGHT
  ========================== */

   /* خلي القائمة Flex */
  nav .main-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* ❌ اخفاء عناصر الموبايل تمامًا */
  nav .main-menu > li.lg\:hidden {
    display: none !important;
  }

  /* ✅ عناصر الديسكتوب فقط */
  nav .main-menu > li.lg\:\!block {
    display: flex !important;
    align-items: center;
  }

  nav .main-menu > li > a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 2px 3px;
    font-size: 12px;
    white-space: nowrap;
  }


  /* ==========================
     ICON SPACING
  ========================== */

  button[aria-label="Search"],
  button[aria-label="Login"],
  salla-cart-summary {
    margin-inline-start: 8px;
  }

  /* ==========================
     LOGO SIZE
  ========================== */

  .navbar-brand img {
    max-height: 150px;
  }
}



/* الحالة قبل scroll: خلي المسافة أعلى الهيدر */
.fixed_promotion:not(.promotion-banner-hidden) 
.main-nav-container:not(.fixed-header) .inner {
    top: 46px !important;  /* إجبارية حتى تتجاوز أي CSS آخر */
}

/* عند scroll: الهيدر ثابت top = 0 */
.fixed_promotion:not(.promotion-banner-hidden) 
.main-nav-container.fixed-header .inner {
    top: 0 !important;
}





/* الكارت يكون عمود */
.product-card--vertical.product-card--fit-height {
  display: flex !important;
  flex-direction: column !important;
}

/* جزء الصورة ما يتمددش */
.product-card__image {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* البادج ييجي لازق تحت الصورة */
.EngMohamed-badge-container {
  order: 2;                 /* ييجي بعد الصورة مباشرة */
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;           /* يمنع أي فراغ وهمي */
  text-align: center;
}

.EngMohamed-badge-image {
  display: block;
  width: 100%;
  height: auto;
}

/* محتوى الكارت هو اللي يتمدّد ويملأ المساحة */
.product-card__content {
  order: 3;
  flex: 1 1 auto !important;   /* هو الوحيد اللي يتمدد */
  display: flex;
  flex-direction: column;
}

/* زر الشراء يثبت في آخر الكارت */
.product-card__enhanced-mini-cart {
  margin-top: auto !important;   /* ينزل لآخر الكارت */
  flex: 0 0 auto !important;
  padding-top: 8px;
}

@media (max-width: 991px) {

  salla-products-list 
  .product-card--vertical.product-card--fit-height 
  .product-card__image {
    flex: 0 0 auto !important;   /* يمنع التمدد نهائيًا */
  }

}




/* ===============================
   Payment Icons Wrapper
   =============================== */

.custom-payment-icons {
    position: relative;
    margin-top: 60px;
    padding: 20px 16px 16px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 12px;

    background: #f6f4ef;
    border-radius: 14px;
    border: 1px solid #e5e7eb;

    justify-items: center;
    align-items: center;
}

/* ===============================
   Secure Payment Bar
   =============================== */

.custom-payment-icons::before {
    content: "دفع آمن";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 46px;

    background: #22c55e;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);

    /* الدرع في منتصف المستطيل مع النص */
    background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'>\
    <path d='M12 2l7 4v6c0 5-3.5 9.5-7 10-3.5-.5-7-5-7-10V6l7-4z'/>\
    </svg>");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: calc(50% + 35px) center;
}

.custom-payment-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 في الصف دائمًا */
    gap: 12px;
    justify-items: center;
}

.custom-payment-icons img {
    width: 100%;
    max-width: 72px;
    height: 44px;
    object-fit: contain;
    background: transparent;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* الصف الأخير (عنصرين فقط) في المنتصف */
.custom-payment-icons img:nth-last-child(2) {
    grid-column: 2 / 3;
}

.custom-payment-icons img:last-child {
    grid-column: 3 / 4;
}






:root {
  --main-color: #0f3f46;
  --bg-color: #f3f1ea;
  --accent-color: #0e3a40;
}


/* =====================================
   NEW FEATURES GRID (.mf)
===================================== */
.mf {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    direction: rtl;
}

.mf-item {
    background: transparent;
    border: 1px solid #CFCACA;
    border-radius: 6px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
}

.mf-item:hover {
    transform: translateY(-3px);
}

.mf-item img {
    width: 100px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.mf-title {
    font-size: 14px;
    font-weight: 800;
    color: #000;
    margin-bottom: 5px;
}

.mf-subtitle {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* Full Banner Image Style */
.fiori-custom-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 0; /* تم إزالة الحواف المستديرة للحاوية لأن البطاقات لها حوافها الخاصة */
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .mf {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .mf-item {
        padding: 10px 4px;
        border-radius: 8px;
    }
    
    .mf-item img {
        max-height: 30px;
        margin-bottom: 6px;
    }

    .mf-title {
        font-size: 9px;
        font-weight: 800;
        line-height: 1.2;
    }
    
    .mf-subtitle {
        font-size: 7px;
        line-height: 1.1;
        display: block; /* التأكد من ظهور السطرين */
    }
}

/* =====================================
   NEW INSTALLMENT BOX (#lv-installment-box)
===================================== */
#lv-installment-box {
    background: transparent;
    border: 1px solid #CFCACA;
    border-radius: 6px;
    padding: 16px;
    margin-top: 15px;
    text-align: center;
    direction: rtl;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lv-text {
    font-size: 15px;
    color: #000;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap; /* منع انقسام النص */
}

#lv-installment-box b {
    font-weight: 800;
    color: #000;
}

#lv-installment-box .im {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#lv-installment-box .im img {
    height: 22px;
    width: auto;
    object-fit: contain;
    background: transparent;
    padding: 3px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#lv-installment-box .im span {
    font-size: 12px;
    color: #777;
    font-weight: bold;
}

@media (max-width: 767px) {
    #lv-installment-box {
        padding: 12px 8px;
        margin-top: 10px;
    }
    
    .lv-text {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    #lv-installment-box .im img {
        height: 18px;
        padding: 2px 8px;
    }
}


.track-submit_btn:disabled {
    background-color: #004355 !important;
    color: #fff !important;
}

.track-submit_btn:hover {
    background-color: #004355 !important;
}

/* إخفاء تقييمات المتجر وضريبة السعر */
.rating-plus-line-break-enforcer,
.rating-plus-badge-injection,
small.text-store-text-secondary {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* إخفاء تبويب تفاصيل المنتج في الموبايل */
@media (max-width: 767px) {
    .more-info-tabs__nav-link[data-id="details_table"] {
        display: none !important;
    }
}

/* تنسيق الكوبونات في السلة */
.s-cart-coupons-slide-one-fourth {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

.s-cart-coupons-card {
    border: none !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
}

.s-cart-coupons-top-section {
    border: 1px solid #CFCACA !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #ffffff78 !important;
}

.s-cart-coupons-bottom-section {
    background: #ffffff78 !important;
    padding: 10px 15px !important;
    border-radius: 0 0 8px 8px !important;
    margin-top: 4px !important;
}

.s-cart-coupons-divider {
    display: none !important; /* إخفاء الفاصل بما أن الإطار على الجزء العلوي فقط */
}

.s-cart-coupons-code {
    background: #f8f9fa !important;
    border: 1px dashed #CFCACA !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
}

.s-cart-coupons-expiry .expiry-red {
    color: #ef4444 !important; /* اللون الأحمر */
    font-weight: bold;
}

/* تحسين الموبايل للكوبونات */
@media (max-width: 767px) {
    .s-cart-coupons-top-section {
        padding: 10px !important;
    }
    .s-cart-coupons-main-amount {
        font-size: 16px !important;
    }
    .s-cart-coupons-code {
        font-size: 13px !important;
    }
}