/* 1. القاعدة الأساسية للهيدر والشعار */
.main-nav__content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    min-height: 60px !important;
}

.navbar-brand {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999 !important;
}

.navbar-brand img {
    max-height: 35px !important;
    display: block !important;
}

/* 2. تجميع (المنيو + البحث) في اليمين */
.right-side.mobile-main-nav .flex.items-center.gap-2.5 {
    position: absolute !important;
    right: 15px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 12px !important;
}

/* 3. تجميع (الحساب + السلة) في اليسار */
.header__icons {
    position: absolute !important;
    left: 15px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    margin: 0 !important;
}

/* 4. مسح تداخل البحث (القديم والجديد) */
.sicon-search::before, .header-rounded-btn[data-show="search-panel"] i::before {
    display: none !important;
    content: "" !important;
}

/* 5. مسح تداخل السلة (حل مشكلة الظهور المزدوج) */
/* نخفي كل شيء داخل السلة أولاً */
#s-cart-icon svg, #s-cart-icon i, 
.s-cart-summary-wrapper svg, .s-cart-summary-wrapper i,
.s-cart-summary-icon svg, .s-cart-summary-icon i {
    display: none !important;
}

/* نضع الأيقونة في مكان واحد فقط */
.s-cart-summary-wrapper, #s-cart-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z'/%3E%3C/svg%3E") !important;
    background-size: 20px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 25px !important;
    height: 25px !important;
}

/* 6. توحيد الأيقونات وتصغيرها */
.mburger, .sicon-search, .header-icon-button i.sicon-user {
    width: 20px !important;
    height: 20px !important;
    background-size: 20px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.mburger { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 8h16M4 16h16'/%3E%3C/svg%3E") !important; }
.sicon-search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") !important; }
.header-icon-button i.sicon-user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23000'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E") !important; }

/* 7. تنظيف نهائي ودائرة السلة */
.mburger span, .sicon-user::before, .header-icon-button .flex-col, .s-cart-summary-content { display: none !important; }
.s-cart-summary-count {
    background-color: #000 !important;
    font-size: 9px !important;
    min-width: 14px !important;
    height: 14px !important;
}