/* إزالة الفراغ أعلى المحتوى */
#main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* أول بلوك */
#main-content > .s-block--bundle-hero-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* لو سلة تضيف مسافة تلقائية لأول سكشن */
.s-block:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* الهيدر يكون فوق الصورة */
header,
#mainnav{
    position: relative !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
}

/* الصفحة الرئيسية فقط */
body.home header,
body.home #mainnav{
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
}
/* جعل الهيدر شفاف فوق البانر */
#mainnav{
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 9999;
}

/* توسيط الشعار */
#mainnav .flex.items-stretch.justify-between.relative{
    position: relative;
}

#mainnav .navbar-brand{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* إزالة دفعات اليمين واليسار */
#mainnav .flex.items-center,
#mainnav .flex.items-center.justify-end{
    flex: 1;
}
#mainnav i,
#mainnav svg {
    color: #111 !important;
    fill: #111 !important;
}
body.home #mainnav i,
body.home #mainnav svg,
body.index #mainnav i,
body.index #mainnav svg,
.home #mainnav i,
.home #mainnav svg {
    color: #fff !important;
    fill: #fff !important;
}

/* إزالة الفراغ أعلى البانر */
#main-content{
    margin-top: -84px;
    padding-top: 84px;
}
/* إخفاء شريط البحث العلوي */
.top-navbar .header-search{
    display:none !important;
}

/* زر البحث الجديد */
.header-search-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    cursor:pointer;
    margin-inline-end:12px;
    color:#fff;
}

.header-search-icon svg{
    width:24px;
    height:24px;
    fill:currentColor;
}

/* نافذة البحث المنبثقة */
.search-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    align-items:flex-start;
    justify-content:center;
    padding-top:120px;
    z-index:99999;
}

.search-popup.active{
    display:flex;
}

.search-box{
    background:#fff;
    width:min(700px,90%);
    padding:20px;
    border-radius:14px;
}
.top-navbar{
    display: none !important;
}
/* توسيط قسم التصنيفات */
.swiper-wrapper.s-slider-swiper-wrapper{
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 35px;
    width: 100%;
    margin: 0 auto;
}

/* كل عنصر */
.swiper-slide.slide--one-sixth{
    width: auto !important;
    flex-shrink: 0;
    background: transparent !important;
}

/* رابط التصنيف */
.slide--cat-entry{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0;
}

/* الصورة دائرية */
.slide--cat-entry img{
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin-bottom: 12px;
    transition: .3s;
    border: 0 !important;
    box-shadow: none !important;
}

/* حركة بسيطة */
.slide--cat-entry:hover img{
    transform: scale(1.08);
}

/* النص */
.slide--cat-entry h2{
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}
/* تصنيفات فقط - للجوال */
@media (max-width:768px){

    .swiper-wrapper.s-slider-swiper-wrapper:has(.slide--cat-entry){
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
    }

    .swiper-wrapper.s-slider-swiper-wrapper:has(.slide--cat-entry)
    .swiper-slide.slide--one-sixth{
        width: calc(25% - 11px) !important;
        display: flex;
        justify-content: center;
    }

    .slide--cat-entry img{
        width: 58px !important;
        height: 58px !important;
    }

    .slide--cat-entry h2{
        font-size: 11px;
        margin-top: 6px;
        line-height: 1.4;
    }
}
.site-splash{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35); /* شفاف */
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    transition: 0.4s;
}

.site-splash.hide{
    opacity: 0;
    pointer-events: none;
}

.splash-content img{
    width: 140px;
    height: auto;
    animation: pop 0.6s ease;
}

@keyframes pop{
    from{ transform: scale(0.7); opacity: 0; }
    to{ transform: scale(1); opacity: 1; }
}
#mainnav .flex.items-center.justify-end{
    gap: 10px;
    align-items: center;
}

