/**
 * EMG Store Platform - Master Header Stylesheet (External Cached)
 */
    /* ضمان ظهور كافة أيقونات FontAwesome بدون أي مربعات فارغة */
    .fa, .fas, .fa-solid, .far, .fa-regular, .fab, .fa-brands {
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        line-height: 1;
        display: inline-block;
    }
    .fab, .fa-brands {
        font-family: "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
    }
    /* =========================================================
       القواعد الأساسية العامة (Universal Core Reset & Tokens)
       ========================================================= */
    :root {
        --font-main: 'Tajawal', 'Cairo', sans-serif;
        --emg-body-bg: #f8fafc;
        --emg-card-bg: #ffffff;
        --emg-border: #e2e8f0;
        --emg-text-dark: #0f172a;
        --emg-text-muted: #64748b;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: var(--font-main);
    }

    html, body {
        background-color: #f8fafc !important;
        color: #0f172a !important;
        direction: rtl;
        text-align: right;
        overflow-x: hidden;
        scroll-behavior: smooth;
    }

    .container {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 16px;
    }

    a {
        color: inherit;
        text-decoration: none;
        transition: all 0.25s ease;
    }

    /* علامة وختم نفذت الكمية العالمي للمتجر - مستطيل أحمر مفرغ بدون خلفية */
    .emg-out-of-stock-stamp {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-12deg);
        z-index: 10;
        border: 2.5px solid #dc2626 !important;
        color: #dc2626 !important;
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 5px 16px !important;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0.5px;
        border-radius: 8px !important;
        box-shadow: none !important;
        pointer-events: none;
        text-align: center;
        white-space: nowrap;
        text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    }
    .emg-out-of-stock-stamp i {
        margin-left: 6px;
        font-size: 16px;
    }

    /* =========================================================
       1. تنسيقات ثيم سلة الفاخر (Theme: EMG Salla Luxury)
       ========================================================= */
    body.theme-emg_salla_luxury {
        --primary: #0b86f9;
        --primary-dark: #0369a1;
        --accent: #f59e0b;
    }
    body.theme-emg_salla_luxury .emg-topbar {
        background: #091222;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 8px 0;
        font-size: 13px;
        color: #94a3b8;
    }
    body.theme-emg_salla_luxury .emg-main-header {
        background: linear-gradient(135deg, #0b86f9 0%, #0369a1 100%);
        box-shadow: 0 4px 20px rgba(11, 134, 249, 0.25);
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    }
    body.theme-emg_salla_luxury .emg-nav-strip,
    .emg-nav-strip {
        background: #0f172a;
        border-bottom: 1px solid #1e293b;
        position: relative !important;
        z-index: 990 !important;
        overflow: visible !important;
    }
    .emg-nav-strip .container {
        overflow: visible !important;
    }

    /* =========================================================
       2. تنسيقات ثيم مدار سولار الهندسي (Theme: Madar Solar Pro)
       مطابق 100% لتصميم https://madarsolar.com/
       ========================================================= */
    body.theme-madar_solar_pro {
        --font-main: 'Cairo', 'Tajawal', sans-serif;
        --madar-forest-deep: #043327;
        --madar-forest: #064e3b;
        --madar-emerald: #059669;
        --madar-emerald-light: #10b981;
        --madar-gold: #f59e0b;
        background-color: #f8fafc !important;
        color: #0f172a !important;
    }
    body.theme-madar_solar_pro * {
        font-family: 'Cairo', 'Tajawal', sans-serif;
    }
    body.theme-madar_solar_pro .emg-topbar {
        background: #043327 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding: 8px 0 !important;
        font-size: 12.5px !important;
        color: #d1fae5 !important;
    }
    body.theme-madar_solar_pro .emg-topbar a {
        color: #ffffff !important;
        font-weight: 700 !important;
        text-decoration: none;
    }
    body.theme-madar_solar_pro .emg-topbar a:hover {
        color: #f59e0b !important;
    }
    body.theme-madar_solar_pro .emg-main-header {
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    body.theme-madar_solar_pro .emg-nav-strip {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid #e2e8f0 !important;
        position: relative;
        z-index: 990;
    }

    /* هيدر مدار سولار النقي */
    body.theme-madar_solar_pro .header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 0;
    }
    body.theme-madar_solar_pro .brand-madar-title {
        font-size: 22px;
        font-weight: 900;
        color: #0f172a;
        line-height: 1;
        letter-spacing: -0.5px;
    }
    body.theme-madar_solar_pro .brand-madar-title span {
        color: #059669;
    }
    body.theme-madar_solar_pro .brand-madar-sub {
        font-size: 10.5px;
        color: #64748b;
        font-weight: 700;
        margin-top: 3px;
    }
    body.theme-madar_solar_pro .madar-search-wrap {
        flex: 1;
        max-width: 620px;
        position: relative;
    }
    body.theme-madar_solar_pro .madar-search-input {
        width: 100%;
        height: 48px;
        border-radius: 16px;
        border: 1.5px solid #cbd5e1;
        background: #f8fafc;
        padding: 0 45px 0 100px;
        font-size: 14px;
        font-weight: 600;
        color: #0f172a !important;
        outline: none;
        transition: all 0.25s;
    }
    body.theme-madar_solar_pro .madar-search-input:focus {
        border-color: #059669;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
    }
    body.theme-madar_solar_pro .madar-search-btn {
        position: absolute;
        left: 6px;
        top: 6px;
        bottom: 6px;
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        color: #ffffff !important;
        border: none;
        border-radius: 12px;
        padding: 0 20px;
        font-weight: 800;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s;
    }
    body.theme-madar_solar_pro .madar-search-btn:hover {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    /* زر السلة الذهبي المميز لمدار */
    body.theme-madar_solar_pro .btn-madar-cart {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
        color: #000000 !important;
        font-weight: 900;
        font-size: 14px;
        padding: 10px 18px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
        transition: all 0.25s;
    }
    body.theme-madar_solar_pro .btn-madar-cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
    }
    body.theme-madar_solar_pro .madar-cart-badge {
        background: #043327;
        color: #ffffff;
        font-size: 11px;
        font-weight: 900;
        padding: 2px 7px;
        border-radius: 50px;
    }

    /* زر التصنيفات لمدار */
    body.theme-madar_solar_pro .btn-madar-cat {
        background: #ffffff;
        border: 1.5px solid #cbd5e1;
        border-radius: 16px;
        height: 48px;
        padding: 0 18px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 900;
        color: #0f172a;
        cursor: pointer;
        transition: all 0.2s;
    }
    body.theme-madar_solar_pro .btn-madar-cat:hover {
        border-color: #059669;
        color: #059669;
        background: #ecfdf5;
    }

    /* روابط شريط التنقل لمدار */
    body.theme-madar_solar_pro .nav-link-item {
        color: #334155 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        padding: 8px 16px !important;
        border-radius: 10px !important;
        text-decoration: none;
        transition: all 0.2s;
    }
    body.theme-madar_solar_pro .nav-link-item:hover,
    body.theme-madar_solar_pro .nav-link-item.active {
        color: #059669 !important;
        background: #ecfdf5 !important;
    }
    body.theme-madar_solar_pro .nav-link-item:hover,
    body.theme-madar_solar_pro .nav-link-item.active {
        color: #059669 !important;
        background: #ecfdf5 !important;
    }

    /* الهيرو والبطاقات لثيم مدار */
    body.theme-madar_solar_pro .madar-hero-section {
        padding: 24px 0 40px;
        background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    }
    body.theme-madar_solar_pro .madar-hero-card {
        background: #043327;
        border-radius: 28px;
        position: relative;
        overflow: hidden;
        color: #ffffff;
        box-shadow: 0 20px 50px rgba(4, 51, 39, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 520px;
        display: flex;
        align-items: center;
    }
    body.theme-madar_solar_pro .madar-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(4, 51, 39, 0.96) 0%, rgba(6, 78, 59, 0.88) 50%, rgba(4, 51, 39, 0.4) 100%);
        z-index: 2;
    }
    body.theme-madar_solar_pro .madar-hero-content {
        position: relative;
        z-index: 3;
        padding: 45px 40px;
        max-width: 680px;
    }
    body.theme-madar_solar_pro .madar-hero-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 6px 16px;
        border-radius: 50px;
        font-size: 12.5px;
        font-weight: 800;
        color: #34d399;
        margin-bottom: 20px;
    }
    body.theme-madar_solar_pro .madar-hero-title {
        font-size: 42px;
        font-weight: 900;
        line-height: 1.25;
        margin-bottom: 16px;
        color: #ffffff !important;
    }
    body.theme-madar_solar_pro .madar-hero-title span {
        color: #34d399;
    }
    body.theme-madar_solar_pro .madar-hero-desc {
        font-size: 16px;
        line-height: 1.7;
        color: #e2e8f0;
        margin-bottom: 28px;
    }
    body.theme-madar_solar_pro .btn-madar-primary {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #ffffff !important;
        font-weight: 800;
        font-size: 15px;
        padding: 13px 30px;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        text-decoration: none;
        transition: all 0.3s;
    }
    body.theme-madar_solar_pro .btn-madar-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.6);
    }
    body.theme-madar_solar_pro .btn-madar-outline {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(6px);
        font-weight: 800;
        font-size: 15px;
        padding: 13px 26px;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        transition: all 0.3s;
    }
    body.theme-madar_solar_pro .btn-madar-outline:hover {
        background: #ffffff;
        color: #064e3b !important;
    }

    /* شريط الأرقام لمدار */
    body.theme-madar_solar_pro .madar-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
        margin: 30px 0;
    }
    body.theme-madar_solar_pro .madar-stat-card {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 18px;
        padding: 24px 20px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        transition: all 0.3s;
    }
    body.theme-madar_solar_pro .madar-stat-card:hover {
        transform: translateY(-4px);
        border-color: #059669;
        box-shadow: 0 10px 25px rgba(5, 150, 105, 0.12);
    }
    body.theme-madar_solar_pro .madar-stat-num {
        font-size: 34px;
        font-weight: 900;
        color: #059669;
        line-height: 1;
        margin-bottom: 6px;
    }
    body.theme-madar_solar_pro .madar-stat-label {
        font-size: 13.5px;
        font-weight: 700;
        color: #64748b;
    }

    /* حاسبة الطاقة لمدار */
    body.theme-madar_solar_pro .madar-calc-box {
        background: linear-gradient(135deg, #043327 0%, #064e3b 100%);
        border: 2px solid #10b981;
        border-radius: 24px;
        padding: 35px 30px;
        color: #ffffff;
        margin: 40px 0;
        box-shadow: 0 15px 35px rgba(4, 51, 39, 0.25);
    }
    body.theme-madar_solar_pro .calc-title {
        font-size: 26px;
        font-weight: 900;
        color: #ffffff !important;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    body.theme-madar_solar_pro .calc-title i {
        color: #f59e0b;
    }
    body.theme-madar_solar_pro .calc-subtitle {
        color: #d1fae5;
        font-size: 14px;
        margin-bottom: 25px;
    }
    body.theme-madar_solar_pro .calc-form-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px;
    }
    body.theme-madar_solar_pro .calc-field label {
        font-size: 13.5px;
        font-weight: 700;
        color: #f1f5f9;
        margin-bottom: 6px;
        display: block;
    }
    body.theme-madar_solar_pro .calc-field select {
        width: 100%;
        background: #0b3d2e !important;
        border: 1.5px solid #10b981 !important;
        color: #ffffff !important;
        padding: 12px 14px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 14px;
        outline: none;
    }
    body.theme-madar_solar_pro .calc-result-panel {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 22px;
        margin-top: 25px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    body.theme-madar_solar_pro .calc-res-item {
        text-align: center;
    }
    body.theme-madar_solar_pro .calc-res-val {
        font-size: 26px;
        font-weight: 900;
        color: #fbbf24;
    }
    body.theme-madar_solar_pro .calc-res-lbl {
        font-size: 12px;
        color: #e2e8f0;
        margin-top: 4px;
    }

    /* حلول الطاقة لمدار */
    body.theme-madar_solar_pro .madar-solutions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin: 30px 0;
    }
    body.theme-madar_solar_pro .madar-solution-card {
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        border-radius: 18px;
        padding: 26px 22px;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }
    body.theme-madar_solar_pro .madar-solution-card:hover {
        transform: translateY(-6px);
        border-color: #059669;
        box-shadow: 0 15px 30px rgba(5, 150, 105, 0.15);
    }
    body.theme-madar_solar_pro .solution-icon-wrap {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        background: #ecfdf5;
        color: #059669;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-bottom: 16px;
    }
    body.theme-madar_solar_pro .solution-card-title {
        font-size: 17px;
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 8px;
    }
    body.theme-madar_solar_pro .solution-card-desc {
        font-size: 13.5px;
        color: #64748b;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    /* بطاقات المنتجات لمدار */
    body.theme-madar_solar_pro .product-card-emg {
        background: #ffffff !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
        transition: all 0.35s ease !important;
        position: relative;
        overflow: hidden;
    }
    body.theme-madar_solar_pro .product-card-emg:hover {
        transform: translateY(-6px) !important;
        border-color: #059669 !important;
        box-shadow: 0 16px 35px rgba(5, 150, 105, 0.16) !important;
    }
    body.theme-madar_solar_pro .product-brand-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: #ffffff;
        color: #064e3b;
        border: 1px solid #e2e8f0;
        border-radius: 50px;
        padding: 3px 10px;
        font-size: 11px;
        font-weight: 900;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        z-index: 5;
    }
    body.theme-madar_solar_pro .product-shipping-ribbon {
        background: linear-gradient(90deg, #064e3b, #059669);
        color: #ffffff;
        font-size: 11px;
        font-weight: 800;
        text-align: center;
        padding: 4px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    body.theme-madar_solar_pro .product-current-price {
        color: #064e3b !important;
        font-size: 19px !important;
        font-weight: 900 !important;
    }
    body.theme-madar_solar_pro .btn-fast-cart {
        background: linear-gradient(135deg, #059669 0%, #064e3b 100%) !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        font-weight: 800 !important;
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
        border: none !important;
    }
    body.theme-madar_solar_pro .btn-fast-cart:hover {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    }
    body.theme-madar_solar_pro .btn-wa-consult {
        background: #25d366 !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        font-weight: 800 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-decoration: none;
        padding: 8px 12px;
        font-size: 13px;
        transition: all 0.2s;
    }
    body.theme-madar_solar_pro .btn-wa-consult:hover {
        background: #1eb956 !important;
    }

    /* أكورديون الأسئلة الشائعة لمدار */
    body.theme-madar_solar_pro .madar-faq-section {
        padding: 50px 0;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }
    body.theme-madar_solar_pro .faq-item-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        margin-bottom: 12px;
        overflow: hidden;
        transition: all 0.2s;
    }
    body.theme-madar_solar_pro .faq-header-btn {
        width: 100%;
        padding: 18px 20px;
        background: none;
        border: none;
        text-align: right;
        font-size: 15px;
        font-weight: 800;
        color: #0f172a;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    body.theme-madar_solar_pro .faq-header-btn:hover {
        color: #059669;
    }
    body.theme-madar_solar_pro .faq-body-content {
        padding: 0 20px 18px;
        font-size: 14px;
        color: #475569;
        line-height: 1.7;
        display: none;
    }
    body.theme-madar_solar_pro .faq-item-card.open .faq-body-content {
        display: block;
    }
    body.theme-madar_solar_pro .faq-item-card.open {
        border-color: #059669;
        background: #ffffff;
        box-shadow: 0 4px 15px rgba(5, 150, 105, 0.08);
    }

    /* سلة المشتريات الجانبية المنبثقة التفاعلية */
    .cart-drawer-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.75);
        z-index: 2147483640 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }
    .cart-drawer-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    /* إخفاء وجعل زر اسألني العائم تحت سلة المشتريات والقوائم تماماً عند فتحها */
    body.cart-open #tamerFloatingTrigger,
    body.drawer-open #tamerFloatingTrigger,
    body.auth-modal-open #tamerFloatingTrigger,
    body:has(.cart-drawer-backdrop.active) #tamerFloatingTrigger,
    body:has(#cartDrawerBackdrop.active) #tamerFloatingTrigger,
    .cart-drawer-backdrop.active ~ #tamerFloatingTrigger,
    #cartDrawerBackdrop.active ~ #tamerFloatingTrigger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -10 !important;
    }
    .cart-drawer-panel {
        position: fixed;
        top: 0;
        left: -380px;
        width: 340px;
        max-width: 88vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        background: #0f172a;
        border-right: 1px solid #334155;
        z-index: 2147483641 !important;
        display: flex;
        flex-direction: column;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 35px rgba(0, 0, 0, 0.65);
        overflow-y: auto !important; /* اللوحة بالكامل اسكرول بدون استثناء */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: #475569 transparent;
    }
    .cart-drawer-panel::-webkit-scrollbar {
        width: 4px;
    }
    .cart-drawer-panel::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.4);
    }
    .cart-drawer-panel::-webkit-scrollbar-thumb {
        background: #475569;
        border-radius: 10px;
    }
    .cart-drawer-panel::-webkit-scrollbar-thumb:hover {
        background: #d97706;
    }
    .cart-drawer-backdrop.active .cart-drawer-panel {
        left: 0;
    }
    .cart-drawer-header {
        padding: 12px 15px;
        padding-top: max(14px, env(safe-area-inset-top, 14px));
        border-bottom: 1px solid #334155;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #0b111e;
        flex-shrink: 0;
    }
    .cart-drawer-header .drawer-close-btn {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 22px;
        cursor: pointer;
        line-height: 1;
        padding: 2px 6px;
        transition: color 0.2s;
    }
    .cart-drawer-header .drawer-close-btn:hover {
        color: #ffffff;
    }
    .cart-drawer-scroll-body {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .cart-drawer-auth-bar {
        background: #1e293b;
        padding: 8px 12px;
        border-bottom: 1px solid #334155;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 11.5px;
        flex-shrink: 0;
    }
    .drawer-auth-btn-primary {
        background: #0b86f9;
        color: #ffffff !important;
        border: none;
        padding: 3px 9px;
        border-radius: 6px;
        font-weight: 800;
        font-size: 11px;
        cursor: pointer;
    }
    .drawer-auth-btn-outline {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
        border: 1px solid #475569;
        padding: 3px 8px;
        border-radius: 6px;
        font-weight: 800;
        font-size: 11px;
        text-decoration: none;
    }
    .cart-drawer-items-wrapper {
        padding: 10px 14px;
        flex-grow: 1;
    }
    .cart-drawer-footer {
        padding: 12px 14px;
        padding-bottom: max(28px, env(safe-area-inset-bottom, 22px));
        border-top: 1px solid #334155;
        background: #0b111e;
        flex-shrink: 0;
    }
    .drawer-coupon-box {
        display: flex;
        gap: 6px;
        margin-bottom: 10px;
    }
    .drawer-coupon-input {
        flex: 1;
        background: #1e293b;
        border: 1px solid #475569;
        border-radius: 7px;
        padding: 6px 10px;
        color: #ffffff !important;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        height: 34px;
        box-sizing: border-box;
    }
    .drawer-coupon-btn {
        background: #334155;
        color: #ffffff;
        border: none;
        border-radius: 7px;
        padding: 0 12px;
        font-size: 11.5px;
        font-weight: 800;
        cursor: pointer;
        height: 34px;
        transition: background 0.2s;
    }
    .drawer-coupon-btn:hover {
        background: #0b86f9;
    }
    .drawer-calc-row {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #cbd5e1;
        margin-bottom: 5px;
    }
    .drawer-total-row {
        display: flex;
        justify-content: space-between;
        font-size: 13.5px;
        font-weight: 900;
        color: #ffffff;
        padding-top: 6px;
        border-top: 1px dashed rgba(255, 255, 255, 0.18);
        margin-bottom: 10px;
    }
    .drawer-actions-stack {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    .drawer-checkout-btn {
        background: linear-gradient(135deg, #0b86f9, #0284c7);
        color: #ffffff !important;
        padding: 10px;
        border-radius: 8px;
        font-weight: 900;
        font-size: 13.5px;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(11, 134, 249, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .drawer-checkout-btn:active {
        transform: scale(0.98);
    }
    .drawer-bottom-links {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2px 2px 0;
    }
    .drawer-link-btn {
        background: none;
        border: none;
        font-size: 11.5px;
        font-weight: 700;
        cursor: pointer;
        padding: 4px;
    }

    /* تحسين وتصغير السلة لشاشات الموبايل */
    @media (max-width: 576px) {
        .cart-drawer-panel {
            width: 295px !important;
            max-width: 86vw !important;
        }
        .cart-drawer-header {
            padding: 9px 12px !important;
            padding-top: max(14px, env(safe-area-inset-top, 14px)) !important;
        }
        .cart-drawer-header .drawer-header-title {
            font-size: 13.5px !important;
        }
        .cart-drawer-header .drawer-header-icon {
            font-size: 14.5px !important;
        }
        .cart-drawer-header .drawer-badge-count {
            font-size: 10px !important;
            padding: 1px 6px !important;
        }
        .cart-drawer-auth-bar {
            padding: 6px 10px !important;
            font-size: 10.5px !important;
        }
        .drawer-auth-btn-primary, .drawer-auth-btn-outline {
            padding: 2px 7px !important;
            font-size: 10px !important;
        }
        .cart-drawer-items-wrapper {
            padding: 6px 10px !important;
        }
        .cart-drawer-footer {
            padding: 8px 10px !important;
            padding-bottom: max(32px, env(safe-area-inset-bottom, 26px)) !important;
        }
        .drawer-coupon-box {
            gap: 4px !important;
            margin-bottom: 8px !important;
        }
        .drawer-coupon-input {
            padding: 4px 8px !important;
            font-size: 11px !important;
            height: 30px !important;
        }
        .drawer-coupon-btn {
            padding: 0 9px !important;
            font-size: 11px !important;
            height: 30px !important;
        }
        .drawer-calc-row {
            font-size: 11px !important;
            margin-bottom: 4px !important;
        }
        .drawer-total-row {
            font-size: 12.5px !important;
            padding-top: 5px !important;
            margin-bottom: 8px !important;
        }
        .drawer-total-row strong {
            font-size: 14.5px !important;
        }
        .drawer-checkout-btn {
            padding: 8.5px !important;
            font-size: 12.5px !important;
            border-radius: 7px !important;
        }
        .drawer-link-btn {
            font-size: 10.5px !important;
        }

        /* تصغير عناصر المنتجات داخل السلة على الموبايل */
        .drawer-item-row {
            padding: 7px 0 !important;
            gap: 8px !important;
        }
        .drawer-item-img {
            width: 40px !important;
            height: 40px !important;
            padding: 2px !important;
        }
        .drawer-item-title {
            font-size: 11.5px !important;
            line-height: 1.25 !important;
            margin-bottom: 2px !important;
        }
        .drawer-item-options {
            font-size: 9.5px !important;
            padding: 1px 5px !important;
            margin-bottom: 3px !important;
        }
        .drawer-item-price {
            font-size: 11.5px !important;
        }
        .drawer-qty-btn {
            width: 21px !important;
            height: 21px !important;
            font-size: 11px !important;
            border-radius: 4px !important;
        }
        .drawer-qty-val {
            font-size: 12px !important;
            min-width: 14px !important;
        }
        .drawer-trash-btn {
            font-size: 12px !important;
            padding: 2px !important;
        }
    }
    .customer-account-wrapper {
        position: relative;
    }
    .btn-customer-account {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
        font-size: 13.5px;
        font-weight: 700;
        padding: 8px 16px;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        cursor: pointer;
    }
    .customer-dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 220px;
        background: #0f172a;
        border: 1px solid #334155;
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        z-index: 1050;
        display: none;
        flex-direction: column;
        padding: 8px;
    }
    .customer-dropdown-menu.show {
        display: flex;
    }
    .customer-dropdown-item {
        color: #e2e8f0 !important;
        font-size: 13px;
        font-weight: 700;
        padding: 9px 12px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        transition: all 0.2s;
    }
    .customer-dropdown-item:hover {
        background: rgba(56, 189, 248, 0.12);
        color: #38bdf8 !important;
    }
    .cat-dropdown-wrapper {
        position: relative;
        flex-shrink: 0;
        z-index: 100000;
    }
    .cat-dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: 320px;
        max-width: 92vw;
        background: #0f172a !important;
        border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
        border-radius: 12px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
        z-index: 100000 !important;
        display: none;
        flex-direction: column;
        padding: 8px;
        max-height: 440px;
        backdrop-filter: blur(16px);
    }
    .cat-dropdown-menu.show {
        display: flex !important;
        animation: catMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes catMenuFadeIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .cat-dropdown-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 8px 7px;
        border-bottom: 1px solid rgba(51, 65, 85, 0.7);
        font-size: 11.5px;
        font-weight: 800;
        color: #94a3b8 !important;
        margin-bottom: 4px;
    }
    .cat-dropdown-scrollable {
        max-height: 320px;
        overflow-y: auto;
        padding-right: 2px;
        scrollbar-width: thin;
        scrollbar-color: #334155 #0f172a;
    }
    .cat-dropdown-scrollable::-webkit-scrollbar {
        width: 4px;
    }
    .cat-dropdown-scrollable::-webkit-scrollbar-track {
        background: #0f172a;
    }
    .cat-dropdown-scrollable::-webkit-scrollbar-thumb {
        background: #334155;
        border-radius: 4px;
    }
    .cat-dropdown-scrollable::-webkit-scrollbar-thumb:hover {
        background: #38bdf8;
    }
    .cat-main-group {
        margin-bottom: 3px;
        border-bottom: 1px solid rgba(51, 65, 85, 0.35);
        padding-bottom: 3px;
    }
    .cat-main-group:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .cat-main-title-link {
        color: #ffffff !important;
        font-size: 12.5px;
        font-weight: 800;
        padding: 5px 8px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        transition: all 0.15s ease;
    }
    .cat-main-title-link:hover {
        background: rgba(56, 189, 248, 0.12);
        color: #38bdf8 !important;
    }
    .cat-main-icon-box {
        width: 24px;
        height: 24px;
        border-radius: 5px;
        background: rgba(56, 189, 248, 0.15);
        color: #38bdf8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        flex-shrink: 0;
    }
    .cat-main-name {
        flex-grow: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #ffffff !important;
    }
    .cat-sub-count-badge {
        font-size: 10px;
        font-weight: 700;
        background: rgba(51, 65, 85, 0.8);
        color: #cbd5e1;
        padding: 1px 6px;
        border-radius: 10px;
    }
    .cat-subs-container {
        margin-right: 22px;
        padding-right: 8px;
        border-right: 2px solid rgba(56, 189, 248, 0.25);
        margin-top: 2px;
        margin-bottom: 4px;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    .cat-sub-link {
        color: #cbd5e1 !important;
        font-size: 11.5px;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        transition: all 0.15s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cat-sub-link:hover {
        background: rgba(56, 189, 248, 0.1);
        color: #38bdf8 !important;
        transform: translateX(-2px);
    }
    .cat-sub-bullet {
        font-size: 8px;
        color: #38bdf8;
        opacity: 0.7;
    }
    .cat-dropdown-item {
        color: #ffffff !important;
        font-size: 12.5px;
        font-weight: 700;
        padding: 7px 12px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        transition: all 0.2s;
    }
    .cat-dropdown-item:hover {
        background: rgba(16, 185, 129, 0.15);
        color: #34d399 !important;
    }
    .cat-dropdown-divider {
        height: 1px;
        background: rgba(51, 65, 85, 0.7);
        margin: 5px 0;
    }
    .dropdown-staff-portal {
        background: rgba(245, 158, 11, 0.15);
        border: 1px solid rgba(245, 158, 11, 0.3);
        color: #f59e0b !important;
        font-size: 13px;
        font-weight: 800;
        padding: 10px 14px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        transition: all 0.2s ease;
        margin-top: 4px;
    }
    .dropdown-staff-portal:hover {
        background: #f59e0b;
        color: #000000 !important;
    }

    /* سلايدر الفيديو لثيم سلة */
    .emg-hero-slider {
        position: relative;
        width: 100vw;
        max-width: 100%;
        height: 780px;
        min-height: 700px;
        overflow: hidden;
        background: #000;
    }
    .slider-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.8s ease-in-out;
    }
    .slider-slide.active {
        opacity: 1;
        visibility: visible;
    }
    .slider-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .slider-overlay,
    .madar-video-slide > div,
    .hero-slide-content {
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 25%, transparent 55%) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-end !important;
        text-align: center !important;
        padding: 0 20px 16px !important;
        pointer-events: none !important;
    }
    .slider-content,
    .madar-video-slide > div > div,
    .hero-slide-content > * {
        max-width: 800px !important;
        z-index: 2 !important;
        width: 100% !important;
        pointer-events: auto !important;
    }
    .slider-title,
    .madar-hero-video-slider h1,
    .madar-hero-video-slider h2,
    .hero-slide-title {
        font-size: clamp(17px, 2vw, 22px) !important;
        font-weight: 900 !important;
        color: #ffffff !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.9) !important;
    }
    .slider-subtitle,
    .madar-hero-video-slider p,
    .hero-slide-desc {
        font-size: 12px !important;
        color: #f1f5f9 !important;
        margin-bottom: 8px !important;
        line-height: 1.35 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
    }
    .slider-content a,
    .slider-content button,
    .madar-hero-video-slider a {
        padding: 6px 18px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        border-radius: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        text-decoration: none !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
    }
    .slider-nav-btn,
    .madar-hero-video-slider > button {
        position: absolute !important;
        top: auto !important;
        bottom: 14px !important;
        transform: none !important;
        width: 32px !important;
        height: 32px !important;
        background: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: blur(4px) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 10 !important;
        font-size: 12px !important;
        transition: all 0.2s ease !important;
    }
    .slider-prev,
    .madar-hero-video-slider > button:first-of-type { right: 16px !important; }
    .slider-next,
    .madar-hero-video-slider > button:last-of-type { left: 16px !important; }

    /* شبكة مربعات الاستخدام المصغرة (سطر بالكمبيوتر وسطرين بالجوال) */
    .usecases-mini-grid {
        display: grid !important;
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 10px !important;
    }
    .usecase-mini-square {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 6px 8px !important;
        border-radius: 14px !important;
        text-decoration: none !important;
        min-height: 72px !important;
        transition: all 0.2s ease !important;
    }
    .usecase-mini-square:hover {
        transform: translateY(-2px) !important;
    }
    .usecase-mini-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    .usecase-mini-title {
        font-size: 12px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1.2 !important;
    }
    .section-header-wrap {
        margin-bottom: 24px;
    }
    .section-main-title {
        font-size: 26px;
        font-weight: 900;
        color: #0f172a;
    }
    .section-sub-desc {
        color: #64748b;
        font-size: 14px;
        margin-top: 4px;
    }
    .categories-carousel-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
    }
    .cat-card-box {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 16px 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
    }
    .cat-card-box:hover {
        transform: translateY(-5px);
        border-color: #0b86f9;
        box-shadow: 0 10px 25px rgba(11, 134, 249, 0.15);
    }
    .cat-icon-wrap {
        width: 65px;
        height: 65px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 10px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cat-icon-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .cat-title-text {
        font-size: 13.5px;
        font-weight: 700;
        color: #0f172a;
    }
    /* =========================================================
       بطاقات المنتجات الفاخرة (Master Luxury Product Cards)
       ========================================================= */
    .products-cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }
    .product-card-emg,
    .product-card {
        background: #ffffff !important;
        border: 1.5px solid #edf2f7 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        cursor: pointer !important;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
    }
    .product-card-emg:hover,
    .product-card:hover {
        transform: translateY(-7px) !important;
        border-color: rgba(11, 134, 249, 0.35) !important;
        box-shadow: 0 20px 35px -5px rgba(11, 134, 249, 0.15), 0 8px 16px -3px rgba(0, 0, 0, 0.04) !important;
    }
    body.theme-madar_solar_pro .product-card-emg:hover,
    body.theme-madar_solar_pro .product-card:hover {
        border-color: #059669 !important;
        box-shadow: 0 20px 35px -5px rgba(5, 150, 105, 0.18), 0 8px 16px -3px rgba(0, 0, 0, 0.04) !important;
    }

    .product-img-holder,
    .product-thumb-wrap {
        width: 100% !important;
        height: 220px !important;
        background: linear-gradient(180deg, #fcfdfe 0%, #f8fafc 100%) !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-decoration: none !important;
    }
    .product-img-holder a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        text-decoration: none !important;
    }
    .product-img-holder img,
    .product-thumb {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 16px !important;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .product-card-emg:hover .product-img-holder img,
    .product-card:hover .product-thumb {
        transform: scale(1.08) translateY(-2px) !important;
    }

    /* ختم نفذت الكمية الاحترافي الشامل لكافة صفحات المتجر - مستطيل أحمر مفرغ بدون خلفية */
    .emg-out-of-stock-stamp {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) rotate(-12deg) !important;
        border: 2.5px solid #dc2626 !important;
        color: #dc2626 !important;
        font-size: 18px !important;
        font-weight: 900 !important;
        padding: 5px 16px !important;
        border-radius: 8px !important;
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 1px 2px rgba(0, 0, 0, 0.4) !important;
        letter-spacing: 0.5px !important;
        pointer-events: none !important;
        z-index: 10 !important;
        white-space: nowrap !important;
        text-align: center !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        user-select: none !important;
    }
    .is-out-of-stock img,
    .is-out-of-stock .product-thumb,
    .is-out-of-stock .salla-card-img,
    .is-out-of-stock .deal-card-img {
        opacity: 1 !important;
        filter: none !important;
    }
    .btn-out-of-stock-full {
        width: 100% !important;
        height: 38px !important;
        background: #f1f5f9 !important;
        color: #94a3b8 !important;
        border: 1.5px dashed #cbd5e1 !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: not-allowed !important;
        user-select: none !important;
        opacity: 0.9 !important;
    }

    /* شارات الخصم والأقسام المطورة (Badges) */
    .product-discount-badge {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        padding: 4px 10px !important;
        border-radius: 50px !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        z-index: 3 !important;
        letter-spacing: -0.2px !important;
    }
    .product-cat-tag {
        position: absolute !important;
        bottom: 12px !important;
        right: 12px !important;
        background: rgba(15, 23, 42, 0.78) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        padding: 3px 10px !important;
        border-radius: 50px !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        z-index: 3 !important;
    }
    .product-cat-tag i {
        color: #38bdf8 !important;
        font-size: 10px !important;
    }
    body.theme-madar_solar_pro .product-cat-tag i {
        color: #34d399 !important;
    }

    /* جسم البطاقة */
    .product-card-body,
    .product-info {
        padding: 16px 16px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        background: #ffffff !important;
    }
    .product-title,
    .product-info .product-title {
        font-size: 14.5px !important;
        font-weight: 800 !important;
        margin-bottom: 8px !important;
        line-height: 1.45 !important;
        min-height: 42px !important;
        max-height: 42px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .product-title a {
        color: #0f172a !important;
        text-decoration: none !important;
        transition: color 0.2s ease !important;
    }
    .product-card-emg:hover .product-title a,
    .product-card:hover .product-title a {
        color: #0b86f9 !important;
    }
    body.theme-madar_solar_pro .product-card-emg:hover .product-title a,
    body.theme-madar_solar_pro .product-card:hover .product-title a {
        color: #059669 !important;
    }

    /* شريط السعر */
    .product-price-row,
    .product-pricing {
        display: flex !important;
        align-items: baseline !important;
        gap: 8px !important;
        margin-top: auto !important;
        margin-bottom: 14px !important;
        flex-wrap: wrap !important;
    }
    .product-current-price,
    .price-current {
        font-size: 19px !important;
        font-weight: 900 !important;
        color: #0284c7 !important;
        letter-spacing: -0.3px !important;
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 4px !important;
    }
    body.theme-madar_solar_pro .product-current-price,
    body.theme-madar_solar_pro .price-current {
        color: #059669 !important;
    }
    .currency-unit {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #64748b !important;
    }
    .product-old-price,
    .price-original {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        text-decoration: line-through !important;
    }

    /* أزرار التفاعل والسلة والواتساب */
    .product-card-actions {
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        margin-top: 4px !important;
    }
    .btn-add-cart-fast,
    .btn-fast-cart,
    .btn-add-cart {
        flex: 1 !important;
        height: 42px !important;
        background: linear-gradient(135deg, #0b86f9 0%, #0284c7 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 0 14px !important;
        font-weight: 800 !important;
        font-size: 13.5px !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        box-shadow: 0 4px 14px rgba(11, 134, 249, 0.28) !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        text-decoration: none !important;
        font-family: inherit !important;
        outline: none !important;
    }
    body.theme-madar_solar_pro .btn-add-cart-fast,
    body.theme-madar_solar_pro .btn-fast-cart,
    body.theme-madar_solar_pro .btn-add-cart {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28) !important;
    }
    .btn-add-cart-fast:hover,
    .btn-fast-cart:hover,
    .btn-add-cart:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(11, 134, 249, 0.4) !important;
        filter: brightness(1.08) !important;
    }
    body.theme-madar_solar_pro .btn-add-cart-fast:hover,
    body.theme-madar_solar_pro .btn-fast-cart:hover,
    body.theme-madar_solar_pro .btn-add-cart:hover {
        box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
    }
    .btn-add-cart-fast:active,
    .btn-fast-cart:active,
    .btn-add-cart:active {
        transform: translateY(0) !important;
        box-shadow: 0 2px 6px rgba(11, 134, 249, 0.2) !important;
    }
    .btn-add-cart-fast i,
    .btn-fast-cart i,
    .btn-add-cart i {
        font-size: 15px !important;
        transition: transform 0.25s ease !important;
    }
    .btn-add-cart-fast:hover i,
    .btn-fast-cart:hover i,
    .btn-add-cart:hover i {
        transform: scale(1.18) !important;
    }

    /* زر الواتساب الفاخر للاستفسار */
    .btn-quick-wa {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        background: #ecfdf5 !important;
        color: #10b981 !important;
        border: 1.5px solid #a7f3d0 !important;
        border-radius: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 19px !important;
        text-decoration: none !important;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12) !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        cursor: pointer !important;
        outline: none !important;
    }
    .btn-quick-wa:hover {
        background: #10b981 !important;
        color: #ffffff !important;
        border-color: #10b981 !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35) !important;
    }
    .btn-quick-wa:active {
        transform: translateY(0) !important;
    }
    .emg-special-featured-box {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        border: 1px solid #334155;
        border-radius: 20px;
        overflow: hidden;
        padding: 35px;
        margin: 40px 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        color: #ffffff;
    }
    .special-offer-grid {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        gap: 30px;
        align-items: center;
    }
    @media (max-width: 850px) {
        .special-offer-grid {
            grid-template-columns: 1fr;
        }
    }
    .special-video-frame {
        border-radius: 14px;
        overflow: hidden;
        background: #000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    .special-video-frame video {
        width: 100%;
        height: 100%;
        display: block;
    }
    .special-info-wrap {
        display: flex;
        flex-direction: column;
    }
    .special-badge-tag {
        background: rgba(245, 158, 11, 0.15);
        color: #f59e0b;
        border: 1px solid #f59e0b;
        font-size: 12px;
        font-weight: 800;
        padding: 4px 12px;
        border-radius: 50px;
        align-self: flex-start;
        margin-bottom: 12px;
    }
    .special-title-head {
        font-size: 26px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 8px;
    }
    .special-desc-text {
        color: #cbd5e1;
        font-size: 15px;
        margin-bottom: 16px;
    }
    .special-price-box {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 20px;
    }
    .special-now-price {
        font-size: 32px;
        font-weight: 900;
        color: #ef4444;
    }
    .special-before-price {
        font-size: 18px;
        color: #94a3b8;
        text-decoration: line-through;
    }
    .special-tabs-nav {
        display: flex;
        gap: 8px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    .sp-tab-btn {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #cbd5e1 !important;
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .sp-tab-btn.active, .sp-tab-btn:hover {
        background: #0b86f9;
        border-color: #0b86f9;
    }
    .emg-news-grid, .emg-testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
    .news-card-item, .testimonial-card-item {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    }
    .news-img-box {
        height: 170px;
        overflow: hidden;
    }
    .news-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .news-card-body {
        padding: 18px;
    }
    .news-card-title {
        font-size: 15px;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 8px;
    }
    .news-card-snippet {
        font-size: 13px;
        color: #64748b;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    .news-read-more {
        color: #0b86f9;
        font-size: 13px;
        font-weight: 800;
    }
    .testimonial-card-item {
        padding: 20px;
    }
    .testi-user-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    .testi-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #0b86f9;
    }
    .testi-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .testi-name {
        font-size: 14.5px;
        font-weight: 700;
        color: #0f172a;
    }
    .testi-city {
        font-size: 12px;
        color: #64748b;
    }
    .testi-stars {
        color: #f59e0b;
        font-size: 13px;
        margin-bottom: 8px;
    }
    .testi-comment-text {
        font-size: 13.5px;
        color: #334155;
        line-height: 1.5;
    }

    /* =========================================================
       تنسيقات تطبيق الموبايل الفاخر (EMG Mobile App Native Experience)
       مطابق 100% لتصميم التطبيق في الصورة 2
       ========================================================= */
    @media (max-width: 991px) {
        /* إخفاء أشرطة سطح المكتب غير المتوافقة */
        .emg-topbar, .emg-nav-strip,
        .madar-search-wrap,
        .btn-madar-cat,
        .cat-dropdown-menu,
        .btn-madar-cart,
        .customer-account-wrapper,
        .desktop-only-elem {
            display: none !important;
        }

        /* توفير مساحة سفلية آمنة لشريط التنقل السفلي والزر العائم */
        body {
            padding-bottom: 76px !important;
        }

        /* هيدر الموبايل المتناسق المدمج (54px) — مطابق 100% لسكرين شوت emg.sa */
        .emg-main-header {
            position: sticky !important;
            top: 0 !important;
            z-index: 9995 !important;
            padding: 0 !important;
            height: 54px !important;
            display: flex !important;
            align-items: center !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
        }

        body.theme-emg_salla_luxury .emg-main-header {
            background: #0b86f9 !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        }

        body.theme-madar_solar_pro .emg-main-header {
            background: #043327 !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        }

        .header-row, .emg-main-header .container > div {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 0 10px !important;
            height: 54px !important;
            width: 100% !important;
            gap: 6px !important;
        }

        /* أزرار أيقونات هيدر الموبايل الأنيقة والنقية - مصغرة ومتناسقة تماماً لشاشات الجوال */
        .mobile-header-btn {
            width: 30px !important;
            height: 30px !important;
            border-radius: 7px !important;
            background: transparent !important;
            color: #ffffff !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-size: 14.5px !important;
            border: none !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            position: relative !important;
            text-decoration: none !important;
            padding: 0 !important;
        }
        .mobile-header-btn i {
            font-size: 14.5px !important;
        }
        .mobile-header-btn:active {
            transform: scale(0.9) !important;
            background: rgba(255, 255, 255, 0.15) !important;
        }

        .mobile-header-badge {
            position: absolute !important;
            top: -3px !important;
            right: -3px !important;
            background: #ef4444 !important;
            color: #ffffff !important;
            font-size: 8px !important;
            font-weight: 900 !important;
            min-width: 14px !important;
            height: 14px !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border: 1.5px solid #ffffff !important;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
            line-height: 1 !important;
        }

        /* الشعار المصغر المتمركز في الهيدر */
        .mobile-app-logo {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            text-decoration: none !important;
            flex-grow: 1 !important;
            text-align: center !important;
        }
        .mobile-app-logo img {
            height: 32px !important;
            max-width: 120px !important;
            object-fit: contain !important;
        }
        .mobile-app-logo-text {
            font-size: 15px !important;
            font-weight: 900 !important;
            color: #ffffff !important;
            line-height: 1.1 !important;
        }

        /* =========================================================
           شريط الأقسام الرئيسية للجوال — مطابق تماماً للقطة الشاشة
           صغير، أنيق، ومناسب تماماً لحجم شاشة الموبايل (4-5 أقسام بالصف)
           ========================================================= */
        .mobile-categories-strip-section,
        .emg-categories-section,
        .store-categories-section {
            padding: 12px 0 8px !important;
            background: #ffffff !important;
            margin: 6px 0 14px !important;
            border-bottom: 1px solid #f1f5f9 !important;
        }

        .mobile-categories-strip-section h2,
        .emg-categories-section h2,
        .store-categories-section .section-title {
            font-size: 17px !important;
            font-weight: 900 !important;
            color: #0f172a !important;
            margin: 0 0 2px 0 !important;
            letter-spacing: -0.3px !important;
            line-height: 1.25 !important;
        }

        .mobile-categories-strip-section p,
        .emg-categories-section p,
        .store-categories-section .section-subtitle {
            font-size: 11.5px !important;
            color: #64748b !important;
            margin: 0 0 10px 0 !important;
            font-weight: 600 !important;
        }

        /* مسار التمرير الأفقي السلس بمقاسات الشاشة الحقيقية */
        .mobile-cat-scroll-track,
        .categories-carousel {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            gap: 8px !important;
            padding: 2px 2px 8px !important;
            margin: 0 !important;
            width: 100% !important;
            -webkit-overflow-scrolling: touch !important;
            scroll-snap-type: x mandatory !important;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
            mask-image: none !important;
            -webkit-mask-image: none !important;
        }
        .mobile-cat-scroll-track::-webkit-scrollbar,
        .categories-carousel::-webkit-scrollbar {
            display: none !important;
        }

        /* شريط التصنيفات المتحرك التلقائي القابل للسحب باللمس على الجوال */
        .emg-categories-marquee-viewport {
            display: block !important;
            overflow: hidden !important;
            position: relative !important;
            width: 100% !important;
            touch-action: pan-y !important;
            direction: ltr !important;
            cursor: grab !important;
            user-select: none !important;
            -webkit-user-select: none !important;
            padding: 2px 0 8px !important;
            margin: 0 !important;
            mask-image: none !important;
            -webkit-mask-image: none !important;
        }
        .emg-categories-marquee-viewport::-webkit-scrollbar {
            display: none !important;
        }
        .emg-categories-track {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            gap: 8px !important;
            width: max-content !important;
            will-change: transform !important;
        }

        /* بطاقة القسم المصغرة المتناسقة تماماً مع الموبايل */
        .mobile-cat-item-card,
        .cat-card-box,
        .category-card {
            flex: 0 0 68px !important;
            width: 68px !important;
            min-width: 68px !important;
            max-width: 72px !important;
            scroll-snap-align: start !important;
            text-align: center !important;
            text-decoration: none !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            gap: 5px !important;
            background: transparent !important;
            border: none !important;
            padding: 0 !important;
            box-shadow: none !important;
        }

        /* الصندوق المربع الأيقوني المصغر (54px-56px) مطابق للصورة */
        .mobile-cat-item-card > div:first-child,
        .cat-card-box .cat-icon-wrap,
        .category-card-icon {
            width: 56px !important;
            height: 56px !important;
            min-width: 56px !important;
            min-height: 56px !important;
            border-radius: 14px !important;
            background: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 6px !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
            box-sizing: border-box !important;
            margin: 0 auto !important;
            overflow: hidden !important;
        }

        .mobile-cat-item-card img,
        .cat-card-box img,
        .category-card img {
            width: 40px !important;
            height: 40px !important;
            max-width: 100% !important;
            max-height: 100% !important;
            object-fit: contain !important;
            display: block !important;
        }

        /* اسم القسم أسفل الصندوق — صغير وبخط واضح وثنائي الأسطر كحد أقصى */
        .mobile-cat-item-card span,
        .cat-card-box > div:nth-child(2),
        .category-card-name {
            font-size: 10.5px !important;
            font-weight: 800 !important;
            color: #0f172a !important;
            line-height: 1.25 !important;
            text-align: center !important;
            min-height: 26px !important;
            max-height: 28px !important;
            width: 100% !important;
            word-break: break-word !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: normal !important;
            padding: 0 1px !important;
        }

        .cat-card-box > div:nth-child(3),
        .cat-card-box .cat-badge {
            display: none !important;
        }

        /* =========================================================
           شبكة المنتجات للموبايل — منتج واحد في كل صف لمنع التداخل والازدحام
           ========================================================= */
        .products-grid,
        .products-cards-grid,
        .emg-products-grid,
        .store-products-grid {
            display: grid !important;
            grid-template-columns: 1fr !important; /* منتج واحد في كل صف */
            gap: 20px !important;
            padding: 0 4px !important;
        }

        .salla-marquee-viewport {
            overflow: hidden !important;
            padding: 4px 0 !important;
            cursor: grab !important;
            touch-action: pan-y !important;
        }
        .salla-marquee-track,
        .salla-marquee-track-1,
        .salla-marquee-track-2 {
            display: flex !important;
            flex-wrap: nowrap !important;
            gap: 8px !important;
            width: max-content !important;
            will-change: transform !important;
        }

        .product-card,
        .madar-product-card,
        .salla-marquee-card {
            width: 100% !important;
            min-width: 0 !important;
            border-radius: 12px !important;
            padding: 8px !important;
            border: 1px solid #e2e8f0 !important;
            background: #ffffff !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
        }

        .salla-marquee-card {
            width: 130px !important;
            flex: 0 0 130px !important;
            padding: 5px !important;
            border-radius: 10px !important;
        }

        .product-thumb-wrap,
        .product-card-image-box,
        .salla-marquee-card > div:first-child {
            width: 100% !important;
            height: 92px !important;
            border-radius: 8px !important;
            background: #ffffff !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            overflow: hidden !important;
            margin-bottom: 4px !important;
            padding: 3px !important;
        }

        .product-thumb,
        .product-card-image-box img,
        .salla-marquee-card img {
            width: 100% !important;
            height: 100% !important;
            max-height: 84px !important;
            object-fit: contain !important;
        }

        .product-title,
        .product-name-heading,
        .salla-marquee-card h4 {
            font-size: 10px !important;
            font-weight: 800 !important;
            color: #0f172a !important;
            line-height: 1.25 !important;
            height: 25px !important;
            max-height: 25px !important;
            overflow: hidden !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            margin: 0 0 3px 0 !important;
            min-height: 0 !important;
        }

        .product-pricing,
        .product-price-row {
            display: flex !important;
            align-items: baseline !important;
            justify-content: space-between !important;
            gap: 4px !important;
            margin-bottom: 6px !important;
        }

        .price-current,
        .product-price-val {
            font-size: 13.5px !important;
            font-weight: 900 !important;
            color: #0b86f9 !important;
        }
        body.theme-madar_solar_pro .price-current,
        body.theme-madar_solar_pro .product-price-val {
            color: #059669 !important;
        }

        .salla-round-buy-btn {
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
            min-height: 38px !important;
            max-width: 38px !important;
            max-height: 38px !important;
            border-radius: 50% !important;
            aspect-ratio: 1 / 1 !important;
            flex-shrink: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            box-sizing: border-box !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .product-card-actions {
            display: flex !important;
            gap: 6px !important;
            align-items: center !important;
            width: 100% !important;
        }
        .btn-add-cart,
        .btn-fast-cart,
        .btn-add-cart-fast {
            flex: 1 !important;
            width: auto !important;
            height: 35px !important;
            padding: 4px 6px !important;
            font-size: 11px !important;
            font-weight: 800 !important;
            border-radius: 8px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 4px !important;
            white-space: nowrap !important;
        }
        .btn-quick-wa {
            width: 35px !important;
            min-width: 35px !important;
            height: 35px !important;
            border-radius: 8px !important;
            font-size: 16px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
        }

        .stock-badge {
            font-size: 9px !important;
            padding: 2px 6px !important;
            border-radius: 4px !important;
        }

        /* الهيرو سلايدر المصغر للجوال - إظهار الفيديو بوضوح مع وضع النصوص والأزرار بالأسفل بخط مصغر */
        .store-hero-section,
        .madar-hero-video-slider,
        .emg-hero-slider {
            min-height: auto !important;
            height: 230px !important;
            max-height: 250px !important;
            border-radius: 12px !important;
            margin: 4px 0 10px !important;
            overflow: hidden !important;
            position: relative !important;
        }
        .madar-hero-video-slider video,
        .emg-hero-slider video,
        .madar-hero-video-slider img,
        .emg-hero-slider img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
        }
        .slider-overlay,
        .madar-video-slide > div,
        .hero-slide-content {
            padding: 0 42px 10px !important;
            justify-content: flex-end !important;
            align-items: center !important;
            text-align: center !important;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 28%, transparent 55%) !important;
        }
        .slider-content,
        .madar-hero-video-slider .slider-content,
        .madar-video-slide > div > div {
            padding: 0 !important;
            max-width: 100% !important;
        }
        .slider-title,
        .madar-hero-video-slider h1,
        .madar-hero-video-slider h2,
        .hero-slide-title {
            font-size: 13px !important;
            font-weight: 800 !important;
            margin-bottom: 2px !important;
            line-height: 1.25 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
        }
        .slider-subtitle,
        .madar-hero-video-slider p,
        .hero-slide-desc {
            font-size: 9.5px !important;
            line-height: 1.25 !important;
            margin-bottom: 6px !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 1 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
            text-shadow: 0 1px 2px rgba(0,0,0,0.9) !important;
        }
        .slider-content a,
        .madar-hero-video-slider a,
        .slider-content button {
            padding: 3px 12px !important;
            font-size: 10px !important;
            height: 24px !important;
            line-height: 18px !important;
            border-radius: 20px !important;
            gap: 4px !important;
            font-weight: 700 !important;
        }
        .slider-content a i,
        .madar-hero-video-slider a i {
            font-size: 9px !important;
        }
        .slider-nav-btn,
        .madar-hero-video-slider > button {
            position: absolute !important;
            top: auto !important;
            bottom: 8px !important;
            transform: none !important;
            width: 26px !important;
            height: 26px !important;
            font-size: 10px !important;
            background: rgba(0, 0, 0, 0.45) !important;
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            z-index: 10 !important;
        }
        .slider-prev,
        .madar-hero-video-slider > button:first-of-type { right: 8px !important; }
        .slider-next,
        .madar-hero-video-slider > button:last-of-type { left: 8px !important; }
        .hero-trust-capsule,
        .madar-video-slide div[style*="backdrop-filter: blur(12px)"],
        .madar-video-slide div[style*="backdrop-filter:blur(12px)"] {
            display: none !important;
        }

        /* شبكات الاستخدام والأقسام الأخرى - مربعات صغيرة مدمجة لا تتعدى سطرين */
        .salla-usecases-section,
        .madar-usecases-section {
            padding: 12px 10px !important;
            border-radius: 14px !important;
            margin: 12px 0 18px !important;
        }
        .usecases-mini-grid {
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 6px !important;
        }
        .usecase-mini-square {
            min-height: 60px !important;
            max-height: 68px !important;
            padding: 6px 3px 5px !important;
            border-radius: 10px !important;
        }
        .usecase-mini-icon {
            width: 26px !important;
            height: 26px !important;
            font-size: 12px !important;
            margin-bottom: 3px !important;
            border-radius: 7px !important;
        }
        .usecase-mini-title {
            font-size: 10.5px !important;
        }

        .grid-station-layout {
            grid-template-columns: 1fr !important;
            gap: 16px !important;
        }
        .emg-station-banner-section {
            padding: 20px 14px !important;
            border-radius: 16px !important;
        }

        /* =========================================================
           قواعد تصغير الأيقونات العامة للموبايل (Mobile Global Icon Sizing)
           ========================================================= */
        /* شريط الإدارة العلوي - سطر واحد فقط مدمج لا يزيد إطلاقاً */
        .store-admin-top-bar {
            height: 30px !important;
            padding: 2px 8px !important;
            font-size: 10.5px !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }
        .store-admin-top-bar .container {
            padding: 0 4px !important;
            gap: 6px !important;
        }
        .store-admin-top-bar a {
            padding: 2px 7px !important;
            font-size: 9.5px !important;
            border-radius: 10px !important;
        }
        .store-admin-top-bar i {
            font-size: 9px !important;
        }

        /* بطاقات المزايا والضمانات على الموبايل: 3 مربعات صغيرة في صف واحد */
        .store-trust-strip {
            display: grid !important;
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            gap: 6px !important;
            margin: 8px 0 12px !important;
            padding: 0 !important;
        }
        .trust-card {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            text-align: center !important;
            padding: 8px 3px 6px !important;
            gap: 3px !important;
            border-radius: 10px !important;
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            box-shadow: 0 1px 5px rgba(0,0,0,0.03) !important;
            min-height: auto !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }
        .trust-icon-box {
            width: 28px !important;
            height: 28px !important;
            font-size: 13px !important;
            border-radius: 7px !important;
            margin: 0 0 2px !important;
            flex-shrink: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        .trust-text-box {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
            min-width: 0 !important;
        }
        .trust-text-box h4 {
            font-size: 11px !important;
            font-weight: 800 !important;
            color: #0f172a !important;
            margin: 0 0 1px !important;
            line-height: 1.2 !important;
            text-align: center !important;
            letter-spacing: -0.2px !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            max-width: 100% !important;
        }
        .trust-text-box p, .trust-sub-badge {
            display: block !important;
            font-size: 9.5px !important;
            color: #64748b !important;
            margin: 0 !important;
            line-height: 1.1 !important;
            text-align: center !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            max-width: 100% !important;
        }

        /* تصغير الأيقونات في القائمة الجانبية (Drawer) */
        .mobile-drawer-link i {
            font-size: 13.5px !important;
            width: 20px !important;
        }
        .mobile-drawer-link {
            font-size: 13px !important;
            padding: 8px 12px !important;
        }

        /* تصغير أيقونات بطاقات المنتجات والأزرار للموبايل */
        .product-card-emg .btn-add-cart i,
        .btn-add-cart i {
            font-size: 12.5px !important;
        }
        .product-badge i {
            font-size: 10px !important;
        }
        .rating-stars i, .stars-rating i {
            font-size: 10px !important;
        }
        .cart-drawer-item-actions button i {
            font-size: 11px !important;
        }
    }


    @media (min-width: 992px) {
        .mobile-only-elem {
            display: none !important;
        }
    }

    /* =========================================================
       القائمة الجانبية المنبثقة للموبايل (Mobile Slide-Out Drawer)
       ========================================================= */
    .mobile-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 2000010 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-drawer-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    /* إخفاء زر اسألني العائم تلقائياً تماماً عند فتح القائمة الجانبية */
    body.drawer-open #tamerFloatingTrigger,
    .mobile-drawer-overlay.active ~ #tamerFloatingTrigger,
    body:has(.mobile-drawer-overlay.active) #tamerFloatingTrigger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .mobile-drawer-panel {
        position: fixed;
        top: 0;
        right: -340px;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #0f172a;
        border-left: 1px solid #334155;
        z-index: 2000011 !important;
        display: flex;
        flex-direction: column;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        direction: rtl;
        text-align: right;
        pointer-events: auto;
    }
    .mobile-drawer-overlay.active .mobile-drawer-panel {
        right: 0;
    }
    .mobile-drawer-header {
        padding: 16px 20px;
        background: linear-gradient(135deg, #0b86f9 0%, #0369a1 100%);
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    body.theme-madar_solar_pro .mobile-drawer-header {
        background: linear-gradient(135deg, #043327 0%, #064e3b 100%);
    }
    .mobile-drawer-close-btn {
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: #ffffff !important;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
    }
    .mobile-drawer-section-title {
        font-size: 12px;
        font-weight: 800;
        color: #94a3b8;
        padding: 14px 18px 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .mobile-drawer-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        color: #f1f5f9 !important;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: all 0.2s;
    }
    .mobile-drawer-link:hover, .mobile-drawer-link:active {
        background: rgba(56, 189, 248, 0.1);
        color: #38bdf8 !important;
    }
    .mobile-drawer-link .link-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
        font-size: 15px;
    }

    /* =========================================================
       شريط البحث المنبثق للموبايل (Mobile Search Overlay)
       ========================================================= */
    .mobile-search-overlay {
        position: fixed;
        top: -120px;
        left: 0;
        right: 0;
        background: #0f172a;
        border-bottom: 2px solid #0b86f9;
        padding: 12px 16px;
        z-index: 99999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        gap: 10px;
        pointer-events: none;
    }
    body.theme-madar_solar_pro .mobile-search-overlay {
        border-bottom-color: #059669;
    }
    .mobile-search-overlay.active {
        top: 0;
        pointer-events: auto;
    }
    .mobile-search-form {
        flex: 1;
        display: flex;
        position: relative;
    }
    .mobile-search-input {
        width: 100%;
        height: 44px;
        border-radius: 50px;
        border: 1.5px solid #334155;
        background: #1e293b;
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 600;
        padding: 0 45px 0 16px;
        outline: none;
    }
    .mobile-search-input:focus {
        border-color: #38bdf8;
    }
    .mobile-search-btn-icon {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 16px;
        cursor: pointer;
    }
    .mobile-search-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #ffffff !important;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        cursor: pointer;
    }

    /* ==================== Master Luxury Footer Styles ==================== */
    .emg-master-footer {
        background: #060a14;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 50px 0 25px;
        margin-top: 60px;
        color: #ffffff;
        font-family: var(--font-main);
    }
    .footer-main-grid {
        display: grid;
        grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1.2fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    @media (max-width: 1199px) {
        .footer-main-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }
    }
    @media (max-width: 850px) {
        .footer-main-grid {
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
    }
    @media (max-width: 550px) {
        .footer-main-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
    }
    .footer-col-title {
        font-size: 16px;
        font-weight: 800;
        color: #ffffff !important;
        margin-bottom: 18px;
        position: relative;
        padding-bottom: 8px;
    }
    .footer-col-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 35px;
        height: 3px;
        background: #0b86f9;
        border-radius: 2px;
    }
    .footer-desc-p {
        font-size: 13.5px;
        color: #94a3b8;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    .footer-links-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .footer-links-list li {
        font-size: 13.5px;
    }
    .footer-links-list a {
        color: #cbd5e1 !important;
        text-decoration: none;
        transition: color 0.2s, padding-right 0.2s;
        display: inline-block;
    }
    .footer-links-list a:hover {
        color: #38bdf8 !important;
        padding-right: 5px;
    }
    .footer-trust-card {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 12px 14px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.25s ease;
    }
    .footer-trust-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(56, 189, 248, 0.4);
        transform: translateY(-2px);
    }
    .footer-trust-card img {
        height: 34px;
        width: auto;
        max-width: 90px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .trust-label-h {
        font-size: 11.5px;
        color: #94a3b8;
        margin-bottom: 2px;
    }
    .trust-val-h {
        font-size: 13px;
        font-weight: 800;
        color: #ffffff !important;
        font-family: inherit;
    }
    .footer-payments-row {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 22px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    .payment-icons-strip {
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }
    .pay-pill-box {
        background: #ffffff !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 32px !important;
        min-width: 55px !important;
        width: auto !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .pay-pill-box svg {
        display: block !important;
        height: 20px !important;
        width: auto !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    .pay-pill-box img {
        height: 20px !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* =========================================================
       شات تامر العائم الذكي (Floating Tamer AI Sales Widget)
       ========================================================= */
    .tamer-floating-trigger {
        position: fixed;
        bottom: 25px;
        left: 25px;
        z-index: 1050;
        cursor: pointer;
    }
    .tamer-trigger-badge {
        background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
        color: #ffffff !important;
        border: 1.5px solid #818cf8;
        font-size: 13.5px;
        font-weight: 800;
        padding: 8px 18px;
        border-radius: 50px;
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .tamer-trigger-badge:hover {
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6);
    }
    .tamer-chat-widget {
        position: fixed;
        bottom: 85px;
        left: 25px;
        width: 380px;
        max-width: calc(100vw - 40px);
        height: 540px;
        max-height: calc(100vh - 110px);
        background: #0f172a;
        border: 1px solid #334155;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.25);
        display: flex;
        flex-direction: column;
        z-index: 999999;
        overflow: hidden;
        animation: tamerPopupSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes tamerPopupSlide {
        from { opacity: 0; transform: translateY(20px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .tamer-widget-header {
        background: linear-gradient(135deg, #1e293b, #0f172a);
        border-bottom: 1px solid #334155;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .tamer-avatar-wrap {
        position: relative;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #38bdf8, #6366f1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0f172a;
        font-size: 16px;
        flex-shrink: 0;
    }
    .tamer-avatar-wrap .online-indicator {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #10b981;
        border: 2px solid #0f172a;
    }
    .tamer-widget-header .tamer-title {
        font-size: 13.5px;
        font-weight: 800;
        color: #ffffff !important;
        line-height: 1.2;
    }
    .tamer-widget-header .tamer-status {
        font-size: 11px;
        color: #94a3b8 !important;
        margin-top: 2px;
    }
    .tamer-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #cbd5e1;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .tamer-close-btn:hover {
        background: #ef4444;
        color: #ffffff;
    }
    .tamer-widget-body {
        flex: 1;
        padding: 14px;
        overflow-y: auto;
        background: #0b1120;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .widget-msg {
        max-width: 88%;
        border-radius: 12px;
        padding: 10px 14px;
        font-size: 13.5px;
        line-height: 1.55;
        word-break: break-word;
    }
    .widget-msg-tamer {
        align-self: flex-start;
        background: #1e293b;
        color: #ffffff !important;
        border-right: 3px solid #38bdf8;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .widget-msg-tamer .msg-sender {
        font-size: 11px;
        font-weight: 700;
        color: #38bdf8;
        margin-bottom: 4px;
    }
    .widget-msg-user {
        align-self: flex-end;
        background: #1e3a8a;
        color: #ffffff !important;
        border-left: 3px solid #f59e0b;
    }
    .widget-msg-user .msg-sender {
        font-size: 11px;
        font-weight: 700;
        color: #fbbf24;
        margin-bottom: 4px;
    }
    .widget-msg a {
        color: #38bdf8;
        text-decoration: underline;
    }
    .tamer-typing-indicator {
        font-size: 11.5px;
        color: #38bdf8;
        padding: 4px 14px;
        background: #0b1120;
    }
    .tamer-quote-form-box {
        background: #1e293b;
        border-top: 1px solid #334155;
        border-bottom: 1px solid #334155;
        padding: 12px;
    }
    .quote-form-header {
        font-size: 12.5px;
        font-weight: 800;
        color: #f59e0b;
        margin-bottom: 8px;
    }
    .quote-form-inputs {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .wq-input {
        background: #0f172a !important;
        color: #ffffff !important;
        border: 1px solid #334155 !important;
        border-radius: 8px;
        padding: 6px 10px;
        font-size: 12px;
        width: 100%;
    }
    .wq-input:focus {
        border-color: #f59e0b !important;
        outline: none;
    }
    .btn-submit-wq {
        background: #f59e0b;
        color: #0f172a !important;
        font-weight: 800;
        font-size: 12px;
        border: none;
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        margin-top: 4px;
        transition: all 0.2s;
    }
    .btn-submit-wq:hover {
        background: #d97706;
    }
    .tamer-widget-footer {
        background: #1e293b;
        border-top: 1px solid #334155;
        padding: 8px 12px;
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .tamer-widget-footer textarea {
        flex: 1;
        background: #0f172a !important;
        color: #ffffff !important;
        border: 1px solid #334155 !important;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 13px;
        resize: none;
        max-height: 80px;
    }
    .tamer-widget-footer textarea:focus {
        border-color: #38bdf8 !important;
        outline: none;
    }
    .tamer-widget-footer button {
        background: linear-gradient(135deg, #0284c7, #2563eb);
        color: #ffffff !important;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.2s;
    }
    .tamer-widget-footer button:hover {
        background: #0369a1;
        transform: scale(1.05);
    }
    @media (max-width: 576px) {
        .tamer-floating-trigger {
            bottom: 68px !important;
            left: 10px !important;
        }
        .tamer-trigger-badge {
            padding: 5px 12px !important;
            font-size: 11px !important;
            gap: 5px !important;
        }
        .tamer-chat-widget:not(.is-maximized) {
            bottom: 68px !important;
            left: 8px !important;
            right: auto !important;
            width: 300px !important;
            max-width: calc(100vw - 16px) !important;
            height: 330px !important;
            max-height: 44vh !important;
            border-radius: 16px !important;
        }
    }
