/* Add custom CSS styles






/* البنر الأول فقط - مخصص للصفحة الرئيسية */
‏body.index section:first-of-type {
‏    margin: 0 !important;      
‏    padding: 0 !important;     
‏    width: 100vw !important;   /* يغطي العرض بالكامل */
‏    max-width: 100% !important;
‏    position: relative !important;
‏    top: 0 !important;
‏    left: 0 !important;
‏    right: 0 !important;
}

/* محتوى البنر الأول */
‏body.index section:first-of-type * {
‏    margin: 0 !important;
‏    padding: 0 !important;
‏    max-width: 100% !important;
‏    width: 100% !important;
}








/* ========================= */
/* SUPER NUCLEAR FULLSCREEN FIRST BANNER */
/* ========================= */

/* استهداف البنر الأول */
.home-slider .slider-item:first-child,
.home-slider .slider-item:first-child img,
.home-slider .slider-item:first-child .banner-bg {

    /* عرض وارتفاع كامل للشاشة */
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;

    /* المحافظة على نسب الصورة */
    object-fit: cover !important;
    background-size: cover !important;
    background-position: center center !important;

    /* إزالة أي هوامش أو padding */
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;

    /* عرض البلوك لضمان التطبيق */
    display: block !important;
}

/* إصلاح مشاكل الهواتف الصغيرة */
@media screen and (max-width: 768px) {
    .home-slider .slider-item:first-child,
    .home-slider .slider-item:first-child img,
    .home-slider .slider-item:first-child .banner-bg {
        height: 100vh !important;
        min-height: 400px !important; /* تأكد أن البنر لا يصبح صغير جدًا */
    }
}

/* إزالة أي تأثيرات من الثيم قد تقطع الصورة */
.home-slider .slider-item:first-child img {
    max-width: none !important;
    max-height: none !important;
}




/* إزالة أي margin/padding على الصفحة */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* رفع الهيدر فوق البنر */
header,
.header,
.header-wrapper {
    position: absolute !important;  /* يجعل الهيدر فوق البنر */
    top: 0;
    left: 0;
    width: 100% !important;
    z-index: 9999 !important;
}

/* إجبار البنر الأول ليبدأ من أعلى الصفحة */
.hero-banner,
.hero,
.banner,
.slider,
.section-slider {
    width: 100% !important;
    height: 100vh !important;      /* يغطي كامل ارتفاع الشاشة */
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
}

/* إزالة أي padding/margin داخل البنر */
.hero-banner *, 
.hero *, 
.banner *, 
.slider *, 
.section-slider * {
    margin: 0 !important;
    padding: 0 !important;
}

/* الصورة داخل البنر تغطي المساحة بالكامل */
.hero-banner img,
.hero img,
.banner img,
.slider img,
.section-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}





/* البنر العريض يملأ كامل الصفحة */
‏.banner, 
‏.header-banner, 
‏.top-banner, 
‏[class*="banner"] {
‏  width: 100vw !important;       /* عرض كامل الشاشة */
‏  max-width: 100% !important;    /* إزالة أي حد أقصى */
‏  margin: 0 !important;          /* يلغي أي هوامش جانبية */
‏  padding: 0 !important;         /* يلغي أي padding داخلي */
‏  left: 0 !important;
‏  right: 0 !important;
‏  box-sizing: border-box !important;
}

/* إزالة أي overflow أو تقليم من الثيم */
‏body, 
‏.main-container, 
‏.site-wrapper {
‏  overflow-x: hidden !important;
}



/* البنر يملأ كامل الصفحة بدون أي حواف أو فراغ */
‏.banner,
‏.header-banner,
‏.top-banner,
‏[class*="banner"] {
‏  width: 100vw !important;       /* عرض كامل الشاشة */
‏  max-width: 100% !important;    /* إزالة أي حد أقصى */
‏  margin: 0 !important;          /* إزالة الهوامش */
‏  padding: 0 !important;         /* إزالة الحشو الداخلي */
‏  border-radius: 0 !important;   /* إزالة أي انحناء في الزوايا */
‏  left: 0 !important;
‏  right: 0 !important;
‏  box-sizing: border-box !important;
}

