/* ===== هيدر الموبايل العصري - تصميم أنيق ===== */
/* ألوان: أبيض + رمادي غامق + ذهبي (نفس الديسكتوب) */

/* ===== شريط العنوان ===== */
.mobile-address-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.mobile-address-bar i.fa-map-marker-alt {
    color: #C5A572;
    font-size: 16px;
    flex-shrink: 0;
}

.mobile-address-bar .address-text-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.mobile-address-bar span {
    font-size: 11px;
    color: #999;
}

.mobile-address-bar strong {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-address-bar i.fa-chevron-down {
    font-size: 10px;
    color: #999;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .mobile-address-bar {
        display: flex;
    }
}

/* ===== شريط إعلاني للموبايل ===== */
.mobile-promo-bar {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fafafa;
    color: #333333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eee;
}

@media (max-width: 1199px) {
    .mobile-promo-bar {
        display: flex;
    }
    
    .mobile-promo-bar.hidden {
        display: none !important;
    }
}

.mobile-promo-logo {
    display: none;
}

.mobile-promo-divider {
    display: none;
}

.mobile-promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
}

.mobile-promo-content i {
    color: #C5A572;
    font-size: 14px;
}

.mobile-promo-close {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mobile-promo-close:hover,
.mobile-promo-close:active {
    background: rgba(0, 0, 0, 0.12);
}

/* إزالة التأثير الأزرق من المتصفح */
.info-sidebar,
.info-sidebar *,
.mobile-nav,
.mobile-nav *,
.search-popup,
.search-popup *,
.social-links,
.social-links *,
.social-link {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    outline: none !important;
    user-select: none;
}

/* إخفاء الهيدر القديم */
@media (max-width: 1199px) {
    .header { 
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ===== الهيدر الرئيسي - ستايل نايس ون ===== */
.mobile-header-new {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
}

.mobile-header-new * {
    pointer-events: auto;
}

@media (max-width: 1199px) {
    .mobile-header-new { 
        display: block; 
        top: 44px; /* تحت الشريط الإعلاني */
    }
    body { padding-top: 140px !important; }
    
    /* عند إخفاء الشريط الإعلاني */
    body.promo-hidden .mobile-header-new {
        top: 0 !important;
    }
    body.promo-hidden {
        padding-top: 96px !important;
    }
}

/* الشاشات الصغيرة (الجوالات) - فقط شريط البحث */
@media (max-width: 767px) {
    .mobile-header-inner {
        display: none !important;
    }
    
    .mobile-header-compact {
        display: none !important;
    }
    
    .mobile-header-new.header-compact .mobile-header-normal {
        display: block !important;
    }
    
    .mobile-header-new.header-compact .mobile-header-compact {
        display: none !important;
    }
    
    body { padding-top: 100px !important; }
    body.promo-hidden { padding-top: 56px !important; }
}

/* الشاشات المتوسطة (التابلت) - كل شيء يظهر */
@media (min-width: 768px) and (max-width: 1199px) {
    .mobile-header-inner {
        display: flex !important;
    }
}

/* ===== شريط البحث - ستايل نايس ون ===== */
.mobile-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 16px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mobile-search-bar:active {
    background: #eee;
}

.mobile-search-bar svg {
    color: #999;
    flex-shrink: 0;
}

.mobile-search-bar span {
    color: #999;
    font-size: 14px;
}

/* ===== الهيدر المضغوط (عند السكرول) ===== */
.mobile-header-compact {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-compact-logo {
    text-decoration: none;
    flex-shrink: 0;
    order: 1;
}

.mobile-compact-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.compact-menu-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    position: relative;
    order: 2;
}

.compact-menu-btn svg:first-child {
    width: 18px;
    height: 18px;
    color: #333;
}

.compact-menu-btn span {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: block !important;
}

.compact-menu-btn .compact-arrow {
    width: 12px;
    height: 12px;
    color: #999;
}

.mobile-compact-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    order: 3;
}

.mobile-compact-search:active {
    background: #eee;
}

.mobile-compact-search svg {
    color: #999;
    flex-shrink: 0;
}

.mobile-compact-search span {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-compact-icons {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    order: 11;
}

.compact-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: #333;
}

.compact-icon-btn svg {
    width: 20px;
    height: 20px;
    color: #333;
}

/* خط ذهبي تحت الأيقونات عند الـ hover */
.compact-icon-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 6px;
    right: 6px;
    height: 2px;
    background: #C5A572;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.compact-icon-btn:hover::after {
    transform: scaleX(1);
}

/* بادج السلة في الهيدر المضغوط */
.compact-icon-btn .compact-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    background: #C5A572;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* إظهار الهيدر المضغوط عند السكرول */
.mobile-header-new.header-compact .mobile-header-normal {
    display: none;
}

.mobile-header-new.header-compact .mobile-header-compact {
    display: flex;
}

/* ===== شريط الأيقونات ===== */
.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px;
    background: #ffffff;
}

