/*
Theme Name: Al-Ghofran Divi Child (Vercel Industrial Edition)
Theme URI: https://alghofraneg.com/
Description: قالب ابن مخصص لـ Divi يحول تصميم موقع شركة الغفران الجديد (alghofran.vercel.app) إلى ووردبريس مع ربط كامل بمنتجات WooCommerce، الفلاتر الفورية حسب السعة والنوع، الحقول المخصصة للمواصفات الفنية (الماركة، الموديل، السعة، ضغط التشغيل Bar)، الخريطة التفاعلية، ودعم اللغتين العربية والإنجليزية.
Author: Yellow Media / Al-Ghofran Engineering
Author URI: https://alghofraneg.com/
Template: Divi
Version: 1.0.9
Text Domain: alghofran-divi-child
*/

/* استيراد متغيرات التصميم الأساسية لموقع الغفران */
:root {
  --ink-900: #04121f;
  --navy: #08233d;
  --navy-2: #0c2d4d;
  --navy-3: #134070;
  --flame: #134a80;
  --flame-2: #8fbbe8;
  --gold: #dcebfa;
  --ink: #0d1a28;
  --muted: #5a6b7e;
  --line: #e4e9f0;
  --tint: #f3f6fa;
  --panel: #eef2f6;
  --paper: #fbfcfe;
  --white: #ffffff;
  --wa: #1fae5b;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 4px 14px -6px rgba(8, 35, 61, 0.18);
  --shadow: 0 14px 34px -14px rgba(8, 35, 61, 0.28);
  --shadow-lg: 0 34px 70px -24px rgba(8, 35, 61, 0.42);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 84px;
}

/* Local Fonts: IBM Plex Sans Arabic */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('assets/fonts/woff/IBMPlexSansArabic-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/woff/IBMPlexSansArabic-Medium.woff') format('woff');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/woff/IBMPlexSansArabic-SemiBold.woff') format('woff');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/woff/IBMPlexSansArabic-Bold.woff') format('woff');
}

/* Local Fonts: Readex Pro */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/woff/ReadexPro-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/woff/ReadexPro-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Readex Pro';
    src: url('assets/fonts/woff/ReadexPro-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/woff/ReadexPro-Bold.woff') format('woff');
}

/* ==========================================================================
   GLOBAL DESIGN HARMONY & DIVI ISOLATION (Vercel Industrial Edition)
   ========================================================================== */

/* 1. Header Clearance & Hero Spacing */
.hero,
section.hero {
    position: relative !important;
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    color: #ffffff !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background: #04121f !important;
    box-sizing: border-box !important;
}
.hero__content,
.container.hero__content {
    margin-top: auto !important;
    padding-top: calc(var(--header-h, 84px) + 70px) !important;
    padding-bottom: 24px !important;
    max-width: 900px !important;
    margin-inline: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
body.admin-bar .hero__content,
body.admin-bar .container.hero__content {
    padding-top: calc(var(--header-h, 84px) + 102px) !important;
}

/* 2. Hero Stats Typography (18px) */
.hero__stats .hstat strong,
.hero__stats .hstat strong span,
.hero__stats .hstat strong [data-count],
.hstat strong,
.hstat strong span,
.hstat strong [data-count] {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    letter-spacing: -0.01em !important;
    color: #ffffff !important;
    vertical-align: middle !important;
}
.hero__stats .hstat strong small,
.hstat strong small {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #8fbbe8 !important;
    margin-inline-start: 4px !important;
    vertical-align: baseline !important;
}
.hero__stats .hstat span:not([data-count]),
.hstat span:not([data-count]) {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.4 !important;
}

/* 3. Section Background Alternating Contrast */
.ag-site-wrapper,
#page-container,
#et-main-area,
.section,
section.section {
    background-color: #fbfcfe !important;
    color: #0d1a28 !important;
}
.section.section--tint,
.section--tint,
section.section--tint {
    background-color: #f3f6fa !important;
}
.section.section--dark,
.section--dark,
section.section--dark,
.showcase,
section.showcase {
    background-color: #04121f !important;
    color: #ffffff !important;
}
.section--dark h2,
.section--dark h3,
.showcase h2 {
    color: #ffffff !important;
}
.section--dark .lead {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* 4. CTA Emergency Strip */
.cta-wrap {
    padding-bottom: clamp(60px, 8vw, 120px) !important;
    background-color: #fbfcfe !important;
}
.cta {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    border-radius: 28px !important;
    color: #ffffff !important;
    padding: clamp(36px, 5vw, 64px) !important;
    background-color: #08233d !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px -15px rgba(8, 35, 61, 0.4) !important;
}
.cta > * {
    position: relative !important;
    z-index: 2 !important;
}
.cta > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    display: block !important;
}
.cta::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(90deg, rgba(19, 74, 128, 0.94) 0%, rgba(4, 18, 31, 0.90) 100%) !important;
    pointer-events: none !important;
}
[dir="ltr"] .cta::before {
    background: linear-gradient(270deg, rgba(19, 74, 128, 0.94) 0%, rgba(4, 18, 31, 0.90) 100%) !important;
}

