.topnav-is-dark .top-navbar {
    background: linear-gradient(#d09f34 0%, #ab822a 100%);
    color: white !important;

    .s-user-menu-trigger {
        padding: 0;
    }
}

/* إخفاء الصورة الأصلية */

.navbar-brand .logo-normal {

    content: url("https://cdn.files.salla.network/homepage/1519731070/c9262fa1-2361-4882-8b45-c3edaf5a783a.webp") !important;

    width: auto;

    height: 70px;
    /* اضبط الارتفاع حسب رغبتك */

}

@media only screen and (min-width: 1024px) {
    .main-menu li.root-level>a {
        font-weight: 500;
    }

    .main-menu li>a {
        font-size: 16px;
    }
}

button:has(.sicon-earth) {
    display: none;

    &+span {
        display: none;
    }
}

.s-cart-summary-count {
    background-color: rgb(19 107 57);
}

.top-categories {
    .auto-fit-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;

        h3 {
            font-size: 13px;
            margin-top: 10px;
        }
    }

    li {
        padding-bottom: 15px;
        transition: 0.3s;

        h3 {
            transition: 0.3s;
        }

        &:hover {
            background: #fff;
            box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);

            .text-store-text-primary {
                color: #106b3d;

            }
        }
    }
}

.product-card__buttons.normal {
    display: none;
}

/* .s-block--best-offers {
    .swiper-wrapper {
        justify-content: center;
    }
} */

.s-block--best-offers,
.about {
    max-width: 80rem;

    @media (min-width: 1024px) {

        padding-left: 2rem;
        padding-right: 2rem;

    }

}

.about {
    max-width: 70rem;
    margin-inline: auto;
    background: none !important;

    img {
        width: 95px;
    }
}

.s-block--best-offers .s-slider-block__title-right,
salla-products-slider .s-slider-block__title-right {
    border-bottom: none;
}

.s-block--best-offers .s-slider-block__title,
salla-products-slider .s-slider-block__title {
    border-bottom: none;
}

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

    h2 {
        font-weight: bold;
        font-size: clamp(1.5rem, 3vw, 28px);

        color: #000;
    }
}

.product-card__subtitle {
    display: none;
}

.s-button-btn {
    width: auto;
    background: #d09f3452;
    border: none;
    color: black;

    i {
        display: none;
    }

    &:hover {
        background: #d09f34;
        color: white;

    }
}

.text-store-text-secondary {
    color: #106b3d;
}

.total-price {
    margin: 10px 0;
}

.s-slider-block__display-all {
    color: black;
    border: none !important;
    font-weight: normal;
}

.about .flex.flex-col-reverse.md\:flex-row.items-center.gap-5.md\:gap-10 {
    flex-direction: row-reverse;

    @media (max-width:600px) {
        flex-direction: column;
        justify-content: center;
        text-align: center;

        img {
            margin-inline: auto;
        }
    }
}

section.s-block.s-block--fixed-banner .container {
    max-width: 100%;
    padding: 0;

    img {
        border-radius: 0;
    }
}

.footer-is-custom .store-footer .store-footer__curve {
    display: none;
}

.footer-is-custom .store-footer .store-footer__contacts-row,
.footer-is-custom .store-footer .store-footer__inner,
.footer-is-custom .store-footer .store-footer__newsletter {
    background-color: transparent;
}


.footer-is-custom .store-footer {
    color: white;
    background: url(https://cdn.files.salla.network/homepage/1519731070/a8a2fac5-951a-4c83-9bd8-6b593ddbdd0b.webp);
}

.footer-is-custom .store-footer .footer-bottom {
    background-color: #D09F34;
}

.footer-is-custom .store-footer .footer-rights p {
    color: white;
}

footer.store-footer {
    display: none !important;
}

.custom-kingdom-footer {
    display: block !important;
}


.custom-kingdom-footer {
    width: 100%;
    text-align: right;
    line-height: 1.6;
    margin-top: 0;
}



/* القسم العلوي الأخضر */
.custom-kingdom-footer .footer-main {
    background: #165c3d url('https://iili.io/fXIErKP.png');
    color: #fff;
    padding: 50px 20px 70px 20px;
    position: relative;
}

.custom-kingdom-footer .container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
}

/* اللوجو العلوي */
.custom-kingdom-footer .footer-top-logo {
    text-align: center;
    margin-bottom: 40px;
}

.custom-kingdom-footer .footer-top-logo img {
    max-width: 160px;
    height: auto;
    margin: auto;
}

/* الشبكة */
.custom-kingdom-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.custom-kingdom-footer h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

.custom-kingdom-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-kingdom-footer ul li {
    margin-bottom: 10px;
}

.custom-kingdom-footer ul li a,
.custom-kingdom-footer ul li span {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    display: block;
}