.mobile-header-right {
    display: flex;
    align-items: center;
}

.mobile-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* زر الأقسام */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.mobile-menu-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    font-family: 'Cairo', sans-serif;
}

.mobile-menu-btn:active {
    opacity: 0.7;
}

/* خط ذهبي تحت الزر عند الـ hover أو الفتح */
.mobile-menu-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #C5A572;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.mobile-menu-btn:hover::after,
.mobile-menu-btn.active::after {
    transform: scaleX(1);
}

/* أزرار السلة والإشعارات والحساب */
.mobile-cart-btn,
.mobile-notif-btn,
.mobile-user-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: #333;
}

.mobile-cart-btn svg,
.mobile-notif-btn svg,
.mobile-user-btn svg {
    width: 22px;
    height: 22px;
    color: #333;
}

.mobile-cart-btn:active i,
.mobile-notif-btn:active i,
.mobile-user-btn:active i {
    color: #C5A572;
}

/* خط ذهبي تحت الأيقونات عند الـ hover */
.mobile-cart-btn::after,
.mobile-notif-btn::after,
.mobile-user-btn::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #C5A572;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.mobile-cart-btn:hover::after,
.mobile-notif-btn:hover::after,
.mobile-user-btn:hover::after {
    transform: scaleX(1);
}

/* بادج السلة */
.mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #C5A572;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== نافذة البحث - تصميم عصري ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.search-popup.active {
    transform: translateY(0);
}

/* إخفاء شريط العنوان عند فتح البحث */
body.search-open .mobile-address-bar {
    display: none !important;
}

body.search-open {
    overflow: hidden !important;
}

/* هيدر البحث - ستايل نايس ون */
.search-popup-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 16px !important;
    background: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
}

/* زر الرجوع - يظهر دائماً */
.search-popup-close.search-back-btn {
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    color: #333 !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.search-popup-close.search-back-btn:active {
    color: #C5A572 !important;
    background: #f5f5f5 !important;
}

.search-popup-close.search-back-btn:active {
    color: #C5A572 !important;
    background: #f5f5f5 !important;
}

/* زر الإغلاق X - مخفي (نستخدم السهم فقط) */
.search-popup-close-always {
    display: none !important;
}

/* حقل البحث في الهيدر - تصميم بسيط مع خط تحته */
.search-popup-header .search-header-input {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #ddd !important;
    border-radius: 0 !important;
    width: 150px !important;
    max-width: 150px !important;
    transition: all 0.3s ease !important;
}

.search-popup-header .search-header-input:focus-within {
    border-bottom-color: #C5A572 !important;
}

/* لما يكتب - يكبر ويمتلي */
.search-popup-header.expanded .search-header-input {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
}

.search-popup-header .search-header-input input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    font-size: 15px !important;
    font-family: 'Cairo', sans-serif !important;
    outline: none !important;
    color: #333 !important;
    text-align: center !important;
    transition: text-align 0.2s ease !important;
    letter-spacing: 0.3px !important;
}

.search-popup-header.expanded .search-header-input input {
    text-align: right !important;
}

.search-popup-header .search-header-input input::placeholder {
    color: #bbb !important;
    font-weight: 300 !important;
    text-align: center !important;
}

.search-popup-header .search-header-input i {
    color: #999 !important;
    font-size: 15px !important;
}

.search-popup-body {
    padding: 20px 16px;
    padding-bottom: 100px;
}

/* إخفاء حقل البحث القديم */
.search-popup-body .search-input-wrapper,
.search-popup-body .search-popup-btn {
    display: none;
}

/* اقتراحات البحث - تصميم محسن */
.search-suggestions {
    margin-top: 0;
}