/* 5. Process & Services SVG Vector Icons */
.pstep__icon,
.svc__icon {
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
}
.pstep__icon svg,
.svc__icon svg {
    width: 26px !important;
    height: 26px !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block !important;
}
.section--dark .pstep__icon {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #8fbbe8 !important;
}
.svc__icon {
    background: #eef4fb !important;
    border: 1px solid #dce8f5 !important;
    color: #134a80 !important;
}

/* 6. Guaranteed Fail-Safe Visibility */
.ag-fade-up,
.fade-up,
.reveal,
.about__media {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
.ag-hero__title .ag-line > span,
.hero h1 .line > span {
    transform: none !important;
}
.hero__media {
    opacity: 1 !important;
}

/* 7. زر الواتساب العائم */
.ctc_s_3, .ctc_nb, .ht-ctc-cta, .ht_ctc_chat_data, [class*="ht-ctc"], [class*="ctc_"], .ag-wa-float__label {
    display: none !important;
}
.wa-float,
.ag-wa-float {
    position: fixed !important;
    bottom: 24px !important;
    inset-inline-end: 24px !important;
    z-index: 99999 !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    background: #1fae5b !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(31, 174, 91, 0.45) !important;
    transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease) !important;
    text-decoration: none !important;
}
.wa-float:hover,
.ag-wa-float:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 12px 30px rgba(31, 174, 91, 0.6) !important;
    color: #ffffff !important;
}
.wa-float svg,
.ag-wa-float svg {
    width: 32px !important;
    height: 32px !important;
    fill: #ffffff !important;
    display: block !important;
}

/* 8. الفوتر الصناعي Vercel */
.footer {
    background: #04121f !important;
    color: rgba(255, 255, 255, 0.65) !important;
    padding: 90px 0 0 !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.footer__big {
    display: block !important;
    width: min(100%, 1080px) !important;
    aspect-ratio: 2688 / 472 !important;
    margin: 0 auto 56px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.1)) !important;
    -webkit-mask: var(--wm-url, url('assets/img/wordmark.png')) center / contain no-repeat !important;
    mask: var(--wm-url, url('assets/img/wordmark.png')) center / contain no-repeat !important;
}
.footer__grid {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr !important;
    gap: 40px !important;
    box-sizing: border-box !important;
}
@media (max-width: 900px) {
    .footer__grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}