/* إزالة أي padding/margin من الحاويات الداخلية التي تسبب الفراغ */
‏.banner * ,
‏.header-banner *,
‏.top-banner *,
‏[class*="banner"] * {
‏  margin: 0 !important;
‏  padding: 0 !important;
‏  border-radius: 0 !important;
}

/* إزالة أي قص أو شريط تمرير أفقي */
‏body,
‏.main-container,
‏.site-wrapper {
‏  overflow-x: hidden !important;
}





شفاف بالقوة ===== */
header,
.header,
.header-wrapper,
.header-container,
.header-top,
.header-top-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* إزالة أي ألوان مفروضة على العناصر الداخلية */
header * {
    background: transparent !important;
}







/* ===== جعل الفوتر بالكامل باللون #A6A6A6 ===== */
footer,
.footer,
.footer-wrapper,
.footer-container,
footer * {
    background-color: #A6A6A6 !important; /* خلفية الفوتر */
    color: #fff !important;              /* نصوص واضحة فوق الخلفية */
    border: none !important;             /* إزالة أي حدود مزعجة */
}

/* ضمان تغطية padding/margin الفارغة */
.footer-wrapper,
.footer-container {
    padding: 1rem 0 !important; /* تعديل حسب رغبتك */
    margin: 0 !important;
}








/* ===== توسيط محتوى الفوتر بالكامل ===== */
footer,
footer .footer-wrapper,
footer .footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* ===== ضبط المسافات ===== */
footer .footer-wrapper,
footer .footer-container {
    padding: 2rem 1rem !important;
    margin: 0 !important;
}





/* ===== فوتر بسيط وفخم ===== */
footer,
.footer,
.footer-wrapper,
.footer-container {
    background-color: #A6A6A6 !important;  /* اللون الأساسي */
    padding: 3rem 1rem 2rem 1rem !important; /* مسافة كافية للتنفس */
    margin: 0 !important;
    position: relative;
    border-top-left-radius: 50px;   /* سقف منحني بسيط وأنيق */
    border-top-right-radius: 50px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15); /* ظل خفيف يعطي إحساس بالعمق */
}

/* ===== توزيع المحتوى بشكل مرتب ===== */
.footer-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

