body {
    background: #FFFDFB;
}

.store-header {
    position: relative;
    z-index: 999 !important;
    background: #fff;
    opacity: 1;
    transition: opacity 0.3s;
}

.store-header:not(.rb-ready) {
    opacity: 0;
    pointer-events: none;
}

.top-navbar,
.header-top {
    display: none !important;
}

/* =========================================
   2. Layout Grid
   ========================================= */
.rb-top-bar {
    background: #fff;
    /* padding: 10px 0; */
    /* border-bottom: 1px solid #f4f4f4; */
    position: relative;
    /* مهم للترتيب */
}

.rb-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

/* --- Right Column (Contacts + Mobile Menu Placeholder) --- */
.rb-col.right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rb-col.right salla-contacts {
    display: flex;
}

.rb-col.right a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rb-col.right a:hover {
    color: #d4a574;
}

.rb-icon {
    color: #FFCE35;
    display: flex;
}

.rb-col.center {
    display: flex;
    justify-content: center;
}

.rb-col.center img {
    max-height: 70px;
    width: auto;
}

.rb-col.left {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-left: 2rem;
}

salla-cart-summary {
    margin-right: 0 !important;
}



.rb-btn-icon:hover,
salla-cart-summary:hover,
.mburger:hover {
    border-color: #d4a574;
    color: #d4a574;
}

.rb-btn-icon svg,
.rb-btn-icon i,
salla-cart-summary i,
.mburger i {
    font-size: 20px;
}

/* Cart Badge */
.s-cart-summary__count {
    background: #d00 !important;
    color: #fff !important;
    top: -5px !important;
    right: -5px !important;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 11px;
}

/* --- Menu Bar (Bottom) --- */
/* .rb-bottom-bar {
    border-bottom: 1px solid #eee;
    background: #fff;
} */



/* --- Search Modal --- */
.rb-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.rb-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    z-index: 9999;
    transform: translateY(-100%);
    transition: 0.3s;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.rb-search-popup.active,
.rb-search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rb-search-wrap {
    flex: 1;
    max-width: 600px;
}

.rb-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}


@media (min-width: 992px) {

    .mburger {
        display: none !important;
    }
}


@media (max-width: 991px) {

    .rb-bottom-bar {
        display: none !important;
    }

    .rb-col.right salla-contacts {
        display: none !important;
    }

    .mburger {
        display: flex !important;
    }

    .rb-col.center img {
        max-height: 50px;
    }

    .rb-grid {
        gap: 5px;
    }

    salla-cart-summary {
        width: 36px;
        border: none;
    }
}

.btn--close {
    display: block;
}

@media (min-width: 1024px) {
    .btn--close {
        display: none;
    }
}

@media (min-width: 1024px) {
    .main-menu {
        justify-content: center;
    }
}

salla-slider.photos-slider .swiper {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0 !important;
}

salla-slider.photos-slider .swiper-slide {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: 0;
    padding: 0;

    img {
        border-radius: 0;

    }
}

.s-block.s-block--photos-slider {
    margin-top: 0;

    .s-slider-block__title-nav {
        display: none;
    }
}

.s-block--hero-slider .swiper-slide .overlay-bg::after {
    display: none !important;
}

#main-links-1 {
    .swiper-wrapper {
        padding-bottom: 2rem;


    }

    .swiper-slide {
        position: relative;

        i {
            font-size: 0;
            background-size: contain !important;
            aspect-ratio: 1;
            width: 175px;

            @media (max-width: 767px) {
                width: 125px;
            }

        }

        &:first-child i {
            background: url('https://cdn.files.salla.network/homepage/936080975/bc2e34c5-3e37-4470-8950-ce8328f6100e.webp');

        }

        &:nth-child(2) {
            h2 {
                font-size: 14px;
            }

            i {

                background: url('https://cdn.files.salla.network/homepage/936080975/f2e07d42-fc54-4f0a-98a6-7815b8a375c0.webp');
            }
        }

        &:nth-child(3) i {
            background: url('https://cdn.files.salla.network/homepage/936080975/c7ed8314-6a01-498e-b5c2-f24588c35c3b.webp');

        }

        &:nth-child(4) i {
            background: url('https://cdn.files.salla.network/homepage/936080975/ffde0699-50ec-4a64-8fb7-be10def4b73b.webp');

        }

        &:nth-child(5) i {
            background: url('https://cdn.files.salla.network/homepage/936080975/fe0487e8-edbe-4021-a3f7-99a1e33d5efd.webp');

        }

        &:nth-child(6) i {
            background: url('https://cdn.files.salla.network/homepage/936080975/38ba0bd5-bf7a-4a27-95c1-a957b732202c.webp');

        }

        &:nth-child(7) i {
            background: url('https://cdn.files.salla.network/homepage/936080975/447021ec-810f-4bd9-aa91-442700de3f5b.webp');


        }
    }
}