@media (max-width: 600px) {
    .footer__grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* 9. قسم تقييم Google وبطاقات التسليم */
.trust {
    display: grid !important;
    grid-template-columns: 340px 1fr !important;
    gap: 24px !important;
    align-items: stretch !important;
    margin-top: 36px !important;
}
@media (max-width: 991px) {
    .trust { grid-template-columns: 1fr !important; }
}
.grating {
    border: 1px solid #e4e9f0 !important;
    border-radius: 20px !important;
    padding: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px -14px rgba(8, 35, 61, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
}
.deliveries {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
}
@media (max-width: 600px) {
    .deliveries { grid-template-columns: 1fr !important; }
}

/* 10. خريطة Leaflet */
.dmap__map,
#dmap.dmap__map {
    height: 420px !important;
    min-height: 420px !important;
    background: #f3f6fa !important;
    direction: ltr !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 0 20px 20px !important;
}

/* ==========================================================================
   11. تنسيقات قائمة الموبايل (AG Mobile Drawer) المطابقة لـ Vercel 100%
   هذا الجزء كان مفقوداً وتمت إضافته ليعمل زر البرجر والقائمة على الموبايل
   دون أي تأثير على الديسكتوب
   ========================================================================== */
.ag-mobile-drawer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000000 !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ag-mobile-drawer.is-open {
    visibility: visible !important;
    opacity: 1 !important;
}

.ag-mobile-drawer__overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(4, 18, 31, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.ag-mobile-drawer__content {
    position: absolute !important;
    top: 0 !important;
    inset-inline-end: 0 !important;
    width: min(88vw, 380px) !important;
    height: 100% !important;
    background: #04121f !important;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px 32px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

[dir="ltr"] .ag-mobile-drawer__content {
    transform: translateX(-100%);
}

.ag-mobile-drawer.is-open .ag-mobile-drawer__content {
    transform: translateX(0) !important;
}

.ag-mobile-drawer__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 85px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 16px !important;
}

.ag-mobile-drawer__head img {
    height: 38px !important;
    width: auto !important;
}

.ag-drawer-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.ag-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.ag-drawer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.ag-drawer-links li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 14px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    border-radius: 10px !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.ag-drawer-links li a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #8fbbe8 !important;
}

.ag-drawer-subhead {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #8fbbe8 !important;
    padding: 14px 14px 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.ag-drawer-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    margin: 12px 0 !important;
}

.ag-drawer-actions {
    margin-top: auto !important;
    padding-top: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.ag-w-full {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.ag-mt-sm {
    margin-top: 4px !important;
}

.ag-btn--outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 18px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.ag-btn--outline:hover {
    background: #ffffff !important;
    color: #04121f !important;
}
/* 1. إخفاء الدراور الإضافي القديم نهائياً لمنع ظهور منيو مكررة */
#agMobileDrawer,
.ag-mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. إخفاء صندوق الميجا منيو الأبيض العريض في الموبايل حتى لا يظهر طافياً أسفل القائمة */
@media (max-width: 1080px) {
    #agHeader .ag-mega-menu,
    #agHeader .mega {
        position: static !important;
        width: 100% !important;
        display: none !important; /* مخفية افتراضياً */
        box-shadow: none !important;
        border: none !important;
    }

    /* تظهر فقط بشكل سليم ومنظم إذا قام المستخدم بالضغط على قسم المنتجات */
    #agHeader .ag-has-mega.is-open .ag-mega-menu,
    #agHeader .ag-has-mega.is-open .mega {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        background: #f8fafc !important;
        padding: 10px !important;
    }
}

/* ============================================================
   إصلاح ظهور القائمة كاملة وتفعيل التمرير لجميع الروابط
   ============================================================ */
@media (max-width: 1080px) {

    /* 1. منع الهيدر من حبس القائمة أو قصها */
    #agHeader.is-open {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 2. ضبط القائمة لتأخذ الارتفاع المناسب مع تفعيل السكرول الحر */
    #agHeader .ag-nav {
        position: fixed !important;
        top: 84px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100vh - 84px) !important;
        height: calc(100dvh - 84px) !important;
        max-height: calc(100dvh - 84px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important; /* سكرول ناعم وسلس على الآيفون والأندرويد */
        padding-bottom: 85px !important;
        box-sizing: border-box !important;
    }

    /* 3. ضمان نزول القائمة لآخر عنصر */
    #agHeader .ag-nav__list {
        padding-bottom: 45px !important;
        height: auto !important;
    }

    #agHeader .ag-nav__list > li:last-child {
        margin-bottom: 20px !important;
    }
}

