/* Add custom CSS styles below */ 
/* 1. إزالة أي مسافات داخلية أو عرض محدد من الحاويات */
.s-block--fixed-banner, 
.s-block--fixed-banner .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* 2. جعل الرابط (البنر) يمتد بكامل العرض */
.banner--fixed {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

/* 3. تنسيق الصورة لتملأ المساحة تماماً */
.banner--fixed img {
    width: 100% !important;
    height: auto !important; /* للحفاظ على أبعاد الصورة */
    display: block !important;
    object-fit: cover !important; /* لضمان ملء المساحة بدون فراغات */
}

/* 4. إزالة أي هوامش تلقائية من قسم s-block نفسه قد تظهر في الأعلى */
section.s-block--fixed-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* شاشة الترحيب */
#salla-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; /* خلفية بيضاء */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease; /* لتأثير التلاشي */
}

#salla-splash img {
    width: 250px; /* حجم الصورة */
    height: auto;
    object-fit: contain;
    border-radius: 8px; /* اختياري لإضفاء شكل لطيف */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* اختياري لإبراز الصورة */
}
#mainnav {
    border-radius: 20px; /* مقدار التقوس */
    overflow: hidden; /* يمنع العناصر من الخروج عن الحواف */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* اختياري لإبراز الشريط */
}

/* إذا بدك تقوس فقط الحواف العلوية */
#mainnav {
    border-radius: 20px 20px 0 0; /* تقوس أعلى فقط */
}
/* أيقونة البحث داخل الـ mainnav */
#mainnav .mobile-search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 10px; /* المسافة عن باقي الأزرار */
}

#mainnav .mobile-search-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

/* Popup البحث */
#mainnav-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255,255,255,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

#mainnav-search-popup input {
    width: 100%;
    max-width: 400px;
    height: 40px;
    border-radius: 20px;
    padding: 0 15px;
    font-size: 16px;
}
/* إخفاء شريط الـ top-navbar */
.top-navbar {
    display: none !important;
}
/* 1. إخفاء العناصر الأصلية وتقليص حجم حاوياتها تماماً */
.s-block--features__item {
    display: none !important; /* إخفاء المربعات الأصلية تماماً */
}

/* 2. ضبط الحاوية الرئيسية للقسم */
.grid.grid-cols-\[repeat\(2\2c minmax\(0\2c 1fr\)\)\],
.grid.md\:grid-cols-\[repeat\(3\2c minmax\(0\2c 1fr\)\)\] {
    display: flex !important;
    flex-direction: column !important; /* ترتيب العناصر عمودياً */
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important; /* إلغاء الفراغات بين عناصر الشبكة */
    padding: 40px 20px !important; /* مسافة القسم من الأعلى والأسفل */
    margin: 0 !important;
}

/* 3. تنسيق العنوان (FEBRUARY) */
.grid.grid-cols-\[repeat\(2\2c minmax\(0\2c 1fr\)\)\]::before {
    content: "FEBRUARY";
    display: block;
    font-family: 'Times New Roman', serif;
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #1a1a1a;
    text-transform: uppercase;
    line-height: 1.2 !important; /* تقليل ارتفاع السطر */
    margin-bottom: 8px !important; /* مسافة صغيرة جداً تحت العنوان */
}

/* 4. تنسيق الوصف (النبذة) */
.grid.grid-cols-\[repeat\(2\2c minmax\(0\2c 1fr\)\)\]::after {
    content: "وجهتكم الاستثنائية لعطور تأسر الحواس وتخلّد اللحظات. ننتقي لكم أفخم النوتات العطرية التي تعكس تفردكم وأناقتكم.";
    display: block;
    font-family: sans-serif;
    font-size: 15px;
    color: #666;
    max-width: 500px;
    text-align: center;
    line-height: 1.4 !important; /* تحسين تباعد أسطر الوصف */
    margin-top: 0 !important; /* التأكد من عدم وجود هامش علوي */
}

