.s-product-card-sale-price span {
    font-size: 0.975rem !important;
    line-height: 1rem !important;
    --tw-text-opacity: 2 !important;
}

html, body {
    overflow-x: hidden !important;
}

.mainnav-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden !important; /* أضف !important إذا كان هناك تعارض */

}

.bg-white {
    background: linear-gradient(to right, #f7f7fa 0%, #ffffff 25%, #ffffff 75%, #f7f7fa 100%);
}

.has-4-photos {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

#mainnav {
    overflow: hidden7;
}

.py-11 {
    padding-top: 0rem;
}

@media (min-width: 1024px) {
    .header-mainbar .sides-wrap {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

.page-header {
    margin-bottom: 0rem;
}

div.Recommendations_carouselContainer__4cJdQ .Recommendations_emblaContainer__nuEgc .Recommendations_emblaSlide__dnucM {
    transform: translateZ(0);
    flex: 0 0 calc(100% / var(--slider-per-group-recommendation) - 5px);
    min-width: 0;
    margin-inline-end: 5px; -webkit-margin-end: 5px;
    height: auto;
}

div.ProductBoxVertical_wrapper__xPj_f {
    overflow: hidden;
    padding: 4px;
    height: 100%;
    min-width: 0;
}

div.Nudges_nudgesContainer__vC72M {
    width: 100%;
    height: 16px;
    overflow: hidden;
    position: relative;
}

.Nudges_nudge__EdkXl {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.Nudges_nudgeIcon__NsoYR {
    width: 16px;
    height: 16px;
    margin-inline-end: 4px; }

.Nudges_nudgeText__cWC9q {
    font-size: 0.85rem;
}

@keyframes nudgeAnimationKeyframe-d7ae0cf2dffab9db-3 {
    0% {
        transform: translateY(0px);
    }

    16.666666666666664% {
        transform: translateY(0px);
    }

    33.33333333333333% {
        transform: translateY(-16px);
    }

    50% {
        transform: translateY(-16px);
    }

    66.66666666666666% {
        transform: translateY(-32px);
    }

    83.33333333333334% {
        transform: translateY(-32px);
    }

    100% {
        transform: translateY(-48px);
    }
}

div.Nudges_nudgesContainer__vC72M {
    width: 100%;
    height: var(--nudge-height);
    overflow: hidden;
}

div.Nudges_nudgesContainer__vC72M div.Nudges_nudgesWrapper__wxCO6 {
    display: flex;
    flex-direction: column;
    animation: var(--animation-name) linear infinite;
    animation-duration: var(--animation-duration);
}

div.Nudges_nudgesContainer__vC72M div.Nudges_nudge__EdkXl {
    width: 100%;
    height: 12px;
    position: relative;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
}

div.Nudges_nudgesContainer__vC72M div.Nudges_nudge__EdkXl img.Nudges_nudgeIcon__NsoYR {
    width: 16px;
    height: 16px;
}

div.Nudges_nudgesContainer__vC72M div.Nudges_nudge__EdkXl img.Nudges_nudgeIcon__NsoYR.Nudges_onWidget__XLY8G {
    width: 12px;
    height: 12px;
}

div.Nudges_nudgesContainer__vC72M div.Nudges_nudge__EdkXl div.Nudges_nudgeText__cWC9q {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

div.Nudges_nudgesContainer__vC72M div.Nudges_nudge__EdkXl div.Nudges_nudgeText__cWC9q.Nudges_onWidget__XLY8G {
    font-size: 12px;
}

div.Nudges_nudgesContainer__vC72M div.Nudges_nudge__EdkXl div.Nudges_nudgeText__cWC9q.Nudges_isPdp__uEFfk {
    font-size: 14px;
}

#mainnav > .bg-inherit {
    background: #F3F9FC !important;
    ; }

.s-block--categories .container {
    background: linear-gradient(to bottom, #eef0ff 0%, #ffffff 100%) !important;
}

.s-block--tabs-produtcs .container {
    background: #fff;
}

.s-block--fixed-banner .container {
    background: #fff;
}

.header-mainbar {
    background: #ffffff;
}

section.s-block.s-block--banners .container {
    background: #fff;
}

section.s-block.s-block--testimonials.s-block--full-bg.bg-gray-50 .container {
    background: #E1EDF4;
}

section.s-block.s-block--brands-grid .container {
    background: #fff;
}

.footer-is-light .store-footer {
    background-color: #F3F9FC !important;
    margin-top: 0;
    color: #000;
}

#app > div.app-inner.flex.flex-col.min-h-screen.relative > footer > div.store-footer__top.py-11.lg\:pt-22.space-y-8 > div.bg-gray-100.-mt-11 {
    margin-top: 0;
    display: none;
}

@media (max-width: 640px) {
    salla-slider[type]:not(.hydrated) > div > div, salla-slider[type]:not(.hydrated) .swiper > div > div > div, .carousel-slider .swiper-wrapper > div {
        /* padding-left: 0.325rem !important; */ /* padding-right: 0.325rem !important; */
    }
}

@media (max-width: 767px) {
    .s-block--tabs-produtcs .swiper-slide, #similar-slider .swiper-slide {
        width: calc(100% / 2) !important;
    }

    custom-salla-product-card.s-product-card-vertical.s-product-card-fit-height .s-product-card-image {
        height: 15rem !important;
        flex-basis: 15rem !important;
    }

    custom-salla-product-card.s-product-card-entry .s-product-card-content-main .s-product-card-content-title a {
        line-height: 1.2;
        min-height: 30px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-weight: 500;
        transition: color 0.3s ease;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .s-block--tabs-produtcs .swiper-slide, #similar-slider .swiper-slide {
        width: calc(100% / 4) !important;
    }

    custom-salla-product-card.s-product-card-vertical.s-product-card-fit-height .s-product-card-image {
        flex-basis: 12rem;
    }
}

@media (min-width: 1024px) {
    .s-block--tabs-produtcs .swiper-slide, #similar-slider .swiper-slide {
        width: calc(100% / 6) !important;
    }

    custom-salla-product-card.s-product-card-vertical.s-product-card-fit-height .s-product-card-image {
        flex-basis: 13rem;
    }
}

root {
    --color-primary: #f6c708 !important;
}

[dir="rtl"] custom-salla-product-card.s-product-card-vertical .s-product-card-wishlist-btn {
    position: absolute;
    top: -6.4rem;
    left: 0.1rem !important;
    right: auto !important;
    height: 32px !important;
    width: 32px !important;
    --tw-border-opacity: 1;
    border-color: rgba(156, 163, 175, var(--tw-border-opacity));
}

@media (max-width: 768px) {
    [dir="rtl"] custom-salla-product-card.s-product-card-vertical .s-product-card-wishlist-btn {
        top: 0.4rem;
    }
}

.s-block-tabs.s-block--tabs-produtcs {
    position: relative;
    padding: 0rem 0;
    overflow: hidden;
}

.s-block-tabs.s-block--tabs-produtcs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('https://cdn.salla.sa/form-builder/t8rXktR9ftzCz7S2snUuIRd9zBaHZH9aSwHYclls.png') no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
    opacity: 0.2;
    z-index: 1;
}

.hide-scroll-wrapper {
    overflow: auto;
    scrollbar-width: none;
}

.hide-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.tabs.hide-scroll .tab-trigger button {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    background-color: #fff;
    color: var(--color-primary);
}

.tabs.hide-scroll .tab-trigger button:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.tabs.hide-scroll .tab-trigger.is-active button {
    color: #fff;
}

.s-product-card-content > p {
    display: none;
}

.s-products-slider-card .s-product-card-content::after {
    background: url(https://cdn.salla.sa/form-builder/xsbeWV5zFEkzo4Prk0mIasHD76JP7TC91pOpNapK.jpg) no-repeat center;
    content: "";
    width: 100%;
    height: 30px;
    background-size: contain;
    display: block;
    left: 0;
    border-radius: 0 0 4px 4px;
    background-size: cover;
    display: block;
    position: relative;
    bottom: 0;
}

custom-salla-product-card.s-product-card-entry {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0.1rem;
    border: #fafafa;
    box-shadow: none;
    border: solid 1px #e0e0e0;
    overflow: hidden;
}

custom-salla-product-card.s-product-card-entry:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

custom-salla-product-card.s-product-card-entry .s-product-card-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: transparent !important;
}

custom-salla-product-card.s-product-card-entry .s-product-card-image img {
    display: block;
    transition: transform 0.5s ease;
}

custom-salla-product-card.s-product-card-vertical.s-product-card-fit-height .s-product-card-image {
    height: 10rem !important;
    flex-basis: 13rem !important;
    flex-grow: 0;
}

custom-salla-product-card.s-product-card-entry .s-product-card-image:hover img {
    transform: scale(1.1) rotate(1deg);
}

custom-salla-product-card.s-product-card-entry .s-product-card-promotion-title {
    position: absolute;
    top: 5px;
    left: auto !important;
    right: 1px !important;
    padding: 1px 3px;
    background: #ff443a;
    color: #fff;
    z-index: 2;
    text-transform: uppercase;


    top: 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    max-width: 75%;
    clip-path: polygon(100% 0, 95% 50%, 100% 100%, 0% 100%, 5% 50%, 0% 0%);
}

:is([dir="rtl"] custom-salla-product-card .s-product-card-promotion-title):before {
    border: none;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content {
    padding: 1px;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content-main .s-product-card-content-title a {
    text-decoration: none;
    color: #333;
    line-height: 1.2;
    min-height: 34px;
    font-size: 14px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.8rem;
    line-height: 1rem !important;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content-main .s-product-card-content-title a:hover {
    color: #ff5722;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content-sub {
    margin-top: 0px !important;
    ; font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.s-product-card-price {
    font-weight: 700;
    color: #000 !important;
    margin: 0;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content-sub .s-product-card-sale-price span {
    font-weight: 500;
    color: #bbb;
    text-decoration: line-through;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content-footer {
    text-align: center;
    margin-top: -3px !important;
    top: revert-layer;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content-footer salla-add-product-button button {
    background: #fbbf24;
    color: #000;
    border-radius: 6px;
    /* padding-left: 0px !important; */
    /* padding-right: 4px; */
    width: 97% !important;
    height: 34px !important;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content-footer salla-add-product-button button:hover {
    background: #fff;
    color: #333;
    border: solid #f6c708 1px;
}

custom-salla-product-card.s-product-card-entry .s-product-card-content-footer salla-button {
    transition: transform 0.3s ease;
}

#featured-products-style2-3 .swiper-pagination-bullet {
    background: #f7c708 !important;
    opacity: 1;
    width: 14px;
    height: 14px;
    margin: 0 5px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

#featured-products-style2-3 .swiper-pagination-bullet-active {
    background: #ff5722 !important;
    transform: scale(1.3);
}

@media (max-width: 576px) {
    #featured-products-style2-3 .tabs.hide-scroll .tab-trigger button {
        margin-right: 0.3rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 577px) and (max-width: 1023px) {
    #featured-products-style2-3 custom-salla-product-card.s-product-card-entry .s-product-card-content-footer salla-add-product-button button {
        font-size: 1rem;
    }
}

.hide-scroll-wrapper {
    text-align: right;
    direction: rtl;
    padding: 10px;
}

.tabs.hide-scroll {
    display: inline-block;
}

.tabs.hide-scroll salla-button {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.tabs.hide-scroll .s-button-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.s-block--tabs-produtcs .tabs, .s-block--tabs-produtcs .tab-trigger.is-active button {
    background: none !important;
    padding-right: 0 !important;
}

.s-button-text {
    overflow: initial !important;
}

[dir="rtl"] .s-slider-block__title-nav {
    margin-right: auto !important;
}

.s-block--tabs-produtcs .tabs {
    padding-bottom: 0.3rem;
}

[id^="section-"][id$="-slider"] > div.s-slider-block__title > div > div {
    pointer-events: auto;
    position: absolute !important;
    top: -60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.s-block--photos-slider .s-slider-wrapper {
    position: relative;
    overflow: hidden;
    /* border-radius: 12px; */
}

.s-block--photos-slider .s-slider-nav-arrow {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.s-block--photos-slider .s-slider-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.15);
}

.s-block--photos-slider .s-slider-nav-arrow svg {
    fill: #fff;
    width: 24px;
    height: 24px;
}



.s-block--photos-slider .swiper-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
    pointer-events: none;
}

.s-block--photos-slider .swiper-pagination-bullet {
    background: #f7c708;
    opacity: 1;
    width: 14px;
    height: 14px;
    margin: 0 5px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.s-block--photos-slider .swiper-pagination-bullet-active {
    background: #ff5722;
    transform: scale(1.3);
}

@media (min-width: 767px) {
    section.s-block.s-block--photos-slider.overflow-hidden .swiper-wrapper {
        width: 100%;
        height: 100%;
    }
}

/* 
@import url(https://raw.githack.com/elwa2/cssres/main/iblackstores.css);
[dir=rtl] salla-slider[type]:not(.hydrated)>div, 
[dir=rtl] salla-slider[type]:not(.hydrated) .swiper>div>div, 
[dir=rtl] .carousel-slider .swiper {
    padding-left: 0.1rem;
    padding-right: 0.6rem;
    padding-bottom: 1rem;
}
*/
custom-salla-product-card .s-product-card-content-main, custom-salla-product-card .s-product-card-content-sub, custom-salla-product-card .s-product-card-content-desc {
        padding: 0 10px;
}

@media (max-width: 767px) {
    .header-mainbar .sides-wrap {
        padding: 0.75rem 20px;
        gap: 0px;
    }

    salla-slider .slide--one-fourth {
        max-width: 200px;
    }
}

.s-block__title h2, .s-slider-block__title h2 {
}

button.s-fast-checkout-button.outline, salla-mini-checkout-widget.s-add-product-button-mini-checkout.s-mini-checkout.hide-scroll.hydrated {
    border: 0 !important;
}

.s-button-primary {
    color: var(--color-primary-reverse);
    border: 0 !important;
}

.s-button-primary-outline, .product-entry .btn--add-to-cart:not(.deal) button:not(:hover), button.btn--wishlist.animated.hidden.sm\:flex.s-button-element.s-button-icon.s-button-outline.s-button-light-outline.s-button-loader-center {
    background: var(--color-primary);
    color: #fff;
}

/*
#main-links-1 salla-slider .slide--one-sixth {
}

@media (max-width: 767px) {
    salla-slider .slide--one-fourth {
    }
*/

@media (max-width: 767px) {

    salla-slider .slide--one-sixth {
        width: 21%;
    }

    .slide--cat-entry i {
        height: 4rem;
        width: 4rem;
    }

    .slide--cat-entry h4 {
        font-size: 0.8rem;
    }
}

salla-slider .slide--one-fourth {
    padding: 8px;
}

.s-product-card-entry, .product-card.product-entry.product-entry--vertical {
    box-shadow: 0 4px 11px 0 rgba(0, 0, 0, 0.2), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.14);
    padding: 3px;
    border-radius: 8px;
    background-color: #fff;
}


@media (min-width: 1024px) {
    salla-slider .slide--one-fourth {
        width: 21%;
    }
}

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

@media (max-width: 1024px) {

}

@media (max-width: 480px) {
    .s-products-list-filters-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    #main-links-1 salla-slider .slide--one-sixth {
        width: 33.33%;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .s-products-list-filters-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .s-products-list-filters-results {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .s-products-list-filters-results {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.8rem;
    }
}

body.product-index salla-products-list.flex-1.min-w-0.overflow-auto.s-products-list.hydrated {
    overflow: initial;
}

.s-block--tabs-produtcs .tab-trigger.is-active button {
    background-color: var(--color-primary);
    color: #fff;
}

.s-button-primary-outline:hover {
    background-color: #08a981;
    fill: #fff;
    color: #fff;
}

@media (min-width: 1024px) {
    .s-block.s-block--photos-slider.overflow-hidden {
        /* width: 90%; */ height: 470px;
        /* overflow: hidden; */
    }
}

button.undefined.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary.s-button-loader-center {
    background: var(--color-primary);
}

.s-add-product-button-mini-checkout-content, button.s-fast-checkout-button.outline, salla-mini-checkout-widget.s-add-product-button-mini-checkout.s-mini-checkout.hide-scroll.hydrated {
    background: #70b99c !important;
    color: #fff !important;
}

.s-fast-checkout-button.rtl {
    padding: 22px;
}

.s-add-product-button-mini-checkout-content, button.s-fast-checkout-button.outline, salla-mini-checkout-widget.s-add-product-button-mini-checkout.s-mini-checkout.hide-scroll.hydrated {
    --color-primary: #70b99c !important;
    border-radius: 4px;
}

button.l_search-results-module_addToCartBtn {
    background: var(--color-primary) !important;
}

custom-salla-product-card.s-product-card-entry salla-add-product-button button.s-button-outline {
    --tw-text-opacity: 1;
}

custom-salla-product-card.s-product-card-entry salla-add-product-button button:disabled {
    color: rgb(51, 51, 51);
}

.s-button-light-outline {
    background-color: var(--color-primary);
}

custom-salla-product-card.s-product-card-entry salla-add-product-button button:disabled {
    color: rgb(255, 255, 255);
}

salla-slider[type]:not(.hydrated) > div > div, salla-slider[type]:not(.hydrated) .swiper > div > div > div, .carousel-slider .swiper-wrapper > div {
    /* flex-shrink: 0; */
    /* padding-left: 5px !important; */
    /* padding-right: 5px !important; */
    /* padding-top: 2px; */
    /* padding-bottom: 2px; */
}

@media (max-width: 767px) {
    .s-products-slider-card {
        max-width: 50%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

salla-social-share.hydrated .s-button-light-outline {
    fill: #ffffff;
    color: #ffffff;
}

/*
.navbar-brand img {
    max-height: 3rem !important;
    content: url("src=https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/jjmrD/5bcd7HwEqAog3yVXpzsBiuGrTVcZZj3gzAm9R7Ry.png") !important;
}

*/
.s-block--banners .banner-entry:nth-child(5n+1), .has-2-photos .banner-entry:nth-child(n), .has-4-photos .banner-entry:nth-child(n), .has-5-photos .banner-entry:nth-child(n+4) {
    grid-column: span 1 / span 1;
    height: auto;
    padding: 5rem;
}

@media (max-width: 767px) {
    .s-block--banners .banner-entry:nth-child(5n+1), .has-2-photos .banner-entry:nth-child(n), .has-4-photos .banner-entry:nth-child(n), .has-5-photos .banner-entry:nth-child(n+4) {
        padding: 3rem;
        padding: 15vw;
    }
}

body > div.app-inner.flex.flex-col.min-h-screen.relative > section.s-block.s-block--fixed-banner.wide-placeholder:nth-child(25) {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    section:nth-child(6) .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    section:nth-child(6) .banner-entry:nth-child(5n+1) {
        padding: 8rem;
    }

    section.s-block.s-block--fixed-banner.wide-placeholder {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    section:nth-child(6) .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    section:nth-child(6) .banner-entry:nth-child(5n+1), section:nth-child(6) .has-4-photos .banner-entry:nth-child(n) {
        padding: 5rem;
    }

    section.s-block.s-block--fixed-banner.wide-placeholder {
        margin-top: 1rem;
    }

    section.s-block.s-block--banners {
        margin-top: 1rem;
    }

    section:nth-child(8) .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    section:nth-child(8) .banner-entry:nth-child(5n+1), section:nth-child(8) .has-4-photos .banner-entry:nth-child(n) {
        padding: 3rem;
    }
}

.slide--cat-entry h4 {
    margin-bottom: -28px;
    position: relative;
}

#main-links-1 .slide--cat-entry h4 {
    top: -23px;
}

#main-links-1 .slide--cat-entry i {
    border-radius: 9999px;
}

.slide--cat-entry i {
    height: 10rem;
    border-radius: 1px;
    width: 10rem;
}

@media (max-width: 767px) {
    .slide--cat-entry i {
        height: 7.5rem;
        width: 7.5rem;
    }

    salla-slider .slide--one-sixth {
        width: 37%;
    }

    .slide--cat-entry h4 {
        position: relative;
        top: -23px;
        margin-bottom: -28px;
    }
}

section:nth-child(10) .gap-2\.5 {
    padding-top: 1rem;
}

@media (max-width: 767px) {
    section:nth-child(10).s-block--banners .banner-entry:nth-child(5n+1) {
        padding: 3rem;
    }
}

section.s-block.s-block--brands-grid {
    position: relative;
    overflow: hidden;
    background-color: #f7f7f9 !important;
}

section.s-block.s-block--brands-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: url("https://cdn.salla.sa/form-builder/t8rXktR9ftzCz7S2snUuIRd9zBaHZH9aSwHYclls.png") no-repeat top center;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

section.s-block.s-block--brands-grid::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: url("https://cdn.salla.sa/form-builder/t8rXktR9ftzCz7S2snUuIRd9zBaHZH9aSwHYclls.png") no-repeat bottom center;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 767px) {
    section.s-block.s-block--brands-grid > .container > div.grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }

    section.s-block.s-block--brands-grid > .container > div.grid::-webkit-scrollbar {
        display: none;
    }

    section.s-block.s-block--brands-grid > .container > div.grid > a.brand-item {
        flex: 0 0 calc(100% / 3 - 1rem) !important;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 1000px;
        min-height: 110px;
    }

    section.s-block.s-block--brands-grid > .container > div.grid > a.brand-item:hover {
        transform: translateY(-5px) rotateY(5deg);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    section.s-block.s-block--brands-grid > .container > div.grid > a.brand-item img {
        max-height: 80px;
        transition: transform 0.4s ease;
        transform: rotateY(0deg);
    }

    section.s-block.s-block--brands-grid > .container > div.grid > a.brand-item:hover img {
        transform: rotateY(10deg) scale(1.05);
    }
}

@media (min-width: 768px) {
    section.s-block.s-block--brands-grid > .container > div.grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 1.5rem !important;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }

    section.s-block.s-block--brands-grid > .container > div.grid::-webkit-scrollbar {
        display: none;
    }

    section.s-block.s-block--brands-grid > .container > div.grid > a.brand-item {
        flex: 0 0 calc(100% / 6 - 1rem) !important;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 1000px;
        min-height: 120px;
    }

    section.s-block.s-block--brands-grid > .container > div.grid > a.brand-item:hover {
        transform: translateY(-5px) rotateY(5deg);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    section.s-block.s-block--brands-grid > .container > div.grid > a.brand-item img {
        max-height: 80px;
        transition: transform 0.4s ease;
        transform: rotateY(0deg);
    }

    section.s-block.s-block--brands-grid > .container > div.grid > a.brand-item:hover img {
        transform: rotateY(10deg) scale(1.05);
    }
}

.brand-arrow {
    position: absolute;
    top: 16%;
    transform: translateY(-50%);
    z-index: 5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    color: #fbbf24;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.brand-arrow:hover {
    background: #f6c708;
    transform: translateY(-50%) scale(1.1);
}

.brand-arrow-left {
    left: 9.5rem;
}

.brand-arrow-right {
    left: 6.5rem;
}

.store-footer {
    margin-top: 0rem !important;
}

.index .brand-item {
    padding-top: 1rem !important;
    height: 7rem !important;
}

section.s-block.s-block--testimonials.s-block--full-bg.bg-gray-50 {
    position: relative;
    padding-top: 0;
    z-index: 1;
}

section.s-block.s-block--testimonials.s-block--full-bg.bg-gray-50::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-size: cover;
    opacity: 0.15;
    pointer-events: none;
    z-index: 2;
}

.testimonials-slider .s-slider-block__title-right h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    z-index: 5;
}

.testimonials-slider .s-slider-block__title-right h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--color-primary, #08a981);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.testimonials-slider .s-slider-block__title-nav .s-slider-nav-arrow {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, background 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonials-slider .s-slider-block__title-nav .s-slider-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.1);
}

.testimonials-slider .s-slider-block__title-nav .s-slider-button-icon svg {
    fill: #f6c708 !important;
    width: 22px;
    height: 22px;
}

.testimonials-slider.s-slider-wrapper.carousel-slider.s-slider-horizontal {
    position: relative;
    z-index: 5;
    margin-top: 1rem;
    padding: 0 0.4rem;
}

.testimonials-slider .swiper-slide.slide--one-third {
    padding-top: 1.5rem !important;
    spective: 1000px;
    display: flex;
    align-items: stretch;
}

.testimonials-slider .swiper-slide .border.bg-white.rounded {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, box-shadow;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonials-slider .swiper-slide .border.bg-white.rounded:hover {
    transform: translateY(-5px) rotateX(4deg);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.testimonials-slider .border.bg-white.rounded i.sicon-quote-open {
    background: var(--color-primary, #08a981) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.testimonials-slider .border.bg-white.rounded p.text-gray-600 {
    color: #444 !important;
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
    flex: 1;
}

.testimonials-slider .border.bg-white.rounded .mb-4.inline-block {
    margin-bottom: 0.4rem !important;
}

.s-rating-stars-selected svg path {
    fill: #ffc107 !important;
}

.testimonials-slider .border.bg-white.rounded header {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonials-slider .border.bg-white.rounded header img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.testimonials-slider .border.bg-white.rounded header h4 {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

@media (max-width: 640px) {
    .testimonials-slider .s-slider-block__title-right h2 {
        font-size: 1.4rem;
    }

    .testimonials-slider .border.bg-white.rounded p.text-gray-600 {
        font-size: 0.95rem;
    }

    .testimonials-slider .border.bg-white.rounded header h4 {
        font-size: 0.9rem;
    }
}

.testimonials-slider .s-slider-block__title-right h2 {
    position: relative;
    right: 1.5rem;
    display: inline-block;
    color: #333;
}

.testimonials-slider .s-slider-block__title-right h2::after {
    content: "";
    position: absolute;
    right: -1.8rem;
    top: -0px;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #fbbf24 0%, #fbbf24 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px #fbbf24;
    animation: diamondPulse 2.2s infinite ease-in-out;
}

@keyframes diamondPulse {
    0% {
        transform: translateX(-50%) rotate(45deg) scale(1);
        box-shadow: 0 0 8px rgba(0, 255, 213, 0.5);
    }

    50% {
        transform: translateX(-50%) rotate(45deg) scale(1.3);
        box-shadow: 0 0 14px rgba(0, 255, 213, 0.7);
    }

    100% {
        transform: translateX(-50%) rotate(45deg) scale(1);
        box-shadow: 0 0 8px rgba(0, 255, 213, 0.5);
    }
}

salla-slider .slide--one-third {
    height: auto;
    width: 100%;
    padding-left: 15px;
    padding-right: 5px;
}

@media (min-width: 640px) {
    salla-slider .slide--one-third {
        width: 40%;
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }
}

@media (min-width: 1024px) {
    salla-slider .slide--one-third {
        width: 25%;
    }
}

#app button.s-slider-nav-arrow {
    background: #fff;
}

.top-nav {
    background-color: #fbbf24 !important;
    color: #fff !important;
    display: none;
}

.tabs.hide-scroll .s-button-text::before {
    bottom: 0;
    left: 50%;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent 50%, #f6c708 50%, transparent 100%);
    transform: translateX(-50%);
    animation: shimmer 2s infinite;
}

.tabs.hide-scroll .s-button-text::after {
    width: 200px;
    height: 20px;
    background: radial-gradient(circle at center, #e7e7ea 0%, transparent 70%);
    filter: blur(8px);
    opacity: 0.3;
    animation: glow 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100px;
    }

    100% {
        background-position: 100px;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.1);
    }
}
/*
.main-menu li.root-level > .sub-menu {
    border-top-width: 2px;
    border-color: #fbbf24;
    background: #F3F9FC;
}
*/
.header-icon-button .icon {
    color: #fbbf24;
}



custom-salla-product-card.s-product-card-entry .s-product-card-content-footer salla-button {
/*  position: absolute !important;
     top: -2rem; */
    /* left: 0.1rem !important; */
    /* right: 3rem !important; */
    /* height: 34px !important; */
    /* width: auto !important; */
    border-radius: 8px !important;
}

.s-product-card-image {
    position: relative;
    overflow: hidden;
}

.s-product-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #0f1111;
    opacity: 0.03;
    pointer-events: none;
    z-index: 7;
}

.s-slider-nav-arrow svg {
    width: 22px;
    fill: #f6c708 !important;
}

.store-footer .s-social-link a {
    background: #f6c708 !important;
}

.bg-darker.text-white {
    border-top: 3px solid transparent;
    border-image: linear-gradient(to right, #f6c708 0%, #fcd956 100%);
    border-image-slice: 1;
}

.s-block {
    margin-top: 0rem;
}

.h-\[110px\] {
    height: 150px;
}

@media (max-width: 767px) {
    #main-links-1 .s-slider-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    #main-links-1 .s-slider-container::-webkit-scrollbar {
        height: 5px;
    }

    #main-links-1 .s-slider-container::-webkit-scrollbar-thumb {
        background-color: yellow !important;
        border-radius: 3px;
    }

    #main-links-1 .s-slider-container::-webkit-scrollbar-track {
        background-color: #f2f2f2 !important;
    }

    #main-links-1 .s-slider-container::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }
}

#header-search > div > div > div.s-search-input-wrapper > input {
    background-color: #f7f8fa !important;
    border-radius: 30px !important;
}

.slide--cat-entry {
    padding: 1rem 0 !important;
}

@media (max-width: 667px) {
    .s-block--features-list.container .s-block--features__item {
        display: block;
        padding-left: 0.1rem;
        padding-right: 0.5rem;
    }

    .s-block--features-list.container .s-block--features {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .s-block--features__item > :not([hidden]) ~ :not([hidden]) {
        margin-right: 0;
        margin-left: 0;
    }
}

#app > div.app-inner.flex.flex-col.min-h-screen.relative > footer > div.bg-darker.text-white > div > div.flex.flex-col-reverse.lg\:flex-row > div > p {
    display: none;
}

.s-payments-list-item {
    height: 2rem !important;
    width: 2.5rem !important;
    padding: 0.25rem;
}

.close-menu {
    background-color: #f6c708;
}

@media (max-width: 767px) {
    #main-links-1 .s-slider-container {
        margin: 0 auto;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    #main-links-1 .s-slider-container::-webkit-scrollbar {
        height: 5px;
        width: 80%;
    }

    #main-links-1 .s-slider-container::-webkit-scrollbar-thumb {
        background-color: var(--color-primary) !important;
        border-radius: 3px;
    }

    #main-links-1 .s-slider-container::-webkit-scrollbar-track {
        background-color: #f2f2f2;
    }

    #main-links-1 .s-slider-container::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }
}

#header-search > div > div > div.s-search-input-wrapper > input {
    background-color: #f7f8fa !important;
    border-radius: 30px !important;
}

