/* =====================================================================
   الهيدر (أدوات بجانب السلة + قائمة المتجر الكبيرة) والفوتر — لكل صفحات الموقع
   ===================================================================== */

/* كانت في ملف الشريط العلوي المحذوف: تُبقي الهيدر في مكانه فوق المحتوى بدل أن يطفو عليه */
#header,
#header-wrap {
    position: relative !important;
}

#header {
    z-index: 400;
}

/* ── أدوات الهيدر ── */
.header-misc {
    gap: 4px;
}

.hx-tool {
    position: relative;
    display: flex;
    align-items: center;
}

.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--site-text, #1a1a1a);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.hx-btn:hover,
.hx-dropdown.is-open > .hx-btn {
    background: #f2f3f6;
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
}

.hx-btn--icon {
    width: 38px;
    padding: 0;
    justify-content: center;
    font-size: 1.05rem;
}

.hx-btn--user {
    background: var(--site-primary, #1a1a2e);
    color: #fff;
    border-radius: 50%;
}

.hx-btn--user:hover,
.hx-dropdown.is-open > .hx-btn--user {
    background: var(--site-primary-light, #21216d);
    color: #fff;
}

.hx-btn__caret {
    font-size: .7rem;
    opacity: .6;
}

.hx-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 210px;
    max-height: 340px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .14);
    padding: 6px;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.hx-dropdown.is-open > .hx-menu,
.hx-dropdown:focus-within > .hx-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (hover: hover) {
    .hx-dropdown:hover > .hx-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* جسر غير مرئي حتى لا تُغلق القائمة أثناء نزول المؤشر إليها */
    .hx-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        inset-inline: 0;
        height: 10px;
    }
}

.hx-menu__head {
    padding: 8px 12px 10px;
    font-weight: 800;
    font-size: .9rem;
    border-bottom: 1px solid #f0f1f4;
    margin-bottom: 4px;
}

.hx-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--site-text, #1a1a1a);
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
}

.hx-menu__item i {
    width: 18px;
    color: #6b7280;
    margin-inline-end: 6px;
}

.hx-menu__item:hover {
    background: #f4f5f8;
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
}

