/* كود التصميم لنسخة «التصميم الجديد (تجربة)» 1130052239 في ثيم ملاك، أبعاد المسار. */

#mainnav { height: unset !important; }
.navbar-brand img,
.store-footer .footer-container .logo-footer .foo {
    width: unset !important;
    max-width: 300px !important;
    height: unset !important;
}
@media (max-width: 768px) {
  .navbar-brand img { max-width: 200px !important; }
}
#mainnav,
#mainnav *,
.main-nav-container,
.store-header,
header.store-header * {
    animation: none !important;
    transition: none !important;
}
section.s-block.s-block--photos-slider { padding: 0; }
section.s-block.s-block--photos-slider .container { max-width: 100%; padding: 0; }

/* زر أضف للسلة أسود */
.s-product-card-content-footer salla-add-product-button .s-button-outline,
.s-product-card-content-footer salla-add-product-button .s-button-element,
.s-product-card-content-footer salla-add-product-button button {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-radius: 2px !important;
    border: 0 !important;
}
.s-product-card-content-footer salla-add-product-button .s-button-outline:hover,
.s-product-card-content-footer salla-add-product-button button:hover {
    background-color: #2b2b2b !important;
}
.s-product-card-content-footer salla-add-product-button * {
    color: #ffffff !important;
    fill: #ffffff !important;
}
.product-form salla-add-product-button .s-button-element,
.product-single salla-add-product-button .s-button-element,
salla-add-product-button .s-button-primary {
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}
img { max-width: 100%; height: auto; }
salla-products-slider .s-slider-block__title { display: none !important; }

/* الشعار */
header img[alt="أبعاد المسار"],
.store-header img[alt="أبعاد المسار"],
.navbar-brand img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    max-width: 150px !important;
    object-fit: contain !important;
}
@media (min-width: 1024px) {
    header img[alt="أبعاد المسار"],
    .store-header img[alt="أبعاد المسار"],
    .navbar-brand img {
        height: 46px !important;
        max-height: 46px !important;
        max-width: 230px !important;
    }
}

