/* ===== هيدر V2 - ستايل أمازون/نون ===== */
/* للشاشات الكبيرة فقط (1200px وأكثر) */

@media (min-width: 1200px) {
    
    /* إخفاء الهيدر القديم */
    .header,
    .desktop-header {
        display: none !important;
    }
    
    /* ===== المتغيرات - ألوان أمجاد الفلاح ===== */
    .amazon-header {
        --az-dark: #1a1a1a;
        --az-dark-hover: #333333;
        --az-accent: #1a1a1a;
        --az-accent-hover: #333333;
        --az-green: #1a1a1a;
        --az-green-light: #333333;
        --az-text: #333333;
        --az-text-muted: #888888;
        --az-gold: #C5A572;
        
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        font-family: 'Cairo', sans-serif;
    }
    
    body {
        padding-top: 180px !important;
    }
    
    .az-container {
        max-width: 1500px;
        margin: 0 auto;
        padding: 0 40px 0 20px;
    }
    
    /* ===== الشريط العلوي الرفيع ===== */
    .az-top-strip {
        background: #fafafa;
        padding: 10px 0;
        font-size: 12px;
        border-bottom: 1px solid #eee;
        position: relative;
        z-index: 100;
    }
    
    .az-top-strip * {
        pointer-events: auto;
    }
    
    .az-top-strip .az-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .az-top-right,
    .az-top-left {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 100;
    }
    
    .az-location-selector {
        cursor: pointer !important;
        pointer-events: auto !important;
    }
    
    .az-welcome {
        color: #ffffff;
    }
    
    .az-welcome strong {
        color: #C5A572;
    }
    
    .az-top-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
        z-index: 1;
        max-width: 320px;
    }
    
    .az-top-center * {
        pointer-events: auto;
    }
    
    .az-promo-ticker {
        color: #C5A572 !important;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.4s ease-out;
        font-size: 12px;
    }
    
    .az-promo-ticker i {
        color: #C5A572 !important;
    }
    
    .az-top-center {
        overflow: hidden;
        height: 24px;
    }
    
    .az-top-left a {
        color: #666 !important;
        text-decoration: none;
        transition: all 0.2s;
        padding-bottom: 2px;
        border-bottom: 1px solid transparent;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .az-top-left a:hover {
        color: #1a1a1a !important;
        border-bottom-color: #C5A572;
    }
    
    .az-sep {
        color: #ddd !important;
    }
    
    .az-sep {
        color: rgba(255,255,255,0.3);
    }
    
    /* ===== الشريط الرئيسي ===== */
    .az-main-bar {
        background: #FFFFFF;
        padding: 20px 0;
        border-bottom: none;
    }
    
    .az-main-bar .az-container {
        display: flex;
        align-items: center;
        gap: 15px;
        justify-content: space-between;
    }
    
    /* اللوجو */
    .az-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5px 20px;
        gap: 0;
        text-decoration: none;
        border-radius: 0;
        border: none;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    
    .az-logo:hover {
        opacity: 0.8;
    }
    
    .az-logo-text {
        font-size: 28px;
        font-weight: 300;
        color: #1a1a1a;
        letter-spacing: 4px;
        text-transform: uppercase;
    }
    
    .az-logo-subtitle {
        font-size: 10px;
        color: #999;
        letter-spacing: 3px;
        text-transform: uppercase;
        margin-top: 2px;
    }
    
    .az-logo-img {
        height: 40px;
        width: auto;
        object-fit: contain;
    }
    
    .az-mega-logo-text {
        font-size: 20px;
        font-weight: 400;
        color: #fff;
        letter-spacing: 2px;
    }
    
    /* ===== اختيار المدينة ===== */
    .az-location-selector {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        background: transparent;
        border-radius: 0;
        cursor: pointer !important;
        transition: all 0.2s;
        position: relative;
        z-index: 9999;
        pointer-events: auto !important;
        min-height: 40px;
    }
    
    .az-location-selector * {
        pointer-events: none;
    }
    
    .az-location-selector::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: #C5A572;
        transform: scaleX(0);
        transition: transform 0.25s ease;
    }
    
    .az-location-selector:hover::after {
        transform: scaleX(1);
    }
    
    .az-location-selector:hover {
        background: transparent;
    }
    
    .az-location-selector > i:first-child {
        color: #C5A572;
        font-size: 16px;
    }
    
    .az-location-text {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
        max-width: 350px;
    }
    
    .az-location-label {
        font-size: 10px;
        color: var(--az-text-muted);
    }
    
    .az-location-address {
        font-size: 13px;
        font-weight: 700;
        color: #333 !important;
        white-space: normal;
        line-height: 1.4;
        max-width: 320px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .az-location-arrow {
        font-size: 10px;
        color: var(--az-text-muted);
        transition: transform 0.2s;
    }
    
    .az-location-selector.active .az-location-arrow {
        transform: rotate(180deg);
    }
    
    /* قائمة المدن */
    .az-cities-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        min-width: 280px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        overflow: hidden;
    }
    
    .az-location-selector.active .az-cities-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .az-cities-header {
        padding: 15px 20px;
        background: linear-gradient(135deg, var(--az-green), var(--az-green-light));
        color: #fff;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        font-size: 14px;
    }
    
    .az-cities-list {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .az-city-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        cursor: pointer;
        transition: background 0.2s;
        border-bottom: 1px solid #f0f0f0;
        pointer-events: auto;
        position: relative;
        z-index: 100001;
    }
    
    .az-city-item:hover {
        background: #f8f8f8;
    }
    
    .az-cities-dropdown {
        pointer-events: auto;
    }
    
    .az-cities-list {
        pointer-events: auto;
    }
    
    .az-city-item.selected {
        background: #f5f5f5;
    }
    
    .az-city-item i {
        color: #1a1a1a;
        font-size: 14px;
    }
    
    .az-city-name {
        flex: 1;
        font-size: 14px;
        color: #333;
        font-weight: 600;
    }
    
    .az-city-cost {
        font-size: 12px;
        color: #666;
        background: #f0f0f0;
        padding: 3px 10px;
        border-radius: 12px;
    }
    
    /* زر الأقسام */
    .az-categories-btn {
        display: none;
    }
    
    .az-categories-btn i {
        font-size: 18px;
    }
    
    /* ===== شريط البحث المحسن ===== */
    .az-search-wrapper {
        flex: 1;
        max-width: 550px;
        position: relative;
    }
    
    .az-search-form {
        display: flex;
        align-items: center;
        background: transparent;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
        border: none;
        border-bottom: 2px solid #ddd;
        transition: all 0.3s;
        padding-bottom: 4px;
    }
    
    .az-search-form:focus-within {
        border-bottom-color: #C5A572;
    }
    
    .az-search-input {
        flex: 1;
        padding: 10px 0;
        border: none;
        font-size: 15px;
        font-family: inherit;
        outline: none;
        background: transparent;
        letter-spacing: 0.3px;
    }
    
    .az-search-input::placeholder {
        color: #bbb;
        font-weight: 300;
    }
    
    .az-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        background: transparent;
        border: none;
        border-radius: 0;
        color: #999;
        font-size: 14px;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .az-search-form:focus-within .az-search-btn {
        color: #C5A572;
    }
    
    .az-search-btn:hover {
        color: #2d2d2d;
    }
    
    .az-search-btn span {
        display: none;
    }
    
    .az-search-btn i {
        font-size: 18px;
    }
    
    /* ===== أزرار الإجراءات ===== */
    .az-actions {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-shrink: 0;
        margin-left: 0;
        padding-left: 0;
    }
    
    /* ===== تصميم روابط الهيدر الجديد ===== */
    .az-top-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 14px;
        color: #555;
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        transition: all 0.2s;
        position: relative;
        border-radius: 8px;
    }
    
    .az-top-link i {
        font-size: 20px;
        color: #444;
        transition: all 0.2s;
    }
    
    .az-top-link:hover {
        background: #f8f8f8;
        color: #2d2d2d;
    }
    
    .az-top-link:hover i {
        color: #C5A572;
    }
    
    /* المفضلة - نفس تصميم الحساب */
    .az-top-fav {
        position: relative;
    }
    
    .az-top-count {
        position: absolute;
        top: 4px;
        right: 6px;
        min-width: 16px;
        height: 16px;
        background: #C5A572;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        font-style: normal;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    /* السلة - بسيط ونظيف */
    .az-top-cart {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 14px;
        background: transparent;
        border: none;
        color: #555;
        font-size: 11px;
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
        border-radius: 8px;
    }
    
    .az-top-cart:hover {
        background: #f8f8f8;
        color: #2d2d2d;
    }
    
    .az-top-cart i {
        font-size: 20px;
        color: #444;
        transition: all 0.2s;
    }
    
    .az-top-cart:hover i {
        color: #C5A572;
    }
    
    .az-top-cart-text {
        display: none;
    }
    
    .az-top-cart-total {
        font-style: normal;
        font-weight: 600;
        font-size: 11px;
        color: #555;
    }
    
    .az-top-cart-total::after {
        content: ' ر.س';
        font-size: 10px;
        font-weight: 400;
    }
    
    .az-top-cart-count {
        position: absolute;
        top: 4px;
        right: 6px;
        min-width: 16px;
        height: 16px;
        background: #C5A572;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .az-cart-guest {
        margin-right: 0;
    }
    
    .az-action-item {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 4px;
        color: #333;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
        font-family: inherit;
    }
    
    .az-action-item:hover {
        border-color: #1a1a1a;
        background: #f5f5f5;
    }
    
    .az-action-icon {
        position: relative;
        font-size: 22px;
    }
    
    .az-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ef4444;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .az-action-text {
        display: flex;
        flex-direction: column;
        text-align: right;
        line-height: 1.2;
    }
    
    .az-action-small {
        font-size: 11px;
        color: #888;
    }
    
    .az-action-main {
        font-size: 13px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .az-action-main i {
        font-size: 10px;
    }
    
    /* ===== قائمة المستخدم الجديدة ===== */
    
    /* زر الحساب */
    .az-account-wrap {
        position: relative;
    }
    
    .az-account-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 12px 6px 6px;
        background: #f5f5f5;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        font-family: 'Cairo', sans-serif;
    }
    
    .az-account-btn:hover {
        background: #eee;
    }
    
    .az-account-icon {
        width: 36px;
        height: 36px;
        background: #C5A572;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 14px;
    }
    
    .az-account-info {
        text-align: right;
        line-height: 1.3;
    }
    
    .az-account-info small {
        display: block;
        font-size: 11px;
        color: #888;
    }
    
    .az-account-info strong {
        display: block;
        font-size: 13px;
        color: #2d2d2d;
    }
    
    /* القائمة المنسدلة */
    .az-account-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.12);
        min-width: 240px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all 0.2s;
        z-index: 1000;
        overflow: hidden;
    }
    
    .az-account-wrap:hover .az-account-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* معلومات المستخدم */
    .az-menu-user {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: #2d2d2d;
    }
    
    .az-menu-avatar {
        width: 42px;
        height: 42px;
        background: #C5A572;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
    }
    
    .az-menu-name {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
    }
    
    .az-menu-email {
        color: rgba(255,255,255,0.5);
        font-size: 12px;
    }
    
    /* الروابط */
    .az-menu-links {
        padding: 8px;
    }
    
    .az-menu-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        color: #444;
        text-decoration: none;
        border-radius: 8px;
        font-size: 13px;
        transition: all 0.2s;
    }
    
    .az-menu-links a:hover {
        background: #f5f5f5;
    }
    
    .az-menu-links a i {
        width: 18px;
        color: #999;
        font-size: 14px;
    }
    
    .az-menu-links a:hover i {
        color: #C5A572;
    }
    
    /* زر الخروج */
    .az-menu-logout {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 8px;
        padding: 10px;
        background: #fef2f2;
        color: #dc2626;
        text-decoration: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
    }
    
    .az-menu-logout:hover {
        background: #fee2e2;
    }
    
    /* للزوار */
    .az-menu-guest {
        padding: 20px;
        text-align: center;
    }
    
    .az-menu-guest p {
        color: #666;
        font-size: 13px;
        margin: 0 0 14px;
    }
    
    .az-menu-login-btn {
        display: block;
        padding: 10px;
        background: #2d2d2d;
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .az-menu-login-btn:hover {
        background: #1a1a1a;
    }
    
    .az-menu-register-btn {
        display: block;
        padding: 10px;
        background: #f5f5f5;
        color: #2d2d2d;
        text-decoration: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
    }
    
    .az-menu-register-btn:hover {
        background: #eee;
    }
    
    /* أيقونة المفضلة */
    .az-header-icon {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 8px;
        color: #666;
        font-size: 18px;
        text-decoration: none;
        position: relative;
        transition: all 0.2s;
    }
    
    .az-header-icon:hover {
        background: #fee2e2;
        color: #dc2626;
    }
    
    .az-header-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        background: #dc2626;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* قائمة الحساب المنسدلة القديمة - للتوافق */
    .az-dropdown {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        min-width: 260px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        color: #333;
        overflow: hidden;
    }
    
    .az-action-item:hover .az-dropdown,
    .az-dropdown:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .az-dropdown::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 30px;
        border: 8px solid transparent;
        border-bottom-color: #2d2d2d;
    }
    
    .az-dropdown-header {
        padding: 16px 20px;
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        color: #fff;
        border-radius: 12px 12px 0 0;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        font-size: 14px;
    }
    
    .az-dropdown-header i {
        font-size: 20px;
        color: #C5A572;
    }
    
    .az-dropdown-body {
        padding: 8px;
    }
    
    .az-dropdown-body a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        color: #4a4a4a;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.2s;
        font-size: 13px;
        font-weight: 500;
    }
    
    .az-dropdown-body a:hover {
        background: #f5f5f5;
        color: #2d2d2d;
    }
    
    .az-dropdown-body a:hover i {
        color: #C5A572;
    }
    
    .az-dropdown-body a i {
        width: 20px;
        color: #aaa;
        font-size: 15px;
    }
    
    .az-logout {
        color: #ef4444 !important;
    }
    
    .az-logout i {
        color: #ef4444 !important;
    }
    
    .az-dropdown-divider {
        height: 1px;
        background: #f0f0f0;
        margin: 6px 8px;
    }
    
    /* تصميم قائمة الحساب للغير مسجلين */
    .az-dropdown-welcome {
        text-align: center;
        padding: 20px;
    }
    
    .az-welcome-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #C5A572 0%, #B8956A 100%);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 10px;
    }
    
    .az-welcome-icon i {
        font-size: 22px;
        color: #ffffff !important;
    }
    
    .az-dropdown-welcome h4 {
        font-size: 15px;
        font-weight: 700;
        color: #2d2d2d !important;
        margin: 0 0 4px 0;
    }
    
    .az-dropdown-welcome p {
        font-size: 12px;
        color: #888 !important;
        margin: 0;
    }
    
    .az-dropdown-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .az-btn-login {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px !important;
        background: #2d2d2d !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        font-size: 13px;
        text-decoration: none;
        transition: all 0.3s;
    }
    
    .az-btn-login:hover {
        background: #1a1a1a !important;
        transform: translateY(-1px);
    }
    
    .az-btn-register {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px !important;
        background: transparent !important;
        color: #C5A572 !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        font-size: 12px;
        text-decoration: none;
        border: 2px solid #C5A572;
        transition: all 0.3s;
    }
    
    .az-btn-register:hover {
        background: #f9f6f1 !important;
    }
    
    /* ===== زر السلة - تصميم جديد ===== */
    .az-cart-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 20px;
        background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
        border: none;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s;
        font-family: inherit;
        color: #fff;
        position: relative;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    .az-cart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }
    
    .az-cart-btn i {
        font-size: 18px;
    }
    
    .az-cart-total-text {
        font-size: 14px;
        font-weight: 700;
    }
    
    .az-cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #C5A572;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        min-width: 22px;
        height: 22px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(197, 165, 114, 0.4);
    }
    
    /* مسافة إضافية للسلة عند عدم تسجيل الدخول */
    .az-cart-btn.az-cart-guest {
        margin-right: 0;
        margin-left: auto;
    }

    
    /* ===== شريط التنقل السفلي - تصميم جديد ===== */
    .az-nav-bar {
        background: #fafafa;
        padding: 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    .az-nav-bar .az-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    
    .az-all-btn {
        display: none;
    }
    
    /* أسهم التنقل */
    .az-nav-arrow {
        display: none;
    }
    
    /* سلايدر الأقسام */
    .az-nav-slider-wrap {
        flex: 1;
        overflow: hidden;
        position: relative;
    }
    
    .az-nav-slider {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        transition: transform 0.3s ease;
        padding: 0;
    }
    
    .az-nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 14px 22px;
        color: #666;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.2s;
        border-bottom: 2px solid transparent;
        position: relative;
        letter-spacing: 0.3px;
    }
    
    .az-nav-link:hover {
        color: #2d2d2d;
        background: rgba(0,0,0,0.03);
    }
    
    .az-nav-link i {
        display: none;
    }
    
    .az-nav-link.az-deals {
        color: #1a1a1a;
        font-weight: 600;
    }
    
    .az-nav-link.az-deals i {
        display: none;
    }
    
    /* فاصل بين الأقسام */
    .az-nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 15px;
        background: #e5e5e5;
    }
    
    .az-nav-link:first-child::after {
        display: none;
    }
    
    /* إخفاء زر الخصومات */
    .az-special-offer {
        display: none;
    }
    
    .az-special-offer {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 24px;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
        border-radius: 25px;
        animation: glow 2s infinite;
        white-space: nowrap;
        margin-left: 20px;
    }
    
    @keyframes glow {
        0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.5); }
        50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); }
    }
    
    .az-special-offer:hover {
        transform: scale(1.05);
        color: #fff;
    }
    
    /* ===== القائمة الجانبية ===== */
    .az-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .az-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* القائمة الجانبية الأساسية - يتم تجاوزها بـ az-mega-sidebar */
    .az-sidebar {
        position: fixed;
        top: 0;
        right: -900px;
        width: 900px;
        height: 100vh;
        background: #fff;
        z-index: 10001;
        transition: right 0.4s ease;
        display: flex;
        flex-direction: row;
        box-shadow: -10px 0 50px rgba(0,0,0,0.2);
    }
    
    .az-sidebar.active {
        right: 0;
    }
    
    .az-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 25px 20px;
        background: linear-gradient(135deg, var(--az-green), var(--az-green-light));
        color: #fff;
    }
    
    .az-sidebar-logo {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 20px;
        font-weight: 800;
    }
    
    .az-sidebar-logo img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255,255,255,0.5);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .az-sidebar-close {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .az-sidebar-close:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .az-sidebar-content {
        flex: 1;
        overflow-y: auto;
        padding: 0;
    }
    
    .az-sidebar-section {
        border-bottom: 8px solid #f0f0f0;
    }
    
    .az-sidebar-title {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 18px 20px;
        margin: 0;
        font-size: 16px;
        font-weight: 800;
        color: var(--az-dark);
        background: #fafafa;
    }
    
    .az-sidebar-title i {
        color: var(--az-green);
    }
    
    .az-sidebar-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .az-sidebar-menu li a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 14px 20px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .az-sidebar-menu li a:hover {
        background: #f8f8f8;
        padding-right: 25px;
    }
    
    .az-sidebar-menu li a i {
        width: 24px;
        font-size: 16px;
        color: var(--az-green);
    }
    
    .az-sidebar-menu li a span {
        flex: 1;
    }
    
    .az-cat-count {
        background: #f0f0f0;
        padding: 2px 10px;
        border-radius: 12px;
        font-size: 12px;
        color: #666;
    }
    
    .az-arrow {
        color: #ccc !important;
        font-size: 12px !important;
    }
    
    /* ===== تأثير Sticky عند التمرير ===== */
    .amazon-header.scrolled .az-top-strip {
        display: none;
    }
    
    .amazon-header.scrolled + body {
        padding-top: 110px !important;
    }
    
    /* ===== أزرار المنتجات - زر السلة وأزرار الكمية ===== */
    /* زر السلة - يظهر بشكل افتراضي */
    .product-card .add-to-cart,
    .product-card-v2 .add-to-cart {
        position: relative !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* زر السلة - يختفي عند الضغط عليه */
    .product-card .add-to-cart.hidden,
    .product-card-v2 .add-to-cart.hidden {
        display: none !important;
    }
    
    /* أزرار الكمية - مخفية بشكل افتراضي */
    .product-card .quantity-controls,
    .product-card-v2 .quantity-controls {
        position: relative !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* أزرار الكمية - تظهر عند الضغط على زر السلة */
    .product-card .quantity-controls.active,
    .product-card-v2 .quantity-controls.active {
        display: flex !important;
    }

}

/* ===== إخفاء في الشاشات الصغيرة ===== */
@media screen and (max-width: 1199px) {
    .amazon-header,
    header.amazon-header,
    #amazonHeader,
    .az-sidebar,
    .az-sidebar-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}


/* ===== نتائج البحث V3 - Fullscreen Overlay ===== */
@media (min-width: 1200px) {
    
    /* إخفاء dropdown القديم */
    .az-search-dropdown {
        display: none !important;
    }
    
    /* إخفاء الـ nav bar لما البحث مفتوح */
    body.search-v3-open .az-nav-bar,
    body.search-v3-open .az-categories-nav,
    body.search-v3-open .nav-bar,
    body.search-v3-open nav {
        z-index: 1 !important;
    }
    
    /* ===== Overlay البحث (الغشاش) ===== */
    .search-v3-overlay {
        position: fixed;
        top: 125px; /* تحت الشريط الرئيسي - يغطي nav bar */
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9980; /* أقل من container */
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }
    
    .search-v3-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* نتائج البحث فوق الغشاش */
    .search-v3-overlay .search-v3-container {
        z-index: 9999 !important;
    }
    
    /* ===== Container البحث ===== */
    .search-v3-container {
        position: fixed;
        top: 125px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 1200px;
        bottom: 0; /* يمتد للأسفل تماماً */
        background: #fff;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: searchSlideDown 0.25s ease;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
        border-radius: 12px 12px 0 0; /* بدون border-radius من الأسفل */
        z-index: 9999 !important;
    }
    
    @keyframes searchSlideDown {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    /* ===== Topbar ===== */
    .search-v3-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 25px;
        background: linear-gradient(135deg, #166534 0%, #15803d 50%, #166534 100%);
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .search-v3-topbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
    }
    
    .search-v3-title-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 16px;
        font-weight: 500;
        position: relative;
        z-index: 1;
    }
    
    .search-v3-title-bar i {
        font-size: 18px;
        opacity: 0.9;
    }
    
    .search-v3-title-bar strong {
        color: #C5A572;
        font-weight: 700;
    }
    
    .search-v3-close-btn {
        width: 40px;
        height: 40px;
        border: 2px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.1);
        border-radius: 12px;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 18px;
        backdrop-filter: blur(5px);
    }
    
    .search-v3-close-btn:hover {
        background: #ef4444;
        border-color: #ef4444;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }
    
    .search-v3-close-btn:active {
        transform: scale(0.95);
    }
    
    /* ===== شاشة التحميل - ثلاث نقاط ===== */
    .search-v3-loading-container {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }
    
    .search-v3-loading-dots {
        display: flex;
        gap: 12px;
    }
    
    .search-v3-loading-dots span {
        width: 16px;
        height: 16px;
        background: #1a1a1a;
        border-radius: 50%;
        animation: searchLoadingBounce 1.4s ease-in-out infinite both;
    }
    
    .search-v3-loading-dots span:nth-child(1) {
        animation-delay: -0.32s;
    }
    
    .search-v3-loading-dots span:nth-child(2) {
        animation-delay: -0.16s;
    }
    
    .search-v3-loading-dots span:nth-child(3) {
        animation-delay: 0s;
    }
    
    @keyframes searchLoadingBounce {
        0%, 80%, 100% {
            transform: scale(0.6);
            opacity: 0.5;
        }
        40% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    /* ===== منطقة المنتجات ===== */
    .search-v3-products-area {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        background: #f9fafb;
    }
    
    /* ===== Footer - زر عرض الكل ===== */
    .search-v3-footer {
        padding: 15px 20px;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        text-align: center;
    }
    

    
    .search-v3-viewall-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 35px;
        background: linear-gradient(135deg, #166534, #15803d);
        color: #fff;
        text-decoration: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(22, 101, 52, 0.2);
    }
    
    .search-v3-viewall-btn:hover {
        background: linear-gradient(135deg, #14532d, #166534);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(22, 101, 52, 0.35);
    }
    
    .search-v3-viewall-btn i {
        font-size: 16px;
    }
    
    /* ===== Grid المنتجات - تصميم محسن ===== */
    .search-v3-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    /* ===== بطاقة المنتج - تصميم عصري ===== */
    .search-v3-product {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .search-v3-product:hover {
        border-color: #1a1a1a;
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
        transform: translateY(-4px);
    }
    
    .search-v3-product-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }
    
    .search-v3-product-img {
        position: relative;
        aspect-ratio: 1;
        background: linear-gradient(135deg, #f8fdf9 0%, #f5f5f5 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
        overflow: hidden;
    }
    
    .search-v3-product-img::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent 60%, rgba(34, 197, 94, 0.05) 100%);
        pointer-events: none;
    }
    
    .search-v3-product-img img {
        max-width: 85%;
        max-height: 85%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }
    
    .search-v3-product:hover .search-v3-product-img img {
        transform: scale(1.08);
    }
    
    .search-v3-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
        font-size: 11px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    
    .search-v3-product-info {
        padding: 12px 14px 14px;
        text-align: center;
        background: white;
        border-top: 1px solid #f3f4f6;
    }
    
    .search-v3-product-name {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin: 0;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 40px;
        transition: color 0.2s;
    }
    
    .search-v3-product:hover .search-v3-product-name {
        color: #166534;
    }
    
    .search-v3-product-price {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .search-v3-price-current {
        font-size: 16px;
        font-weight: 800;
        color: #166534;
    }
    
    .search-v3-price-old {
        font-size: 12px;
        color: #9ca3af;
        text-decoration: line-through;
    }
    
    /* ===== Footer البحث ===== */
    .search-v3-footer {
        padding: 20px 25px;
        background: #f8fafc;
        border-top: 1px solid #e5e7eb;
    }
    
    .search-v3-view-all {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 15px 30px;
        background: linear-gradient(135deg, #1a1a1a, #333333);
        color: white;
        text-decoration: none;
        font-weight: 700;
        font-size: 15px;
        border-radius: 12px;
        transition: all 0.3s;
    }
    
    .search-v3-view-all:hover {
        background: linear-gradient(135deg, #1f2937, #1a1a1a);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
    }
    
    .search-v3-view-all i:last-child {
        transition: transform 0.3s;
    }
    
    .search-v3-view-all:hover i:last-child {
        transform: translateX(-5px);
    }
    
    /* ===== حالة التحميل ===== */
    .search-v3-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 100px 20px;
    }
    
    .search-v3-loading-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid #e5e7eb;
        border-top-color: #1a1a1a;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* ===== لا توجد نتائج ===== */
    .search-v3-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        text-align: center;
        min-height: 100%;
    }
    
    .search-v3-empty-icon {
        width: 120px;
        height: 120px;
        background: linear-gradient(135deg, #f5f5f5, #eeeeee);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
        position: relative;
    }
    
    .search-v3-empty-icon::before {
        content: '';
        position: absolute;
        inset: -8px;
        border: 2px dashed #C5A572;
        border-radius: 50%;
        animation: emptyIconSpin 20s linear infinite;
    }
    
    @keyframes emptyIconSpin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    
    .search-v3-empty-icon i {
        font-size: 50px;
        color: #1a1a1a;
    }
    
    .search-v3-empty h3 {
        font-size: 24px;
        font-weight: 700;
        color: #1f2937;
        margin: 0 0 12px;
    }
    
    .search-v3-empty p {
        font-size: 15px;
        color: #64748b;
        margin: 0 0 8px;
    }
    
    .search-v3-popular {
        margin-top: 35px;
        padding: 25px;
        background: #f8fafc;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
    }
    
    .search-v3-popular > span {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 15px;
    }
    
    .search-v3-popular-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .search-v3-popular-tag {
        display: inline-flex;
        align-items: center;
        padding: 10px 18px;
        background: white;
        color: #374151;
        font-size: 14px;
        font-weight: 500;
        border-radius: 25px;
        text-decoration: none;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    
    .search-v3-popular-tag:hover {
        background: linear-gradient(135deg, #166534, #15803d);
        color: white;
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
    }
}


/* ===== Toast Notification ===== */
@media (min-width: 1200px) {
    .az-toast {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: var(--az-green);
        color: #fff;
        padding: 15px 30px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        z-index: 99999;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .az-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    
    .az-toast-success {
        background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
    }
    
    .az-toast-error {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }
}



    

    
    /* ===== تأثير عند إضافة للسلة ===== */
    .az-cart-btn.adding {
        animation: cartPop 0.5s ease;
    }
    
    @keyframes cartPop {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    /* ===== Mega Menu Sidebar ===== */
    .az-mega-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -1200px;
        bottom: 0 !important;
        width: 1200px;
        max-width: 90vw;
        height: 100vh !important;
        background: #fff;
        z-index: 10001;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        box-shadow: -10px 0 50px rgba(0,0,0,0.2);
        transform: none !important;
    }
    
    .az-mega-sidebar.active {
        right: 0 !important;
    }
    
    /* الجزء الأيمن - الأقسام */
    .az-mega-categories {
        width: 300px;
        min-width: 300px;
        background: #f8fafc;
        border-left: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
    }
    
    .az-mega-header {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 30px 20px;
        background: linear-gradient(135deg, #1a1a1a, #333333);
        color: #ffffff !important;
    }
    
    .az-mega-logo-img {
        height: 45px;
        width: auto;
        object-fit: contain;
    }
    
    .az-mega-list {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }
    
    .az-mega-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        color: #333333 !important;
        margin-bottom: 4px;
        background: #ffffff;
    }
    
    .az-mega-item:hover,
    .az-mega-item.active {
        background: #f5f5f5;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    
    .az-mega-item.active {
        border-right: 3px solid #1a1a1a;
    }
    
    .az-mega-item i:first-child {
        width: 24px;
        font-size: 16px;
        color: #1a1a1a !important;
    }
    
    /* صورة القسم - دائرية وكبيرة */
    .az-mega-cat-img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        border: 3px solid #e5e7eb;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .az-mega-item:hover .az-mega-cat-img,
    .az-mega-item.active .az-mega-cat-img {
        border-color: #1a1a1a;
        transform: scale(1.08);
        box-shadow: 0 4px 12px rgba(44, 85, 48, 0.2);
    }
    
    /* تكبير اسم القسم */
    .az-mega-item:has(.az-mega-cat-img) span:not(.az-mega-count) {
        font-size: 16px;
        font-weight: 700;
    }
    
    .az-mega-item span {
        color: #333333 !important;
    }
    
    .az-mega-item span {
        flex: 1;
        font-size: 14px;
        font-weight: 600;
    }
    
    .az-mega-count {
        background: #e5e7eb;
        padding: 2px 10px;
        border-radius: 12px;
        font-size: 12px;
        color: #6b7280;
    }
    
    .az-mega-arrow {
        font-size: 12px;
        color: #9ca3af;
        transition: transform 0.2s;
    }
    
    .az-mega-item:hover .az-mega-arrow,
    .az-mega-item.active .az-mega-arrow {
        transform: translateX(-5px);
        color: var(--az-green);
    }
    
    .az-mega-divider {
        height: 1px;
        background: #e5e7eb;
        margin: 15px 0;
    }
    
    /* عناوين الأقسام */
    .az-mega-section-label {
        font-size: 11px;
        font-weight: 700;
        color: #9ca3af !important;
        text-transform: uppercase;
        padding: 12px 16px 6px;
        letter-spacing: 0.5px;
    }
    
    .az-mega-special {
        color: #ef4444 !important;
    }
    
    .az-mega-special i {
        color: #ef4444 !important;
    }
    
    /* عنوان القسم */
    .az-mega-section-title {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 700;
        color: #2d2d2d !important;
        background: #f9f6f1;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .az-mega-section-title i {
        color: #C5A572 !important;
        font-size: 16px;
    }
    
    .az-mega-section-title span {
        color: #2d2d2d !important;
    }
    
    .az-mega-account i {
        color: #2d2d2d !important;
    }
    
    /* زر تسجيل الخروج */
    .az-mega-logout {
        color: #ef4444 !important;
    }
    
    .az-mega-logout i {
        color: #ef4444 !important;
    }
    
    .az-mega-logout:hover {
        background: #fee2e2 !important;
    }
    
    /* بوكس تسجيل الدخول الجذاب */
    .az-mega-login-box {
        background: #fff;
        border-radius: 16px;
        padding: 24px 20px;
        text-align: center;
        border: none;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    }
    
    .az-mega-login-icon {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, #C5A572 0%, #B8956A 100%);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        box-shadow: 0 8px 20px rgba(197, 165, 114, 0.3);
    }
    
    .az-mega-login-icon i {
        font-size: 28px;
        color: #ffffff !important;
    }
    
    .az-mega-login-text {
        margin-bottom: 20px;
    }
    
    .az-mega-login-text span {
        display: block;
        font-size: 17px;
        font-weight: 700;
        color: #2d2d2d !important;
        margin-bottom: 6px;
    }
    
    .az-mega-login-text small {
        font-size: 13px;
        color: #888 !important;
    }
    
    .az-mega-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px;
        background: #2d2d2d !important;
        color: #ffffff !important;
        border-radius: 12px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 10px;
        transition: all 0.3s ease;
    }
    
    .az-mega-login-btn:hover {
        background: #1a1a1a !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .az-mega-register-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: transparent !important;
        color: #C5A572 !important;
        border: 2px solid #C5A572;
        border-radius: 12px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .az-mega-register-btn:hover {
        background: #f9f6f1 !important;
    }
    
    /* بوكس الحساب للمسجلين */
    .az-mega-account-box {
        background: #fff;
        border-radius: 16px;
        padding: 0;
        border: none;
        overflow: hidden;
    }
    
    .az-mega-account-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 20px;
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .az-mega-account-avatar {
        width: 50px;
        height: 50px;
        background: rgba(255,255,255,0.15);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .az-mega-account-avatar i {
        font-size: 22px;
        color: #C5A572 !important;
    }
    
    .az-mega-account-info span {
        display: block;
        font-size: 15px;
        font-weight: 700;
        color: #fff !important;
    }
    
    .az-mega-account-info small {
        font-size: 12px;
        color: rgba(255,255,255,0.6) !important;
    }
    
    .az-mega-account-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
        padding: 8px;
    }
    
    .az-mega-account-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: transparent;
        border-radius: 10px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        color: #4a4a4a !important;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    .az-mega-account-links a:hover {
        background: #f5f5f5;
        color: #2d2d2d !important;
    }
    
    .az-mega-account-links a:hover i {
        color: #C5A572 !important;
    }
    
    .az-mega-account-links a i {
        font-size: 16px;
        color: #aaa !important;
        width: 20px;
        text-align: center;
    }
    
    .az-mega-logout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: calc(100% - 16px);
        margin: 0 8px 8px;
        padding: 12px;
        background: #fef2f2 !important;
        color: #ef4444 !important;
        border: none;
        border-radius: 10px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .az-mega-logout-btn:hover {
        background: #fee2e2 !important;
    }
    
    .az-mega-logout-btn i {
        color: #ef4444 !important;
    }
    
    /* الجزء الأيسر - المنتجات */
    .az-mega-products {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: #fff;
    }
    
    .az-mega-products-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        font-size: 16px;
        font-weight: 700;
        color: #1a1a1a !important;
    }
    
    .az-mega-products-header span {
        color: #1a1a1a !important;
    }
    
    .az-mega-products-header i {
        color: #f59e0b !important;
    }
    
    /* زر الإغلاق - في الأعلى */
    .az-mega-close-btn {
        position: fixed;
        top: -130px;
        left: 0;
        right: auto;
        width: calc(100vw - min(1200px, 90vw));
        min-width: 120px;
        height: 130px;
        padding: 0;
        border: none;
        background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 100%) !important;
        color: #ffffff !important;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 100002;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .az-sidebar-overlay.active .az-mega-close-btn {
        top: 0;
        opacity: 1;
    }
    
    .az-mega-close-btn i {
        width: 50px;
        height: 50px;
        background: #ffffff !important;
        border: none;
        border-radius: 50%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
        color: #1a1a1a !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        line-height: 1 !important;
    }
    
    .az-mega-close-btn i::before {
        color: #1a1a1a !important;
    }
    
    .az-mega-close-btn::after {
        content: 'إغلاق';
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        opacity: 0.9;
    }
    
    .az-mega-close-btn:hover i {
        background: rgba(255, 255, 255, 0.25) !important;
    }
    
    .az-mega-products-grid {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: min-content;
        gap: 16px;
        align-content: start;
    }
    
    .az-mega-loading {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px;
        color: #9ca3af;
        gap: 15px;
    }
    
    .az-mega-loading i {
        font-size: 32px;
    }
    
    /* النقاط المتحركة للتحميل الكبير */
    .az-loading-dots {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .az-loading-dots span {
        width: 12px;
        height: 12px;
        background: #1a1a1a;
        border-radius: 50%;
        animation: azLoadingDotBounce 1.4s infinite ease-in-out both;
    }
    
    .az-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
    .az-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
    .az-loading-dots span:nth-child(3) { animation-delay: 0s; }
    
    @keyframes azLoadingDotBounce {
        0%, 80%, 100% {
            transform: scale(0.6);
            opacity: 0.4;
        }
        40% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    /* ===== كروت المنتجات - نفس تصميم V1 ===== */
    .az-mega-product-card {
        background: #ffffff;
        border: 2px solid #f0f0f0;
        border-radius: 14px;
        padding: 12px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: auto;
        min-height: 0;
    }
    
    .az-mega-product-card:hover {
        border-color: var(--az-green);
        box-shadow: 0 6px 20px rgba(44, 85, 48, 0.15);
    }
    
    .az-mega-product-link {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .az-mega-product-img {
        width: 100%;
        aspect-ratio: 1;
        border-radius: 10px;
        overflow: hidden;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .az-mega-product-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .az-mega-product-name {
        font-size: 13px;
        font-weight: 600;
        color: #333333 !important;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-decoration: none;
    }
    
    .az-mega-product-price-row {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .az-mega-product-price {
        font-size: 15px;
        font-weight: 700;
        color: #1a1a1a !important;
    }
    
    .az-mega-product-old-price {
        font-size: 12px;
        color: #999999 !important;
        text-decoration: line-through;
    }
    
    /* أزرار المنتج */
    .az-mega-product-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: auto;
    }
    
    /* أزرار الكمية - مخفية افتراضياً */
    .az-mega-qty-wrap {
        display: none;
        align-items: center;
        gap: 4px;
        background: #f3f4f6;
        border-radius: 8px;
        padding: 4px;
        flex: 1;
    }
    
    /* تظهر عند الإضافة للسلة */
    .az-mega-qty-wrap.active {
        display: flex;
    }
    
    .az-mega-qty-btn {
        width: 28px;
        height: 28px;
        background: #ffffff !important;
        border: 2px solid #1a1a1a !important;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #1a1a1a !important;
        font-size: 14px;
        font-weight: 700;
        font-family: inherit;
    }
    
    /* زر الناقص - أخضر غامق من الداخل */
    .az-mega-qty-btn.az-qty-minus:not(.delete-btn) {
        background: #1a1a1a !important;
        color: #ffffff !important;
        border-color: #1a1a1a !important;
    }
    
    .az-mega-qty-btn.az-qty-minus:not(.delete-btn):hover {
        background: #1f2937 !important;
        border-color: #1f2937 !important;
    }
    
    .az-mega-qty-btn:hover:not(.disabled):not(.az-qty-minus) {
        background: #1a1a1a !important;
        color: #ffffff !important;
        border-color: #1a1a1a !important;
    }
    
    .az-mega-qty-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        border-color: #ccc !important;
        color: #ccc !important;
    }
    
    .az-mega-qty-num {
        flex: 1;
        text-align: center;
        font-size: 14px;
        font-weight: 800;
        color: #333333 !important;
        min-width: 24px;
    }
    
    /* النقاط المتحركة أثناء التحميل */
    .az-qty-dots {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }
    
    .az-qty-dots span {
        width: 5px;
        height: 5px;
        background: #1a1a1a;
        border-radius: 50%;
        animation: azQtyDotBounce 1.4s infinite ease-in-out both;
    }
    
    .az-qty-dots span:nth-child(1) { animation-delay: -0.32s; }
    .az-qty-dots span:nth-child(2) { animation-delay: -0.16s; }
    .az-qty-dots span:nth-child(3) { animation-delay: 0s; }
    
    @keyframes azQtyDotBounce {
        0%, 80%, 100% {
            transform: scale(0.6);
            opacity: 0.5;
        }
        40% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    /* زر الإضافة للسلة */
    .az-mega-cart-btn {
        width: 100%;
        height: 36px;
        border-radius: 8px;
        border: none;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        background: linear-gradient(135deg, #1a1a1a, #333333) !important;
        color: #ffffff !important;
    }
    
    .az-mega-cart-btn:hover {
        background: linear-gradient(135deg, #1f2937, #1a1a1a) !important;
    }
    
    /* يختفي عند الإضافة */
    .az-mega-cart-btn.hidden {
        display: none !important;
    }
    
    .az-mega-cart-btn.added {
        background: #2d2d2d !important;
    }
    
    /* زر الصح - يظهر بعد 12 ثانية من الإضافة */
    .az-mega-check-btn {
        width: 100%;
        height: 36px;
        border-radius: 8px;
        border: none;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        background: linear-gradient(135deg, #2d2d2d, #4a4a4a) !important;
        color: #ffffff !important;
    }
    
    .az-mega-check-btn:hover {
        background: linear-gradient(135deg, #4a4a4a, #2d2d2d) !important;
        transform: scale(1.02);
    }
    
    .az-mega-check-btn.hidden {
        display: none !important;
    }
    
    /* زر الحذف - أحمر */
    .az-mega-qty-btn.delete-btn,
    .az-mega-qty-btn.az-qty-minus[style*="background: rgb(220, 38, 38)"] {
        background: #dc2626 !important;
        border-color: #dc2626 !important;
        color: #ffffff !important;
    }
    
    .az-mega-qty-btn.delete-btn:hover {
        background: #b91c1c !important;
        border-color: #b91c1c !important;
    }
    
    /* زر المفضلة - جنب زر السلة */
    .az-mega-fav-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 2px solid #f0f0f0 !important;
        background: #ffffff !important;
        color: #ec4899 !important;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    
    .az-mega-fav-btn:hover {
        background: #fdf2f8 !important;
        border-color: #ec4899 !important;
    }
    
    .az-mega-fav-btn.active {
        background: #fdf2f8 !important;
        border-color: #ec4899 !important;
    }
    
    .az-mega-fav-btn.active i {
        color: #ec4899 !important;
    }
    
    /* Badge الخصم */
    .az-mega-discount-badge {
        position: absolute;
        top: 0;
        left: 0;
        background: #ef4444 !important;
        color: #ffffff !important;
        font-size: 11px;
        font-weight: 700;
        padding: 5px 8px;
        border-radius: 14px 0 8px 0;
        z-index: 5;
    }
    
    /* Badge العد التنازلي */
    .az-mega-timer-badge {
        position: absolute;
        top: 0;
        left: 0;
        background: #f59e0b !important;
        color: #ffffff !important;
        font-size: 10px;
        font-weight: 700;
        padding: 5px 8px;
        border-radius: 14px 0 8px 0;
        z-index: 5;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .az-mega-timer-badge i {
        font-size: 10px;
    }
    
    .az-mega-product-card {
        position: relative;
    }
    
    /* ===== معرض الصور في المنتجات ===== */
    .az-mega-product-img {
        position: relative;
    }
    
    .az-mega-product-img.has-gallery {
        cursor: pointer;
    }
    
    /* أسهم التنقل - تظهر دائماً بشفافية */
    .az-mega-img-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        background: rgba(255, 255, 255, 0.7);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.5;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .az-mega-img-nav i {
        font-size: 12px;
        color: #1a1a1a;
    }
    
    .az-mega-img-prev { left: 6px; }
    .az-mega-img-next { right: 6px; }
    
    .az-mega-product-img.has-gallery:hover .az-mega-img-nav {
        opacity: 1;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .az-mega-img-nav:hover {
        background: linear-gradient(135deg, #1a1a1a, #3d7c47) !important;
        transform: translateY(-50%) scale(1.1);
        opacity: 1 !important;
    }
    
    .az-mega-img-nav:hover i {
        color: white;
    }
    
    /* نقاط الصور */
    .az-mega-img-dots {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 5px;
        z-index: 10;
    }
    
    .az-mega-img-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .az-mega-img-dot.active {
        background: #1a1a1a;
        transform: scale(1.3);
    }
    
    /* تأثير الصورة */
    .az-mega-main-img {
        transition: opacity 0.1s ease;
    }
    
    /* تعطيل السهم */
    .az-mega-img-nav.disabled {
        opacity: 0.3 !important;
        cursor: not-allowed;
        background: rgba(200, 200, 200, 0.5);
    }
    
    .az-mega-img-nav.disabled:hover {
        transform: translateY(-50%);
        background: rgba(200, 200, 200, 0.5);
    }
    
    /* زر المفضلة - فوق الصورة */
    .az-mega-fav-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 15;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        font-size: 16px;
    }
    
    /* نسبة الخصم - أخضر */
    .az-mega-price-discount {
        font-size: 12px;
        font-weight: 800;
        color: #16a34a !important;
    }


/* ===== Address Modal - تصميم جديد أنيق ===== */
@media (min-width: 1200px) {
    
    /* إخفاء جميع أشرطة السكرول داخل النافذة المنبثقة */
    .az-address-modal *::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .az-address-modal * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .az-address-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(8px);
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .az-address-modal.show {
        opacity: 1;
        visibility: visible;
    }
    
    .az-address-modal-content {
        background: #fff;
        width: 420px;
        max-height: 75vh;
        border-radius: 24px;
        transform: scale(0.9) translateY(30px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    }
    
    .az-address-modal.show .az-address-modal-content {
        transform: scale(1) translateY(0);
    }
    
    .az-address-modal-header {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        padding: 20px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .az-modal-title-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .az-modal-title-wrap i {
        font-size: 20px;
        color: #C5A572;
    }
    
    .az-address-modal-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
    }
    
    .az-address-country {
        display: none;
    }
    
    .az-address-modal-close {
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        cursor: pointer;
        font-size: 14px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }
    
    .az-address-modal-close:hover {
        background: rgba(255,255,255,0.2);
        transform: rotate(90deg);
    }
    
    /* Tabs - تصميم جديد */
    .az-address-tabs {
        display: flex;
        background: #f5f5f5;
        padding: 6px;
        gap: 6px;
        border-radius: 0;
    }
    
    .az-address-tab {
        flex: 1;
        padding: 10px 12px;
        border: none;
        background: transparent;
        font-size: 12px;
        font-weight: 600;
        color: #888;
        cursor: pointer;
        position: relative;
        font-family: 'Cairo', sans-serif;
        transition: all 0.3s;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
    }
    
    .az-address-tab i {
        font-size: 12px;
    }
    
    .az-address-tab:hover {
        color: #2d2d2d;
        background: #fff;
    }
    
    .az-address-tab.active {
        color: #2d2d2d;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .az-address-tab.active::after {
        display: none;
    }
    
    /* Tab Content */
    .az-address-tab-content {
        display: none;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .az-address-tab-content::-webkit-scrollbar {
        display: none;
    }
    
    .az-address-tab-content.active {
        display: block;
    }
    
    /* Search Wrapper */
    .az-address-search-wrapper {
        position: relative;
        margin-bottom: 12px;
    }
    
    /* Add Address Button - تصميم جديد بارز */
    .az-add-address-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 16px 20px;
        background: linear-gradient(135deg, #C5A572 0%, #B8956A 100%);
        color: #fff;
        border: none;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-bottom: 20px;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
    }
    
    .az-add-address-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(197, 165, 114, 0.4);
    }
    
    .az-add-address-btn i {
        font-size: 16px;
    }
    
    /* Search */
    .az-address-search {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: #f5f5f5;
        border: 2px solid transparent;
        border-radius: 14px;
        transition: all 0.3s;
        margin-bottom: 20px;
    }
    
    .az-address-search:focus-within {
        border-color: #C5A572;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.1);
    }
    
    .az-address-search i {
        color: #aaa;
        font-size: 16px;
    }
    
    .az-address-search input {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
        color: #2d2d2d;
    }
    
    .az-address-search input::placeholder {
        color: #aaa;
    }
    
    .az-search-clear {
        width: 24px;
        height: 24px;
        border: none;
        background: #ddd;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 11px;
        transition: all 0.2s;
    }
    
    .az-search-clear:hover {
        background: #2d2d2d;
        color: #fff;
    }
    
    /* Location Search Results */
    .az-location-search-results {
        display: none;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        overflow-y: auto;
        overflow-x: hidden;
        margin-bottom: 15px;
        max-height: 350px;
        /* إخفاء شريط السكرول مع الحفاظ على التمرير */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .az-location-search-results::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .az-location-search-results.show {
        display: block;
    }
    
    .az-search-results-title {
        padding: 12px 16px;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        background: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .az-location-result-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        transition: all 0.2s;
    }
    
    .az-location-result-item:last-child {
        border-bottom: none;
    }
    
    .az-location-result-item:hover {
        background: #f5f5f5;
    }
    
    .az-location-result-item i {
        width: 20px;
        color: #1a1a1a;
        font-size: 16px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .az-location-result-info {
        flex: 1;
        min-width: 0;
    }
    
    .az-location-result-name {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .az-location-result-address {
        font-size: 12px;
        color: #6b7280;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* زر تحديد الموقع على الخريطة */
    .az-map-select-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        cursor: pointer;
        background: #f5f5f5;
        border-top: 2px solid #e5e7eb;
        transition: all 0.2s;
    }
    
    .az-map-select-btn:hover {
        background: #f9f6f1;
    }
    
    .az-map-select-btn i {
        width: 36px;
        height: 36px;
        background: #1a1a1a;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }
    
    .az-map-select-btn span {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
    }
    
    .az-search-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 20px;
        color: #6b7280;
        font-size: 13px;
    }
    
    .az-loading-dots {
        display: inline-flex;
        gap: 4px;
    }
    .az-loading-dots span {
        width: 6px;
        height: 6px;
        background: #C5A572;
        border-radius: 50%;
        animation: azDotPulse 1.4s infinite ease-in-out both;
    }
    .az-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
    .az-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
    .az-loading-dots span:nth-child(3) { animation-delay: 0s; }
    @keyframes azDotPulse {
        0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
        40% { transform: scale(1); opacity: 1; }
    }
    }
    
    /* Saved Addresses */
    .az-saved-addresses-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #2d2d2d;
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    .az-saved-addresses-title i {
        color: #C5A572;
        font-size: 14px;
    }
    
    .az-addresses-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .az-address-card {
        display: flex;
        gap: 14px;
        padding: 16px;
        background: #fff;
        border: 2px solid #f0f0f0;
        border-radius: 16px;
        cursor: pointer;
        position: relative;
        transition: all 0.3s;
    }
    
    .az-address-card:hover {
        border-color: #C5A572;
        box-shadow: 0 4px 15px rgba(197, 165, 114, 0.15);
        transform: translateY(-2px);
    }
    
    .az-address-card.selected {
        background: linear-gradient(135deg, #f9f6f1 0%, #fff 100%);
        border-color: #C5A572;
        box-shadow: 0 4px 20px rgba(197, 165, 114, 0.2);
    }
    
    .az-address-card-menu {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #aaa;
        cursor: pointer;
        border-radius: 6px;
        transition: all 0.2s;
        z-index: 10;
    }
    
    .az-address-card-menu:hover {
        background: #e5e7eb;
        color: #374151;
    }
    
    .az-address-dropdown {
        position: absolute;
        bottom: calc(100% + 5px);
        top: auto;
        left: 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        min-width: 140px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(0.95);
        transition: all 0.2s ease;
        z-index: 1000;
        overflow: visible;
    }
    
    .az-address-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .az-address-dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        font-size: 12px;
        color: #4a4a4a;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .az-address-dropdown-item:hover {
        background: #f5f5f5;
    }
    
    .az-address-dropdown-item i {
        width: 14px;
        color: #888;
    }
    
    .az-address-dropdown-item.delete {
        color: #ef4444;
    }
    
    .az-address-dropdown-item.delete i {
        color: #ef4444;
    }
    
    .az-address-dropdown-item.delete:hover {
        background: #fef2f2;
    }
    
    /* العنوان الافتراضي في القائمة */
    .az-address-dropdown-item.is-default {
        color: #2d2d2d;
        background: #f9f6f1;
        cursor: default;
    }
    
    .az-address-dropdown-item.is-default i {
        color: #C5A572;
    }
    
    .az-address-dropdown-item.is-default:hover {
        background: #f9f6f1;
    }
    
    /* زر إلغاء الافتراضي */
    .az-address-dropdown-item.cancel-default {
        color: #ef4444;
    }
    
    .az-address-dropdown-item.cancel-default i {
        color: #ef4444;
    }
    
    .az-address-dropdown-item.cancel-default:hover {
        background: #fef2f2;
    }
    
    /* شارة النجمة للعنوان الافتراضي */
    .az-default-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 22px;
        height: 22px;
        background: linear-gradient(135deg, #C5A572, #B8956A);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(197, 165, 114, 0.4);
    }
    
    .az-default-badge i {
        font-size: 10px;
        color: #fff;
    }
    
    /* نص الافتراضي بجانب اسم العنوان */
    .az-default-text {
        font-size: 10px;
        color: #C5A572;
        background: #f9f6f1;
        padding: 2px 8px;
        border-radius: 10px;
        margin-right: 5px;
        font-weight: 600;
    }
    
    .az-address-card-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #f9f6f1 0%, #fff 100%);
        border: 2px solid #e8e0d5;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #C5A572;
        flex-shrink: 0;
    }
    
    .az-address-card-info {
        flex: 1;
    }
    
    .az-address-card-info strong {
        display: block;
        font-size: 14px;
        margin-bottom: 4px;
        color: #2d2d2d;
    }
    
    .az-address-card-info p {
        margin: 0 0 6px;
        font-size: 12px;
        color: #888;
        line-height: 1.5;
    }
    
    .az-address-phone {
        font-size: 12px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .az-address-phone i {
        color: #C5A572;
        font-size: 12px;
    }
    
    .az-no-addresses {
        text-align: center;
        padding: 40px 20px;
        color: #aaa;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .az-no-addresses i {
        font-size: 40px;
        color: #ddd;
    }
    
    .az-no-addresses i {
        font-size: 32px;
        color: #d1d5db;
    }
    
    /* Hidden class */
    .az-address-main.hidden,
    .az-city-selection.hidden,
    .az-address-form.hidden {
        display: none !important;
    }
    
    /* City Selection */
    .az-city-selection {
        margin-top: 0;
    }
    
    .az-city-title {
        font-size: 16px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 15px;
    }
    
    .az-cities-simple-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .az-city-simple-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: #fafafa;
        border: 1px solid #eee;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .az-city-simple-item:hover {
        border-color: #C5A572;
        background: #fff;
    }
    
    .az-city-simple-item i {
        color: #C5A572;
        font-size: 15px;
    }
    
    .az-city-simple-item .az-city-name {
        flex: 1;
        font-size: 13px;
        font-weight: 600;
        color: #2d2d2d;
    }
    
    .az-city-simple-item .az-city-cost {
        font-size: 12px;
        color: #888;
        font-weight: 500;
    }
    
    /* Pickup Tab */
    .az-pickup-message {
        text-align: center;
        padding: 50px 20px;
        color: #aaa;
    }
    
    .az-pickup-message i {
        font-size: 40px;
        margin-bottom: 12px;
        display: block;
        color: #ddd;
    }
    
    /* Back Button */
    .az-back-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 0;
        background: none;
        border: none;
        color: #888;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-bottom: 12px;
    }
    
    .az-back-btn:hover {
        color: #C5A572;
    }
    
    /* City Header - تصميم جديد */
    .az-city-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px;
        background: linear-gradient(135deg, #f9f6f1 0%, #fff 100%);
        border: 2px solid #e8e0d5;
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .az-city-header > i {
        font-size: 24px;
        color: #C5A572;
    }
    
    .az-city-title {
        font-size: 15px;
        font-weight: 700;
        color: #2d2d2d;
        margin-bottom: 2px;
    }
    
    .az-city-subtitle {
        font-size: 12px;
        color: #888;
    }
    
    /* City Items - تصميم جديد */
    .az-cities-simple-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .az-city-simple-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: #fff;
        border: 2px solid #f0f0f0;
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .az-city-simple-item:hover {
        border-color: #C5A572;
        box-shadow: 0 4px 15px rgba(197, 165, 114, 0.15);
        transform: translateX(-4px);
    }
    
    .az-city-icon {
        width: 40px;
        height: 40px;
        background: #f9f6f1;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .az-city-icon i {
        color: #C5A572;
        font-size: 16px;
    }
    
    .az-city-simple-item .az-city-name {
        flex: 1;
        font-size: 14px;
        font-weight: 600;
        color: #2d2d2d;
    }
    
    .az-city-simple-item .az-city-cost {
        font-size: 12px;
        color: #888;
        font-weight: 500;
        background: #f5f5f5;
        padding: 4px 10px;
        border-radius: 20px;
    }
    
    .az-city-arrow {
        color: #ccc;
        font-size: 12px;
        transition: all 0.3s;
    }
    
    .az-city-simple-item:hover .az-city-arrow {
        color: #C5A572;
        transform: translateX(-4px);
    }
    
    /* Form City Badge */
    .az-form-city-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: #f9f6f1;
        border-radius: 16px;
        color: #2d2d2d;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 16px;
    }
    
    /* Address Form */
    .az-address-form-fields {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    
    .az-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .az-form-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .az-form-field label {
        font-size: 13px;
        font-weight: 600;
        color: #2d2d2d;
    }
    
    .az-form-field > label > span {
        color: #ef4444;
    }
    
    .az-form-field input {
        padding: 12px 14px;
        border: 2px solid #f0f0f0;
        border-radius: 12px;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        transition: all 0.3s;
        background: #fafafa;
    }
    
    .az-form-field input:focus {
        outline: none;
        border-color: #C5A572;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.1);
    }
    
    /* Address Labels */
    .az-address-labels {
        display: flex;
        gap: 10px;
    }
    
    .az-label-option {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 14px 10px;
        background: #fafafa;
        border: 2px solid #f0f0f0;
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .az-label-option input {
        display: none;
    }
    
    .az-label-option i {
        font-size: 20px;
        color: #bbb;
    }
    
    .az-label-option span {
        font-size: 12px;
        color: #888;
    }
    
    .az-label-option.active,
    .az-label-option:has(input:checked) {
        background: linear-gradient(135deg, #f9f6f1 0%, #fff 100%);
        border-color: #C5A572;
        box-shadow: 0 4px 15px rgba(197, 165, 114, 0.15);
    }
    
    .az-label-option.active i,
    .az-label-option:has(input:checked) i {
        color: #C5A572;
    }
    
    .az-label-option.active span,
    .az-label-option:has(input:checked) span {
        color: #2d2d2d;
        font-weight: 600;
    }
    
    /* Map Section */
    .az-map-section {
        margin-bottom: 12px;
    }
    
    .az-map-search-box {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .az-map-search-box i {
        color: #9ca3af;
    }
    
    .az-map-search-box input {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
    }
    
    .az-search-results {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 100;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .az-search-result-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        font-size: 13px;
    }
    
    .az-search-result-item:last-child {
        border-bottom: none;
    }
    
    .az-search-result-item:hover {
        background: #f5f5f5;
    }
    
    .az-search-result-item i {
        color: #1a1a1a;
    }
    
    .az-map-container {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        border: 2px solid #e5e7eb;
    }
    
    .az-map {
        height: 180px;
        width: 100%;
    }
    
    .az-gps-btn {
        position: absolute;
        bottom: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        background: #fff;
        border: none;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #C5A572;
        font-size: 14px;
        transition: all 0.2s;
        z-index: 10;
    }
    
    .az-gps-btn:hover {
        background: #2d2d2d;
        color: #fff;
    }
    
    .az-selected-location {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        background: #fafafa;
        border-radius: 6px;
        margin-top: 8px;
        font-size: 12px;
        color: #888;
    }
    
    .az-selected-location i {
        color: #C5A572;
    }
    
    /* Save Button */
    .az-save-address-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        color: #fff;
        border: none;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-top: 10px;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    .az-save-address-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }



/* ===== خريطة Fullscreen ===== */
@media (min-width: 1200px) {
    
    /* شاشة الخريطة الكاملة */
    .az-map-fullscreen {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        display: flex;
        flex-direction: column;
        z-index: 100;
    }
    
    .az-map-fullscreen.hidden {
        display: none;
    }
    
    /* هيدر الخريطة */
    .az-map-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        flex-shrink: 0;
    }
    
    .az-map-header span {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
    }
    
    .az-map-back,
    .az-map-close {
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 14px;
        transition: all 0.2s;
    }
    
    .az-map-back:hover,
    .az-map-close:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .az-map-close:hover {
        transform: rotate(90deg);
    }
    
    /* شريط البحث العلوي */
    .az-map-top-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }
    
    .az-map-search-input {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: #f5f5f5;
        border: 2px solid transparent;
        border-radius: 12px;
        transition: all 0.3s;
    }
    
    .az-map-search-input:focus-within {
        border-color: #C5A572;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.1);
    }
    
    .az-map-search-input i {
        color: #aaa;
        font-size: 15px;
    }
    
    .az-map-search-input input {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
        color: #2d2d2d;
    }
    
    .az-map-search-input input::placeholder {
        color: #aaa;
    }
    
    .az-use-gps {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        background: linear-gradient(135deg, #C5A572 0%, #B8956A 100%);
        border: none;
        border-radius: 12px;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.3s;
        box-shadow: 0 4px 12px rgba(197, 165, 114, 0.3);
    }
    
    .az-use-gps:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(197, 165, 114, 0.4);
    }
    
    .az-use-gps i {
        font-size: 14px;
    }
    
    /* نتائج البحث */
    .az-search-results-list {
        display: none;
        position: absolute;
        top: 120px;
        left: 20px;
        right: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 200;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .az-search-results-list .az-search-result-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        font-size: 14px;
        color: #374151;
        transition: all 0.2s;
    }
    
    .az-search-results-list .az-search-result-item:last-child {
        border-bottom: none;
    }
    
    .az-search-results-list .az-search-result-item:hover {
        background: #f9f6f1;
    }
    
    .az-search-results-list .az-search-result-item i {
        color: #C5A572;
        font-size: 14px;
    }
    
    /* الخريطة */
    .az-map-wrapper {
        flex: 1;
        position: relative;
        min-height: 280px;
    }
    
    .az-fullmap {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    #azTomTomMap {
        width: 100%;
        height: 100%;
    }
    
    /* Pin في منتصف الخريطة */
    .az-map-center-pin {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%);
        z-index: 100;
        pointer-events: none;
        text-align: center;
    }
    
    .az-map-center-pin i {
        font-size: 42px;
        color: #C5A572;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
        animation: pinBounce 0.5s ease-out;
    }
    
    @keyframes pinBounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    .az-pin-label,
    .az-pin-label-top {
        background: #2d2d2d;
        color: #fff;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 8px;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        display: inline-block;
    }
    
    /* شريط التأكيد السفلي */
    .az-map-bottom-bar {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 20px;
        background: #fff;
        border-top: 1px solid #f0f0f0;
        flex-shrink: 0;
    }
    
    .az-location-info {
        flex: 1;
        min-width: 0;
    }
    
    .az-location-info .az-location-label {
        font-size: 12px;
        color: #888;
        margin-bottom: 4px;
    }
    
    .az-location-info .az-location-address {
        font-size: 14px;
        color: #2d2d2d;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .az-confirm-location-btn {
        padding: 14px 28px;
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    .az-confirm-location-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }
    
    /* تحسين فورم التفاصيل */
    .az-confirmed-location {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        background: linear-gradient(135deg, #f9f6f1 0%, #fff 100%);
        border: 2px solid #e8e0d5;
        border-radius: 14px;
        margin-bottom: 18px;
        font-size: 13px;
        color: #2d2d2d;
        font-weight: 500;
    }
    
    .az-confirmed-location i {
        font-size: 18px;
        color: #C5A572;
    }
}

/* ===== Address Modal - Desktop Large ===== */
@media (min-width: 1200px) {
    
    .az-address-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
    }
    
    .az-address-modal.show {
        display: flex;
    }
    
    .az-address-modal-content {
        background: #fff;
        width: 500px;
        max-width: 90vw;
        height: auto;
        max-height: 600px;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        display: flex;
        flex-direction: column;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    /* وضع الخريطة الكاملة */
    .az-address-modal-content.fullscreen-map {
        width: 650px;
        height: 85vh;
        max-height: 750px;
    }
    
    .az-modal-header-section {
        flex-shrink: 0;
    }
    
    .az-address-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
    }
    
    .az-address-modal-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a2e;
        margin: 0;
    }
    
    .az-address-country {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #6b7280;
    }
    
    .az-address-country img {
        width: 24px;
        height: auto;
        border-radius: 3px;
    }
    
    .az-address-modal-close {
        width: 36px;
        height: 36px;
        border: none;
        background: #f3f4f6;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #374151;
        font-size: 16px;
        transition: all 0.2s;
    }
    
    .az-address-modal-close:hover {
        background: #e5e7eb;
        color: #1a1a2e;
    }
    
    /* Tabs */
    .az-address-tabs {
        display: flex;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
    }
    
    .az-address-tab {
        flex: 1;
        padding: 14px;
        border: none;
        background: none;
        font-size: 14px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        color: #9ca3af;
        cursor: pointer;
        position: relative;
        transition: all 0.2s;
    }
    
    .az-address-tab.active {
        color: #1a1a1a;
    }
    
    .az-address-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: #1a1a1a;
        border-radius: 3px 3px 0 0;
    }
    
    .az-address-tab-content {
        display: none;
        flex: 1;
        overflow: hidden;
        position: relative;
    }
    
    .az-address-tab-content.active {
        display: flex;
        flex-direction: column;
    }
    
    /* Main Screen */
    .az-address-main {
        padding: 20px;
        overflow-y: auto;
        flex: 1;
    }
    
    .az-address-main.hidden {
        display: none;
    }
    
    .az-address-search {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .az-address-search i {
        color: #9ca3af;
    }
    
    .az-address-search input {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
    }
    
    .az-add-address-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-bottom: 20px;
        transition: all 0.2s;
    }
    
    .az-add-address-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(45, 45, 45, 0.3);
    }
    
    .az-saved-addresses-title {
        font-size: 14px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 12px;
    }
    
    .az-addresses-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .az-no-addresses {
        text-align: center;
        padding: 30px;
        color: #9ca3af;
        font-size: 14px;
    }
    
    .az-address-card {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        cursor: pointer;
        position: relative;
        transition: all 0.2s;
    }
    
    .az-address-card:hover {
        border-color: #C5A572;
        background: #f9f9f9;
    }
    
    .az-address-card.selected {
        border-color: #C5A572;
        background: #f9f6f1;
    }
    
    .az-address-card-icon {
        width: 40px;
        height: 40px;
        background: #1a1a1a;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .az-address-card-info {
        flex: 1;
        min-width: 0;
    }
    
    .az-address-card-info strong {
        display: block;
        font-size: 14px;
        color: #1a1a2e;
        margin-bottom: 4px;
    }
    
    .az-address-card-info p {
        font-size: 13px;
        color: #6b7280;
        margin: 0 0 4px 0;
        line-height: 1.4;
    }
    
    .az-address-phone {
        font-size: 12px;
        color: #1a1a1a;
    }
    
    .az-address-phone i {
        margin-left: 4px;
    }
    
    .az-address-card-menu {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        cursor: pointer;
        border-radius: 6px;
        transition: all 0.2s;
        z-index: 10;
    }
    
    .az-address-card-menu:hover {
        background: #e5e7eb;
        color: #374151;
    }
    
    /* City Selection */
    .az-city-selection {
        padding: 20px;
        overflow-y: auto;
        flex: 1;
    }
    
    .az-city-selection.hidden {
        display: none;
    }
    
    .az-back-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        border: none;
        background: none;
        color: #1a1a1a;
        font-size: 14px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-bottom: 15px;
    }
    
    .az-back-btn:hover {
        color: #C5A572;
    }
    
    .az-city-title {
        font-size: 16px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 15px;
    }
    
    .az-cities-simple-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .az-city-simple-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .az-city-simple-item:hover {
        border-color: #1a1a1a;
        background: #f5f5f5;
    }
    
    .az-city-simple-item i {
        color: #1a1a1a;
        font-size: 16px;
    }
    
    .az-city-name {
        flex: 1;
        font-size: 14px;
        font-weight: 600;
        color: #1a1a2e;
    }
    
    .az-city-cost {
        font-size: 13px;
        color: #1a1a1a;
        font-weight: 600;
    }
    
    /* Address Form */
    .az-address-form {
        padding: 20px;
        overflow-y: auto;
        flex: 1;
    }
    
    .az-address-form.hidden {
        display: none;
    }
    
    .az-address-form-fields {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .az-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .az-form-field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
    }
    
    .az-form-field > label > span {
        color: #ef4444;
    }
    
    .az-form-field input[type="text"],
    .az-form-field input[type="tel"] {
        width: 100%;
        padding: 12px 14px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        transition: all 0.2s;
        box-sizing: border-box;
    }
    
    .az-form-field input:focus {
        outline: none;
        border-color: #1a1a1a;
    }
    
    /* Phone Input with Prefix */
    .az-phone-input-wrapper {
        display: flex;
        align-items: center;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.2s;
    }
    
    .az-phone-input-wrapper:focus-within {
        border-color: #1a1a1a;
    }
    
    .az-phone-prefix {
        background: #f3f4f6;
        padding: 12px 14px;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        border-left: 2px solid #e5e7eb;
        white-space: nowrap;
    }
    
    .az-phone-input-wrapper input {
        flex: 1;
        border: none !important;
        border-radius: 0 !important;
        padding: 12px 14px;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        direction: ltr;
        text-align: left;
    }
    
    .az-phone-input-wrapper input:focus {
        outline: none;
        box-shadow: none;
    }
    
    .az-phone-hint {
        font-size: 12px;
        margin-top: 6px;
        min-height: 18px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .az-phone-hint.valid {
        color: #C5A572;
    }
    
    .az-phone-hint.invalid {
        color: #ef4444;
    }
    
    /* Pickup Tab */
    .az-pickup-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        text-align: center;
        color: #9ca3af;
    }
    
    .az-pickup-message i {
        font-size: 48px;
        margin-bottom: 15px;
        opacity: 0.5;
    }
    
    .az-pickup-message p {
        font-size: 14px;
        margin: 0;
    }
}

/* ===== Map Fullscreen (نون ستايل) ===== */
@media (min-width: 1200px) {
    
    .az-map-fullscreen {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        background: #fff;
        z-index: 10;
    }
    
    .az-map-fullscreen.hidden {
        display: none !important;
    }
    
    /* Header */
    .az-map-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .az-map-header span {
        font-size: 16px;
        font-weight: 700;
        color: #1a1a2e;
    }
    
    .az-map-back,
    .az-map-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: #f3f4f6;
        border-radius: 50%;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .az-map-back:hover,
    .az-map-close:hover {
        background: #e5e7eb;
        color: #1a1a2e;
    }
    
    /* Top Bar with Search */
    .az-map-top-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .az-map-search-input {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: #f3f4f6;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        transition: all 0.2s;
    }
    
    .az-map-search-input:focus-within {
        border-color: #1a1a1a;
        background: #fff;
    }
    
    .az-map-search-input i {
        color: #9ca3af;
        font-size: 16px;
    }
    
    .az-map-search-input input {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
        color: #1a1a2e;
    }
    
    .az-map-search-input input::placeholder {
        color: #9ca3af;
    }
    
    .az-use-gps {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        background: #f9f6f1;
        border: 2px solid #C5A572;
        border-radius: 12px;
        color: #2d2d2d;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }
    
    .az-use-gps:hover {
        background: #2d2d2d;
        color: #fff;
    }
    
    .az-use-gps i {
        font-size: 16px;
    }
    
    /* Search Results */
    .az-search-results-list {
        display: none;
        position: absolute;
        top: 130px;
        left: 20px;
        right: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        z-index: 100;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .az-search-result-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        transition: all 0.2s;
    }
    
    .az-search-result-item:last-child {
        border-bottom: none;
    }
    
    .az-search-result-item:hover {
        background: #f5f5f5;
    }
    
    .az-search-result-item i {
        color: #1a1a1a;
        font-size: 16px;
    }
    
    .az-search-result-item span {
        flex: 1;
        font-size: 14px;
        color: #374151;
        line-height: 1.4;
    }
    
    /* Map Wrapper */
    .az-map-wrapper {
        flex: 1;
        position: relative;
        min-height: 300px;
    }
    
    .az-fullmap {
        width: 100%;
        height: 100%;
    }
    
    /* Center Pin */
    .az-map-center-pin {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%);
        z-index: 50;
        pointer-events: none;
        text-align: center;
    }
    
    .az-map-center-pin i {
        font-size: 40px;
        color: #1a1a1a;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }
    
    .az-pin-label {
        background: #1a1a2e;
        color: #fff;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        margin-top: -5px;
        white-space: nowrap;
        position: relative;
    }
    
    .az-pin-label::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #1a1a2e;
    }
    
    /* Bottom Bar */
    .az-map-bottom-bar {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        background: #fff;
        border-top: 1px solid #e5e7eb;
    }
    
    .az-location-info {
        flex: 1;
        min-width: 0;
    }
    
    .az-location-label {
        font-size: 12px;
        color: #9ca3af;
        margin-bottom: 4px;
    }
    
    .az-location-address {
        font-size: 14px;
        color: #1a1a2e;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .az-location-address i {
        color: #1a1a1a;
        margin-left: 6px;
    }
    
    .az-confirm-location-btn {
        padding: 14px 30px;
        background: linear-gradient(135deg, #2d2d2d 0%, #4a4a4a 100%);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        transition: all 0.3s;
        white-space: nowrap;
    }
    
    .az-confirm-location-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(45, 45, 45, 0.3);
    }
    
    /* Confirmed Location in Form */
    .az-confirmed-location {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        background: #f9f6f1;
        border: 2px solid #C5A572;
        border-radius: 12px;
        margin-bottom: 20px;
        color: #2d2d2d;
        font-size: 14px;
        font-weight: 500;
    }
    
    .az-confirmed-location i {
        font-size: 18px;
    }
}


/* ===== شاشة تحديد الموقع - تصميم جديد ===== */
#locationLoadingOverlay,
#locationSuccessOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: locFadeIn 0.3s ease;
}

@keyframes locFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#locationSuccessOverlay.closing {
    animation: locFadeOut 0.3s ease forwards;
}

@keyframes locFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* شاشة التحميل */
.loc-loading-box {
    text-align: center;
    color: #fff;
}

.loc-loading-animation {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
}

.loc-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border: 3px solid rgba(197, 165, 114, 0.4);
    border-radius: 50%;
    animation: locPulseRing 1.5s ease-out infinite;
}

.loc-pulse.delay-1 { animation-delay: 0.5s; }
.loc-pulse.delay-2 { animation-delay: 1s; }

@keyframes locPulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.loc-pin-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(45, 45, 45, 0.4);
}

.loc-pin-icon i {
    font-size: 24px;
    color: #fff;
    animation: locBounce 1s ease infinite;
}

@keyframes locBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.loc-loading-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.loc-loading-box p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* شاشة النجاح */
.loc-success-box {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    width: 380px;
    max-width: 92vw;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: locSlideUp 0.4s ease;
}

@keyframes locSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loc-success-map-container {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f9f6f1, #efe8dc);
    overflow: hidden;
}

.loc-success-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
}

.loc-success-pin-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loc-pin-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(197, 165, 114, 0.25);
    border-radius: 50%;
    animation: locPinPulse 2s ease-out infinite;
}

@keyframes locPinPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.loc-pin-marker {
    position: relative;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(45, 45, 45, 0.4);
}

.loc-pin-marker i {
    transform: rotate(45deg);
    font-size: 20px;
    color: #fff;
}

.loc-success-badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    z-index: 20;
}

.loc-success-badge i {
    color: #C5A572;
    font-size: 14px;
}

.loc-success-content {
    padding: 25px;
    text-align: center;
}

.loc-success-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #C5A572, #B8956A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 25px rgba(197, 165, 114, 0.3);
}

.loc-success-icon i {
    font-size: 24px;
    color: #fff;
}

.loc-success-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.loc-success-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.5;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.loc-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 35px;
    background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.loc-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 45, 45, 0.3);
}

.loc-success-btn i {
    font-size: 13px;
}


/* ===== النقطة الخضراء - موقعي الحالي ===== */
.my-loc-marker {
    width: 80px;
    height: 80px;
    position: relative;
}

.my-loc-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(34, 197, 94, 0.35);
    border-radius: 50%;
    animation: locPulseAnim 2s ease-out infinite;
}

.my-loc-pulse.d2 {
    animation-delay: 1s;
}

@keyframes locPulseAnim {
    0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.my-loc-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #1a1a1a;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.6);
}


/* ===== النقطة الخضراء - موقعي الحالي ===== */
.my-loc-marker {
    width: 80px;
    height: 80px;
    position: relative;
}

.my-loc-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(34, 197, 94, 0.35);
    border-radius: 50%;
    animation: locPulseAnim 2s ease-out infinite;
}

.my-loc-pulse.d2 {
    animation-delay: 1s;
}

@keyframes locPulseAnim {
    0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.my-loc-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #1a1a1a;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.6);
}


/* ===== Label فوق السهم ===== */
.az-pin-label-top {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.az-pin-label-top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1a1a2e;
}


/* ===== النافذة المنبثقة للموبايل - تفتح من الأسفل ===== */
@media (max-width: 1199px) {
    
    /* Hidden class للموبايل */
    .az-address-main.hidden,
    .az-city-selection.hidden,
    .az-map-fullscreen.hidden,
    .az-address-form.hidden {
        display: none !important;
    }
    
    .az-address-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999999;
        align-items: flex-end;
        justify-content: center;
    }
    
    .az-address-modal.show {
        display: flex;
    }
    
    .az-address-modal-content {
        background: #fff;
        width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }
    
    .az-address-modal.show .az-address-modal-content {
        transform: translateY(0);
    }
    
    /* إخفاء جميع أشرطة السكرول داخل النافذة المنبثقة */
    .az-address-modal *::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .az-address-modal * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .az-address-modal-header {
        background: #fff;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #eee;
    }
    
    .az-modal-title-wrap {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .az-modal-title-wrap i {
        display: none;
    }
    
    .az-address-modal-header h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        color: #1a1a1a;
    }
    
    .az-address-country {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-right: auto;
        padding: 6px 10px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 12px;
    }
    
    .az-address-country img {
        width: 18px;
    }
    
    .az-address-modal-close {
        width: 36px;
        height: 36px;
        border: none;
        background: #f5f5f5;
        border-radius: 50%;
        cursor: pointer;
        font-size: 16px;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Tabs */
    .az-address-tabs {
        display: flex;
        border-bottom: 2px solid #eee;
    }
    
    .az-address-tab {
        flex: 1;
        padding: 12px;
        border: none;
        background: none;
        font-size: 14px;
        font-weight: 600;
        color: #666;
        cursor: pointer;
        position: relative;
        font-family: 'Cairo', sans-serif;
    }
    
    .az-address-tab.active {
        color: #1a1a1a;
    }
    
    .az-address-tab.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 3px;
        background: #1a1a1a;
    }
    
    /* Tab Content */
    .az-address-tab-content {
        display: none;
        flex: 1;
        overflow-y: auto;
        padding: 16px;
    }
    
    .az-address-tab-content.active {
        display: block;
    }
    
    /* Search */
    .az-address-search {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        margin-bottom: 12px;
        position: relative;
    }
    
    .az-address-search input {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
        padding-left: 35px;
    }
    
    /* Add Address Button */
    .az-add-address-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-bottom: 16px;
    }
    
    /* Location Search Results */
    .az-location-search-results {
        display: none;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        overflow-y: auto;
        margin-bottom: 12px;
        max-height: 250px;
    }
    
    .az-location-search-results.show {
        display: block;
    }
    
    .az-location-result-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .az-location-result-item:last-child {
        border-bottom: none;
    }
    
    .az-location-result-item:active {
        background: #f5f5f5;
    }
    
    .az-location-result-item i {
        color: #1a1a1a;
        font-size: 16px;
        margin-top: 2px;
    }
    
    .az-location-result-info {
        flex: 1;
    }
    
    .az-location-result-name {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 2px;
    }
    
    .az-location-result-address {
        font-size: 12px;
        color: #6b7280;
    }
    
    .az-search-results-title {
        padding: 12px;
        font-size: 13px;
        font-weight: 600;
        color: #6b7280;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .az-search-loading {
        padding: 20px;
        text-align: center;
        color: #6b7280;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .az-loading-dots {
        display: inline-flex;
        gap: 4px;
    }
    
    .az-loading-dots span {
        width: 8px;
        height: 8px;
        background: #1a1a1a;
        border-radius: 50%;
        animation: azDotPulse 1.4s infinite ease-in-out both;
    }
    
    .az-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
    .az-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
    .az-loading-dots span:nth-child(3) { animation-delay: 0s; }
    
    @keyframes azDotPulse {
        0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
        40% { transform: scale(1); opacity: 1; }
    }
    
    .az-search-clear {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        border: none;
        background: #f0f0f0;
        border-radius: 50%;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        color: #6b7280;
    }
    
    .az-search-clear:active {
        background: #e5e5e5;
        color: #1f2937;
    }
    
    /* Address Cards */
    .az-address-card {
        display: flex;
        gap: 10px;
        padding: 12px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        cursor: pointer;
        position: relative;
        margin-bottom: 10px;
    }
    
    .az-address-card.selected {
        background: #f9f6f1;
        border-color: #C5A572;
    }
    
    .az-address-card-icon {
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #1a1a1a;
        flex-shrink: 0;
    }
    
    .az-address-card-info {
        flex: 1;
        min-width: 0;
    }
    
    .az-address-card-info strong {
        display: block;
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .az-address-card-info p {
        margin: 0 0 6px;
        font-size: 12px;
        color: #666;
        line-height: 1.4;
    }
    
    .az-address-phone {
        font-size: 11px;
        color: #1a1a1a;
    }
    
    /* Default Badge */
    .az-default-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 22px;
        height: 22px;
        background: linear-gradient(135deg, #1a1a1a, #16a34a);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
    }
    
    .az-default-badge i {
        font-size: 10px;
        color: #fff;
    }
    
    .az-default-text {
        font-size: 10px;
        color: #1a1a1a;
        background: #f5f5f5;
        padding: 2px 6px;
        border-radius: 8px;
        margin-right: 4px;
        font-weight: 600;
    }
    
    /* Address Dropdown Menu */
    .az-address-card-menu {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        cursor: pointer;
        border-radius: 50%;
        z-index: 10;
    }
    
    .az-address-dropdown {
        position: absolute;
        bottom: calc(100% + 5px);
        top: auto;
        left: 0;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        min-width: 150px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(0.95);
        transition: all 0.2s ease;
        z-index: 1000;
    }
    
    .az-address-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .az-address-dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        font-size: 13px;
        color: #374151;
        cursor: pointer;
    }
    
    .az-address-dropdown-item:active {
        background: #f3f4f6;
    }
    
    .az-address-dropdown-item i {
        width: 16px;
        color: #1a1a1a;
    }
    
    .az-address-dropdown-item.delete {
        color: #ef4444;
    }
    
    .az-address-dropdown-item.delete i {
        color: #ef4444;
    }
    
    .az-address-dropdown-item.cancel-default {
        color: #ef4444;
    }
    
    .az-address-dropdown-item.cancel-default i {
        color: #ef4444;
    }
    
    /* Map Fullscreen */
    .az-map-fullscreen {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        display: flex;
        flex-direction: column;
        z-index: 100;
    }
    
    .az-map-fullscreen.hidden {
        display: none;
    }
    
    .az-map-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .az-map-header span {
        font-size: 15px;
        font-weight: 700;
        color: #1a1a2e;
    }
    
    .az-map-back,
    .az-map-close {
        width: 32px;
        height: 32px;
        border: none;
        background: #f3f4f6;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #374151;
        font-size: 14px;
    }
    
    .az-map-top-bar {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .az-map-search-input {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
    }
    
    .az-map-search-input input {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
    }
    
    .az-use-gps {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px;
        background: #f9f6f1;
        border: 2px solid #C5A572;
        border-radius: 10px;
        color: #2d2d2d;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
    }
    
    .az-map-wrapper {
        flex: 1;
        position: relative;
        min-height: 200px;
    }
    
    .az-fullmap {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .az-map-center-pin {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%);
        z-index: 100;
        pointer-events: none;
        text-align: center;
    }
    
    .az-map-center-pin i {
        font-size: 36px;
        color: #1a1a1a;
        filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    }
    
    .az-pin-label-top {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #1a1a2e;
        color: #fff;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        margin-bottom: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    }
    
    .az-map-bottom-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
        background: #fff;
        border-top: 1px solid #e5e7eb;
    }
    
    .az-location-info .az-location-label {
        font-size: 11px;
        color: #9ca3af;
        margin-bottom: 2px;
    }
    
    .az-location-info .az-location-address {
        font-size: 13px;
        color: #1a1a2e;
        font-weight: 500;
    }
    
    .az-confirm-location-btn {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
    }
    
    /* Address Form */
    .az-address-form {
        padding: 16px;
    }
    
    .az-address-form.hidden {
        display: none;
    }
    
    .az-back-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 0;
        background: none;
        border: none;
        color: #1a1a1a;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-bottom: 12px;
    }
    
    /* الموقع المحدد - مسافة أكبر من الحقول */
    .az-confirmed-location {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        background: #f9f6f1;
        border: 2px solid #C5A572;
        border-radius: 10px;
        margin-bottom: 24px;
        color: #2d2d2d;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
    }
    
    .az-confirmed-location i {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .az-form-field {
        margin-bottom: 16px;
    }
    
    .az-form-field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
    }
    
    .az-form-field input {
        width: 100%;
        padding: 12px 14px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
    }
    
    .az-form-field input:focus {
        outline: none;
        border-color: #1a1a1a;
    }
    
    .az-form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    /* حقل رقم الجوال */
    .az-phone-input-wrapper {
        display: flex;
        align-items: center;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .az-phone-prefix {
        padding: 10px 12px;
        background: #f3f4f6;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        white-space: nowrap;
        border-left: 1px solid #e5e7eb;
    }
    
    .az-phone-input-wrapper input {
        flex: 1;
        padding: 10px 12px;
        border: none !important;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
    }
    
    .az-address-labels {
        display: flex;
        gap: 8px;
    }
    
    .az-label-option {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 10px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .az-label-option input {
        display: none;
    }
    
    .az-label-option i {
        font-size: 18px;
        color: #9ca3af;
    }
    
    .az-label-option span {
        font-size: 11px;
        color: #6b7280;
    }
    
    .az-label-option:has(input:checked) {
        background: #f9f6f1;
        border-color: #C5A572;
    }
    
    .az-label-option:has(input:checked) i {
        color: #C5A572;
    }
    
    .az-label-option:has(input:checked) span {
        color: #2d2d2d;
        font-weight: 600;
    }
    
    .az-save-address-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        margin-top: 16px;
    }
    
    /* City Selection */
    .az-city-selection {
        padding: 0;
    }
    
    .az-city-selection.hidden {
        display: none;
    }
    
    .az-city-title {
        font-size: 15px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 12px;
    }
    
    .az-city-simple-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        cursor: pointer;
        margin-bottom: 8px;
    }
    
    .az-city-simple-item:active {
        border-color: #1a1a1a;
        background: #f5f5f5;
    }
    
    .az-city-simple-item i {
        color: #1a1a1a;
        font-size: 16px;
    }
    
    .az-city-simple-item .az-city-name {
        flex: 1;
        font-size: 14px;
        font-weight: 700;
        color: #1f2937;
    }
    
    .az-city-simple-item .az-city-cost {
        font-size: 12px;
        color: #1a1a1a;
        font-weight: 600;
    }
    
    /* Pickup Tab */
    .az-pickup-message {
        text-align: center;
        padding: 40px 20px;
        color: #999;
    }
    
    .az-pickup-message i {
        font-size: 40px;
        margin-bottom: 12px;
        display: block;
    }
    
    /* No Addresses */
    .az-no-addresses {
        text-align: center;
        padding: 20px;
        color: #999;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .az-no-addresses i {
        font-size: 28px;
        color: #d1d5db;
    }
    
    /* Map Select Button */
    .az-map-select-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 16px;
        cursor: pointer;
        background: linear-gradient(135deg, #1a1a1a, #333333);
        border-radius: 0 0 10px 10px;
    }
    
    .az-map-select-btn:active {
        background: linear-gradient(135deg, #111827, #1a1a1a);
    }
    
    .az-map-select-btn i {
        font-size: 16px;
        color: white !important;
        width: auto;
        height: auto;
        background: none;
    }
    
    .az-map-select-btn span {
        font-size: 14px;
        font-weight: 600;
        color: white !important;
    }
    
    /* Fullscreen Map Modal */
    .az-address-modal-content.fullscreen-map {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    
    .az-address-modal-content.fullscreen-map .az-modal-header-section {
        display: none;
    }
    
    /* Pin في وسط الخريطة */
    .az-map-center-pin {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%);
        z-index: 10;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .az-map-center-pin i {
        font-size: 40px;
        color: #1a1a1a;
        filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    }
    .az-pin-label-top {
        background: #1a1a1a;
        color: white;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 8px;
        white-space: nowrap;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        position: relative;
    }
    .az-pin-label-top::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #1a1a1a;
    }
    
    /* نتائج البحث داخل الخريطة */
    .az-search-results-list {
        position: absolute;
        top: 110px;
        left: 16px;
        right: 16px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        max-height: 250px;
        overflow-y: auto;
        z-index: 100;
    }
    .az-search-results-list:empty {
        display: none;
    }
    .az-search-result-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        font-size: 14px;
        color: #374151;
    }
    .az-search-result-item:last-child {
        border-bottom: none;
    }
    .az-search-result-item:active {
        background: #f5f5f5;
    }
    .az-search-result-item i {
        color: #1a1a1a;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    /* تحسين شريط البحث في الخريطة */
    .az-map-top-bar {
        display: flex;
        gap: 10px;
        padding: 12px 16px;
        background: white;
    }
    .az-map-search-input {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        background: #f8f9fa;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
    }
    .az-map-search-input:focus-within {
        border-color: #1a1a1a;
        background: white;
    }
    .az-map-search-input i {
        color: #9ca3af;
    }
    .az-map-search-input input {
        flex: 1;
        border: none;
        background: none;
        font-size: 14px;
        font-family: 'Cairo', sans-serif;
        outline: none;
    }
    .az-use-gps {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        background: #1a1a1a;
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Cairo', sans-serif;
        cursor: pointer;
        white-space: nowrap;
    }
    .az-use-gps:active {
        background: #0f2d18;
    }
    
    /* على الشاشات الصغيرة جداً */
    @media (max-width: 400px) {
        .az-use-gps span {
            display: none;
        }
        .az-use-gps {
            padding: 12px 14px;
        }
    }
    
    /* القائمة المنسدلة - تظهر من أسفل لفوق */
    .az-address-dropdown {
        bottom: calc(100% + 5px) !important;
        top: auto !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   إصلاح z-index للهيدر - لا يغطي على الـ modals
   ═══════════════════════════════════════════════════════════════════════════════ */

/* جعل الهيدر بـ z-index منخفض عند فتح أي modal */
body.modal-open .amazon-header,
body.modal-open .amazon-header *,
html:has(.rn-modal.active) .amazon-header,
html:has(.rn-modal.active) .amazon-header * {
    z-index: 1 !important;
}

/* التأكد من أن الـ modal فوق كل شي */
.rn-modal.active {
    z-index: 9999999 !important;
}


/* ===== البحث المباشر للديسكتوب ===== */
.az-search-wrapper {
    position: relative;
}

.az-live-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid #e5e7eb;
    border-top: 2px solid #1a1a1a;
}

.az-live-search-dropdown.active {
    display: block;
}

.az-live-search-content {
    padding: 0;
}

.az-live-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
}

.az-live-search-item:hover {
    background: #f5f5f5;
}

.az-live-search-item.out-of-stock {
    opacity: 0.6;
}

.az-live-search-img {
    position: relative;
    flex-shrink: 0;
}

.az-live-search-img img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.az-live-search-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.az-live-search-info {
    flex: 1;
    min-width: 0;
}

.az-live-search-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.az-live-search-cat {
    font-size: 12px;
    color: #9ca3af;
}

.az-live-search-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.az-live-search-old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 6px;
}

.az-live-search-arrow {
    color: #d1d5db;
    font-size: 12px;
}

.az-live-search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #1a1a1a, #1a1a1a);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.az-live-search-view-all:hover {
    background: linear-gradient(135deg, #153821, #1a1a1a);
}

.az-live-search-empty {
    text-align: center;
    padding: 30px 20px;
    color: #9ca3af;
}

.az-live-search-empty i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    color: #d1d5db;
}

/* البحث الشائع */
.az-popular-searches {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.az-popular-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.az-popular-title i {
    color: #f59e0b;
}

.az-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.az-popular-tag {
    background: #fff;
    color: #374151;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.az-popular-tag:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Loading */
.az-live-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    color: #6b7280;
}

.az-loading-dots {
    display: flex;
    gap: 4px;
}

.az-loading-dots span {
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    animation: azDots 1.4s infinite ease-in-out both;
}

.az-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.az-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.az-loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes azDots {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