.hx-menu__item.is-active {
    background: color-mix(in srgb, var(--site-accent, #dc3545) 10%, #fff);
    color: var(--site-accent, #dc3545);
}

/* ── أدوات الجوال داخل القائمة ── */
.hx-mobile-tools {
    padding: 14px 0 6px;
}

.hx-mobile-tools__row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f2f3f6;
    color: var(--site-text, #1a1a1a);
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
}

.hx-select {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
    font-size: .88rem;
}

/* ── قائمة المتجر الكبيرة ── */
.hx-mega .sub-menu-container {
    /* custom.css يضع ارتفاعًا أقصى وتمريرًا لكل القوائم المنسدلة؛ لا نريده هنا */
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    .hx-mega.mega-menu-content {
        border-top: 3px solid var(--site-accent, #dc3545);
        border-radius: 0 0 18px 18px;
        box-shadow: 0 30px 60px rgba(16, 24, 40, .14);
    }

    /* محدد أقوى من قاعدة القالب التي تصفّر الحشو العلوي، حتى لا تلتصق القائمة بأعلاها */
    .mega-menu .hx-mega.mega-menu-content .container {
        padding-top: 30px !important;
        padding-bottom: 8px !important;
    }

    .hx-mega__col {
        padding: 0 12px 18px !important;
    }

    .hx-mega .mega-menu-title > .hx-mega__title {
        padding: 0 0 8px !important;
        font-size: .98rem !important;
        font-weight: 800 !important;
        color: var(--site-text, #1a1a1a) !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    .hx-mega .mega-menu-title > .hx-mega__title:hover {
        color: var(--site-accent, #dc3545) !important;
    }

    .hx-mega__list .menu-link {
        padding: 5px 0 !important;
        font-size: .87rem !important;
        font-weight: 500 !important;
        color: #4b5563 !important;
    }

    .hx-mega__list .menu-link:hover {
        color: var(--site-accent, #dc3545) !important;
        padding-inline-start: 4px !important;
    }

    .hx-mega__list .menu-item {
        border: 0 !important;
    }
}

.hx-mega__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--tile-color);
    color: #fff;
    display: inline-flex !important; /* القالب يخفي أي span داخل روابط القائمة */
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    margin-inline-end: 8px;
    vertical-align: middle;
}

.hx-mega__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 16px;
    padding: 14px 16px;
    background: #f6f7f9;
    border-radius: 14px;
}

.hx-mega__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--site-accent, #dc3545);
    color: #fff !important;
    font-weight: 700;
    font-size: .88rem;
    padding: 9px 18px;
    border-radius: 10px;
    text-decoration: none;
}

.hx-mega__all:hover {
    filter: brightness(.92);
    text-decoration: none;
}

.hx-mega__brands {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hx-mega__brands img {
    height: 34px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
}

.hx-mega__brands-all {
    font-size: .85rem;
    font-weight: 700;
    color: var(--site-primary, #1a1a2e);
    text-decoration: underline;
}

/* على الجوال: أكورديون القالب، نحسّن المسافات فقط */
@media (max-width: 991.98px) {
    .hx-mega .container {
        padding: 0 !important;
    }

    .hx-mega__title {
        font-weight: 700 !important;
    }

    /* على الجوال: الأقسام الرئيسية فقط حتى لا تطول القائمة (محدد أقوى من قاعدة القالب) */
    .mega-menu-content .hx-mega__list.sub-menu-container:not(.mega-menu-dropdown) {
        display: none !important;
    }

    /* زر "جميع المنتجات" أول القائمة على الجوال بدل آخرها */
    .hx-mega .container {
        display: flex;
        flex-direction: column;
    }

    .hx-mega__footer {
        order: -1;
        margin: 8px 0;
        padding: 10px;
    }

    .hx-mega__all {
        width: 100%;
        justify-content: center;
    }

    .hx-mega__brands {
        display: none;
    }
}

/* ── الفوتر ── */
.site-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    border-top: 3px solid var(--site-accent, #dc3545) !important; /* القالب يضع حدًا رماديًا للفوتر */
    /* شبكة مخطط هندسي خافتة + وهج برتقالي في الركن، فوق لون الفوتر من الإعدادات */
    background-color: var(--site-footer-bg, #1a1a2e) !important;
    background-image:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--site-accent, #dc3545) 22%, transparent), transparent 38%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) !important;
    background-size: 100% 100%, 40px 40px, 40px 40px !important;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

.site-footer__skyline {
    display: block;
    width: 100%;
    height: 70px;
    margin-top: -10px;
}

.site-footer__skyline rect {
    fill: url(#footerWindows);
    stroke: rgba(255, 255, 255, .1);
    stroke-width: 1;
}

.site-footer__skyline pattern rect {
    fill: rgba(255, 255, 255, .06);
    stroke: none;
}

.site-footer__logo img {
    max-height: 46px;
    width: auto;
    margin-bottom: 14px;
}

.site-footer__about {
    font-size: .92rem;
    line-height: 1.9;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .72);
}

.site-footer__title {
    position: relative;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

/* خط برتقالي قصير تحت عنوان كل عمود */
.site-footer__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--site-accent, #dc3545);
}

.site-footer__links,
.site-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li {
    margin-bottom: 10px;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s, transform .2s;
}

/* سهم صغير يظهر وينزلق عند المرور على الرابط */
.site-footer__links a::before {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .7rem;
    color: var(--site-accent, #dc3545);
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity .2s, width .2s;
}

[dir="ltr"] .site-footer__links a::before {
    content: "\f105";
}

.site-footer__links a:hover::before {
    opacity: 1;
    width: 8px;
}

.site-footer a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    transition: color .2s;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .92rem;
}

.site-footer__contact li > i {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--site-accent, #dc3545);
}

.site-footer__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
}

.site-footer__social {
    display: flex;
    gap: 8px;
}

.site-footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.site-footer__social a:hover {
    background: var(--site-accent, #dc3545);
}

.site-footer__bottom {
    /* يندمج مع الفوتر: صف المباني فوقه هو الفاصل، فلا خلفية ولا خط إضافي */
    background: transparent !important;
    border-top: 0 !important;
    padding: 4px 0 18px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
}

.site-footer__bottom a {
    color: rgba(255, 255, 255, .7);
}

/* ── شريط عنوان الصفحات الداخلية (البريدكرمب): شكل موحّد لكل الصفحات ──
   كل صفحة تبني الشريط بطريقة مختلفة، فنوحّده هنا بدل تعديل كل صفحة */
#page-title {
    position: relative;
    padding: 22px 0 !important;
    min-height: 0;
    border: 0 !important;
    background-color: var(--site-primary, #1a1a2e) !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(135deg, rgba(0, 0, 0, .25), transparent 60%) !important;
    background-size: 36px 36px, 36px 36px, 100% 100% !important;
}

#page-title .container {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start !important;
    gap: 4px 0;
    text-align: start !important;
}

#page-title h1 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #fff !important;
}

#page-title .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    margin: 0 !important; /* القالب يضع هامشًا علويًا 10px للعنصر الأخير فينزل عن البقية */
    padding: 0 !important;
    color: rgba(255, 255, 255, .72) !important;
    text-decoration: none;
}

#page-title a.breadcrumb-item:hover {
    color: #fff !important;
}

#page-title .breadcrumb-item.active {
    color: #fff !important;
    font-weight: 700;
}

/* فاصل موحّد بين العناصر (› ينعكس تلقائيًا في العربية) */
#page-title .breadcrumb-item + .breadcrumb-item::before {
    content: "›" !important;
    float: none !important;
    padding: 0 10px !important;
    color: rgba(255, 255, 255, .45) !important;
    font-size: 1.1rem;
    line-height: 1;
}

.site-footer__wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 16px;
    border-radius: 12px;
    background: #128c7e;
    color: #fff !important;
    font-weight: 700;
    font-size: .88rem;
    transition: background .2s, transform .2s;
}