.search-suggestions-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.search-suggestions-title i {
    color: #C5A572;
    font-size: 13px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tag {
    background: #fff;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.search-tag:active {
    background: #2d2d2d;
    color: #ffffff;
    border-color: #2d2d2d;
    transform: scale(0.97);
}


/* ===== قائمة المعلومات الجانبية ===== */
.info-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.info-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* زر إغلاق قائمة المعلومات */
.info-sidebar-close-btn {
    position: fixed !important;
    top: -130px !important;
    right: 0 !important;
    left: auto !important;
    width: calc(100% - 300px) !important;
    height: 130px !important;
    background: rgba(0,0,0,0.5) !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    z-index: 100002 !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.info-sidebar-close-btn i {
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.info-sidebar-close-btn::after {
    content: 'إغلاق';
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Cairo', sans-serif !important;
    opacity: 0.9 !important;
}

.info-sidebar-overlay.active .info-sidebar-close-btn {
    top: 0 !important;
    opacity: 1 !important;
}

@media (max-width: 420px) {
    .info-sidebar-close-btn {
        display: none !important;
        height: 80px !important;
    }
}

.info-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 100001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.info-sidebar.active {
    transform: translateX(0);
}

.info-sidebar-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}

.info-sidebar-close:active {
    transform: scale(0.9);
}

.info-sidebar-header {
    background: #ffffff;
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.info-sidebar-logo {
    margin: 0 auto 10px;
}

.info-sidebar-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.info-sidebar-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.info-sidebar-content {
    padding: 20px;
}

.info-section {
    margin-bottom: 24px;
}

.info-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.info-section-title i {
    font-size: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    border: 1px solid #f0f0f0;
}

.info-item:active {
    background: #f8f8f8;
    border-color: #C5A572;
}

.info-item-icon {
    width: 44px;
    height: 44px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C5A572;
    font-size: 16px;
    flex-shrink: 0;
}

.info-item-text {
    flex: 1;
}

.info-item-label {
    font-size: 12px;
    color: #9ca3af;
}

.info-item-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* الميزات */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-card {
    background: #fafafa;
    padding: 16px 10px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #f0f0f0;
    pointer-events: none;
}

.feature-card i {
    font-size: 26px;
    color: #C5A572;
    margin-bottom: 8px;
    display: block;
}

.feature-card span {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: block;
}

/* السوشيال */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.social-link {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
}

.social-link:active {
    opacity: 0.8;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.twitter {
    background: #1da1f2;
}


/* ===== القائمة الرئيسية - Full Screen زي البحث ===== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 99999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateY(0);
}

/* هيدر القائمة */
.mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
}

/* زر الرجوع */
.mobile-nav-back {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-nav-back:active {
    background: #f5f5f5;
    color: #C5A572;
}

.mobile-nav-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mobile-nav-title i {
    display: none;
}

/* مساحة فارغة للتوازن */
.mobile-nav-header::after {
    content: '';
    width: 40px;
}

/* قائمة الأقسام */
.mobile-nav-categories {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.mobile-cat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.15s;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.mobile-cat-item:first-child {
    font-weight: 700;
}

.mobile-cat-item:last-child {
    border-bottom: none;
}

.mobile-cat-item:hover,
.mobile-cat-item:active {
    background: #fafafa;
}

/* خط ذهبي تحت القسم عند الـ hover */
.mobile-cat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20px;
    left: 20px;
    height: 2px;
    background: #C5A572;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.mobile-cat-item:hover::before {
    transform: scaleX(1);
}

/* السهم أول شي على اليمين */
.mobile-cat-arrow {
    color: #C5A572;
    font-size: 14px;
    order: 1;
}

/* اسم القسم */
.mobile-cat-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: right;
    order: 2;
}

/* الصورة على اليسار */
.mobile-cat-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
    order: 3;
}

.mobile-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-cat-img i {
    font-size: 24px;
    color: #C5A572;
}

/* فاصل وروابط سريعة - مخفية */
.mobile-nav-divider-full,
.mobile-nav-quick,
.mobile-nav-auth {
    display: none;
}

/* زر الإغلاق - مخفي */
.mobile-nav-close {
    display: none !important;
}

/* معلومات المستخدم - مخفية */
.mobile-nav-user {
    display: none;
}

.mobile-nav-avatar {
    display: none;
}

.mobile-nav-user-info h4,
.mobile-nav-user-info p {
    display: none;
}

/* روابط القائمة القديمة - مخفية */
.mobile-nav-links {
    display: none;
}

.mobile-nav-link {
    display: none;
}

/* فاصل */
.mobile-nav-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 12px 0;
}

/* بادج العدد */
.nav-badge {
    background: #C5A572;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    margin-right: auto;
}

/* قسم تسجيل الدخول */
.mobile-nav-auth {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mobile-nav-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mobile-nav-auth-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mobile-nav-auth-btn.logout {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
    box-shadow: none;
}

.mobile-nav-auth-btn.logout:active {
    background: #fef2f2;
}

/* ===== تحسينات للشاشات الصغيرة ===== */
@media (max-width: 360px) {
    .mobile-header-inner {
        padding: 10px 12px;
    }
    
    .mobile-menu-btn,
    .mobile-search-btn,
    .mobile-info-btn {
        width: 44px;
        height: 44px;
    }
    
    .mobile-logo img {
        height: 36px;
    }
}

/* ===== تأثيرات الظهور ===== */
.mobile-nav.active .mobile-nav-link {
    animation: fadeSlideIn 0.3s ease forwards;
    opacity: 0;
}

.mobile-nav.active .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav.active .mobile-nav-link:nth-child(6) { animation-delay: 0.3s; }
.mobile-nav.active .mobile-nav-link:nth-child(7) { animation-delay: 0.35s; }
.mobile-nav.active .mobile-nav-link:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* سكرول بار مخصص */
.mobile-nav-links::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav-links::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.mobile-nav-links::-webkit-scrollbar-thumb {
    background: #C5A572;
    border-radius: 4px;
}


/* بادج المفضلة - وردي */
.nav-badge-fav {
    background: #ec4899 !important;
}


/* ===== نتائج البحث المباشر ===== */
.live-search-results {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.live-search-results .search-suggestions-title {
    margin-bottom: 16px;
}

.live-search-items {
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
}

.live-search-item:last-child {
    margin-bottom: 0;
}

.live-search-item:active {
    background: #f8f8f8;
    border-color: #C5A572;
    transform: scale(0.98);
}

.live-search-item img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.live-search-item-info {
    flex: 1;
    min-width: 0;
}

.live-search-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-item-price {
    font-size: 15px;
    color: #C5A572;
    font-weight: 800;
}

.live-search-item-arrow {
    color: #d1d5db;
    font-size: 12px;
    flex-shrink: 0;
}

/* عناصر البحث المحسنة */
.live-search-item.out-of-stock {
    opacity: 0.6;
}

.live-search-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.live-search-img-wrap img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.live-search-discount {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
}

.live-search-item-category {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.live-search-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-search-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.live-search-stock-badge {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.live-search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #2d2d2d;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.live-search-view-all:active {
    transform: scale(0.98);
    background: #1a1a1a;
}

.live-search-view-all i {
    transition: transform 0.2s;
}

/* اقتراحات البحث */
.live-search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.live-search-suggestions span {
    font-size: 12px;
    color: #9ca3af;
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}

.suggestion-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.suggestion-tag:active {
    background: #2d2d2d;
    color: white;
}

.live-search-no-results {
    text-align: center;
    padding: 30px 20px;
    color: #9ca3af;
    font-size: 14px;
}

.live-search-no-results i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    color: #d1d5db;
}

/* ===== آخر عمليات البحث - تصميم محسن ===== */
.recent-searches {
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.recent-searches-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.recent-searches .search-suggestions-title {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.clear-recent-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
}

.clear-recent-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

.clear-recent-btn:active {
    background: #fee2e2;
    transform: scale(0.95);
}

.clear-recent-btn i {
    font-size: 11px;
}

.recent-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recent-search-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.recent-search-tag:active {
    background: #f8f8f8;
    border-color: #C5A572;
    transform: scale(0.97);
}

.recent-search-tag i.fa-clock {
    color: #C5A572;
    font-size: 12px;
}

.recent-search-tag .remove-recent {
    color: #ccc;
    font-size: 10px;
    padding: 4px;
    margin-right: -6px;
    margin-left: 2px;
    border-radius: 50%;
    transition: all 0.2s;
}

.recent-search-tag .remove-recent:active {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   إصلاح z-index للهيدر - لا يغطي على الـ modals
   ═══════════════════════════════════════════════════════════════════════════════ */

/* جعل الهيدر بـ z-index منخفض عند فتح أي modal */
body.modal-open .mobile-header-new,
body.modal-open .mobile-header-new *,
body.modal-open .mobile-promo-bar,
html:has(.rn-modal.active) .mobile-header-new,
html:has(.rn-modal.active) .mobile-header-new *,
html:has(.rn-modal.active) .mobile-promo-bar {
    z-index: 1 !important;
}

/* التأكد من أن الـ modal فوق كل شي */
.rn-modal.active {
    z-index: 9999999 !important;
}


/* إخفاء شريط السكرول في البحث */
.search-popup::-webkit-scrollbar {
    width: 0;
    display: none;
}

.search-popup {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}


/* ===== إصلاح نتائج البحث في الموبايل ===== */
@media (max-width: 768px) {
    /* جعل نافذة البحث تأخذ كامل الشاشة */
    .search-popup {
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
    }
    
    .search-popup-body {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px;
        padding-bottom: 30px;
    }
    
    /* نتائج البحث المباشر */
    .live-search-results {
        margin-top: 20px;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* عنوان نتائج البحث - أكبر وأوضح */
    .live-search-results .search-suggestions-title {
        font-size: 16px !important;
        font-weight: 700 !important;
        padding: 14px 16px !important;
        background: #f8f8f8 !important;
        margin: 0 -16px 16px -16px !important;
        border-radius: 0 !important;
        color: #333 !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .live-search-results .search-suggestions-title i {
        font-size: 16px !important;
        color: #C5A572 !important;
    }
    
    /* قائمة النتائج - تظهر كاملة */
    .live-search-items {
        max-height: calc(100vh - 280px) !important;
        overflow-y: auto !important;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* تحسين عناصر نتائج البحث */
    .live-search-item {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    
    .live-search-item:active {
        background: #f8f8f8;
        border-color: #C5A572;
    }
    
    .live-search-item img,
    .live-search-img-wrap img {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }
    
    .live-search-item-name {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 6px;
        white-space: normal;
        line-height: 1.4;
        color: #1f2937;
    }
    
    .live-search-item-price {
        font-size: 17px;
        font-weight: 700;
        color: #C5A572;
    }
    
    .live-search-item-category {
        font-size: 12px;
        color: #6b7280;
    }
    
    /* زر عرض الكل */
    .live-search-view-all {
        padding: 16px;
        font-size: 15px;
        margin-top: 16px;
        border-radius: 14px;
        background: #2d2d2d;
    }
    
    /* إخفاء الاقتراحات عند وجود نتائج */
    .live-search-results:not([style*="display: none"]) ~ .search-suggestions,
    .live-search-results:not([style*="display: none"]) ~ .recent-searches {
        display: none !important;
    }
    
    /* تحسين رسالة لا توجد نتائج */
    .live-search-no-results {
        padding: 50px 20px;
        font-size: 15px;
    }
    
    .live-search-no-results i {
        font-size: 48px;
        margin-bottom: 16px;
    }
}

/* ===== تحسين البحث للشاشات الصغيرة جداً ===== */
@media (max-width: 380px) {
    .search-popup-body {
        padding: 16px 12px;
    }
    
    .live-search-item {
        padding: 12px;
        gap: 12px;
    }
    
    .live-search-item img,
    .live-search-img-wrap img {
        width: 55px;
        height: 55px;
    }
    
    .live-search-item-name {
        font-size: 14px;
    }
    
    .live-search-item-price {
        font-size: 15px;
    }
}


/* ===== أيقونة التحميل - ثلاث نقاط متحركة ===== */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: #C5A572;
    border-radius: 50%;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ===== شريط العنوان للشاشات المتوسطة ===== */
.tablet-address-bar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    margin-right: auto;
}

.tablet-address-bar i.fa-map-marker-alt {
    color: #C5A572;
    font-size: 16px;
}

.tablet-address-bar .address-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.tablet-address-bar span {
    font-size: 10px;
    color: #999;
}

.tablet-address-bar strong {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tablet-address-bar i.fa-chevron-down {
    font-size: 10px;
    color: #999;
}

/* خط ذهبي تحت العنوان عند الـ hover */
.tablet-address-bar {
    position: relative;
}

.tablet-address-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #C5A572;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.tablet-address-bar:hover::after {
    transform: scaleX(1);
}

/* العنوان في الهيدر المضغوط - على اليسار */
.compact-address-bar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    order: 10;
    position: relative;
}

.compact-address-bar i.fa-map-marker-alt {
    color: #C5A572;
    font-size: 16px;
}

.compact-address-bar strong {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-address-bar i.fa-chevron-down {
    font-size: 10px;
    color: #999;
}

/* خط ذهبي تحت العنوان عند الـ hover */
.compact-address-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #C5A572;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.compact-address-bar:hover::after {
    transform: scaleX(1);
}

/* إظهار العنوان في الشاشات المتوسطة فقط */
@media (min-width: 768px) and (max-width: 1199px) {
    .tablet-address-bar {
        display: flex;
    }
    
    .compact-address-bar {
        display: flex;
    }
}