/* 5. تحسين المظهر على الجوال */
@media (max-width: 768px) {
    .grid.grid-cols-\[repeat\(2\2c minmax\(0\2c 1fr\)\)\]::before {
        font-size: 30px;
        letter-spacing: 3px;
    }
    .grid.grid-cols-\[repeat\(2\2c minmax\(0\2c 1fr\)\)\]::after {
        font-size: 13px;
        padding: 0 10px;
    }
}
/* 1. تهيئة الحاوية الأساسية للمنتجات */
.s-products-list-wrapper {
    display: grid !important;
    gap: 15px !important; /* المسافة بين المنتجات */
    padding: 10px !important;
}

/* 2. توزيع المنتجات: 4 في السطر للكمبيوتر */
@media (min-width: 992px) {
    .s-products-list-wrapper {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 3. توزيع المنتجات: 2 في السطر للجوال والتابلت */
@media (max-width: 991px) {
    .s-products-list-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 4. تعديل تصميم كرت المنتج ليكون عمودياً ومتناسقاً */
custom-salla-product-card {
    display: flex !important;
    flex-direction: column !important; /* جعل الصورة فوق والنص تحت */
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5); !important;
    border: 1px solid #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* 5. ضبط حجم الصورة ليكون متساوياً لجميع المنتجات */
.s-product-card-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important; /* يجعل الصورة مربعة */
}

.s-product-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 6. تنسيق محتوى الكرت (العنوان والسعر) */
.s-product-card-content {
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    text-align: center !important;
}

.s-product-card-content-title a {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-decoration: none !important;
}

.s-product-card-price {
    color: #1a1a1a !important;
    font-size: 18px !important;
    margin-top: 8px !important;
}

/* 7. ضبط الأزرار أسفل المنتج */
.s-product-card-content-footer {
    display: flex !important;
    flex-direction: row !important; /* الزر والقلب بجانب بعضهما */
    gap: 5px !important;
    margin-top: 10px !important;
}

/* إخفاء أي خصائص "horizontal" قديمة تعيق التنسيق */
.s-product-card-horizontal {
    flex-direction: column !important;
}
/* 1. تبييض خلفية المتجر الرئيسية فقط */
/* استهداف الحاوية الكبرى ووسط الصفحة دون التأثير على الفوتر */
body, 
.main-content, 
.site-content,
section.s-block:not(.store-footer) {
    background-color: #ffffff !important;
}

/* 2. استثناء الفوتر (Store Footer) من التغيير */
/* هذا السطر يضمن بقاء الفوتر بألوانه الأصلية دون تأثر */
.store-footer, 
.store-footer__inner, 
.store-footer__inner *,
footer {
    background-color: inherit !important; /* يحافظ على لونه الأصلي من المنصة */
}

/* 3. الحفاظ على الظلال (عدم إزالتها كما طلبت) */
/* نترك خصائص الظلال الافتراضية كما هي لتظهر الكروت والبنرات بعمق */
.s-block, .s-product-card-entry {
    /* لا يوجد كود إزالة هنا بناءً على طلبك */
}

/* 4. التأكد من أن خلفية حاوية المنتجات بيضاء */
.s-products-list-wrapper {
    background-color: #ffffff !important;
}

/* 5. الحفاظ على الأزرار السوداء التي صممناها سابقاً */
.s-button-element {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* 6. منع تبييض الأيقونات أو العناصر التي تعتمد على اللون الداكن في الفوتر */
.store-footer__inner h3, 
.store-footer__inner p, 
.store-footer__inner a {
    /* نتركها لتتبع إعدادات القالب الأصلية في الفوتر */
}
/* 1. تلوين خلفية الفوتر بالأسود */
.store-footer__inner {
    background-color: #000000 !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* 2. تحويل جميع النصوص والعناوين والروابط داخل الفوتر للأبيض */
.store-footer__inner h3, 
.store-footer__inner a, 
.store-footer__inner p, 
.store-footer__inner span,
.store-footer__inner .unicode {
    color: #ffffff !important;
}

/* 3. تنسيق شعار المتجر FEBRUARY في الفوتر */
.store-footer__inner h3 {
    font-family: 'Times New Roman', serif;
    letter-spacing: 2px;
    font-weight: bold;
}

/* 4. تحويل لون الأيقونات (مثل أيقونة الهاتف) للأبيض */
.store-footer__inner svg, 
.store-footer__inner i,
.s-contacts-icon svg {
    fill: #ffffff !important; /* للأيقونات من نوع SVG */
    color: #ffffff !important; /* للأيقونات من نوع Font */
}

/* 5. تنسيق روابط القائمة (Important Links) */
.s-menu-footer-list a {
    color: #cccccc !important; /* رمادي فاتح للروابط العادية لتمييزها */
    transition: color 0.3s ease;
}

.s-menu-footer-list a:hover {
    color: #ffffff !important; /* تبيض عند مرور الماوس */
}

/* 6. تنسيق وثيقة العمل الحر لتظهر بشكل واضح فوق الأسود */
.s-trust-badges-wrapper.dark {
    background: rgba(255, 255, 255, 0.05) !important; /* خلفية شفافة بسيطة */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px !important;
    border-radius: 8px !important;
}

.s-trust-badges-label, .s-trust-badges-number {
    color: #ffffff !important;
}

/* 7. إضافة خط فاصل بسيط بين محتوى الصفحة والفوتر */
footer.store-footer {
    border-top: 1px solid #222 !important;
    background-color: #000 !important;
}
/* 1. إخفاء النص الأصلي للحقوق بالكامل */
.copyright-text p {
    visibility: hidden !important;
    position: relative !important;
    font-size: 0 !important; /* لإزالة المساحة التي يشغلها النص المخفي */
}

/* 2. إضافة النص الجديد الخاص بمتجرك */
.copyright-text p::before {
    content: "جميع الحقوق محفوظة لمتجر FEBRUARY © 2026"; /* النص الذي تريده */
    visibility: visible !important;
    display: block !important;
    font-size: 14px !important; /* حجم الخط المناسب */
    color: #999999 !important; /* لون رمادي هادئ ليتناسب مع الخلفية السوداء */
    font-family: 'Cairo', sans-serif;
    letter-spacing: 1px;
}

/* 3. تنسيق حاوية الحقوق السفلية لضمان التوسط واللون الأسود */
.md\:flex.items-center.justify-between.py-4.container {
    background-color: #000000 !important;
    border-top: 1px solid #222 !important; /* خط فاصل بسيط فوق الحقوق */
    width: 100% !important;
    max-width: 100% !important;
}

/* 4. إخفاء رابط "منصة سلة" تحديداً إذا ظل يظهر */
.copyright-text a {
    display: none !important;
}

/* 5. تنسيق أيقونات الدفع لتكون واضحة بجانب الحقوق */
.s-payments-list-wrap {
    filter: grayscale(1) brightness(2); /* لجعل الأيقونات تتناسب مع ثيم الأبيض والأسود (اختياري) */
    opacity: 0.8;
}
/* =========================================
   1. إخفاء النصوص القديمة تماماً
========================================= */
.s-block--banners .banner__title, 
.s-block--banners .banner__description,
.s-block--banners .banner-entry__text h3,
.s-block--banners .banner-entry__text p {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* =========================================
   2. ضبط الحاوية (4 للكمبيوتر و 2 للجوال)
========================================= */
.s-block--banners .grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    padding: 30px 0 !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    .s-block--banners .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =========================================
   3. تنسيق الكرت الأبيض الفخم والمتناسق
========================================= */
.s-block--banners .banner-entry {
    background-color: #000 !important; /* خلفية بيضاء ناصعة */
    background-image: none !important;
    border: 2px solid #000000 !important; /* حدود سوداء */
    border-radius: 12px !important;    /* زوايا أكثر نعومة */
    height: 190px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;      /* توسيط في النصف أفقي */
    justify-content: center !important;   /* توسيط في النصف عمودي */
    padding: 20px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important; /* ضرورية لاحتواء اللمعة بالداخل */
    
    /* انتقال ناعم للهوفر */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    box-shadow: none !important;
}

/* 4. تأثير الهوفر (الارتفاع والظل) */
.s-block--banners .banner-entry:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}


/* =========================================
   5. إضافة اللمعة الزجاجية (تأثير متميز ومتحرك)
========================================= */
/* إنشاء عنصر اللمعة (::after) */
.s-block--banners .banner-entry::after {
    content: "" !important;
    position: absolute !important;
    top: 0; left: -100%; width: 100%; height: 100%;
    
    /* رسم اللمعة كخط مائل أبيض شفاف */
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 75%
    ) !important;
    
    visibility: visible !important;
    display: block !important;
    transform: skewX(-20deg) !important; /* مائلة قليلاً */
    
    /* تشغيل الأنيميشن */
    animation: shine-animation 3s infinite linear !important; 
    z-index: 10 !important; /* فوق المحتوى */
}

/* تحديد حركة الأنيميشن (Shine Animation Keyframes) */
@keyframes shine-animation {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1; /* ظهور سريع عند البداية */
    }
    40% {
        left: 100%;
        opacity: 0; /* اختفاء عند النهاية */
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}


/* =========================================
   6. إظهار الأيقونة في المنتصف (أعلى النص)
========================================= */
.s-block--banners .banner-entry::before {
    display: block !important;
    content: "" !important;
    width: 150px !important; /* تكبير بسيط للأيقونة */
    height: 150px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    margin-bottom: 15px !important;
    visibility: visible !important;
    z-index: 5 !important; /* تحت اللمعة */
}

/* ربط صور الأيقونات بدقة */
.s-block--banners .banner-entry:nth-child(1)::before { background-image: url("https://i.ibb.co/S47Zq0hP/2.png") !important; }
.s-block--banners .banner-entry:nth-child(2)::before { background-image: url("https://i.ibb.co/ynjGrCL6/3.png") !important; }
.s-block--banners .banner-entry:nth-child(3)::before { background-image: url("https://i.ibb.co/qYSBC0Tc/1.png") !important; }
.s-block--banners .banner-entry:nth-child(4)::before { background-image: url("https://i.ibb.co/XrHsgkVg/4.png") !important; }


/* =========================================
   7. إنشاء النصوص الجديدة بدقة في المنتصف
========================================= */
.s-block--banners .banner-entry article::before {
    display: block !important;
    color: #fff !important; /* نص أسود */
    font-size: 14px !important; /* حجم العنوان */
    font-weight: bold !important;
    white-space: pre-wrap !important;
    line-height: 1.6 !important;
    visibility: visible !important;
    margin-top: auto;
    z-index: 5 !important; /* تحت اللمعة */
}

/* حقن الكلمات الجديدة بدقة */
.s-block--banners .banner-entry:nth-child(1) article::before { content: "توصيل سريع \A نوفر شحن مجاني فوق 200 ريال" !important; }
.s-block--banners .banner-entry:nth-child(2) article::before { content: "دفع آمن \A خيارات دفع متعددة وموثوقة" !important; }
.s-block--banners .banner-entry:nth-child(3) article::before { content: "خدمة عملاء \A دعم متواصل على مدار الساعة" !important; }
.s-block--banners .banner-entry:nth-child(n) article::before {
    text-shadow: 0 0 0.5px #fff;
    font-weight: bold;
}
.s-block--banners .banner-entry:nth-child(4) article::before { content: "تغليف آمن \A تغليف فاخر وحماية للمنتجات" !important; }

/* إخفاء البنرات الزائدة */
.s-block--banners .banner-entry:nth-child(n+5) { display: none !important; }