body#app.index {
    background: #0A0A0A; /* خلفية بيضاء لصفحة الهوم */
}


.s-product-card-entry {
    background-color: #171717;
}
/* ==============================
   3- إعدادات اللازي لود (Lazy Loading)
============================== */
.lazy__bg.lazy.entered.loaded {
    background-size: contain;      /* ملاءمة الخلفية بدون قص */
    background-repeat: no-repeat;  /* منع التكرار */
}
#grid > div:nth-child(2) {
    display: none;
}

/* ==============================
   4- إعدادات الصور والبنرات
============================== */
a.banner-entry.square-photos {
    background: transparent; /* خلفية شفافة */
}

.banner-entry {
    transition:
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),       /* حركة تكبير/تصغير */
        background-size 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* انتقال حجم الخلفية */
        background-position 0.6s ease;                             /* انتقال موضع الخلفية */
}

.banner-entry:hover {
    transform: scale(1.05) translateY(-10px); /* تكبير وتحريك لأعلى عند الهوفر */
}

img {
    background: transparent !important; /* إزالة خلفية الصور */
    border-radius: 0;                   /* إزالة الزوايا الدائرية */
}


.index section.s-block--fixed-banner > .container{
    max-width: 100%; /* تمديد الكونتينر بعرض الصفحة */
    padding: 0;      /* إزالة الهوامش الداخلية */
}

section.s-block.s-block--fixed-banner.wide-placeholder:first-of-type {
    margin-top: 0;
}

.two-row .banner-entry:first-child {
    grid-column: span 1 / span 1; /* امتداد عمود واحد */
    grid-row: span 1 / span 2;    /* امتداد صفين */
}

.s-block--banners .grid.two-row {
    grid-template-columns: repeat(5, 1fr); /* الأول = 5 */
}
.s-block--banners ~ .s-block--banners .grid.two-row {
    grid-template-columns: repeat(4, 1fr); /* اللي بعده = 4 */
}

/* ميديا كويري للشاشات الصغيرة */
@media (max-width: 768px) {
    .s-block--banners .grid.two-row {
        grid-template-columns: repeat(2, 1fr) !important; /* عمودين للشاشات الصغيرة */
        gap: 1rem;
    }
}
/* ميديا كويري للشاشات الصغيرة */
@media (max-width: 768px) {
    .s-block--banners .grid.one-row {
        grid-template-columns: repeat(2, 1fr); /* عمودين للشاشات الصغيرة */
        gap: 1rem;
    }
}
.s-block__title h2 {
    color: #fff;             /* لون النص */
}


.s-slider-block__title h2 {
color: #fff;   
}

section.s-block.s-block--banners.container .s-block__title .right-side h2 {
color: #fff;   
}

/* ==============================
   8- المنتجات (Products)
============================== */


.s-product-card-entry:hover,
custom-salla-product-card.s-product-card-entry:hover {
    transform: scale(0.97); /* تصغير بسيط عند الهوفر */
    box-shadow: none;       /* إلغاء الظل */
}

.s-product-card-price {
    color: #EB1C1C;       /* لون السعر */
    text-align: center;   /* توسيط السعر */
     font-size: 18px;     /* حجم النص */
    font-weight: bold;   /* نص سميك */
}

.s-product-card-content-sub {
    text-align: center;
    display: inline-block;
}

.s-product-card-content-title a {
    font-size: 18px;     /* حجم النص */
    font-weight: bold;   /* نص سميك */
    text-align: center;
    display: block;
  color: white;
}

/* ميل للصورة كلها لليمين وقت الهوفر */
.s-product-card-image img {
  transition: transform 0.4s ease;
}



.s-product-card-sale-price h4 {
    font-size: 1.3rem;
}

.s-product-card-sale-price span {
    font-size: .9rem;
    color: #ffffff !important;
}

/* ==============================
   9- الأزرار (Buttons)
============================== */
.s-button-btn.s-button-primary-outline {
    background-color: #EB1C1C; /* لون الخلفية */
    color: white;             /* لون النص */
}

