/* إخفاء الأيقونات والأسهم من أزرار العملات واللغة وإبقاء النص فقط */
.header-buttons svg,
.header-buttons i,
.header-buttons img,
.header-buttons span.grow.flex.items-center.cursor-pointer > *::before,
.header-buttons span.grow.flex.items-center.cursor-pointer > *::after,
.header-buttons span.grow.flex.items-center.cursor-pointer > button::before,
.header-buttons span.grow.flex.items-center.cursor-pointer > button::after,
.header-buttons span.grow.flex.items-center.cursor-pointer > div::before,
.header-buttons span.grow.flex.items-center.cursor-pointer > div::after,
.header-buttons span.grow.flex.items-center.cursor-pointer > span::before,
.header-buttons span.grow.flex.items-center.cursor-pointer > span::after {
    display: none !important;
    content: none !important;
}

.header-buttons span.grow.flex.items-center.cursor-pointer {
    gap: 10px !important;
    font-size: 12px !important;
}


/* 1. تصغير خط نص الشحن المجاني في الجوال فقط ليطلع كامل */
@media (max-width: 767px) {
    .top-navbar .marquee,
    .top-navbar .marquee *,
    .top-navbar [class*="marquee"],
    .top-navbar [class*="marquee"] * {
        font-size: 11px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }
}

/* 2. إخفاء الأيقونات الكبيرة داخل أزرار العملات واللغة ووضع سهم صغير للأسفل */
.header-buttons svg,
.header-buttons i:not(.small-caret),
.header-buttons img {
    display: none !important;
}

.header-buttons span.grow.flex.items-center.cursor-pointer {
    gap: 6px !important;
    font-size: 12px !important;
}

/* إضافة سهم صغير للأسفل بعد كل عنصر في أزرار اللغة والعملة */
.header-buttons span.grow.flex.items-center.cursor-pointer > *::after,
.header-buttons span.grow.flex.items-center.cursor-pointer > button::after,
.header-buttons span.grow.flex.items-center.cursor-pointer > div::after,
.header-buttons span.grow.flex.items-center.cursor-pointer > span::after {
    content: "⌄";
    display: inline-block;
    margin-right: 3px;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
}


/* 1. إخفاء أيقونة الاقتباس داخل الشريط العلوي بالكامل */
.center-between.relative.overflow-hidden .sicon-quote,
.center-between.relative.overflow-hidden [class*="quote"],
.center-between.relative.overflow-hidden i::before,
.center-between.relative.overflow-hidden i::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    font-size: 0 !important;
}

/* 2. ضبط المسافة بين الهيدر وسيكشن الفيديو الأول */
.store-header {
    margin-bottom: 0 !important;
}