.site-footer__wa-btn:hover {
    background: #0e6f64;
    transform: translateY(-2px);
}

.site-footer__wa-btn i {
    font-size: 1.15rem;
}

.site-footer__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__payments {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer__payments span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
    margin-inline-end: 4px;
}

.site-footer__payments img {
    height: 28px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
}

@media (max-width: 767.98px) {
    .site-footer__bottom-row {
        flex-direction: column;
        text-align: center;
    }
}

/* ── زر "العودة للأعلى": دائري بلون الموقع بدل المربع الرمادي ── */
#gotoTop {
    width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    border-radius: 50% !important;
    background-color: var(--site-primary, #1a1a2e) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    font-size: 1.1rem !important;
}

#gotoTop:hover {
    background-color: var(--site-accent, #dc3545) !important;
}

/* ── شارة "نفد من المخزون": في ركن الصورة بدل منتصفها حتى لا تغطي المنتج ── */
.fp-card .fp-badge--oos {
    top: auto !important;
    left: auto !important;
    bottom: 8px;
    inset-inline-start: 8px;
    transform: none !important;
    background: rgba(31, 35, 41, .85);
}

/* ── بطاقة المنتج (الرئيسية والمتجر والأقسام والبراندات) ──
   body في المحدد: ملف القالب featured-products-slider.css يُحمَّل بعد هذا الملف */
body .fp-card {
    border-color: #eef0f3;
    border-radius: 18px;
}

/* صورة أصغر: المنتج كاملًا داخل مساحة ثابتة بدل مربع كبير مقصوص */
body .fp-card__img-wrap {
    aspect-ratio: auto;
    height: 170px;
    max-height: none;
    background: #fff;
    border-bottom: 1px solid #f1f0ed;
}

