/* Add custom CSS styles below */ 
/* إزالة المسافة بين جميع مكونات الصفحة */

.s-block {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.s-block + .s-block {
    margin-top: 0 !important;
}

.s-block:not(:last-child){
    margin-bottom:0 !important;
}
/*header */
.flex.items-center.justify-between.pt-0.lg\:pt-4 .flex.justify-start.lg\:justify-center.items-center.flex-1.lg\:flex-none.-order-1.lg\:order-none {
    order: 1 !important;
    flex: 1 !important;
    justify-content: flex-start !important;
}
.flex.items-center.justify-between.pt-0.lg\:pt-4 .flex.items-center:nth-child(3) {
      order: 3 !important;
}
.flex.items-center.justify-between.pt-0.lg\:pt-4 .flex.items-center.gap-y-4:nth-child(1) {
  order: 2 !important;
}
salla-add-product-button button.s-button-element.s-button-btn {
    border-color: transparent !important;
    border-bottom: 1px solid var(--color-primary) !important;
    width: 69%;
    margin: auto !important;
}
salla-add-product-button > div.w-full {
    margin: auto;
    display: flex;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    /* اليمين: هامبرغر + بحث */
    #mainnav .flex.items-center.gap-y-4 {
        order: -1 !important;
        flex: 1 !important;
        justify-content: flex-start !important;
    }

    /* المنتصف: اللوجو */
    #mainnav .flex.justify-start.lg\:justify-center.items-center.flex-1.lg\:flex-none.-order-1.lg\:order-none {
        order: 2 !important;
        flex: 0 0 auto !important;
        justify-content: center !important;
    }

    /* اليسار: قلب + مستخدم + سلة */
    #mainnav .flex.items-center.justify-between.pt-0.lg\:pt-4 > .flex.items-center:last-child {
        order: 3 !important;
        flex: 1 !important;
        justify-content: flex-end !important;
    }

    /* إخفاء القائمة */
    #mainnav custom-main-menu .main-menu > li.root-level {
        display: none !important;
    }

    #mainnav custom-main-menu .main-menu > li.lg\:hidden {
        display: block !important;
    }
}
#cart-summary-panel,
.side-panel {
    z-index: 99999 !important;
}

.flex.flex-row.justify-between.gap-2.items-center.mb-4{
    position: relative;
    top: 20px;
}
.s-features-head{
    position: relative;
    top: 10px;
   margin-top: 10px !important;
}
salla-add-product-button button.s-button-element.s-button-btn {
    border: none !important;
    border-bottom: 1px solid var(--color-primary) !important;

    display: inline-flex !important;
    width: fit-content !important;
    min-width: auto !important;

    margin: auto !important;
    padding: 0 12px 4px !important;

    justify-content: center;
    align-items: center;
}

salla-add-product-button > div.w-full {
    display: flex;
    justify-content: center;
}
/* منصة الأعمال */
.sbc-img{
    width: 55px !important;
    height: 55px !important;
    flex: 0 0 55px !important;

    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sbc-img img{
    width: 55px !important;
    height: 55px !important;
    object-fit: contain !important;
    display: block;
}

/* النص بجانب الأيقونة */
.sbc-content{
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
}

.sbc-content .label{
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #5D2A18 !important;
}

.sbc-content .number{
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #5D2A18 !important;
}

/* الصف بالكامل */
.sbc-wrapper{
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}
#mainnav .flex.items-center.justify-between.pt-0.lg\:pt-4{
    padding-top: 0 !important;
}

/* صندوق المحتوى بالكامل */
.home-slider__content > div:first-child{
    width: 380px !important;
    max-width: 380px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;   /* يجعل كل العناصر تبدأ من اليمين */

    text-align: right !important;
}

/* ==========================
   Desktop
========================== */
@media (min-width: 769px) {

    .home-slider__content {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-end !important;
        padding-right: 5% !important;
          padding-bottom: 40px !important;

    }

    .home-slider__content > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        text-align: right !important;
    }

    .home-slider__content h1,
    .home-slider__content h2,
    .home-slider__content p {
        width: 100% !important;
        text-align: right !important;
    }

    /* الزر */
    .home-slider__content .s-button-element,
    .home-slider__content .btn,
    .home-slider__content a {
        align-self: flex-end !important;
        margin-left: auto !important;
        margin-right: 0 !important;
       font-size: 12px !important; /* عدل الحجم حسب رغبتك */
    }
}

/* ==========================
   Mobile
========================== */
@media (max-width: 768px) {

    .home-slider__content {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
  padding-right: 0 !important;

        /* كلما قللت الرقم نزل المحتوى */
        padding-bottom: 10px !important;
    }

    .home-slider__content > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .home-slider__content h1,
    .home-slider__content h2,
    .home-slider__content p {
        width: 100% !important;
        text-align: center !important;
    }

    /* الزر */
    .home-slider__content .s-button-element,
    .home-slider__content .btn,
    .home-slider__content a {
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
       font-size: 10px !important; /* عدل الحجم حسب رغبتك */
    }
}

.s-block--about-us img {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  .s-block--about-us img {
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
  }
}
/* الكمبيوتر */
@media (min-width: 769px) {
    .s-slider-block__title-right,
    .s-slider-block__title-left {
        position: relative !important;
        top: 30px !important;
    }
}

/* الجوال */
@media (max-width: 768px) {
    .s-slider-block__title-right,
    .s-slider-block__title-left {
        position: relative !important;
        top: 25px !important;
    }
}

.s-product-card-content-footer{
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
}

.s-product-card-content-footer salla-add-product-button{
    width:auto !important;
}