/* ===== سكشن استكشف خدماتنا (5 بانرات) - عرض كامل ===== */
[data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    background-image: url("https://ia601002.us.archive.org/4/items/frame-30-18/Frame%2030%20%2818%29.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 50px 20px !important;
    margin-bottom: 30px !important;
    border-radius: 0;
  margin-top: 0;
}

/* المحتوى في النص بعرض محدود */
[data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) .s-block__title,
[data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) .grid.two-row {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* العنوان */
[data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) .s-block__title {
    justify-content: center;
    text-align: center;
}

[data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) .s-block__title .right-side {
    width: 100%;
    text-align: center;
    float: none;
}

[data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) .s-block__title h2 {
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    color: #fff;
    margin: 0 auto 25px;
}

/* الشبكة: 5 أعمدة */
[data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) .grid.two-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* الموبايل */
@media (max-width: 768px) {
    [data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) {
        padding: 30px 15px !important;
    }
    [data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) .s-block__title h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    [data-testid="store-home-square-photos"]:has(.grid.two-row > a:nth-child(5)) .grid.two-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* منع السكرول الأفقي */
body {
    overflow-x: hidden;
}

/* ارتفاع البانرات في سكشن one-row فقط */
[data-testid="store-home-square-photos"] .grid.one-row .banner-entry {
    height: 370px;
}

@media (max-width: 768px) {
    [data-testid="store-home-square-photos"] .grid.one-row .banner-entry {
        height: 200px;
    }
}

.s-block__title {
    justify-content: center;
}

.s-block__title h2 {
    font-size: 1.8rem;
}

.s-reviews-testimonial {
    background-color: #171717;
}

p.text-sm.leading-6.text-gray-700 {
    color: white;
}

.s-reviews-header-wrapper {
    justify-content: center;
}

.s-reviews-header-wrapper {
    display: flex;
    justify-content: center;
}
/* ==============================
   10- الفوتر (Footer)
============================== */
.store-footer__inner {
    background-color: #7B1313; /* خلفية الفوتر */
}

.store-footer a.flex h3 {
    font-size: 0;                                      /* إخفاء النص */
    background-image: url(https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/qQlQBK/ejuw5gwUrlmK2QBGrRHMLZdHCEiH2q2juegcrnQi.png); /* شعار */
    background-size: contain;                          /* ملاءمة الحجم */
    background-repeat: no-repeat;                      /* منع التكرار */
    background-position: center;                       /* توسيط */
    display: block;
    width: 200px;
    height: 100px;
}

.store-footer {
    background-color: #791313;
}

.copyright-text p {
    color: rgb(255 255 255);
}

h1.s-reviews-header {
    color: white;
  font-size: 1.8rem;
}

[data-testid="store-home-square-photos"]:has(.grid.two-row > a[href=""]) .banner-entry {
    pointer-events: none;
    cursor: default;
}

/* ===== توسيط الفوتر - موبايل فقط ===== */
@media (max-width: 768px) {
    .store-footer .store-footer__inner .container {
        text-align: center;
    }

    /* العناوين */
    .store-footer h3 {
        text-align: center;
    }

    /* اللوجو / اسم المتجر */
    .store-footer .store-footer__inner a.flex {
        justify-content: center;
    }

    /* نص الوصف */
    .store-footer .max-w-sm {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* أيقونات السوشيال */
    .store-footer .s-social-list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* شارة العمل الحر */
    .store-footer .flex.gap-4 {
        justify-content: center;
    }

    .store-footer .s-trust-badges-wrapper {
        justify-content: center;
    }

    /* روابط القائمة */
    .store-footer .s-menu-footer-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* بيانات التواصل */
    .store-footer .s-contacts-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .store-footer .s-contacts-item {
        justify-content: center;
    }

    .store-footer .s-contacts-title {
        text-align: center;
    }

    /* أيقونات التطبيقات */
    .store-footer salla-apps-icons {
        display: flex;
        justify-content: center;
    }

    /* شريط الحقوق والدفع */
    .store-footer .s-payments-list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .store-footer .copyright-text {
        display: block;
        text-align: center;
        width: 100%;
    }
}