/* ===== نصوص وروابط بسيطة وواضحة ===== */
.footer a,
.footer span,
.footer p {
    color: #fff !important;  /* نصوص واضحة */
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ===== أيقونات فخمة وواضحة ===== */
.footer i,
.footer svg {
    color: #fff !important;
    margin-right: 0.7rem;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.footer i:hover,
.footer svg:hover {
    transform: scale(1.2); /* لمسة حركة عند المرور */
}

/* ===== أعمدة الفوتر متناسقة ===== */
.footer-column {
    flex: 1 1 200px !important;
    margin: 1rem 0 !important;
}





/* ===== جعل خلفية المتجر بالكامل #545454 بدون المساس بالفوتر ===== */
body,
body .main-container,
body .content-wrapper,
body .page-container {
    background-color: #545454 !important; /* اللون الجديد للمتجر */
}

/* ===== استثناء الفوتر ===== */
footer,
.footer,
.footer-wrapper,
.footer-container {
    background-color: #A6A6A6 !important; /* يحافظ على لون الفوتر */
}







/* إخفاء أي عنصر فوق الهيدر */
body > div:first-child,
body > div:first-child * {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}







/* ===== الخلفية النووية لكل بطاقة منتجات في رائد ===== */
.products .item,
.products .item * {
    background-color: #545454 !important; /* يغطي كل الخلفيات الداخلية */
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important; /* ظل خفيف */
    color: #fff !important;  /* نصوص واضحة على الخلفية الداكنة */
}






/* اجعل المنتج الثالث في الشبكة يمتد عرض عمودين */
[class*="products"] [class*="product"]:nth-child(3) {
  grid-column: span 2 !important;
}




/* 1) قاعدة عامة تستهدف البطاقات الأكثر شيوعاً */
.product-card,
.product-item,
.card.product,
.salla-product-card,
.product-card__container {
  background-color: #545454 !important;    /* خلفية البطاقة */
  color: #ffffff !important;               /* لون نص مناسب للقراءة */
  border-color: rgba(0,0,0,0.12) !important;
}

/* 2) لو السمات تستخدم عناصر داخلية */
.product-card .card-body,
.product-item .card-body,
.card .card-body,
.product-card__content {
  background-color: transparent !important;
  color: inherit !important;
}

/* 3) عناوين المنتج والوصف والسعر — ضمان وضوح النص */
.product-card h1, .product-card h2, .product-card h3,
.product-item h1, .product-item h2, .product-item h3,
.product-card .product-title,
.product-item .product-title {
  color: #ffffff !important;
}

/* السعر قد يحتاج لون مغاير للوضوح */
.product-card .price,
.product-item .price,
.product-card .product-price {
  color: #ffd966 !important; /* أصفر فاتح للتمييز */
  font-weight: 700 !important;
}

/* 4) زر الشراء / الإضافه للسلة — تأكد أنه واضح */
.product-card .btn,
.product-item .btn,
.card .btn,
.button.add-to-cart,
.add-to-cart-btn {
  background-color: #2b2b2b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* 5) حالة التمرير والـ hover لإحساس تفاعلي */
.product-card:hover,
.product-item:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.28) !important;
}

/* 6) صور المنتج — وضع خلفية شفافة حتى لا تتداخل */
.product-card img,
.product-item img {
  background-color: transparent !important;
}

/* 7) قاعدة شاملة احتياطية: تستهدف أي عنصر اسمه يحتوي product أو card */
[class*="product"][class*="card"],
[class*="product"] .card,
[class*="card"][class*="product"] {
  background-color: #545454 !important;
  color: #ffffff !important;
}







/* ======================= */
/* واجهة المتجر: إخفاء الاسم والسعر وأيقونة التفضيل */
[class*="product"] .product-title,
[class*="product"] .title,
[class*="product"] .name,
[class*="product"] .price,
[class*="product"] .product-price,
[class*="product"] .amount,
[class*="product"] .money,
[class*="product"] .favorite,
[class*="product"] .add-to-favorite,
[class*="product"] .wishlist,
[class*="product"] .fa-heart {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ======================= */
/* صفحة المنتج نفسها (لو انفتح) */
.single-product .product-title,
.single-product .price,
.single-product .product-price,
.single-product .favorite,
.single-product .add-to-favorite,
.single-product .wishlist,
.single-product .fa-heart {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ======================= */
/* صفحة السلة */
.cart-item .product-title,
.cart-item .product-name,
.cart-item .product-price,
.cart-item .price,
.cart-item .amount,
.cart-item .favorite,
.cart-item .add-to-favorite,
.cart-item .fa-heart,
.cart-item [class*="product-title"],
.cart-item [class*="price"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ======================= */
/* احتياط: أي عنصر له علاقة باسم/سعر/تفضيل داخل المتجر أو السلة */
[class*="product"] [class*="title"],
[class*="product"] [class*="price"],
[class*="product"] [class*="favorite"],
[class*="cart"] [class*="title"],
[class*="cart"] [class*="price"],
[class*="cart"] [class*="favorite"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}







/* -------- زر الإضافة للسلة داخل البطاقة -------- */
[class*="product-card"] [class*="cart"],
[class*="product-card"] [class*="btn"],
[class*="product-item"] [class*="cart"],
[class*="product-item"] [class*="btn"] {
  
  
  border-radius: 0 !important;       /* حواف حادة */
  
  
  width: 100% !important;            /* ياخذ عرض البطاقة */
  margin: 0 !important;
  padding: 12px 0 !important;        /* ارتفاع واضح */
  position: absolute !important;     /* تثبيت في أسفل البطاقة */
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10 !important;
}







/* تغيير لون خلفية زر الإضافة للسلة فقط */
[class*="product-card"] button,
[class*="product-card"] .btn,
[class*="product-card"] [class*="cart"],
[class*="product-card"] [class*="add"],
[class*="product-item"] button,
[class*="product-item"] .btn,
[class*="product-item"] [class*="cart"],
[class*="product-item"] [class*="add"] {
  background-color: #A6A6A6 !important;
}




/* إزالة أي حدود حول زر الإضافة */
[class*="product-card"] button,
[class*="product-card"] .btn,
[class*="product-card"] [class*="cart"],
[class*="product-card"] [class*="add"],
[class*="product-item"] button,
[class*="product-item"] .btn,
[class*="product-item"] [class*="cart"],
[class*="product-item"] [class*="add"] {
  border: none !important;          /* إخفاء أي حدود */
  outline: none !important;         /* إزالة أي outline عند التركيز */
}




/* منع الضغط على الصورة والعنوان */
[class*="product"] .product-image,
[class*="product"] .product-title,
[class*="product"] .product-image a,
[class*="product"] .product-title a {
  pointer-events: none !important;
  cursor: default !important;
}

/* === منع أي نقرة على الصورة أو العنوان === */
[class*="product"] .product-image,
[class*="product"] .product-image a,
[class*="product"] .product-title,
[class*="product"] .product-title a {
  pointer-events: none !important;
  cursor: default !important;
}














/* =========================== */
/* تعطيل كل التفاعلات داخل بطاقات المنتجات */
[class*="product-card"],
[class*="product-item"] {
  pointer-events: none !important; /* يمنع أي نقر داخل البطاقة */
}

/* =========================== */
/* استثناء زر الإضافة للسلة فقط */
[class*="product-card"] button,
[class*="product-card"] [class*="add"],
[class*="product-card"] [class*="cart"],
[class*="product-item"] button,
[class*="product-item"] [class*="add"],
[class*="product-item"] [class*="cart"] {
  pointer-events: auto !important; /* يسمح بالنقر على زر الإضافة */
  cursor: pointer !important;
}





/* تعطيل أو إخفاء كل عناصر الهيدر الممكنة للقائمة */
.hamburger, 
.menu-toggle, 
.header-menu-button, 
[class*="menu-icon"], 
[class*="hamburger"], 
.header-menu, 
.nav-toggle, 
[class*="header-toggle"],
[class*="menu"]::before,
[class*="menu"]::after,
.hamburger::before,
.hamburger::after {
  display: none !important;       /* يخفي الزر بالكامل */
  pointer-events: none !important; /* يمنع أي تفاعل */
}




/* مسح النص بالفوتر واستبداله بالشعار */
footer {
  position: relative;
}

footer .footer-store-name,
footer .site-name,
footer .store-name {
  font-size: 0 !important;
  color: transparent !important;
  visibility: hidden !important;
}

footer::before {
  content: "";
  position: absolute;
  top: 20px;     /* عدل مكان الشعار عمودي */
  left: 50%;
  transform: translateX(-50%);
  width: 200px;  /* عدل الحجم */
  height: 70px;
  background: url("https://cdn.salla.sa/AzKXNY/iBFR474CgA1PYKud5wlY9ZC0SgpWBNlV9c5HxxUv.png") no-repeat center;
  background-size: contain;
}








/* شعار الفوتر كبير وبارز */
footer {
  position: relative;
}

footer .footer-store-name,
footer .site-name,
footer .store-name {
  font-size: 0 !important;
  color: transparent !important;
  visibility: hidden !important;
}

footer::before {
  content: "";
  position: absolute;
  top: 10px;             /* اضبط الارتفاع حسب الفوتر */
  left: 50%;
  transform: translateX(-50%);
  width: 300px;           /* عرض أكبر للشعار */
  height: 100px;          /* ارتفاع أكبر */
  background: url("https://cdn.salla.sa/AzKXNY/iBFR474CgA1PYKud5wlY9ZC0SgpWBNlV9c5HxxUv.png") no-repeat center;
  background-size: contain;
  z-index: 1000;          /* يضمن ظهور الشعار فوق كل شيء */
}






/* تغطية اسم المتجر العلوي بالفوتر بصندوق شفاف */
footer [class*="footer"] {
  position: relative;
}

footer [class*="footer"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px; /* عدل ارتفاع المنطقة حسب مكان النص */
  background-color: #A6A6A6; /* نفس لون خلفية الفوتر */
  z-index: 500;
}







/* محاذاة وصف المتجر في الفوتر لليمين بشكل قوي */
footer [class*="footer"] {
  display: block !important;       /* تحوّل الحاوية لبلوك */
  text-align: right !important;    /* محاذاة النص لليمين */
  direction: rtl !important;       /* للغة العربية */
}

/* إذا كان الوصف داخل flex أو grid */
footer [class*="footer"] > div,
footer [class*="footer"] > p,
footer [class*="footer"] > span {
  display: block !important;
  text-align: right !important;
  direction: rtl !important;
}








/* إخفاء أي عنصر اسمه فيه كلمة search */
[class*="search"],
[id*="search"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}






/* رفع الهيدر بأمان */
header,
.header,
.header__wrapper,
.site-header,
#header {
    margin-top: -50px !important; /* عدّل الرقم حسب مقدار الرفع المطلوب */
}




/* صور المنتجات في صفحة السلة */
.cart-item img,
.cart-item .product-image img {
    max-width: 100%;          /* لا تتجاوز عرض البطاقة */
    max-height: 150px;        /* ارتفاع ثابت مناسب */
    width: auto;              /* تحافظ على نسبتها */
    height: auto;             /* تحافظ على نسبتها */
    object-fit: contain;      /* تظهر الصورة كاملة */
    display: block;           
    margin: 0 auto;           /* تركز الصورة أفقياً داخل البطاقة */
    object-position: center;  /* تركز الصورة داخل الإطار */
    border-radius: 8px;       /* اختياري: حواف ناعمة */
    background-color: #f9f9f9; /* اختياري: خلفية فاتحة لملء الفراغ */
}



/* اخفاء كل أسماء المنتجات */
.cart-item *[class*="name"],
.cart-item *[class*="title"] {
    display: none !important;
}

/* اخفاء كل أسعار المنتجات */
.cart-item *[class*="price"] {
    display: none !important;
}

/* اخفاء كل عناصر الكمية */
.cart-item *[class*="quantity"],
.cart-item *[class*="qty"],
.cart-item input[type="number"] {
    display: none !important;
}




/* تغيير لون خلفية بطاقات المنتجات في صفحة السلة */
.cart-item {
    background-color: #545454 !important;
    border-radius: 8px; /* اختياري: حواف ناعمة */
    padding: 10px;      /* اختياري: مسافة داخل البطاقة */
}



/* البنر الأول يغطي العرض الكامل فقط */
body.index section:first-of-type {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    position: relative !important;
}

/* كسر أي قيود من الحاويات الداخلية */
body.index section:first-of-type .container,
body.index section:first-of-type .wrapper,
body.index section:first-of-type .section-inner,
body.index section:first-of-type .grid,
body.index section:first-of-type .row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* الصورة داخل البنر الأول تتمدد بعرض كامل */
body.index section:first-of-type img {
    width: 100% !important;
    height: auto !important; /* يحافظ على نسبة ارتفاع الصورة */
    object-fit: cover;
    display: block;
}




/* طبقة بلورية خلف الهيدر ثابتة، احترافية وخلابة */
header::before {
    content: "";
    position: fixed;                 /* ثابت أثناء التمرير */
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;                     /* عدّل حسب ارتفاع الهيدر */
    background: linear-gradient(
        rgba(255, 255, 255, 0.25),   /* تدرج شفاف خفيف */
        rgba(255, 255, 255, 0.15)
    );
    backdrop-filter: blur(50px);      /* زيادة قوة البلور */
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* ظل خفيف يعطي عمق */
    border-radius: inherit;           /* يحافظ على حواف الهيدر إذا موجودة */
    z-index: -1;                      /* خلف الهيدر */
    pointer-events: none;             /* لا يتداخل مع الهيدر */
}










@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* البنرات */
section[class*="banner"],
div[class*="banner"] {
  opacity: 0;
  animation: fadeUp 3s ease-out forwards;
  animation-timeline: view();            /* التحريك مع التمرير */
  animation-range: entry 0% cover 30%;   /* يبدأ عند دخول البنر */
}

/* الحالة الافتراضية */
.banner {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

/* الحالة النشطة */
.banner.show {
  opacity: 1;
  transform: translateY(0);
}







/* حالة افتراضية للشعار */
header img {
  opacity: 0;
  transform: scale(0.8) translateY(-20px);
  animation: logoReveal 1s ease-out forwards;
}

/* الحركة */
@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(0); /* تكبير خفيف يعطي إحساس نابض */
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}





/* منع أي رابط داخل بطاقة المنتج في صفحة السلة */
.cart-item a {
    pointer-events: none !important; /* يمنع الضغط على الرابط */
    cursor: default !important;      /* يغير شكل المؤشر */
    text-decoration: none !important; /* يزيل أي underline */
}





/* إخفاء نجوم التقييم فقط في واجهة المتجر */
body.index .star-rating,
body.index .product-rating,
body.index [class*="rating"] {
    display: none !important;
}