body .fp-card__img {
    object-fit: contain;
    padding: 14px;
}

/* أزرار البطاقة: إطار ملوّن هادئ، ويمتلئ زر البطاقة التي يمر عليها الزائر فقط
   (الأزرار الممتلئة كلها معًا تصنع جدارًا من اللون يسرق الانتباه من صور المنتجات) */
body .fp-card__btn--outline,
body .fp-card__btn--wa-outline {
    --btn-color: var(--site-accent, #dc3545);
    background: #fff;
    color: var(--btn-color);
    border: 1.5px solid var(--btn-color);
    padding: 9px 10px;
    font-weight: 700;
    transition: background .2s, color .2s, box-shadow .2s;
}

body .fp-card__btn--wa-outline {
    --btn-color: #128c7e; /* أخضر واتساب الداكن: النص الأبيض واضح عليه عند الامتلاء */
}

body .fp-card:hover .fp-card__btn--outline,
body .fp-card:hover .fp-card__btn--wa-outline,
body .fp-card__btn--outline:focus-visible,
body .fp-card__btn--wa-outline:focus-visible {
    background: var(--btn-color);
    color: #fff;
    box-shadow: 0 8px 16px -8px var(--btn-color);
}


/* ── شريط أعلى صفحات المنتجات: العنوان والعدد والبحث في سطر واحد ── */
.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ecebe7;
}

.list-toolbar__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.list-toolbar__logo {
    height: 52px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ecebe7;
    border-radius: 12px;
    padding: 6px 10px;
}

.list-toolbar__title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 2px;
    color: var(--site-text, #1a1a1a);
}

.list-toolbar__count {
    font-size: .85rem;
    color: #6b7280;
}

.list-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 460px;
}

.list-toolbar__search {
    flex: 1;
    min-width: 0; /* بدونها لا ينكمش المربع فيدفع زر التصفية خارج الشاشة على الجوال */
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e5e3de;
    border-radius: 12px;
    padding: 4px;
    transition: border-color .2s, box-shadow .2s;
}

.list-toolbar__search:focus-within {
    border-color: var(--site-accent, #dc3545);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-accent, #dc3545) 12%, transparent);
}

.list-toolbar__search > i {
    color: #9ca3af;
    padding: 0 10px;
}

.list-toolbar__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    height: 38px;
    background: transparent;
    font-size: .92rem;
}