.slide--cat-entry {
    background: #fff;
    border-radius: 135px 135px 10px 10px;
    box-shadow: 0px 4px 4px rgba(164, 110, 52, 0.1);
    height: auto;
    transition: 0.3s;

    h2 {
        font-weight: 500;
        font-size: 18px;
        color: #000000;
        position: relative;
        width: 100%;
        display: block;

        @media (max-width:600px) {
            font-size: 16px;
            white-space: nowrap;

        }

        &:after {
            content: 'تسوقي الآن';
            background: rgba(255, 206, 53, 0.5);
            font-weight: 700;
            font-size: 17px;
            color: #000000;
            padding: 15px;
            border-radius: 15px;
            margin-top: 25px;
            display: block;
            width: 100%;
            transition: 0.3s;

            @media (max-width:600px) {
                font-size: 16px;
            }
        }
    }

    &:hover {
        border: 1px solid #a46e34;
        box-shadow: 0px 4px 4px rgba(164, 110, 52, 0.25);

        h2::after {
            background: #ffce35;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
        }
    }
}

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

    .s-slider-block__title-right {
        padding-left: 0;
    }

    h2 {
        font-weight: 700;
        font-size: 36px;
        color: #000;
        padding-left: 0;

        @media (max-width: 767px) {
            font-size: 20px;
        }
    }
}

.container.rb-title-container {
    margin-top: 4rem;
}

.s-products-slider-slider,
.container.rb-title-container {
    .swiper-wrapper {
        padding-bottom: 3rem;
    }

    .s-slider-block__title {
        justify-content: space-between;
    }

    .s-slider-block__title-right {
        width: 100%;
        text-align: center;
        margin-left: -170px;
        pointer-events: none;
    }

    .s-slider-block__title-left {
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .s-slider-block__title {
        margin-bottom: 3rem;
    }
}

/* --- Rose Berry Product Card v11 Styles --- */

.s-product-card-content-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
}

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

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

.rb-wishlist-moved {
    border: 0;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: none;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    color: #B68B5D;
    transition: 0.3s;
}

.rb-wishlist-moved:hover {
    color: #FFCE35;
}

.rb-wishlist-moved.is-added,
.rb-wishlist-moved[data-selected="true"] {
    color: #FFCE35 !important;
}

.rb-wishlist-moved i {
    font-size: 20px !important;
    line-height: 1 !important;
}

.s-button-primary-outline {
    color: white;
    background: #A46E34;
    border-radius: 5px;
    align-items: center;
}

.s-product-card-image {
    background-color: transparent;
}

.s-product-card-entry {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
    transition: 0.3s;

    &:hover {
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        transform: translateY(3px)
    }
}

.s-product-card-sale-price * {
    font-size: 17px !important;
}

.rb-about-section {
    margin-top: 40px;
}

.rb-sec-title {
    text-align: center;
    font-weight: 700;
    font-size: 36px;
    color: #000;
    margin-bottom: 3rem;
}

.rb-about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.rb-about-text {
    flex: 1;
    text-align: right;
}

.rb-about-text p {
    font-size: 20px;
    line-height: 1.8;
    color: #000;
    font-weight: 500;
}

.rb-about-media {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.rb-about-media img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    object-fit: cover;
    max-height: 400px;
}