.search-bar {
    border-radius: 30px !important;
    overflow: hidden;
}

.s-search-input {
    border: none;
    outline: none;
}

@media (max-width: 768px) {
 

    #mainnav li > a {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        font-weight: 700;
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}



.s-block--photos-slider, .s-block--photos-slider * {
    transition: none !important;
    animation: none !important;
}

.s-block--photos-slider {
    overflow: hidden;
  
    background-color: #f0f0f0;
    
}

salla-slider[type]:not(.hydrated) > div, salla-slider[type]:not(.hydrated) .swiper > div > div, .carousel-slider .swiper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    padding-left: .1rem !important;
    padding-right: .2rem !important;
}



.s-block--photos-slider .swiper-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

}


.left-side {
    min-height: 48px;
    
    display: flex;
    align-items: center;
    justify-content: center;
}


.left-side img, .left-side svg {
    width: 24px;
    height: 24px;
    display: inline-block;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
    aspect-ratio: auto;
    image-rendering: auto;
}


@font-face {
    font-display: swap;
}

.swiper-pagination {
    bottom: .9rem !important;
}


/* استخدم محددًا دقيقًا للسلايدر الخاص بالبنرات */
section.s-block.s-block--photos-slider .swiper { /* أو قد يكون المحدد مختلفًا لسلايدر البنرات */
    overflow: hidden !important; /* أضف !important إذا كان هناك تعارض */
  }



  section.s-block.s-block--photos-slider .swiper-slide {
    box-sizing: border-box; /* مهم للتأكد أن الـ padding لا يسبب مشاكل في العرض */
  
    /* أضف مسافة على اليمين واليسار لكل شريحة */
    /* استخدم القيم التي تناسبك بدل 5px */
    padding-left: 5px;
    padding-right: 5px;
  
    /* ملاحظة: إذا كانت الشرائح بعرض 100%، هذا الـ padding سيقلل قليلاً */
    /* من المساحة المتاحة للمحتوى (الصورة) داخل الشريحة نفسها. */
    /* لكنه سيخلق التأثير البصري للمسافة بين الشرائح. */
  }






  /**
 * CSS للمساعدة في استقرار تخطيط سلايدر الصور الرئيسي (LCP)
 * وتقليل أي تعقيد قد يؤخر العرض.
 */