.list-toolbar__search button {
    border: 0;
    border-radius: 9px;
    background: var(--site-accent, #dc3545);
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    padding: 0 18px;
    height: 38px;
}

.list-toolbar__filter {
    flex-shrink: 0;
    height: 46px;
    border: 1.5px solid #e5e3de;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    font-size: .88rem;
    padding: 0 14px;
}

@media (max-width: 767.98px) {
    .list-toolbar {
        margin-bottom: 18px;
    }

    .list-toolbar__title {
        font-size: 1.2rem;
    }

    .list-toolbar__actions {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .list-toolbar__filter {
        flex: 1 1 100%;
    }
}

/* ── صفحة المنتج ── */
body .sp-btn-cart {
    background: var(--site-accent, #dc3545) !important;
    border-color: var(--site-accent, #dc3545) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -10px var(--site-accent, #dc3545);
}

body .sp-btn-cart:hover {
    background: color-mix(in srgb, var(--site-accent, #dc3545) 82%, #000) !important;
}

.sp-meta {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    background: #f6f5f2;
    border: 1px solid #ecebe7;
    border-radius: 999px;
    padding: 4px 12px;
}

.sp-meta li span {
    color: #6b7280;
}

.sp-meta li a,
.sp-meta li bdi {
    font-weight: 700;
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
}

.sp-meta li a:hover {
    color: var(--site-accent, #dc3545);
}

.sp-ask-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .88rem;
    font-weight: 700;
    color: #128c7e;
    text-decoration: none;
}

.sp-ask-wa i {
    font-size: 1.15rem;
}

.sp-ask-wa:hover {
    color: #0e6f64;
    text-decoration: underline;
}

body .sp-trust-cards {
    margin-top: 24px;
}

.sp-related {
    margin-top: 40px;
}

.sp-related .sp-desc-title {
    margin-bottom: 18px;
}

/* ── بطاقة الشركة (الرئيسية ودليل الشركات) ── */
.dir-company {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #eef0f3;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--site-text, #1a1a1a);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.dir-company:hover {
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .14);
    transform: translateY(-4px);
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
}

/* الغلاف: صورة من أعمال الشركة، أو خلفية هادئة بنقش شبكة خفيف وأيقونة التخصص */
.dir-company__cover {
    position: relative;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(31, 35, 41, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 35, 41, .045) 1px, transparent 1px),
        #f3f2ef;
    background-size: 18px 18px, 18px 18px, auto;
    color: color-mix(in srgb, var(--site-accent, #dc3545) 35%, #c9c6bf);
    font-size: 2.2rem;
}

.dir-company__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.dir-company:hover .dir-company__cover img {
    transform: scale(1.06);
}

/* اللوجو في مربع أبيض يتداخل مع أسفل الغلاف */
.dir-company__logo {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    margin: -32px 16px 0;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eef0f3;
    box-shadow: 0 6px 16px rgba(16, 24, 40, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.dir-company__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.dir-company__initial {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tile-color, var(--site-accent, #dc3545));
}

.dir-company__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 16px;
}

.dir-company__name {
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dir-company__city {
    font-size: .8rem;
    color: #6b7280;
}

.dir-company__city i {
    color: var(--site-accent, #dc3545);
    margin-inline-end: 2px;
}

.dir-company__cat {
    align-self: flex-start;
    margin-top: 4px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--site-accent, #dc3545);
    background: color-mix(in srgb, var(--site-accent, #dc3545) 9%, #fff);
    border-radius: 999px;
    padding: 2px 10px;
}

@media (max-width: 767.98px) {
    .dir-company__cover {
        height: 90px;
    }

    .dir-company__logo {
        width: 52px;
        height: 52px;
        margin: -26px 12px 0;
        border-radius: 14px;
    }

    .dir-company__body {
        padding: 8px 12px 12px;
    }

    .dir-company__name {
        font-size: .85rem;
    }

    .brand-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* ── تبويبات/شرائح التخصصات (الرئيسية ودليل الشركات والمتجر) ── */
.dir-tabs__nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}

.dir-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: var(--site-primary, #1a1a2e);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.dir-tab i {
    color: var(--site-accent, #dc3545);
}

.dir-tab:hover {
    border-color: var(--site-primary, #1a1a2e);
}

.dir-tab.is-active {
    background: var(--site-primary, #1a1a2e);
    border-color: var(--site-primary, #1a1a2e);
    color: #fff;
}

.dir-tab.is-active i {
    color: #fff;
}


/* ── دليل الشركات: البحث والفلاتر في سطر واحد ── */
.list-toolbar--dir {
    align-items: flex-end;
}

.dir-filters {
    flex: 1 1 640px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dir-filters__search {
    flex: 1 1 220px;
}

.dir-filters .select2-container {
    flex: 0 1 150px;
    min-width: 130px;
}

.dir-filters .select2-container .select2-selection--single {
    height: 48px !important;
    border: 1.5px solid #e5e3de !important;
    border-radius: 12px !important;
}

.dir-filters .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
}

.dir-filters .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.dir-filters__submit {
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--site-accent, #dc3545);
    color: #fff;
    font-weight: 700;
    padding: 0 22px;
}

.dir-filters__reset {
    height: 48px;
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid #e5e3de;
    color: #6b7280;
    background: #fff;
}

.dir-pills {
    flex-wrap: wrap;
    overflow: visible;
    margin-bottom: 24px;
}

.dir-pills .dir-tab {
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .dir-filters .select2-container {
        flex: 1 1 45%;
    }

    .dir-filters__submit {
        flex: 1;
    }

    .dir-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* ── صفحة الشركة: صور الأعمال أكبر بنسبة موحّدة، والعنوان فوق الصورة ── */
body .co-work-card {
    position: relative;
    border-radius: 16px;
}

body .co-work-img-wrap {
    height: auto;
    aspect-ratio: 4 / 3;
}

body .co-work-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 12px 10px;
    background: linear-gradient(to top, rgba(10, 10, 20, .8), transparent);
    pointer-events: none;
}

body .co-work-caption h6 {
    color: #fff;
    margin: 0;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .co-work-caption h6:empty {
    display: none;
}

body .co-banner {
    height: 260px;
}

/* =====================================================================
   الصفحات الداخلية: من نحن، اتصل بنا، طلب خدمة
   ===================================================================== */

/* ── من نحن ── */
.about-intro__eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 800;
    color: var(--site-accent, #dc3545);
    background: color-mix(in srgb, var(--site-accent, #dc3545) 10%, #fff);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

.about-intro__title {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--site-text, #1a1a1a);
}

.about-intro__lead {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.9;
    color: var(--site-text, #1a1a1a);
    margin-bottom: 10px;
}

.about-intro__text {
    color: #4b5563;
    line-height: 2;
}

.about-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.about-brand {
    position: relative;
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--site-accent, #dc3545) 35%, transparent), transparent 45%),
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
        var(--site-primary, #1a1a2e);
    background-size: 100% 100%, 32px 32px, 32px 32px, auto;
}

.about-brand__logo {
    position: relative;
    z-index: 1;
    max-width: 62%;
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 60px;
}

.about-brand__skyline {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
}

.about-brand__skyline rect,
.about-brand__skyline path {
    fill: none;
    stroke: rgba(255, 255, 255, .16);
    stroke-width: 1.4;
}

.about-brand__skyline path {
    stroke: color-mix(in srgb, var(--site-accent, #dc3545) 70%, transparent);
}

.about-features {
    background: var(--site-section-bg, #f9f9f9);
}

.about-feature {
    height: 100%;
    background: #fff;
    border: 1.5px solid #eef0f3;
    border-radius: 18px;
    padding: 22px;
    transition: transform .25s, box-shadow .25s;
}

.about-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, .1);
}

.about-feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    background: var(--tile-color, var(--site-accent, #dc3545));
    box-shadow: 0 10px 20px -8px var(--tile-color, var(--site-accent, #dc3545));
    margin-bottom: 14px;
}

.about-feature__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.about-feature__body {
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.8;
}

.about-feature__body p:last-child {
    margin-bottom: 0;
}

/* ── اتصل بنا ── */
.contact-page__head {
    margin-bottom: 24px;
}

.contact-page__head p {
    color: #6b7280;
    margin: 4px 0 0;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #eef0f3;
    border-radius: 16px;
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

a.contact-card:hover {
    border-color: var(--site-accent, #dc3545);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
    transform: translateY(-2px);
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
}

.contact-card__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--site-accent, #dc3545);
    background: color-mix(in srgb, var(--site-accent, #dc3545) 10%, #fff);
}

.contact-card--wa .contact-card__icon {
    color: #fff;
    background: #128c7e;
}

.contact-card__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.contact-card__text small {
    color: #6b7280;
    font-size: .78rem;
}

.contact-card__text strong {
    font-size: .98rem;
    word-break: break-word;
}

.contact-card__go {
    color: #c0bdb6;
    font-size: .85rem;
}

.contact-cta {
    margin-top: auto;
    padding: 18px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-primary, #1a1a2e), var(--site-primary-light, #21216d));
}

.contact-cta strong {
    display: block;
    font-size: 1rem;
}

.contact-cta p {
    opacity: .8;
    font-size: .85rem;
    margin: 4px 0 12px;
}

.contact-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .88rem;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--site-accent, #dc3545);
    color: #fff !important;
    text-decoration: none;
}

.contact-map {
    height: 100%;
    min-height: 420px;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #eef0f3;
    background: #f3f2ef;
}

.contact-map iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 420px;
    border: 0;
    display: block;
}

.contact-map__link,
.contact-map__empty {
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--site-primary, #1a1a2e);
}

.contact-map__empty i {
    font-size: 3rem;
    color: #c9c6bf;
}

/* ── طلب خدمة ── */
.sr-page {
    background: var(--site-section-bg, #f9f9f9);
}

.sr-card {
    background: #fff;
    border: 1.5px solid #eef0f3;
    border-radius: 20px;
    padding: 28px;
}

.sr-card__sub {
    color: #6b7280;
    margin: 4px 0 22px;
}

.sr-field label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--site-text, #1a1a1a);
}

.sr-field .form-control {
    border-radius: 12px;
    border: 1.5px solid #e5e3de;
    padding: 11px 14px;
    font-size: .95rem;
    box-shadow: none;
}

.sr-field .form-control:focus {
    border-color: var(--site-accent, #dc3545);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-accent, #dc3545) 12%, transparent);
}

.sr-field select.form-control {
    appearance: auto;
}

.sr-error {
    display: block;
    color: #dc2626;
    font-size: .78rem;
    margin-top: 4px;
}

.sr-submit {
    margin-top: 22px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--site-accent, #dc3545);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 24px -12px var(--site-accent, #dc3545);
    transition: filter .2s, transform .2s;
}

.sr-submit:hover {
    filter: brightness(.93);
    transform: translateY(-1px);
}

.sr-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #e8f6ee;
    color: #146c43;
    font-weight: 700;
}

.sr-side {
    position: sticky;
    top: 20px;
    border-radius: 20px;
    padding: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--site-accent, #dc3545) 30%, transparent), transparent 45%),
        var(--site-primary, #1a1a2e);
}

.sr-side__title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 18px;
}

.sr-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sr-steps li {
    display: flex;
    gap: 12px;
}

.sr-steps li > span {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: var(--site-accent, #dc3545);
    color: #fff;
}

.sr-steps strong {
    display: block;
    margin-bottom: 2px;
}

.sr-steps p {
    margin: 0;
    font-size: .86rem;
    opacity: .78;
    line-height: 1.7;
}

.sr-side__wa {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .about-intro__title {
        font-size: 1.6rem;
    }

    .about-brand {
        min-height: 220px;
    }

    .sr-card {
        padding: 20px;
    }

    .contact-map,
    .contact-map iframe {
        min-height: 300px;
    }
}

/* ── المدونة: بطاقة مقال ── */
.blog-page,
.article-page,
.brands-page {
    background: var(--site-section-bg, #f9f9f9);
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #eef0f3;
    border-radius: 18px;
    overflow: hidden;
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(16, 24, 40, .1);
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
}

.blog-card__cover {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(31, 35, 41, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 35, 41, .045) 1px, transparent 1px),
        #f3f2ef;
    background-size: 18px 18px, 18px 18px, auto;
    color: color-mix(in srgb, var(--site-accent, #dc3545) 40%, #c9c6bf);
    font-size: 2.6rem;
}

.blog-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.blog-card:hover .blog-card__cover img {
    transform: scale(1.05);
}

.blog-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.blog-card__date {
    font-size: .78rem;
    color: #6b7280;
}

.blog-card__date i {
    color: var(--site-accent, #dc3545);
    margin-inline-end: 4px;
}

.blog-card__title {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.6;
}

.blog-card__excerpt {
    color: #6b7280;
    font-size: .88rem;
    line-height: 1.8;
}

.blog-card__more {
    margin-top: auto;
    font-weight: 700;
    font-size: .86rem;
    color: var(--site-accent, #dc3545);
}

/* ── صفحة المقال والصفحات الثابتة: عرض قراءة مريح ── */
.article-card {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid #eef0f3;
    border-radius: 22px;
    padding: 32px 36px;
}

.article-card__head {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0efeb;
}

.article-card__title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 6px;
}

.article-card__cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 22px;
}

.article-body {
    font-size: 1.02rem;
    line-height: 2;
    color: #374151;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--site-text, #1a1a1a);
    font-weight: 800;
    margin: 1.4em 0 .5em;
}

.article-body h2 { font-size: 1.35rem; }
.article-body h3 { font-size: 1.15rem; }

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.article-body ul,
.article-body ol {
    padding-inline-start: 1.4em;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.article-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.article-video {
    margin-top: 24px;
}

.article-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 14px;
}

.article-more {
    max-width: 1100px;
    margin: 44px auto 0;
}

/* ── البراندات ── */
.brand-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px 14px;
    background: #fff;
    border: 1.5px solid #eef0f3;
    border-radius: 18px;
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.brand-card:hover {
    transform: translateY(-3px);
    border-color: var(--tile-color);
    box-shadow: 0 12px 26px rgba(16, 24, 40, .09);
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
}

.brand-card__logo {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-card__mono {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--tile-color);
    background: color-mix(in srgb, var(--tile-color) 12%, #fff);
}

.brand-card__name {
    font-weight: 700;
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .article-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .article-card__title {
        font-size: 1.35rem;
    }
}

/* ── أزرار الإجراء الرئيسية في السلة والدفع وتسجيل الدخول: بلون الإجراء (البرتقالي) ── */
body .btn-auth,
body .btn-checkout:not(.checkout-blocked),
body .btn-go-store,
body .btn-submit:not(.btn-submit--blocked) {
    background: var(--site-accent, #dc3545) !important;
    border-color: var(--site-accent, #dc3545) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px -12px var(--site-accent, #dc3545);
}

body .btn-auth:hover,
body .btn-checkout:not(.checkout-blocked):hover,
body .btn-go-store:hover,
body .btn-submit:not(.btn-submit--blocked):hover {
    background: color-mix(in srgb, var(--site-accent, #dc3545) 82%, #000) !important;
}

/* شريط عنوان صفحات الحساب والسلة: نزيل الألوان المضمّنة القديمة لصالح الشكل الموحّد */
body .auth-icon,
body .empty-cart-box > i {
    color: var(--site-accent, #dc3545) !important;
}

/* ── ترقيم الصفحات: أزرار منفصلة مستديرة بدل الشريط الملتصق ── */
body .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border: 0;
    margin: 0;
}

body .pagination .page-item .page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e5e3de !important;
    border-radius: 12px !important;
    background: #fff;
    color: var(--site-text, #1a1a1a);
    font-weight: 700;
    font-size: .92rem;
    box-shadow: none !important;
    transition: border-color .2s, color .2s, background .2s, transform .2s;
}

body .pagination .page-item .page-link:hover {
    border-color: var(--site-accent, #dc3545) !important;
    color: var(--site-accent, #dc3545);
    background: #fff;
    transform: translateY(-2px);
}

body .pagination .page-item.active .page-link {
    background: var(--site-accent, #dc3545) !important;
    border-color: var(--site-accent, #dc3545) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -8px var(--site-accent, #dc3545) !important;
}

body .pagination .page-item.disabled .page-link {
    background: #f6f5f2;
    color: #b8b4ac;
    border-color: #ecebe7 !important;
}

/* نص "عرض 1 إلى 12 من 52" الذي يضيفه Laravel بجانب الأزرار على الشاشات الكبيرة */
nav[role="navigation"] p.small.text-muted {
    margin: 0 0 10px;
    text-align: center;
}

/* غلاف صفحة الشركة حين لا يوجد بانر ولا صور أعمال */
body .co-banner--brand {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--site-primary, #1a1a2e) !important;
    background-image:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--site-accent, #dc3545) 32%, transparent), transparent 45%),
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) !important;
    background-size: 100% 100%, 36px 36px, 36px 36px !important;
}

body .co-banner--brand i {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, .1);
    margin-bottom: 40px;
}

body .co-desc-body {
    line-height: 2;
    color: #374151;
}