/* تصغير أيقونة البحث */
.header-search-icon{
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-search-icon svg{
    width: 15px;
    height: 15px;
}

/* زر المستخدم */
.s-user-menu-login-btn svg{
    width: 15px;
    height: 15px;
}

/* السلة */
.s-cart-summary-wrapper{
    transform: scale(0.85);
    transform-origin: center;
}

/* منع التزاحم */
.s-cart-summary-wrapper,
.s-user-menu-login-btn,
.header-search-icon{
    margin: 0 !important;
}
#mainnav .flex.items-center.justify-end{
    gap: 2px !important; /* تقليل المسافة بين العناصر */
}

/* إلغاء أي مسافات إضافية */
#mainnav .flex.items-center.justify-end > *{
    margin: 0 !important;
}

/* تقليل المسافة داخل السلة */
.s-cart-summary-wrapper{
    margin: 0 !important;
    transform: scale(0.8);
    transform-origin: center;
}

/* زر المستخدم */
.s-user-menu-login-btn{
    margin: 0 !important;
}

/* أيقونة البحث */
.header-search-icon{
    margin: 0 !important;
    width: 32px;
    height: 32px;
}
 /* إزالة الشكل من أيقونة المستخدم */
.s-user-menu-login-btn{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* إزالة الشكل من أيقونة السلة */
.s-cart-summary-wrapper{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* إزالة أي دائرة داخل السلة نفسها */
.s-cart-summary-wrapper *{
    border: none !important;
    box-shadow: none !important;
}

/* تصغير الأيقونات وتوحيد الشكل */
.s-user-menu-login-btn svg,
.s-cart-summary-icon svg{
    width: 22px !important;
    height: 22px !important;
}
/* الهيدر الافتراضي (كل الصفحات) */
#mainnav{
    position: relative !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    z-index: 1000;
}

/* الرئيسية فقط */
body.home #mainnav,
body.index #mainnav,
.home #mainnav{
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    box-shadow: none !important;
}
@media (max-width: 768px){

    /* إخفاء أيقونة الهيدر فقط */
    .header-search-icon{
        display: none !important;
    }

    /* عنصر البحث داخل القائمة */
    .mobile-search-item{
        list-style: none;
        padding: 10px 15px;
    }

    .mobile-search-box{
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 10px;
    }

    .mobile-search-box input{
        width: 100%;
        border: none;
        outline: none;
        font-size: 14px;
        background: transparent;
    }
}
/* =========================
   إصلاح قائمة المستخدم (Dropdown)
========================= */

/* نمنع تأثير اللون الأبيض عليها */
#mainnav .s-user-menu-dropdown a,
#mainnav .s-user-menu-dropdown span,
#mainnav .s-user-menu-dropdown p,
#mainnav .s-user-menu-dropdown i,
#mainnav .s-user-menu-dropdown svg{
    color: #111 !important;
    fill: #111 !important;
}

/* خلفية القائمة */
.s-user-menu-dropdown{
    background: #fff !important;
    color: #111 !important;
}

/* الهيدر الداخلي */
.s-user-menu-dropdown-header{
    background: #f9f9f9 !important;
}

/* الأيقونات */
.s-user-menu-dropdown-item-prefix svg{
    fill: #111 !important;
}

/* تحسين الهوفر */
.s-user-menu-dropdown-item:hover{
    background: #f2f2f2 !important;
}
/* تصغير صورة المستخدم وجعلها دائرية */
.s-user-menu-trigger-avatar,
.s-user-menu-avatar-wrap img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