/* 1. حجز مساحة للسلايدر لمنع CLS */
section.s-block.s-block--photos-slider {
    /* استخدم إما aspect-ratio أو min-height */
  
    /* الخيار أ: نسبة العرض للارتفاع (أفضل إذا كانت النسبة ثابتة) */
    /* مثال لنسبة 16:9 الشائعة، عدّلها حسب أبعاد بنراتك */
    /* aspect-ratio: 16 / 9; */
  
    /* الخيار ب: تحديد ارتفاع أدنى (أفضل إذا اختلفت النسب) */
    /* عدّل القيمة لتناسب ارتفاع بنراتك التقريبي */
    min-height: 200px; /* ارتفاع مبدئي للجوال */
  
    overflow: hidden; /* تأكيد إخفاء الشرائح الزائدة */
    background-color: #f0f0f0; /* لون خلفية مؤقت يظهر قبل تحميل الصورة */
  }
  
  /* زيادة ارتفاع السلايدر للشاشات الأكبر */
  @media (min-width: 768px) {
    section.s-block.s-block--photos-slider {
      min-height: 200px; /* ارتفاع أكبر للتابلت والديسكتوب */
    }
  }
  @media (min-width: 1024px) {
     section.s-block.s-block--photos-slider {
      min-height: 470px; /* ارتفاع أكبر للشاشات الكبيرة (كان موجوداً في كودك) */
      /* aspect-ratio: 16 / 9; */ /* يمكن استخدام النسبة هنا أيضًا */
    }
  }
  
  /* 2. ضمان عرض الصورة بشكل صحيح داخل المساحة المحجوزة */
  section.s-block.s-block--photos-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    /* object-fit مهم للتحكم كيف تملأ الصورة المساحة */
    object-fit: cover; /* اجعل الصورة تغطي المساحة مع قص الزائد *
    /* أو استخدم object-fit: contain; إذا أردت ظهور الصورة كاملة مع ترك فراغات */
    object-position: center; /* توسط الصورة */
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
/* حجم وأسلوب الأيقونة (نسخة شبيهة بـ "رائد" مع صورة دائرية 48px) */
:root{
  /* حجم الدائرة الحاضنة */
  --cat-img-size: 44px;                 /* جرّب 40–48px */
  /* حجم الأيقونة داخل الدائرة */
  --cat-glyph-size: 38px;               /* جرّب 20–28px */
  /* بدلاً من قيمة ثابتة، يمكنك استخدام نسبة: */
  --cat-glyph-scale: .60;               /* 60% من الدائرة */
}
@media (max-width: 1023px) {
  /* نطبّق فقط على روابط الأقسام الرئيسية */
   #mainnav .main-menu > li.root-level > a.collapsible-title{
    display:flex; align-items:center; gap:.6rem;
    direction: rtl; justify-content:flex-start; text-align:right;
  }

  /* الدائرة + الأيقونة بداخلها */
  #mainnav .main-menu > li.root-level > a.collapsible-title::before{
    content:"";
    inline-size: var(--cat-img-size);
    block-size:  var(--cat-img-size);
    border-radius: 9999px;
    background-position: center;
    background-repeat: no-repeat;
    /* ↓ الأهم: صغّر الأيقونة داخل الدائرة */
    background-size: var(--cat-glyph-size) var(--cat-glyph-size);   /* أو: calc(var(--cat-img-size)*var(--cat-glyph-scale)) */
    /* اختياري: خلفية/حلقة خفيفة */
    background-color: #fff; 
    box-shadow: 0 0 0 1px rgb(0 0 0 / .06);
    flex: 0 0 var(--cat-img-size);
    display:inline-block;
  }


  /* اربط كل قسم بصورته — دعم نص عربي والنسخة المرمّزة URL-encoded */
  #mainnav .main-menu > li.root-level > a:is([href*="/عروضنا"],[href*="%D8%B9%D8%B1%D9%88%D8%B6%D9%86%D8%A7"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/FBd8wm36o0rhLL4fGtZROpJerqTsBwFegJvAWSv0.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/جوالات-واجهزة-لوحية"],[href*="%D8%AC%D9%88%D8%A7%D9%84%D8%A7%D8%AA-%D9%88%D8%A7%D8%AC%D9%87%D8%B2%D8%A9-%D9%84%D9%88%D8%AD%D9%8A%D8%A9"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/ZBicU4gINpwdwF9oTGkYwjwKjQ6GToOo0EMLfzER.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/اجهزة-لوحية"],[href*="%D8%A7%D8%AC%D9%87%D8%B2%D8%A9-%D9%84%D9%88%D8%AD%D9%8A%D8%A9"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/nxwQLXFezQfat3DwI8QfoYAPrOTpe2aLlqC9vnq8.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/ساعات-ذكية"],[href*="%D8%B3%D8%A7%D8%B9%D8%A7%D8%AA-%D8%B0%D9%83%D9%8A%D8%A9"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/fMMpxPIHcujLXYyvDHeuMzQXFyg3GBw30Bcd0miO.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/الاكسسوارات"],[href*="%D8%A7%D9%84%D8%A7%D9%83%D8%B3%D8%B3%D9%88%D8%A7%D8%B1%D8%A7%D8%AA"])::before{
    display:inline-block; background-image:url("https://cdn.salla.sa/jjmrD/cmRFSxuXPYmKxY7qjCqK5uIGHlGfxb3vKewePiu2.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/شواحن"],[href*="%D8%B4%D9%88%D8%A7%D8%AD%D9%86"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/lMf9Qo2FT8OBlRe0JVnM1oCjACtTBdG1qBibXFjR.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/اجهزة-الصوت-و-التصوير"],[href*="%D8%A7%D8%AC%D9%87%D8%B2%D8%A9-%D8%A7%D9%84%D8%B5%D9%88%D8%AA-%D9%88-%D8%A7%D9%84%D8%AA%D8%B5%D9%88%D9%8A%D8%B1"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/swK14Xjr6dynxeSuObuwRQDLL1tFSCb1vf7Zro9s.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/الاجهزة-الكترونية-والمنزلية"],[href*="%D8%A7%D9%84%D8%A7%D8%AC%D9%87%D8%B2%D8%A9-%D8%A7%D9%84%D9%83%D8%AA%D8%B1%D9%88%D9%86%D9%8A%D8%A9-%D9%88%D8%A7%D9%84%D9%85%D9%86%D8%B2%D9%84%D9%8A%D8%A9"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/VZwhf1vt7lWaSK7eVKUsbRx9Yqq169GYmsIo2Mxm.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/مستلزمات-السيارات-و-ادواتها"],[href*="%D9%85%D8%B3%D8%AA%D9%84%D8%B2%D9%85%D8%A7%D8%AA-%D8%A7%D9%84%D8%B3%D9%8A%D8%A7%D8%B1%D8%A7%D8%AA-%D9%88-%D8%A7%D8%AF%D9%88%D8%A7%D8%AA%D9%87%D8%A7"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/72iVAIePG5asfTnhisZ46NbRsb3zWzC1G4taOr4d.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/حمايات"],[href*="%D8%AD%D9%85%D8%A7%D9%8A%D8%A7%D8%AA"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/z2tn6TSZPvLPlmKBpggLNDjTH26yDdK2IUmOsZdA.png");
  }
  #mainnav .main-menu > li.root-level > a[href*="/brands"]::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/rk3XTj8BMaL7MwGpBVIUkw7v9u4EBr6sF5GA18e7.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/الالعاب-وملحقاتها"],[href*="%D8%A7%D9%84%D8%A7%D9%84%D8%B9%D8%A7%D8%A8-%D9%88%D9%85%D9%84%D8%AD%D9%82%D8%A7%D8%AA%D9%87%D8%A7"])::before{
    display:inline-block; background-image:url("https://cdn.salla.sa/jjmrD/jDx4fJmGghtwemlrf28dptzUEt46q0IASA8gQuDo.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/رهيبنا"],[href*="%D8%B1%D9%87%D9%8A%D8%A8%D9%86%D8%A7"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/HQJGipzxcD8d8GTNdtkRgDHAnNY3U7xMi6sO0bzT.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/متعلقات-الاطفال"],[href*="%D9%85%D8%AA%D8%B9%D9%84%D9%82%D8%A7%D8%AA-%D8%A7%D9%84%D8%A7%D8%B7%D9%81%D8%A7%D9%84"])::before{
    display:inline-block;
    background-image: url("https://cdn.salla.sa/jjmrD/pZoe9bEIm5deSUgdYfDFmrqe1yK2r0zj5AqEzfy1.png");
  }
  #mainnav .main-menu > li.root-level > a:is([href*="/المنتجات-الدراسية"],[href*="%D8%A7%D9%84%D9%85%D9%86%D8%AA%D8%AC%D8%A7%D8%AA-%D8%A7%D9%84%D8%AF%D8%B1%D8%A7%D8%B3%D9%8A%D8%A9"])::before{
    display:inline-block; background-image:url("https://cdn.salla.sa/your-bucket/icons/study.jpg");
  }
}