.custom-kingdom-footer ul li a:hover {
    color: #c69c3a;
    /* ذهبي عند الهوفر */
    transform: translateX(-5px);
}

/* أيقونات التواصل */
.custom-kingdom-footer .social-icons,
.custom-kingdom-footer .social-media-row {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.custom-kingdom-footer .social-icons a,
.custom-kingdom-footer .social-media-row a {
    color: #165c3d;
    background: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
}

.custom-kingdom-footer .social-icons a:hover,
.custom-kingdom-footer .social-media-row a:hover {
    background: #c69c3a;
    color: #fff;
}

/* القسم السفلي الذهبي */
.custom-kingdom-footer .footer-bottom {
    background-color: #c69c3a;
    /* الذهبي */
    color: #2e2e2e;
    padding: 15px 0;
    position: relative;
    border-top: 5px solid #b38b2d;
}

.custom-kingdom-footer .footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.custom-kingdom-footer .bottom-section {
    font-weight: 700;
    font-size: 13px;
    flex: 1;
}

.custom-kingdom-footer .copyright-text {
    text-align: right;
}

.custom-kingdom-footer .tax-info {
    text-align: center;
}

.custom-kingdom-footer .payment-methods {
    text-align: left;
}

/* اللوجو العائم KDC */
.custom-kingdom-footer .floating-logo {
    position: absolute;
    left: 50%;
    top: -55px;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.custom-kingdom-footer .floating-logo img {
    display: block;
    width: 70px;
    height: auto;
}

.custom-kingdom-footer .payment-methods img {
    height: 25px;
    vertical-align: middle;
}

/* --- ريسبونسيف (للجوال) --- */
@media (max-width: 992px) {
    .custom-kingdom-footer .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .custom-kingdom-footer .footer-bottom-flex {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        text-align: center;
        padding-top: 30px;
        /* مساحة للوجو العائم */
    }

    .custom-kingdom-footer .bottom-section {
        flex: 100%;
        text-align: center;
    }

    /* تعديل مكان اللوجو في التابلت */
    .custom-kingdom-footer .floating-logo {
        top: -40px;
    }
}

@media (max-width: 576px) {
    .custom-kingdom-footer .footer-grid {
        grid-template-columns: 1fr;
        /* عمود واحد */
        text-align: center;
    }

    .custom-kingdom-footer .social-icons,
    .custom-kingdom-footer .social-media-row {
        justify-content: center;
    }

    .custom-kingdom-footer .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

    .custom-kingdom-footer .footer-col:last-child {
        border-bottom: none;
    }
}

.container.flex.justify-between {
    flex-direction: row-reverse;

    .flex-1.flex.items-center.rtl\:space-x-reverse.space-x-2 {
        flex: 0 1 auto;
    }
}

/* 1. تجهيز الشريط العلوي لاستقبال العناصر والقوائم المنسدلة */
.header-buttons {
    overflow: visible !important;
    /* السماح بظهور القوائم المنسدلة */
    position: relative;
    z-index: 1001;
    /* طبقة عالية جداً */
    display: flex;
    align-items: center;
}

/* 2. تنسيق العناصر بعد النقل */
.header-buttons salla-user-menu,
.header-buttons salla-cart-summary,
.header-buttons .moved-search-btn {
    margin: 0 4px !important;
    display: inline-flex !important;
    align-items: center;
    opacity: 1 !important;
    /* ضمان الظهور */
    visibility: visible !important;
}

.header-btn__icon.icon:where([dir=rtl], [dir=rtl] *) {
    margin-left: 0;
    margin-right: 0;
}

/* 3. ضبط قائمة المستخدم المنسدلة */
.header-buttons salla-user-menu {
    position: relative;
}

/* إجبار القائمة المنسدلة تفتح لأسفل */
.header-buttons .s-user-menu-dropdown {
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 10px;
    min-width: 220px;
}

/* 4. إخفاء أيقونة السلة (الرقم والسعر) لتوفير مساحة - اختياري */
.header-buttons .s-cart-summary-content {
    display: none !important;
}

salla-user-menu.hidden.lg\:block.hydrated {
    display: none !important;
}

/* 5. إخفاء الحاوية القديمة تماماً (عشان لو رجعوا ميبانوش تحت) */
/* بنستهدف الكلاس اللي أنت بعتهولي w-1/3 */
.site-header__bottom .flex.items-center.justify-end.w-1\/3 {
    opacity: 0 !important;
    /* إخفاء بصري */
    pointer-events: none !important;
    /* منع الضغط */
    width: 0 !important;
    /* إلغاء المساحة */
}

.s-user-menu-trigger-avatar {
    height: 2rem;
    width: 2rem;
}

@media (max-width:600px) {

    .header-buttons .moved-search-btn,
    .header-buttons salla-user-menu,
    .header-buttons salla-cart-summary {
        display: none !important;
    }
}