/* تسوّق حسب القسم */
.abaad-cats :is(div, li):has(> a img) {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 14px !important;
    padding: 8px 8px 8px 28px !important;
    text-align: right !important;
}
.abaad-cats :is(div, li):has(> a img)::after {
    content: "‹" !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #9aa0a6 !important;
}
.abaad-cats :is(div, li):has(> a img):active { border-color: #111111 !important; }
.abaad-cats :is(div, li):has(> a img):active::after { color: #111111 !important; }
.abaad-cats :is(div, li):has(> a img) > a {
    flex: 0 0 56px !important;
    width: 56px !important;
    height: 56px !important;
    background: #f4f5f7 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}
.abaad-cats img {
    width: 88% !important;
    height: 88% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    margin: 0 !important;
}
.abaad-cats :is(div, li):has(> a img) > :not(a),
.abaad-cats :is(div, li):has(> a img) > :not(a) * {
    opacity: 1 !important;
    color: #111111 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: right !important;
    margin: 0 !important;
}
.abaad-cats :is(div, li):has(> a img) > :not(a) p,
.abaad-cats :is(div, li):has(> a img) > :not(a) > :last-child:not(:first-child) {
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 3px !important;
}

/* شريط التنقل السفلي في الجوال: أسود وأيقوناته بيضاء */
.store-header .bottom-header {
    background: #111111 !important;
    background-color: #111111 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18) !important;
}
.store-header .bottom-header,
.store-header .bottom-header *:not(.s-cart-summary-count) {
    color: #ffffff !important;
    fill: #ffffff !important;
}
.store-header .bottom-header button,
.store-header .bottom-header a,
.store-header .bottom-header .header-btn,
.store-header .bottom-header .bottom-header-icon {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ذيل الصفحة */
.store-footer .store-footer__inner {
    background: #f5f5f7 !important;
    border-top: 1px solid #d2d2d7 !important;
    color: #1d1d1f !important;
}
.store-footer .store-footer__inner > .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 22px 0 !important;
    max-width: 1100px !important;
    padding: 28px 20px 18px !important;
}
.store-footer .footer-middle,
.store-footer .footer-bottom,
.store-footer .footer-middle > div:last-child,
.store-footer .copyrights { display: contents !important; }
.store-footer .footer-profile { order: 1; flex: 1 1 100% !important; max-width: none !important; display: grid !important; gap: 10px !important; text-align: right !important; }
.store-footer .menu-list { order: 2; }
.store-footer .footer-middle > div:nth-child(2) { order: 2; flex: 1 1 100% !important; }
.store-footer .footer-middle > div:nth-child(3) { order: 3; flex: 1 1 100% !important; }
.store-footer salla-payments { order: 4; flex: 1 1 100% !important; }
.store-footer .copyrights p { order: 5; }
.store-footer .footer-vat { order: 6; }
.store-footer .to-top { order: 7; flex: 1 1 100% !important; }
.store-footer salla-apps-icons:empty,
.store-footer .footer-images:empty,
.store-footer .footer-social:has(salla-social:empty) { display: none !important; }
.store-footer .logo-footer { justify-content: flex-start !important; }
.store-footer .logo-footer img,
.store-footer .footer-container .logo-footer .foo {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
    max-width: 180px !important;
}
.store-footer .footer-description {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    color: #6e6e73 !important;
    text-align: right !important;
}
.store-footer .footer-title,
.store-footer .s-contacts-title {
    margin: 0 0 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6e6e73 !important;
    text-align: right !important;
}
.store-footer .footer-list,
.store-footer .s-contacts-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border-top: 1px solid #d2d2d7 !important;
}
.store-footer .footer-list a,
.store-footer .s-contacts-list a.s-contacts-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 13px 0 !important;
    border-bottom: 1px solid #d2d2d7 !important;
    color: #1d1d1f !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    background: transparent !important;
}
.store-footer .footer-list a::after,
.store-footer .s-contacts-list a.s-contacts-item::after {
    content: "‹" !important;
    margin-inline-start: auto !important;
    color: #6e6e73 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}
.store-footer .s-contacts-icon { display: none !important; }
.store-footer .s-contacts-item .unicode {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    color: #1d1d1f !important;
    font-size: 13.5px !important;
}
.store-footer a.s-contacts-item[href*="wa.me"]::before,
.store-footer a.s-contacts-item[href*="whatsapp"]::before { content: "واتساب"; }
.store-footer a.s-contacts-item[href^="tel:"]::before { content: "جوال"; }
.store-footer .s-payments-list {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 0 !important;
}
.store-footer .s-payments-list-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    background: #ffffff !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 4px !important;
}
.store-footer .s-payments-list-item img { height: 18px !important; width: auto !important; }
.store-footer .copyrights p,
.store-footer .footer-vat {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #d2d2d7 !important;
    font-size: 11.5px !important;
    color: #6e6e73 !important;
}
.store-footer .copyrights p a,
.store-footer .to-top a { color: #6e6e73 !important; text-decoration: none !important; }
.store-footer .footer-vat { justify-content: flex-end !important; gap: 0 !important; }
.store-footer .s-trust-badges-wrapper { display: block !important; padding: 0 !important; margin: 0 !important; background: none !important; }
.store-footer .s-trust-badges-image,
.store-footer .s-trust-badges-label { display: none !important; }
.store-footer .s-trust-badges-content { display: block !important; padding: 0 !important; margin: 0 !important; }
.store-footer .s-trust-badges-number { font-size: 0 !important; }
.store-footer .s-trust-badges-number::after {
    content: "737335627";
    font-size: 11.5px !important;
    font-weight: 400 !important;
    color: #6e6e73 !important;
    font-variant-numeric: tabular-nums !important;
}
.store-footer .to-top { justify-content: center !important; background: transparent !important; }
.store-footer .to-top a,
.store-footer .to-top a * {
    padding: 0 !important;
    font-size: 12px !important;
    color: #6e6e73 !important;
    background: transparent !important;
}
@media (min-width: 1024px) {
    .store-footer .footer-profile { flex: 1 1 40% !important; align-self: flex-start !important; }
    .store-footer .footer-middle > div:nth-child(2) { flex: 1 1 22% !important; align-self: flex-start !important; }
    .store-footer .footer-middle > div:nth-child(3) { flex: 1 1 28% !important; align-self: flex-start !important; }
}

/* الأسئلة الشائعة */
.s-block--faqs .container { max-width: 760px !important; }
.s-block--faqs .s-block__title { justify-content: flex-start !important; margin-bottom: 18px !important; }
.s-block--faqs .s-block__title h2 {
    text-align: right !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 0 0 6px !important;
}
.s-block--faqs .s-block__title p {
    text-align: right !important;
    font-size: 13px !important;
    color: #6e6e73 !important;
}
.s-block--faqs .faqs-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    border-top: 2px solid #111111 !important;
}
.s-block--faqs .faqs-list__item {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e4e8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.s-block--faqs .faqs-list__item label {
    margin: 0 !important;
    padding: 18px 0 18px 40px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: #111111 !important;
    text-align: right !important;
}
.s-block--faqs .faq-item.open-badge {
    top: 50% !important;
    left: 0 !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    border: 1px solid #111111 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #111111 !important;
}
.s-block--faqs input:checked + .faqs-list__item .faq-item.open-badge {
    top: 18px !important;
    transform: rotate(45deg) !important;
    background: #111111 !important;
    color: #ffffff !important;
}
.s-block--faqs input:checked + .faqs-list__item .faq-item.open-badge::before { color: #ffffff !important; }
.s-block--faqs input:checked + .faqs-list__item { border-color: #e3e4e8 !important; }
.s-block--faqs .faq-answer { padding: 0 0 0 40px !important; }
.s-block--faqs .faq-answer p {
    margin: 0 0 18px !important;
    font-size: 13.5px !important;
    line-height: 1.9 !important;
    color: #6e6e73 !important;
    text-align: right !important;
}

/* رأس الصفحة: جزء من الصفحة، يطلع فوق مع السحب وما يثبت */
header.store-header,
header.store-header #mainnav,
header.store-header .main-nav-container {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    box-shadow: none !important;
}
header.store-header .main-nav-container .inner,
header.store-header .main-nav-container.fixed-pinned .inner,
header.store-header .main-nav-container.animated .inner {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
}
header.store-header .header-inner {
    background: #ffffff !important;
    border-bottom: 1px solid #e3e4e8 !important;
}
header.store-header .angel-ad { padding: 0 !important; }
header.store-header .angel-ad__item,
header.store-header .angel-ad__content {
    font-size: 12px !important;
    line-height: 1.4 !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}
header.store-header .angel-ad__icon { font-size: 13px !important; }
header.store-header .angel-ad .ad-close { display: none !important; }
@media (max-width: 1023px) {
    header.store-header .header-container { padding-left: 14px !important; padding-right: 14px !important; }
    header.store-header .header-container > .flex {
        flex-wrap: wrap !important;
        align-items: center !important;
        min-height: 56px !important;
        height: auto !important;
    }
    header.store-header .header-container > .flex > div:first-child {
        order: 1;
        width: auto !important;
        gap: 6px !important;
    }
    header.store-header .header-container > .flex > div:nth-child(2) {
        order: 2;
        margin-left: auto !important;
        align-items: flex-start !important;
    }
    header.store-header .header-container > .flex > div:last-child { display: contents !important; }
    header.store-header .header-container > .flex > div:last-child > * { order: 3; }
    header.store-header .navbar-brand { padding: 0 !important; margin-inline-start: 8px !important; }
    header.store-header .header-container .header-btn,
    header.store-header .header-container salla-cart-summary .header-btn {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    header.store-header .header-container .header-btn i,
    header.store-header .header-container .mburger i { color: #111111 !important; font-size: 21px !important; }
    header.store-header .header-container .search-btn {
        order: 10 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        height: 42px !important;
        margin: 4px 0 10px !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        background: #f5f5f7 !important;
        border-radius: 10px !important;
    }
    header.store-header .header-container .search-btn i { color: #6e6e73 !important; font-size: 16px !important; }
    header.store-header .header-container .search-btn::after {
        content: "ابحث باسم القطعة أو السيارة";
        font-size: 13.5px;
        color: #6e6e73;
    }
}
.abaad-links {
    display: flex;
    gap: 20px;
    padding: 0 14px;
    background: #ffffff;
    border-bottom: 1px solid #e3e4e8;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.abaad-links::-webkit-scrollbar { display: none; }
.abaad-links a {
    font-size: 13.5px;
    font-weight: 600;
    color: #6e6e73 !important;
    padding: 12px 0 10px;
    border-bottom: 2px solid transparent;
    text-decoration: none !important;
}
.abaad-links a.on { color: #111111 !important; border-bottom-color: #111111; }
@media (min-width: 1024px) { .abaad-links { display: none; } }

/* الرئيسية: أقسام المنتجات سطور */
@media (max-width: 767px) {
    .abaad-rows .s-product-card-entry,
    .abaad-rows custom-salla-product-card {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 10px 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid #e3e4e8 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .abaad-rows .s-product-card-image {
        flex: 0 0 72px !important;
        width: 72px !important;
        height: 72px !important;
        min-height: 0 !important;
        border-radius: 10px !important;
        background: #f5f5f7 !important;
        overflow: hidden !important;
    }
    .abaad-rows .s-product-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    .abaad-rows .s-product-card-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 0 0 52px !important;
        text-align: right !important;
    }
    .abaad-rows .s-product-card-content-title,
    .abaad-rows .s-product-card-content-title a {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
        color: #111111 !important;
        margin: 0 0 3px !important;
    }
    .abaad-rows .s-product-card-content-subtitle,
    .abaad-rows .s-product-card-rating,
    .abaad-rows .s-product-card-wishlist-btn,
    .abaad-rows .s-product-card-promotion-title { display: none !important; }
    .abaad-rows .s-product-card-content-footer {
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .abaad-rows .s-product-card-content-footer salla-add-product-button button,
    .abaad-rows .s-product-card-content-footer salla-add-product-button .s-button-element {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        font-size: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .abaad-rows .s-product-card-content-footer salla-add-product-button button > * { display: none !important; }
    .abaad-rows .s-product-card-content-footer salla-add-product-button button::after {
        content: "+";
        font-size: 22px;
        line-height: 1;
        color: #ffffff;
    }
}

/* الأكثر طلباً: قطعة بارزة فوق، و3 صغيرة تحتها */
@media (max-width: 767px) {
    .abaad-grid [class*="grid-cols"] { gap: 8px !important; }
    .abaad-grid [class*="grid-cols"] > :first-child { grid-column: 1 / -1 !important; }
    .abaad-grid [class*="grid-cols"] > :first-child .s-product-card-entry,
    .abaad-grid [class*="grid-cols"] > .s-product-card-entry:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px !important;
        border: 1px solid #e3e4e8 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }
    .abaad-grid [class*="grid-cols"] > :first-child .s-product-card-image {
        flex: 0 0 42% !important;
        width: 42% !important;
        aspect-ratio: 1 !important;
        height: auto !important;
        border-radius: 12px !important;
        background: #f5f5f7 !important;
        overflow: hidden !important;
    }
    .abaad-grid [class*="grid-cols"] > :first-child .s-product-card-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        text-align: right !important;
    }
    .abaad-grid [class*="grid-cols"] > :first-child .s-product-card-content::before {
        content: "الأكثر طلباً";
        display: inline-block;
        margin-bottom: 6px;
        padding: 2px 9px;
        border-radius: 999px;
        background: #111111;
        color: #ffffff;
        font-size: 11px;
        font-weight: 600;
    }
    .abaad-grid [class*="grid-cols"] > :first-child .s-product-card-content-title,
    .abaad-grid [class*="grid-cols"] > :first-child .s-product-card-content-title a {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
        color: #111111 !important;
    }
    .abaad-grid [class*="grid-cols"] > :not(:first-child) .s-product-card-entry {
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .abaad-grid [class*="grid-cols"] > :not(:first-child) .s-product-card-image {
        border-radius: 10px !important;
        background: #f5f5f7 !important;
        overflow: hidden !important;
    }
    .abaad-grid [class*="grid-cols"] > :not(:first-child) .s-product-card-content { padding: 6px 0 0 !important; }
    .abaad-grid [class*="grid-cols"] > :not(:first-child) .s-product-card-content-title,
    .abaad-grid [class*="grid-cols"] > :not(:first-child) .s-product-card-content-title a {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.45 !important;
        color: #111111 !important;
    }
    .abaad-grid [class*="grid-cols"] > :not(:first-child) .s-product-card-content-footer,
    .abaad-grid [class*="grid-cols"] > :not(:first-child) .s-product-card-wishlist-btn,
    .abaad-grid .s-product-card-rating,
    .abaad-grid .s-product-card-content-subtitle { display: none !important; }
}

/* 11 نوفمبر: شيل شريط الجوال السفلي، وبطاقات وش سيارتك عمود واحد وكلها تنضغط */
.store-header .bottom-header { display: none !important; }
@media (max-width: 767px) { .abaad-cats .square-grid { grid-template-columns: 1fr !important; gap: 10px !important; } }
.abaad-cats .banner-square { position: relative !important; cursor: pointer; }
.abaad-cats .banner-square > a::before { content: ""; position: absolute; inset: 0; z-index: 2; }