/* ============================================================
   إلغاء حظر القائمة في الصفحات الداخلية (body:not(.home))
   ============================================================ */

/* 1. منع قص الهيدر في الصفحات الداخلية عند الفتح */
body #agHeader.is-open,
body:not(.home) #agHeader.ag-header.is-open,
body.home #agHeader.ag-header.is-open,
#agHeader.is-scrolled.is-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    height: auto !important;
    max-height: none !important;
}

@media (max-width: 1080px) {

    /* 2. فتح القائمة كاملة في كل الصفحات الداخلية مع السكرول */
    body #agHeader.is-open .ag-nav,
    body:not(.home) #agHeader.is-open .ag-nav,
    #agHeader.is-scrolled.is-open .ag-nav {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        position: fixed !important;
        top: 84px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100vh - 84px) !important;
        height: calc(100dvh - 84px) !important;
        max-height: calc(100dvh - 84px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: #fbfcfe !important;
        padding-bottom: 85px !important;
        box-sizing: border-box !important;
        z-index: 999999 !important;
    }

    /* 3. تنسيق روابط القائمة في الصفحات الداخلية بنفس شكل الرئيسية */
    body:not(.home) #agHeader .ag-nav__list {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        padding-bottom: 45px !important;
    }

    body:not(.home) #agHeader .ag-nav__list > li {
        width: 100% !important;
        border-bottom: 1px solid #e4e9f0 !important;
    }

    body:not(.home) #agHeader .ag-nav__link {
        color: #08233d !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        padding: 14px 10px !important;
        font-size: 15.5px !important;
        font-weight: 600 !important;
    }

    /* إخفاء زر CTA في الصفحات الداخلية على الموبايل */
    body:not(.home) #agHeader .ag-header__cta {
        display: none !important;
    }
}
/* ============================================================
   إصلاح ألوان نصوص وروابط الفوتر (أبيض ناصع ورمادي فاتح)
   ============================================================ */
footer.footer,
.footer,
#main-footer {
    background: #04121f !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* العناوين والشعار داخل الفوتر */
