/* 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 الرئيسي - امتداد للصورة */
.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: -2px; 
}


/* رابط الـ 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);
    }
}

/* للشاشات 430px وأقل */
@media (max-width: 430px) {
    /* ضمان عدم تأثير Global Styles على الرابط */
    .fit-slider-products .EngMohamed-installment-badge,
    .product-card--vertical .EngMohamed-installment-badge,
    custom-salla-product-card .EngMohamed-installment-badge {
        margin-top: -33px !important;
    }
}

/* للشاشات 425px وأقل */
@media (max-width: 425px) {
    /* ضمان عدم تأثير Global Styles على الرابط */
    .fit-slider-products .EngMohamed-installment-badge,
    .product-card--vertical .EngMohamed-installment-badge,
    custom-salla-product-card .EngMohamed-installment-badge {
        margin-top: -30px !important;
    }
}

/* للشاشات 355px وأقل */
@media (max-width: 355px) {
    /* ضمان عدم تأثير Global Styles على الرابط */
    .fit-slider-products .EngMohamed-installment-badge,
    .product-card--vertical .EngMohamed-installment-badge,
    custom-salla-product-card .EngMohamed-installment-badge {
        margin-top: -35px !important;
    }
}

/* تحسينات إضافية للأداء */
.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;
    }
}