/* تحسين الحاوية نفسها */
.s-user-menu-avatar-wrap {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* منع تكبير الهيدر */
.s-user-menu-trigger {
    gap: 8px;
    align-items: center;
}
/* تغيير الشعار في كل الصفحات ما عدا الرئيسية */
body:not(.home):not(.index) header .navbar-brand img{
    content: url("https://i.ibb.co/JRTxxx5P/83.png") !important;
}
/* =========================================
   1. تصميم الانحناء العلوي والخلفية
   ========================================= */
.store-footer {
    position: relative;
    background-color: #000;
    padding-top: 90px;
    margin-top: -50px;
    clip-path: ellipse(160% 100% at 50% 100%);
    overflow: hidden;
}

@media (max-width: 768px) {
    .store-footer {
        padding-top: 70px;
        clip-path: ellipse(220% 100% at 50% 100%);
    }
}

/* =========================================
   2. إعادة ترتيب الأعمدة (لأجهزة الكمبيوتر)
   ========================================= */
@media (min-width: 1024px) {
    .store-footer__inner .container.grid {
        display: grid !important;
        /* تقسيم الفوتر إلى 3 أعمدة متساوية تقريباً */
        grid-template-columns: 1fr 1.5fr 1fr !important;
        align-items: start;
        gap: 20px;
    }

    /* العمود الأيمن: الروابط المهمة */
    .store-footer__inner .container.grid > div:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 1;
        text-align: right;
    }

    /* العمود الأوسط: اسم المتجر، الوصف، والسجل التجاري */
    .store-footer__inner .container.grid > div:nth-child(1) {
        grid-column: 2 / 3;
        grid-row: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 !important;
    }
    /* توسيط السجل التجاري */
    .store-footer__inner .container.grid > div:nth-child(1) .flex.gap-4 {
        justify-content: center;
        width: 100%;
    }

    /* العمود الأيسر: الأيقونات / موثق للأعمال */
    .store-footer__inner .container.grid > salla-apps-icons,
    .store-footer__inner .container.grid > div:nth-child(4) {
        grid-column: 3 / 4;
        grid-row: 1;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
    }

    /* صف التواصل: يمتد بعرض الفوتر بالكامل تحت الأعمدة */
    .store-footer__inner .container.grid > div:nth-child(3) {
        grid-column: 1 / 4;
        grid-row: 2;
        width: 100%;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px dashed rgba(255, 255, 255, 0.2); /* الخط المتقطع */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   3. تصميم أزرار التواصل (الجوال والبريد)
   ========================================= */
/* إخفاء كلمة "تواصل معنا" */
.s-contacts-title {
    display: none !important;
}

/* تحويل القائمة العمودية إلى أفقية */
.s-contacts-list-vertical {
    flex-direction: row !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* تصميم الأزرار (إطار شفاف وزوايا دائرية) */
.s-contacts-item {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 8px 25px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    transition: all 0.3s ease;
    width: auto !important;
}

.s-contacts-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* إزالة الهوامش الافتراضية للنصوص داخل الأزرار */
.s-contacts-item span.unicode {
    margin: 0 !important;
}

/* =========================================
   4. ترتيب وتصميم أيقونات التواصل الاجتماعي
   ========================================= */
/* إخفاء الأيقونات العلوية لمنع التكرار */
.store-footer__inner .container.grid > div:nth-child(1) .hidden.lg\:block {
    display: none !important;
}

/* إظهار الأيقونات السفلية بشكل دائم وتوسيطها */
.contact-social {
    display: block !important;
    margin-top: 25px;
    width: 100%;
}

.contact-social .s-social-list {
    justify-content: center;
    gap: 15px;
}

/* تصميم الأيقونات كدوائر مفرغة */
.s-social-link a {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.s-social-link a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* =========================================
   5. تحسينات عامة (السجل التجاري والنصوص)
   ========================================= */
/* تجميل مربع السجل التجاري ليتناسق مع الأسود */
.s-trust-badges-wrapper {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 15px;
}

/* تنسيق العناوين */
.store-footer h3 {
    color: #fff !important;
    margin-bottom: 15px;
}
/* إخفاء النص الأصلي بالكامل */
.copyright-text p {
    font-size: 0 !important;
    visibility: hidden;
}

/* إضافة النص الجديد وتنسيقه */
.copyright-text p::after {
    content: "جميع الحقوق محفوظة لمتجر Smart Line 2026 ©";
    visibility: visible;
    font-size: 14px !important; /* يمكنك التحكم في حجم الخط من هنا */
    color: #9ca3af; /* لون رمادي متناسق مع تصميم سلة */
    display: block;
}

/* تحسين المظهر على الجوال */
@media (max-width: 768px) {
    .copyright-text p::after {
        font-size: 12px !important;
        text-align: center;
    }
}