.footer h3,
.footer h4,
.footer .footer__h,
.footer .footer__tag {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* الفقرات والنصوص العادية */
.footer p,
.footer span,
.footer li,
.footer div:not(.socials) {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* الروابط وأقسام الفوتر */
.footer a,
.footer .footer__grid a,
.footer__grid > div > a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.footer a:hover,
.footer .footer__grid a:hover,
.footer__grid > div > a:hover {
    color: #8fbbe8 !important; /* لون الهوية الأزرق الفاتح عند التمرير */
}

/* روابط السيو أسفل الفوتر */
.footer__seo a {
    color: rgba(255, 255, 255, 0.45) !important;
}

.footer__seo a:hover {
    color: #8fbbe8 !important;
}

/* شريط حقوق الملكية السفلي */
.footer__bottom,
.footer__bottom * {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================================
   تنسيق شريط الإجراءات السريعة للموبايل (Vercel Action Bar)
   ============================================================ */

/* 1. إخفاء الشريط افتراضياً على شاشات الكمبيوتر واللابتوب */
.mbar {
    display: none;
}

/* 2. إظهار الشريط فقط على شاشات الموبايل (أقل من 860px) */
@media (max-width: 860px) {
    .mbar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99990 !important;
        background: rgba(251, 252, 254, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-top: 1px solid #e4e9f0 !important;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
        gap: 6px !important;
        box-shadow: 0 -4px 20px rgba(8, 35, 61, 0.08) !important;
        box-sizing: border-box !important;
    }

    /* الروابط والأزرار الثلاثة */
    .mbar a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: #08233d !important;
        padding: 8px 4px !important;
        border-radius: 12px !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
        transition: transform 0.2s ease !important;
    }

    .mbar a:active {
        transform: scale(0.96) !important;
    }

    /* الأيقونات الهندسية */
    .mbar a svg {
        width: 22px !important;
        height: 22px !important;
        fill: currentColor !important;
        stroke: currentColor !important;
        display: block !important;
    }

    /* زر الواتساب */
    .mbar a.is-wa {
        color: #1fae5b !important;
    }
    .mbar a.is-wa svg {
        fill: #1fae5b !important;
        stroke: none !important;
    }

    /* زر عرض السعر الملون بالأزرق الفاخر */
    .mbar a.is-flame {
        background: #134a80 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(19, 74, 128, 0.35) !important;
    }
    .mbar a.is-flame svg {
        fill: none !important;
        stroke: #ffffff !important;
    }

    /* 3. إعطاء مسافة أمان أسفل الموقع لكي لا يغطي الشريط على الفوتر */
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom)) !important;
    }

    /* إخفاء زر الواتساب الدائري العائم القديم على الموبايل لمنع الازدحام مع الشريط الجديد */
    .wa-float,
    .ag-wa-float {
        display: none !important;
    }
}
/* توسيط عنوان الهيرو وسطوره في المنتصف تماماً */
.hero h1,
.hero__content h1,
h1[data-agm="text"] {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* توسيط سطور وكلمات العنوان */
.hero h1 .line,
.hero__content h1 .line {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

/* ============================================================
   تحديثات الإصدار النهائي v1.0.3:
   1. الهيدر شفاف في البداية وأبيض ناصع عند التحرك (.is-scrolled)
   2. لوجو العميل الكامل فوق شريط التحميل في الـ Preloader
   3. شبكة صور قسم (06 فريقنا) لـ 6 صور متناسقة
   4. أنيميشن التمرير الخفيف والسلس
   ============================================================ */

/* لوجو شاشة التحميل (Preloader) */
.preloader__inner {
    display: grid !important;
    justify-items: center !important;
    text-align: center !important;
}
.preloader__logo {
    height: 58px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* شبكة الـ 6 صور في قسم 06 فريقنا */
.team__grid,
.team__grid.team__grid--6 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-rows: 215px !important;
    gap: 16px !important;
    height: auto !important;
}
.team__grid .team__photo--tall {
    grid-row: span 1 !important;
}
@media (max-width: 600px) {
    .team__grid,
    .team__grid.team__grid--6 {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 165px !important;
        gap: 10px !important;
        height: auto !important;
    }
}


/* ============================================================
   تحديثات v1.0.4:
   1. تفعيل السحب باللمس (Swipe) لصور البطاقات والمعرض واللايت بوكس على الموبايل
   2. منيو الموبايل يفتح لنصف الشاشة (52dvh)
   ============================================================ */
.card__slides {
    position: relative !important;
    touch-action: pan-y !important;
}
.slides__track {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    scrollbar-width: none !important;
}
.slides__track::-webkit-scrollbar {
    display: none !important;
}
.slides__track > a,
.slides__track > button,
.slides__track > .slides__item {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
}
.ag-product-gallery__main,
.gallery__main,
.lightbox {
    touch-action: pan-y !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}


/* ضمان ظهور شاشة تكبير الصور (Lightbox) وأسهمها فوق الهيدر وشريط الموبايل */
.lightbox,
#lightbox.lightbox {
    z-index: 9999999 !important;
}
.lightbox .lb-prev,
.lightbox .lb-next,
.lightbox .lb-close {
    z-index: 10000000 !important;
}

.slides__track > button.slides__item,
.ag-product-card__media > button.slides__item {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: block !important;
    overflow: hidden !important;
    cursor: zoom-in !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.slides__track > button.slides__item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