/* اجعل اسم القسم يبدأ من اليمين بجانب الأيقونة */
@media (max-width:1023px){
  #mainnav .main-menu > li.root-level > a.collapsible-title{
    width:100%;
    direction: rtl;                 /* تيار RTL */
    display:flex;                   /* نص + أيقونة على سطر واحد */
    align-items:center;             /* محاذاة عمودية جميلة */
    justify-content:flex-start;     /* ابدأ من اليمين */
    gap:.6rem;                      /* مسافة بين الأيقونة والاسم */
    text-align:right !important;    /* امنع أي توسيط من الثيم */
  }

  /* عنصر الأيقونة (نفس ::before اللي ضفناه سابقًا) */
  #mainnav .main-menu > li.root-level > a.collapsible-title::before{
    display:inline-block;           /* تأكد إنها ظاهرة */
    margin:0;                       /* لا هوامش تُوسّط العنصر */
    /* لا تغيّر الخلفية هنا — تظل من قواعد كل قسم */
  }

  /* اسم القسم */
  #mainnav .main-menu > li.root-level > a.collapsible-title > span{
    flex:1 1 auto;                  /* يسمح للنص يأخذ المساحة */
    text-align:right;
    margin:0;
    line-height:1.2;
  }
}







/* موبايل فقط */
@media (max-width: 639px){

  /* استهدف الحاوية الثانية داخل store-footer__top (اللي فيها الأعمدة) فقط */
  .store-footer .store-footer__top > .container.grid-cols-12{
    display: grid !important; /* فعّل الشبكة على الموبايل */
    /* بقية الكلاسات الموجودة أصلاً (grid-cols-12, gap-8) ستشتغل تلقائياً */
  }

  /* ألغِ المسافات الرأسية الخاصة بـ space-y-8 داخل هذه الحاوية فقط */
  .store-footer .store-footer__top > .container.grid-cols-12.space-y-8
  > :not([hidden]) ~ :not([hidden]){
    margin-top: 0 !important;
  }
}



footer .footer-list a {
    line-height: 1.7;
    margin-bottom: 0rem;
}


.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: .5REM  !important;
}

/* توسيط أيقونات السوشيال داخل الفوتر فقط */
/* وسّط عمود (الشعار + النص + السوشيال) فقط */
.store-footer .grid-cols-12 > .col-span-12:first-child {
  align-items: center !important;   /* لأن العنصر أصلاً flex */
  text-align: center !important;
}

/* توسيط الشعار */
.store-footer .grid-cols-12 > .col-span-12:first-child .footer-logo img {
  display: block;
  margin-inline: auto;
}

/* توسيط الفقرة بعرضها الحالي */
.store-footer .grid-cols-12 > .col-span-12:first-child p {
  margin-inline: auto;
}

/* توسيط أيقونات السوشيال داخل هذا العمود فقط */
.store-footer .grid-cols-12 > .col-span-12:first-child salla-social .s-social-list {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: .6rem;
  padding: 0;
}
.store-footer .grid-cols-12 > .col-span-12:first-child salla-social .s-social-link {
  list-style: none;
}

.store-footer h3 {
    margin-bottom: .5rem !important;
}

.mt-5 {
    margin-top: .25rem;
}