/* Responsive (للموبايل) */
@media (max-width: 768px) {
    .rb-about-content {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .rb-about-text {
        text-align: center;
    }

    .rb-about-text p {
        margin: 0 auto;
    }

    .rb-about-media {
        justify-content: center;
        width: 100%;
    }

    .rb-sec-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

.rb-section-wrapper {
    position: relative;

    &:before {
        content: '';
        background: #FCF7F3 url('https://iili.io/fEfN68l.png') right 0 no-repeat;
        width: 100%;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        display: block;
        background-size: contain !important;
        pointer-events: none;
        z-index: -99;
    }

    &:has(#best-offers-6-slider) {
        &:before {
            background: #FCF7F3 url('https://iili.io/f15qda2.png') right 0 no-repeat;
        }
    }

    section {
        padding-top: 2rem;
        overflow: visible;
    }

    @media (min-width:992px) {
        .swiper {
            width: calc(100% - 24rem);
            margin-right: 24rem;
        }
    }

}

/* --- Slider Force Configuration (5 Items on Desktop) --- */

/* استهداف السلايدر المحدد بالـ ID */
.rb-section-wrapper .swiper-slide {
    /* إلغاء أي مارجن يضعه السلايدر عشان نتحكم احنا في المسافات */
    margin-right: 0 !important;
    margin-left: 0 !important;

    /* إضافة مسافة داخلية (Padding) عشان الكروت ما تلزق في بعض */
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
}

/* 1. الموبايل (أقل من 768px) -> منتجين (2) */
@media (max-width: 767px) {
    .rb-section-wrapper .swiper-slide {
        width: unset;
    }
}

/* 2. التابلت (بين 768px و 1200px) -> ثلاث منتجات (3) */
@media (min-width: 768px) {
    .rb-section-wrapper .swiper-slide {
        width: 50% !important;
    }
}

/* 3. الديسك توب (أكبر من 1200px) -> خمس منتجات (5) */
@media (min-width: 1200px) {
    .rb-section-wrapper .swiper-slide {
        width: 33.333% !important;
    }
}


.rb-section-wrapper {
    position: relative;
    width: 100%;
    margin-top: 8rem;


}

.is-wrapped .s-slider-block__title {
    position: absolute !important;
    top: -100px;
    left: 0;
    right: 0;
    width: 100%;

    max-width: 1280px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;

    z-index: 5;
    background: transparent !important;
}

@media (max-width: 768px) {
    .rb-section-wrapper {
        margin-top: 60px;
    }

    .is-wrapped .s-slider-block__title {
        top: -80px;
    }
}

.s-block--logos-slider {
    background: none !important;

    .grid.grid-cols-2.md\:grid-cols-4.grid-flow-row.gap-4.lg\:gap-8 {
        display: flex;
        flex-wrap: wrap;

        a {
            flex: 1 0 15%;
            height: 140px;
            background: #ffffff;
            border-radius: 10px;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.16);

            @media (max-width: 768px) {
                flex: 1 0 25%;
                height: auto;
            }

            &:last-child {
                order: -4;
            }

            &:nth-child(7) {
                order: -2;
            }

            &:nth-child(8) {
                order: -1;
            }

            &:nth-child(9) {
                order: -2;
            }
        }
    }

    .right-side {
        width: 100%;
        text-align: center;
        padding-left: 0;
        margin-left: -100px;

        h2 {
            font-weight: 700;
            font-size: 36px;
            color: #000;
            padding-left: 0;

            @media (max-width:600px) {
                font-size: 20px;
            }
        }
    }

    .s-block__display-all {
        flex-grow: 1;
        flex-shrink: 0;
    }
}

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

    .s-reviews-header {
        font-size: 36px;
        font-weight: 700;

        @media (max-width:600px) {
            font-size: 20px;
        }
    }
}

/* --- تعديل جريد المميزات لـ 4 عناصر --- */

/* على الديسك توب (شاشات كبيرة) */
@media (min-width: 1024px) {
    .rb-features-grid-4 {
        /* إجبار الجريد إنه يكون 4 أعمدة */
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .rb-features-grid-4 {
        /* إجبار الجريد إنه يكون 4 أعمدة */
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* على الموبايل والتابلت هنسيبه زي ما هو (عمودين) عشان الشكل يكون متناسق 2 فوق و 2 تحت */

/* تنسيق بسيط للأيقونة الجديدة عشان تكون شبه الباقيين */
.rb-extra-feature .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A46E34;
    /* لون أيقونات القالب */
    margin-bottom: 1rem;
}

.rb-extra-feature .feature-icon svg {
    width: 40px;
    height: 40px;
}

.s-block--features__item:first-child {
    grid-column: unset;
}

.s-reviews-testimonial {
    background: rgba(164, 110, 52, 0.07999999821186066);
    border-radius: 10px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.16);
}

.swiper-slide-active {
    .s-reviews-testimonial {
        background: rgba(164, 110, 52, 0.1599999964237213);
        border-radius: 10px;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.16);
    }
}

.s-reviews-testimonial__icon svg {
    fill: #FFCE33;
}

.footer-is-light .store-footer .store-footer__inner {

    background-color: #A46E34;
    color: white;
}

.s-social-link a {
    background: white;

    path {
        fill: #a46e34;
    }
}

.s-contacts-list.s-contacts-list-vertical {
    div:nth-child(2) {
        display: none;
    }
}