/* إذا كان في فراغ زايد فوق سيكشن الفيديو نقلله */
.saji-add-videos {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* إخفاء زر إغلاق الإعلان (X) */
.ad-close,
a.ad-close.sicon-cancel {
    display: none !important;
}

/* إخفاء أيقونة الاقتباس داخل الشريط العلوي */
.top-navbar i.sicon-quote,
.top-navbar .sicon-quote {
    display: none !important;
}


/* تثبيت مسار الحركة على كرت المنتج */
.product-entry,
[class*="product-entry"] {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
}

/* رفع كرت المنتج للأعلى عند الـ Hover على الشاشات الكبيرة */
@media (hover: hover) and (pointer: fine) {
    .product-entry:hover,
    [class*="product-entry"]:hover {
        transform: translateY(-6px) !important;
    }

    /* إبقاء الصورة داخل الكرت مستقرة بدون تكبير أو دوران مع الحفاظ على حركة الكرت */
    .product-entry:hover .product-entry__image img {
        transform: none !important;
        rotate: none !important;
        scale: none !important;
        transition: none !important;
    }

    /* دخول الأزرار السفلية بنعومة وتناسق مع ارتفاع الكرت */
    .product-entry [class*="actions"],
    .product-entry [class*="quick-view"],
    .product-entry [class*="add-to-cart"],
    .product-entry [class*="wishlist"] {
        transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    .product-entry:hover [class*="actions"],
    .product-entry:hover [class*="quick-view"],
    .product-entry:hover [class*="add-to-cart"],
    .product-entry:hover [class*="wishlist"] {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}
/* 1. إلغاء اللمعة (Shine) على صورة المنتج */
.product-entry__image.saji-shine::before,
.product-entry__image.saji-shine::after,
.product-entry__image.saji-shine .shine,
.product-entry__image.saji-shine [class*="shine"] {
    display: none !important;
    content: none !important;
    animation: none !important;
    opacity: 0 !important;
}

/* 2. تثبيت الصورة ومنع التكبير أو الدوران أو الانتقال عند الـ Hover */
.product-entry__image img,
.product-entry__image:hover img,
[class*="product-entry"]:hover .product-entry__image img {
    transform: none !important;
    rotate: none !important;
    scale: none !important;
    transition: none !important;
    animation: none !important;
}

/* منع اختفاء أو تبديل الصورة الأولى عند الـ hover إذا كان عليها opacity */
.product-entry__image:hover img.card-slide-first {
    opacity: 1 !important;
}

/* 1. إنزال حاوية النص والزر لأسفل الفيديو */
.saji-add-videos .absolute.inset-0.flex-center {
    align-items: flex-end !important;
    padding-bottom: 28px !important; /* المسافة من أسفل الفيديو */
}

/* 2. تحويل الزر إلى Outline */
.saji-hero-video__btn {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1.5px solid #ffffff !important;
    transition: all 0.25s ease !important;
}

/* تأثير تمرير الماوس على الزر (Hover) */
.saji-hero-video__btn:hover {
    background-color: #ffffff !important;
    color: #5d493a !important;
}

/* إخفاء شريط الفرز وطرق عرض المنتجات في صفحة التصنيف */
.container--products-list .main-content .center-between.gap-4.py-2\.5.w-full {
    display: none !important;
}/* Add custom CSS styles below */ 
/* التحكم في ارتفاع صورة المنتج *//* الجوال (الشاشات أقل من 768px) */
@media (max-width: 767px) {
    .product-entry__image {
        height: 375px !important;
        min-height: 375px !important;
        max-height: 375px !important;
        aspect-ratio: unset !important;
        overflow: hidden !important;
    }
}

/* الديسكتوب (الشاشات من 768px وطالع) */
@media (min-width: 768px) {
    .product-entry__image {
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
        aspect-ratio: unset !important;
        overflow: hidden !important;
    }
}

/* ضبط الصورة داخل الكرت */
.product-entry__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
/* تغيير حجم نصوص اقسام المتجر في الواجهة */
.saji-menu-links a {
    font-size: 18px;
    line-height: 1.25rem;
    padding: .5rem .75rem;
}

/* تثبيت حاوية الشريط */
.center-between.relative.overflow-hidden:has(.marquee) {
    position: relative !important;
}

/* توسيط الشريط في منتصف الصفحة */
.marquee {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    width: max-content !important;
    max-width: 90% !important;
    transform: translate(-50%, -50%) !important;
    animation: none !important;
    overflow: hidden !important;
    display: block !important;
    text-align: center !important;
}

/* إيقاف حركة العناصر */
.marquee,
.marquee * {
    animation: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
}

/* إظهار نسخة واحدة فقط */
.marquee .marquee__item {
    display: none !important;
}

.marquee .marquee__item:first-child {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
}

/* إخفاء النصوص المكررة */
.marquee .marquee__item:first-child ul li {
    display: none !important;
}

.marquee .marquee__item:first-child ul li:first-child {
    display: block !important;
    padding: 0 !important;
    text-align: center !important;
}

.marquee .marquee__item:first-child ul li:first-child a {
    display: inline-block !important;
    font-size: 16px !important;
    white-space: nowrap !important;
}

/* زيادة ارتفاع خلفية الشريط الإعلاني */
.center-between.relative.overflow-hidden:has(.marquee) {
    min-height: 50px !important;
    height: 50px !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
}

/* الحفاظ على النص في منتصف الخلفية */
.marquee {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* إزالة الظلال والتدرجات من الشريط */
.marquee,
.marquee * {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* إلغاء تأثير التلاشي على أطراف الشريط */
.marquee {
    -webkit-mask: none !important;
    mask: none !important;
    background-image: none !important;
}

/* وضوح النص */
.marquee a {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

@media (max-width: 767px) {
    .marquee .marquee__item:first-child ul li:first-child a,
    .marquee .marquee__item ul li a {
        font-size: 11px !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
    }
}