@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&display=swap");

/* =========================================================
   CARX — CUSTOM CSS V4.7.5 MALAK BRANDS GRID
   النسخة الكاملة لثيم ملاك: توحيد قسم السيارات، إصلاح التصنيفات، وتجميع العلامات في شبكة واحدة.
   ========================================================= */

/* 1) متغيرات هوية CARX */
:root {
  --carx-black: #141311;
  --carx-charcoal: #262521;
  --carx-surface: #1a1917;
  --carx-white: #ffffff;
  --carx-off-white: #f0ece3;
  --carx-light: #f2f3f1;
  --carx-text: #262521;
  --carx-muted: #8a8e94;
  --carx-border-light: #e1e3df;
  --carx-border-dark: rgba(255, 255, 255, 0.1);
  --carx-lime: #c6d400;
  --carx-lime-border: #b6c300;
  --carx-red: #b5443e;
  --carx-radius-sm: 8px;
  --carx-radius: 10px;
  --carx-radius-lg: 12px;
}

/* =========================================================
   CARX — BRANDS PAGE UNIFIED GRID FIX
   توحيد جميع العلامات في شبكة واحدة وإلغاء التقسيم الأبجدي
   ========================================================= */
body.brands-index .brands-nav-wrap {
  display: none !important;
}

body.brands-index .container > .px-8.xl\:px-0 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px 12px !important;
  padding-top: 24px !important;
  padding-bottom: 40px !important;
}

body.brands-index .brand-section,
body.brands-index .brand-section > .grid {
  display: contents !important;
}

body.brands-index .brand-section > .flex.items-center {
  display: none !important;
}

body.brands-index .brand-section > .grid > div {
  min-width: 0 !important;
  width: 100% !important;
}

body.brands-index .brand-item {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  margin-inline: auto !important;
  border: 1px solid rgba(198, 212, 0, 0.18) !important;
}

body.brands-index .brand-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (min-width: 768px) {
  body.brands-index .container > .px-8.xl\:px-0 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 28px 20px !important;
  }
}

@media (min-width: 1200px) {
  body.brands-index .container > .px-8.xl\:px-0 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* 1.5) الطباعة الرسمية */
html {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

html[lang="ar"] body,
html[dir="rtl"] body {
  font-family:
    "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif !important;
}

/* 2) قواعد عامة */
*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(198, 212, 0, 0.45) !important;
  outline-offset: 2px !important;
}

body {
  color: var(--carx-text);
}

/* 3) الشريط الإعلاني */
.store-header .angel-ad {
  min-height: 34px;
  padding: 6px 42px;
  color: var(--carx-white) !important;
  background: var(--carx-charcoal) !important;
  border-bottom: 1px solid var(--carx-border-dark);
}

.store-header .angel-ad__content {
  color: var(--carx-white) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.store-header .angel-ad a {
  color: var(--carx-white) !important;
}

.store-header .angel-ad__close,
.store-header .angel-ad button {
  color: #b6b6b6 !important;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.store-header .angel-ad__close:hover,
.store-header .angel-ad button:hover {
  color: var(--carx-lime) !important;
}

/* 4) الهيدر الرئيسي */
.store-header,
.store-header .header-container {
  color: var(--carx-white) !important;
  background: var(--carx-black) !important;
}

.store-header .header-container > .flex {
  min-height: 76px;
  align-items: center;
  gap: 16px;
}

.store-header .header-container > .flex > :last-child {
  gap: 5px;
}

.store-header .navbar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  margin: 0 !important;
}

.store-header .navbar-brand img,
.store-header .navbar-brand svg {
  width: auto !important;
  max-width: 145px !important;
  max-height: 55px !important;
  object-fit: contain !important;
}

.store-header .header-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--carx-white) !important;
  background: transparent;
  border: 0;
  border-radius: var(--carx-radius);
  opacity: 0.92;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.store-header .header-btn:hover {
  color: var(--carx-white) !important;
  background: rgba(255, 255, 255, 0.09);
  opacity: 1;
}

.store-header .header-btn i,
.store-header .lang,
.store-header .mburger p {
  color: var(--carx-white) !important;
}

.store-header .mburger i {
  color: var(--carx-lime) !important;
}

.store-header .mburger p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.store-header .s-cart-summary-count,
.store-header .cart-count,
.store-header [class*="cart-count"] {
  color: var(--carx-black) !important;
  background: var(--carx-lime) !important;
  border: 2px solid var(--carx-black);
  font-weight: 800;
}

/* 5) مربع البحث على الكمبيوتر */
@media (min-width: 1024px) {
  .store-header .search-btn {
    flex: 1 1 240px;
    width: auto;
    min-width: 200px;
    max-width: 360px;
    height: 44px;
    padding: 0 14px;
    gap: 10px;
    justify-content: flex-start;
    color: var(--carx-black) !important;
    background: var(--carx-white) !important;
    border: 1px solid #e5e7eb;
    border-radius: var(--carx-radius);
    opacity: 1;
  }

  .store-header .search-btn:hover {
    background: #f7f7f7 !important;
    border-color: #d4d4d4;
  }

  .store-header .search-btn i {
    flex-shrink: 0;
    color: var(--carx-black) !important;
    font-size: 18px;
  }

  .store-header .search-btn::after {
    content: "ابحث باسم القطعة أو رقم المنتج";
    overflow: hidden;
    color: #737373;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 6) القائمة الجانبية */
.mm-ocd {
  --mm-ocd-width: 88%;
  --mm-ocd-max-width: 390px;
}

.mm-ocd--open {
  background: rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.mm-ocd__content {
  width: min(88vw, 390px) !important;
  max-width: 390px !important;
  background: var(--carx-black) !important;
  border: 0 !important;
  box-shadow: -18px 0 55px rgba(0, 0, 0, 0.34);
}

#mobile-menu,
#mobile-menu.mm-spn,
#mobile-menu.mm-spn--light {
  --mm-color-background: var(--carx-black);
  --mm-color-border: rgba(255, 255, 255, 0.08);
  --mm-color-button: var(--carx-white);
  --mm-color-text: var(--carx-white);
  color: var(--carx-white) !important;
  background: var(--carx-black) !important;
  border: 0 !important;
}

#mobile-menu.mm-spn--navbar::after {
  content: "القائمة";
  height: 64px;
  padding: 0 22px !important;
  color: var(--carx-white) !important;
  background: var(--carx-black);
  border-bottom: 1px solid var(--carx-border-dark);
  font-size: 17px;
  font-weight: 700;
  line-height: 64px;
  text-align: right;
  opacity: 1;
}

#mobile-menu.mm-spn--navbar > ul.main-menu {
  top: 65px !important;
  width: 100%;
  padding: 8px 0 24px;
}

#mobile-menu .mobile-menu-slider {
  display: none !important;
}

#mobile-menu .main-menu > li {
  padding: 0 14px;
  background: transparent !important;
}

#mobile-menu .main-menu > li::after {
  right: 14px !important;
  left: 14px !important;
  width: auto !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

#mobile-menu .sidemenu-link {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px !important;
  color: #d7d7d7 !important;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

#mobile-menu .menu_title {
  padding: 0 !important;
  color: inherit !important;
  font-size: 14px;
  font-weight: 600;
}

#mobile-menu .sidemenu-link:hover {
  color: var(--carx-white) !important;
  background: var(--carx-surface);
  border-color: rgba(255, 255, 255, 0.08);
}

#mobile-menu .main-menu > li:nth-child(-n + 3) .sidemenu-link {
  min-height: 48px;
  margin-top: 7px;
  color: var(--carx-white) !important;
  background: var(--carx-charcoal);
  border-color: var(--carx-border-dark);
}

/* رابط العروض: استهداف بالرابط بدل الاعتماد على ترتيبه في القائمة */
#mobile-menu
  .main-menu
  .sidemenu-link:is(
    [href*="/offers" i],
    [href*="/offer" i],
    [href*="/sale" i],
    [href*="/discount" i]
  ) {
  margin-bottom: 12px;
  color: var(--carx-lime) !important;
  border-color: rgba(198, 212, 0, 0.28);
}

#mobile-menu
  .main-menu
  .sidemenu-link:is(
    [href*="/offers" i],
    [href*="/offer" i],
    [href*="/sale" i],
    [href*="/discount" i]
  )
  .menu-img {
  display: none !important;
}

#mobile-menu
  .main-menu
  .sidemenu-link:is(
    [href*="/offers" i],
    [href*="/offer" i],
    [href*="/sale" i],
    [href*="/discount" i]
  )::before {
  content: "٪";
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin-left: 9px;
  color: var(--carx-black);
  background: var(--carx-lime);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
}

#mobile-menu .close-mobile-menu {
  z-index: 5;
  width: 64px;
  height: 64px;
  color: var(--carx-white) !important;
  font-size: 20px;
  opacity: 0.75;
}

#mobile-menu .close-mobile-menu:hover {
  color: var(--carx-lime) !important;
  opacity: 1;
}

#mobile-menu,
#mobile-menu ul,
#mobile-menu .main-menu,
.mm-ocd__content {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#mobile-menu::-webkit-scrollbar,
#mobile-menu ul::-webkit-scrollbar,
#mobile-menu .main-menu::-webkit-scrollbar,
.mm-ocd__content::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#mobile-menu.mm-spn ul,
#mobile-menu.mm-spn ul.mm-spn--open,
#mobile-menu.mm-spn > ul.main-menu {
  border-left: 0 !important;
  border-inline-start: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

#mobile-menu.mm-spn > ul.main-menu::before {
  display: none !important;
  content: none !important;
}

/* 7) الهيدر على الجوال */
@media (max-width: 767px) {
  .store-header .angel-ad {
    min-height: 30px;
    padding: 5px 34px;
  }

  .store-header .angel-ad__content {
    font-size: 14px;
  }

  .store-header #mainnav {
    height: 90px !important;
  }

  .store-header
    .header-container
    > .flex.items-stretch.justify-between.relative {
    height: 60px !important;
    min-height: 60px !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .store-header
    .header-container
    > .flex.items-stretch.justify-between.relative
    > div {
    height: 60px !important;
    min-height: 60px !important;
    align-items: center !important;
  }

  .store-header
    .header-container
    > .flex.items-stretch.justify-between.relative
    > div:first-child,
  .store-header
    .header-container
    > .flex.items-stretch.justify-between.relative
    > div:last-child {
    width: 30% !important;
  }

  .store-header
    .header-container
    > .flex.items-stretch.justify-between.relative
    > div:nth-child(2) {
    width: 40% !important;
  }

  .store-header .navbar-brand {
    width: 100% !important;
    height: 48px !important;
  }

  .store-header .navbar-brand img,
  .store-header .navbar-brand svg {
    width: auto !important;
    max-width: 138px !important;
    max-height: 42px !important;
  }

  .store-header .header-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 9px;
  }

  .store-header .header-container > .flex > :last-child {
    gap: 1px;
  }

  .store-header .mburger p {
    display: none;
  }

  .mm-ocd {
    --mm-ocd-width: 90%;
    --mm-ocd-max-width: 360px;
  }

  .mm-ocd__content {
    width: min(90vw, 360px) !important;
  }
}

/* 8) بطاقات الماركات في الرئيسية */
@media (max-width: 767px) {
  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(10))
    .square-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 4px !important;
    row-gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(10))
    .square-grid
    > .banner-square {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(10))
    .square-grid
    > .banner-square
    > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(10))
    .square-grid
    .box-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 183 / 120 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(10))
    .square-grid
    .box-img
    img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

/* 9) بطاقة المنتج العامة */
custom-salla-product-card.s-product-card-entry {
  overflow: hidden !important;
  border: 1.5px solid #d9d4c7 !important;
  border-radius: 12px !important;
}

custom-salla-product-card .s-product-card-content {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 6px 8px 8px !important;
  gap: 3px !important;
}

custom-salla-product-card .s-product-card-content-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

custom-salla-product-card .s-product-card-image {
  overflow: hidden !important;
}

custom-salla-product-card .s-product-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

custom-salla-product-card .s-product-card-props {
  min-height: 0 !important;
  margin: 0 0 3px !important;
}

custom-salla-product-card .s-product-card-category {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px 8px !important;
  margin: 0 auto 5px !important;
  color: #232323 !important;
  background: #f1f1f1 !important;
  border: 1px solid #dedede !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

custom-salla-product-card .s-product-card-content-title {
  display: -webkit-box !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #262521 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-overflow: ellipsis !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

custom-salla-product-card .s-product-card-content-subtitle {
  min-height: 18px !important;
  margin: 3px 0 0 !important;
  overflow: hidden !important;
  color: #6f7378 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

custom-salla-product-card .s-product-card-content-sub {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 24px !important;
  margin-top: auto !important;
}

custom-salla-product-card .s-product-card-price-before,
custom-salla-product-card .s-product-card-old-price,
custom-salla-product-card [class*="old-price"],
custom-salla-product-card del {
  color: #8a8a8a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  opacity: 0.9 !important;
}

/* السعر العادي فحمي، والأحمر مخصص لسعر الخصم فقط */
custom-salla-product-card .s-product-card-price {
  color: var(--carx-text) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

custom-salla-product-card .s-product-card-sale-price {
  color: var(--carx-red) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

custom-salla-product-card .s-product-card-promotion-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 46px !important;
  height: 30px !important;
  padding: 0 10px !important;
  color: var(--carx-white) !important;
  background: var(--carx-red) !important;
  border-radius: 0 12px 0 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: 0 3px 8px rgba(17, 17, 17, 0.12) !important;
}

custom-salla-product-card .s-product-card-actions {
  gap: 6px !important;
}

custom-salla-product-card .s-product-card-actions button,
custom-salla-product-card .s-product-card-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  color: #232323 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid #232323 !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 7px rgba(17, 17, 17, 0.08) !important;
}

custom-salla-product-card .s-product-card-actions button svg,
custom-salla-product-card .s-product-card-actions a svg {
  width: 19px !important;
  height: 19px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

custom-salla-product-card .s-product-card-content-footer {
  width: 100% !important;
  min-height: 0 !important;
  margin-top: 4px !important;
}

custom-salla-product-card .s-product-card-content-footer .s-button-element,
custom-salla-product-card .s-product-card-content-footer button {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  color: var(--carx-charcoal) !important;
  background: var(--carx-lime) !important;
  border: 2px solid var(--carx-lime-border) !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

custom-salla-product-card .s-product-card-content-footer .s-button-element span,
custom-salla-product-card .s-product-card-content-footer .s-button-element svg,
custom-salla-product-card .s-product-card-content-footer button span,
custom-salla-product-card .s-product-card-content-footer button svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

/* 10) بطاقة المنتج على الجوال */
@media (max-width: 767px) {
  custom-salla-product-card.s-product-card-entry {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
  }

  custom-salla-product-card .s-product-card-image {
    height: 175px !important;
    min-height: 175px !important;
    max-height: 175px !important;
    padding: 4px !important;
  }

  custom-salla-product-card .s-product-card-content {
    padding: 6px 7px 7px !important;
    gap: 2px !important;
  }

  custom-salla-product-card .s-product-card-category {
    padding: 2px 7px !important;
    margin-bottom: 4px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
  }

  custom-salla-product-card .s-product-card-content-title {
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  custom-salla-product-card .s-product-card-content-subtitle {
    min-height: 18px !important;
    margin-top: 2px !important;
    font-size: 14px !important;
  }

  custom-salla-product-card .s-product-card-content-sub {
    gap: 5px !important;
    min-height: 22px !important;
  }

  custom-salla-product-card .s-product-card-price,
  custom-salla-product-card .s-product-card-sale-price {
    font-size: 15px !important;
  }

  custom-salla-product-card .s-product-card-promotion-title {
    min-width: 42px !important;
    height: 28px !important;
    padding: 0 8px !important;
    border-radius: 0 10px 0 10px !important;
    font-size: 14px !important;
  }

  custom-salla-product-card .s-product-card-actions button,
  custom-salla-product-card .s-product-card-actions a {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  custom-salla-product-card .s-product-card-content-footer .s-button-element,
  custom-salla-product-card .s-product-card-content-footer button {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .s-products-slider-card {
    align-self: stretch !important;
    padding-inline: 3px !important;
  }
}

/* 11) أقسام منتجات الصفحة الرئيسية بالخلفية */
body.index section.s-block--slider-with-bg.s-block--full-bg {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.index section.s-block--slider-with-bg.s-block--full-bg .slider-bg {
  min-height: 240px !important;
}

body.index
  section.s-block--slider-with-bg.s-block--full-bg
  .slider-bg
  + .container {
  padding-top: 28px !important;
}

body.index
  section.s-block--slider-with-bg.s-block--full-bg
  .slider-bg
  + .container
  h2 {
  margin: 0 !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

body.index
  section.s-block--slider-with-bg.s-block--full-bg
  .slider-bg
  + .container
  p {
  margin-top: 6px !important;
  margin-bottom: 18px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body.index
  section.s-block--slider-with-bg.s-block--full-bg
  .s-slider-container {
  margin-bottom: 0 !important;
  padding-bottom: 14px !important;
}

body.index
  section.s-block--slider-with-bg.s-block--full-bg
  .s-slider-block__display-all {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 8px 4px 12px !important;
  color: var(--carx-white) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.index
  section.s-block--slider-with-bg.s-block--full-bg
  .s-slider-block__display-all::after {
  content: "" !important;
  position: absolute !important;
  right: 50% !important;
  bottom: 4px !important;
  width: 48px !important;
  height: 3px !important;
  background: var(--carx-lime) !important;
  border-radius: 999px !important;
  transform: translateX(50%) !important;
}

@media (max-width: 767px) {
  body.index section.s-block--slider-with-bg.s-block--full-bg .slider-bg {
    min-height: 210px !important;
  }

  body.index
    section.s-block--slider-with-bg.s-block--full-bg
    .slider-bg
    + .container {
    padding-top: 20px !important;
  }

  body.index
    section.s-block--slider-with-bg.s-block--full-bg
    .slider-bg
    + .container
    h2 {
    font-size: 24px !important;
  }

  body.index
    section.s-block--slider-with-bg.s-block--full-bg
    .slider-bg
    + .container
    p {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
    font-size: 14px !important;
  }

  body.index
    section.s-block--slider-with-bg.s-block--full-bg
    .s-slider-block__display-all {
    min-height: 44px !important;
    padding: 6px 2px 11px !important;
    font-size: 15px !important;
  }
}

/* 12) صفحات التصنيفات وسلايدر المنتجات */
@media (max-width: 767px) {
  body.product-index .cat-slider-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    padding-inline: 5px !important;
    overflow: hidden !important;
  }

  body.product-index .cat-slider-container:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.product-index .cat-slider-container salla-products-slider,
  body.product-index .cat-slider-container salla-products-slider .swiper,
  body.product-index
    .cat-slider-container
    salla-products-slider
    .s-slider-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.product-index
    .cat-slider-container
    .s-products-slider-card.swiper-slide {
    flex: 0 0 50% !important;
    width: 50% !important;
    min-width: 50% !important;
    max-width: 50% !important;
    margin: 0 !important;
    padding-inline: 3px !important;
    box-sizing: border-box !important;
  }

  body.product-index .cat-slider-container .s-slider-block__title {
    min-height: 40px !important;
    margin: 0 !important;
    padding: 5px 2px 7px !important;
  }

  body.product-index .cat-slider-container .s-slider-block__title h2 {
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
  }

  body.product-index .cat-slider-container .s-slider-block__display-all {
    min-height: 44px !important;
    padding: 4px 2px 9px !important;
    font-size: 14px !important;
  }
}

/* 13) أسماء موديلات السيارات */
@media (max-width: 767px) {
  body.product-index .nav-header {
    padding: 12px 10px 10px !important;
    background: #f6f6f4 !important;
  }

  body.product-index .nav-header .nav-title {
    margin: 0 auto 10px !important;
    padding: 0 !important;
  }

  body.product-index .nav-header .nav-title h1,
  body.product-index .nav-header .nav-title h2 {
    margin: 0 0 5px !important;
    color: #111111 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
  }

  body.product-index .nav-header .sub-nav-header {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* عمودان مرنان لإظهار أسماء التصنيفات الفرعية كاملة دون ضغط أو قص. */
  body.product-index .nav-header .sub-nav-header .sub-cat-slider {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
  }

  body.product-index .nav-header .sub-nav-header .sub-cat-slider > * {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 6px 5px !important;
    color: #262521 !important;
    background: #ffffff !important;
    border: 1px solid #d9d9d5 !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    overflow: hidden !important;
    box-shadow: 0 2px 5px rgba(17, 17, 17, 0.04) !important;
  }

  body.product-index .nav-header .sub-nav-header .sub-cat-slider > * > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    text-align: center !important;
    text-decoration: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body.product-index .nav-header .sub-nav-header .sub-cat-slider > *::after {
    content: "" !important;
    position: absolute !important;
    right: 50% !important;
    bottom: 0 !important;
    width: 0 !important;
    height: 3px !important;
    background: var(--carx-lime) !important;
    border-radius: 999px 999px 0 0 !important;
    transform: translateX(50%) !important;
    transition: width 0.18s ease !important;
  }

  body.product-index .nav-header .sub-nav-header .sub-cat-slider > *:hover,
  body.product-index .nav-header .sub-nav-header .sub-cat-slider > *:active {
    color: var(--carx-white) !important;
    background: var(--carx-charcoal) !important;
    border-color: var(--carx-charcoal) !important;
  }

  body.product-index
    .nav-header
    .sub-nav-header
    .sub-cat-slider
    > *:hover::after,
  body.product-index
    .nav-header
    .sub-nav-header
    .sub-cat-slider
    > *:active::after {
    width: 65% !important;
  }

  body.product-index .nav-header .sub-nav-header .sub-cat-slider .box-img,
  body.product-index .nav-header .sub-nav-header .sub-cat-slider .menu-img,
  body.product-index .nav-header .sub-nav-header .sub-cat-slider .icon:empty {
    display: none !important;
  }
}

/* 14) نافذة البحث على الجوال */
@media (max-width: 767px) {
  #angel-search .angelmodal__overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(11, 11, 11, 0.52) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
  }

  #angel-search .angelmodal__container_search {
    position: fixed !important;
    top: 74px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: 430px !important;
    height: auto !important;
    max-height: calc(100dvh - 100px) !important;
    margin: 0 auto !important;
    padding: 16px 12px 12px !important;
    overflow: hidden !important;
    background: var(--carx-off-white) !important;
    border: 1px solid rgba(17, 17, 17, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22) !important;
  }

  #angel-search .angelmodal__top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    margin: 0 0 10px !important;
    padding: 0 48px !important;
  }

  #angel-search .angelmodal__top p {
    margin: 0 !important;
    color: #262521 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
  }

  #angel-search .angelmodal__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    color: var(--carx-white) !important;
    background: var(--carx-charcoal) !important;
    border: 0 !important;
    border-radius: 10px !important;
  }

  #angel-search .s-search-input-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #angel-search .s-search-input {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 42px 0 14px !important;
    color: #262521 !important;
    background: #ffffff !important;
    border: 1px solid #d8d9d6 !important;
    border-radius: 11px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  #angel-search .s-search-input:focus {
    border-color: #262521 !important;
    box-shadow: 0 0 0 3px rgba(198, 212, 0, 0.28) !important;
  }

  #angel-search .s-search-results {
    width: 100% !important;
    max-height: calc(100dvh - 205px) !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    border: 1px solid #e2e3e0 !important;
    border-radius: 11px !important;
  }

  #angel-search .s-search-results:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  #angel-search .s-search-results > a,
  #angel-search .s-search-result {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    align-items: center !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    gap: 10px !important;
    color: #262521 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #ececea !important;
    text-decoration: none !important;
  }

  #angel-search .s-search-results img {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain !important;
    background: var(--carx-off-white) !important;
    border-radius: 8px !important;
  }
}

/* 15) معرض صور صفحة المنتج */
@media (max-width: 767px) {
  body.product-single .sidebar,
  body.product-single .sidebar > .relative {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.product-single salla-slider.details-slider {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.product-single salla-slider.details-slider .s-slider-container,
  body.product-single salla-slider.details-slider .swiper {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.product-single salla-slider.details-slider .swiper-wrapper {
    height: auto !important;
    align-items: stretch !important;
  }

  body.product-single salla-slider.details-slider .swiper-slide {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.product-single salla-slider.details-slider .swiper-slide > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.product-single salla-slider.details-slider .swiper-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  body.product-single salla-slider.details-slider .swiper-pagination {
    bottom: 8px !important;
  }

  body.product-single salla-slider.details-slider .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    margin: 0 3px !important;
    background: #a7a7a7 !important;
    opacity: 0.55 !important;
  }

  body.product-single
    salla-slider.details-slider
    .swiper-pagination-bullet-active {
    width: 18px !important;
    background: var(--carx-lime) !important;
    border-radius: 999px !important;
    opacity: 1 !important;
  }

  body.product-single .sidebar .promotion-title {
    top: 10px !important;
    right: 10px !important;
    min-width: 46px !important;
    height: 30px !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 10px 0 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  body.product-single .sidebar .wish-share {
    top: auto !important;
    right: auto !important;
    bottom: 12px !important;
    left: 12px !important;
    gap: 6px !important;
  }

  body.product-single .sidebar .wish-share button,
  body.product-single .sidebar .wish-share a {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid #dedede !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 7px rgba(17, 17, 17, 0.08) !important;
  }
}

/* 16) صفحة المنتج على الجوال */
@media (max-width: 767px) {
  body.product-single.is-sticky-product-bar {
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }

  body.product-single form.product-form {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* 16.1 إخفاء اسم المنتج المكرر من مسار التنقل */
  body.product-single .s-breadcrumb-wrapper > .s-breadcrumb-item:last-child {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.product-single
    .s-breadcrumb-wrapper
    > .s-breadcrumb-arrow:has(+ .s-breadcrumb-item:last-child) {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.product-single .breadcrumbs {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  body.product-single .s-breadcrumb-wrapper {
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }

  body.product-single .s-breadcrumb-item,
  body.product-single .s-breadcrumb-item a {
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  /* 16.2 منطقة معلومات المنتج */
  body.product-single .main-content {
    width: 100% !important;
    padding: 10px 12px 16px !important;
  }

  body.product-single .main-content .flex.flex-col > p:first-child,
  body.product-single .main-content .sub-title {
    margin: 0 0 3px !important;
    color: #8c9095 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }

  /* قرار V4.6 المثبت: اسم المنتج في سطر واحد */
  body.product-single .main-content h1,
  body.product-single .main-content h1.da-tm,
  body.product-single .main-content .product-title,
  body.product-single .main-content [itemprop="name"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #262521 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }

  body.product-single .main-content .price {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    margin: 3px 0 4px !important;
    overflow: visible !important;
  }

  body.product-single .main-content .price del,
  body.product-single .main-content .price [class~="old"],
  body.product-single .main-content .price [class*="old-price"],
  body.product-single .main-content .price [class*="price-old"],
  body.product-single .main-content .price [class*="old_price"],
  body.product-single .main-content .price [class*="price_old"] {
    color: #9a9da3 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  body.product-single .main-content .price ins,
  body.product-single .main-content .price [class*="sale-price"],
  body.product-single .main-content .price > span {
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  body.product-single .product-availability {
    margin: 3px 0 7px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  /* 16.3 وصف المنتج */
  body.product-single article.full-description {
    margin: 7px 0 !important;
    padding: 10px 11px !important;
    color: #303030 !important;
    background: #ffffff !important;
    border: 1px solid #e5e6e3 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    box-shadow: none !important;
  }

  body.product-single article.full-description p {
    margin: 0 0 3px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  body.product-single article.full-description p:last-child {
    margin-bottom: 0 !important;
  }

  body.product-single article.full-description ul,
  body.product-single article.full-description ol {
    margin: 4px 0 0 !important;
    padding-inline-start: 17px !important;
  }

  body.product-single article.full-description li {
    margin: 1px 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  body.product-single article.full-description mark,
  body.product-single article.full-description span[style*="background"],
  body.product-single article.full-description strong[style*="background"] {
    color: inherit !important;
    background: transparent !important;
  }

  /* 16.4 إخفاء التصنيف والوسوم */
  body.product-single .main-category,
  body.product-single div.main-category,
  body.product-single div[class~="main-category"],
  body.product-single .main-content .main-category,
  body.product-single article.full-description ~ .main-category,
  body.product-single [class*="product-tags"],
  body.product-single [class*="product-tag"],
  body.product-single [class*="hashtags"],
  body.product-single [class*="hashtag"],
  body.product-single [class*="product-category"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    overflow: hidden !important;
  }

  body.product-single .main-category *,
  body.product-single div[class~="main-category"] * {
    display: none !important;
  }

  body.product-single .main-category + .mb-3,
  body.product-single div[class~="main-category"] + .mb-3,
  body.product-single .main-category + div:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 16.5 خيارات المنتج */
  body.product-single #product-tabs-options,
  body.product-single .product-options.details {
    margin: 7px 0 0 !important;
    padding: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e5e6e3 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  body.product-single salla-product-options .s-product-options-option-container,
  body.product-single
    #product-tabs-options
    .s-product-options-option-container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  body.product-single salla-product-options .s-product-options-option,
  body.product-single #product-tabs-options .s-product-options-option {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
  }

  body.product-single .s-product-options-option > label,
  body.product-single .s-product-options-option-label,
  body.product-single [class*="option-title"] {
    flex: 0 0 auto !important;
    margin: 0 0 0 5px !important;
    padding: 0 !important;
    color: #262521 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 44px !important;
    white-space: nowrap !important;
  }

  body.product-single
    .s-product-options-option
    :is(
      .option-description,
      .option-hint,
      [class*="option-help"],
      [class*="option-description"]
    ) {
    display: none !important;
  }

  body.product-single .s-product-options-option-value,
  body.product-single .s-product-options-option button,
  body.product-single .s-product-options-option [role="radio"] {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 60px !important;
    max-width: none !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 4px 9px !important;
    color: #262521 !important;
    background: #ffffff !important;
    border: 1px solid #d2d5d8 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body.product-single .s-product-options-option-value.is-selected,
  body.product-single .s-product-options-option-value.selected,
  body.product-single .s-product-options-option button.is-selected,
  body.product-single .s-product-options-option button.selected,
  body.product-single .s-product-options-option [aria-checked="true"],
  body.product-single .s-product-options-option input:checked + label {
    color: #111111 !important;
    background: var(--carx-lime) !important;
    border-color: var(--carx-lime-border) !important;
  }

  /* 16.6 إخفاء التقييمات والعناصر المكررة دون إخفاء جميع تبويبات المنتج */
  body.product-single #product-tabs-reviews,
  body.product-single [id*="product-review"],
  body.product-single [class*="product-reviews"],
  body.product-single .s-before-reviews,
  body.product-single .s-after-reviews,
  body.product-single section.p-block--features,
  body.product-single salla-cashback-banner {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
  }

  body.product-single section.s-block--payment {
    margin: 10px 0 !important;
    padding: 10px 12px !important;
    background: var(--carx-off-white) !important;
    border: 1px solid #e9e6e0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  body.product-single section.s-block--payment .container,
  body.product-single section.s-block--payment > div {
    padding: 0 !important;
    margin: 0 !important;
  }

  body.product-single section.s-block--payment h2,
  body.product-single section.s-block--payment h3,
  body.product-single section.s-block--payment .title {
    margin: 0 0 6px !important;
    color: var(--carx-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
  }

  body.product-single section.s-block--payment ul,
  body.product-single section.s-block--payment .payment-methods,
  body.product-single section.s-block--payment [class*="payment-list"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    list-style: none !important;
  }

  body.product-single section.s-block--payment img,
  body.product-single section.s-block--payment svg {
    width: 40px !important;
    height: 26px !important;
    object-fit: contain !important;
    opacity: 0.9 !important;
  }

  body.product-single .s-blocks-wrapper:empty,
  body.product-single .s-before-related:empty,
  body.product-single .s-after-related:empty,
  body.product-single .s-before-reviews:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.product-single .similar-products {
    margin-top: 10px !important;
  }

  body.product-single .similar-products h2 {
    margin: 0 0 8px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
  }
}

/* 17) زر واتساب في بقية الصفحات */
@media (max-width: 767px) {
  body:not(.product-single) #wa-angel {
    position: fixed !important;
    right: 12px !important;
    left: auto !important;
    bottom: 88px !important;
    width: 54px !important;
    height: 54px !important;
    z-index: 40 !important;
  }

  body:not(.product-single) #wa-angel > a,
  body:not(.product-single) #wa-angel button {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
  }

  body:not(.product-single) #wa-angel svg,
  body:not(.product-single) #wa-angel img {
    max-width: 30px !important;
    max-height: 30px !important;
  }
}

/* 16.9) إخفاء صندوق التقييمات فقط عندما يكون التقييم هو التبويب الوحيد */
body.product-single #product-tabs:has(.tabs__product > .reveiws-tab:only-child),
body.product-single #product-tabs:has(.tabs__product.reveiws-tab:only-child) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

/* 18) ألوان السعر في صفحة المنتج */
body.product-single .main-content .price,
body.product-single .main-content .price .total-price {
  color: var(--carx-text) !important;
}

body.product-single .main-content .price.price_is_on_sale .total-price,
body.product-single .main-content .price .price_is_on_sale .total-price,
body.product-single .main-content .price ins,
body.product-single .main-content .price [class*="sale-price"] {
  color: var(--carx-red) !important;
}

body.product-single .main-content .price .before-price,
body.product-single .main-content .price del,
body.product-single .main-content .price [class~="old"],
body.product-single .main-content .price [class*="old-price"],
body.product-single .main-content .price [class*="price-old"],
body.product-single .main-content .price [class*="old_price"],
body.product-single .main-content .price [class*="price_old"] {
  color: #9a9da3 !important;
}

/* 18.1) إخفاء بطاقة محفظة محلي الفارغة على جميع المقاسات */
footer.store-footer .footer-bottom ul li.pay-mahally_customer_wallet {
  display: none !important;
}

/* 19) الفوتر — تصميم مضغوط ومتناسق على الجوال */
@media (max-width: 767px) {
  footer.store-footer .store-footer__inner {
    padding-top: 14px !important;
    padding-bottom: 12px !important;
  }

  footer.store-footer > .store-footer__inner > .container.flex.flex-col {
    gap: 0 !important;
  }

  footer.store-footer .to-top a {
    min-height: 44px !important;
    padding-top: 8px !important;
    padding-bottom: 6px !important;
  }

  footer.store-footer .to-top p {
    margin: 0 !important;
    font-size: 14px !important;
  }

  footer.store-footer .to-top i.sicon-arrow-up,
  footer.store-footer .to-top i.icon {
    color: var(--carx-lime) !important;
  }

  footer.store-footer .footer-top,
  footer.store-footer .footer-middle,
  footer.store-footer .footer-bottom {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    gap: 12px !important;
  }

  footer.store-footer .footer-social .social-links {
    margin: 0 !important;
    gap: 10px !important;
  }

  footer.store-footer .footer-profile .logo-footer img,
  footer.store-footer img.logo-light {
    max-width: 148px !important;
    max-height: 38px !important;
    margin: 0 0 8px !important;
  }

  footer.store-footer .footer-description,
  footer.store-footer .footer-profile p {
    max-width: 340px !important;
    margin: 0 auto 6px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  footer.store-footer .footer-profile p:empty {
    display: none !important;
  }

  footer.store-footer .footer-title,
  footer.store-footer .s-contacts-title,
  footer.store-footer h3 {
    margin: 0 0 8px !important;
    color: var(--carx-lime) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
  }

  /* توسيط أعمدة الفوتر كاملة على الجوال قبل توسيط محتواها. */
  footer.store-footer .footer-middle {
    align-items: stretch !important;
  }

  footer.store-footer .footer-middle > * {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-inline: auto !important;
  }

  footer.store-footer a {
    color: var(--carx-white) !important;
    transition: color 0.2s ease !important;
  }

  footer.store-footer a:hover,
  footer.store-footer a:active {
    color: var(--carx-lime) !important;
  }

  footer.store-footer div.menu-list {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  footer.store-footer div.menu-list > .footer-title {
    width: 100% !important;
    text-align: center !important;
  }

  footer.store-footer div.menu-list .footer-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  footer.store-footer div.menu-list,
  footer.store-footer div.menu-list .footer-list > li {
    width: 100% !important;
  }

  footer.store-footer div.menu-list .footer-list > li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  footer.store-footer div.menu-list .footer-list a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 7px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  footer.store-footer .s-contacts-list {
    gap: 8px !important;
  }

  /* يظل هذا الاستهداف مرتبطًا ببنية ANGEL الحالية ويُراجع عند تغيير الثيم. */
  footer.store-footer .footer-middle > div:last-child {
    width: 100% !important;
    align-items: center !important;
    gap: 4px !important;
  }

  footer.store-footer .footer-vat,
  footer.store-footer .footer-images {
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  footer.store-footer .footer-middle {
    padding-bottom: 4px !important;
  }

  footer.store-footer .footer-bottom {
    padding-top: 4px !important;
    gap: 6px !important;
  }

  footer.store-footer .sbc-certificate {
    margin: 0 auto !important;
    justify-content: center !important;
  }

  footer.store-footer .sbc-certificate p {
    margin: 0 !important;
    font-size: 14px !important;
  }

  footer.store-footer .footer-bottom ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  footer.store-footer .footer-bottom ul li[class*="pay-"] {
    width: 44px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 3px !important;
  }

  footer.store-footer .footer-bottom ul li[class*="pay-"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  footer.store-footer .footer-bottom ul li:has(img.error),
  footer.store-footer .footer-bottom ul li:has(img[src=""]),
  footer.store-footer .footer-bottom ul li:has(img:not([src])) {
    display: none !important;
  }

  footer.store-footer .copyrights {
    margin: 10px 0 0 !important;
    opacity: 0.85 !important;
  }

  footer.store-footer .copyrights p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* 20) صفحة السلة / الطلب — تنسيق على هوية CARX */
body.cart .nav-header {
  padding-top: 18px !important;
  padding-bottom: 14px !important;
}

body.cart .nav-header h1 {
  font-weight: 800 !important;
}

body.cart #items-count {
  color: var(--carx-lime) !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

body.cart section.cart-item,
body.cart #free-shipping,
body.cart #cart-gifting,
body.cart .coupon {
  border-radius: var(--carx-radius) !important;
  border: 1px solid var(--carx-border-light) !important;
}

body.cart #free-shipping i.sicon-shipping-fast {
  background: var(--carx-lime) !important;
  color: var(--carx-black) !important;
}

body.cart #free-shipping-bar .progress-bg {
  background: var(--carx-lime) !important;
}

body.cart .s-cart-summary-card-action .s-button-primary,
body.cart .s-cart-summary-card-action .s-button-primary .s-button-text,
body.cart .main-content .s-button-primary,
body.cart .main-content .s-button-primary .s-button-text {
  color: var(--carx-charcoal) !important;
  font-weight: 800 !important;
}

body.cart .s-cart-summary-card-action .s-button-primary {
  border-radius: var(--carx-radius) !important;
}

@media (max-width: 767px) {
  body.cart .nav-header {
    padding-top: 14px !important;
    padding-bottom: 10px !important;
  }

  body.cart .nav-header h1 {
    font-size: 20px !important;
  }

  body.cart section.cart-item {
    padding: 12px !important;
    margin-bottom: 12px !important;
  }

  body.cart #free-shipping,
  body.cart #cart-gifting,
  body.cart .coupon {
    padding: 14px !important;
    margin-bottom: 12px !important;
  }

  body.cart .coupon input,
  body.cart .s-cart-coupons-wrapper input {
    min-height: 44px !important;
    border-radius: var(--carx-radius-sm) !important;
  }

  body.cart .coupon .s-button-element {
    min-height: 44px !important;
    border-radius: var(--carx-radius-sm) !important;
  }

  body.cart .s-cart-summary-card-bar {
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid var(--carx-border-light) !important;
  }

  body.cart .s-cart-summary-card-bar-total {
    font-weight: 800 !important;
  }

  body.cart .s-cart-summary-card-action .s-button-primary,
  body.cart #s-cart-summary-card-submit .s-button-element {
    height: 50px !important;
    min-height: 50px !important;
    font-size: 15px !important;
  }

  body.cart .s-cart-summary-card-sheet-title {
    font-weight: 800 !important;
  }

  body.cart .cart-similar-products .s-slider-block__title h2 {
    font-size: 19px !important;
    font-weight: 800 !important;
  }
}

/* 21) زر واتساب داخل صفحة المنتج */
@media (max-width: 767px) {
  body.product-single #wa-angel {
    position: fixed !important;
    right: 12px !important;
    left: auto !important;
    bottom: calc(132px + env(safe-area-inset-bottom)) !important;
    width: 52px !important;
    height: 52px !important;
    z-index: 39 !important;
  }

  body.product-single #wa-angel > a,
  body.product-single #wa-angel button {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
  }

  body.product-single #wa-angel i,
  body.product-single #wa-angel svg,
  body.product-single #wa-angel img {
    max-width: 28px !important;
    max-height: 28px !important;
  }
}

/* 22) إصلاح صور المنتجات في صفحات التصنيف — الكمبيوتر */
@media (min-width: 768px) {
  custom-salla-product-card .s-product-card-image {
    height: auto !important;
    min-height: 220px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 8px !important;
    overflow: hidden !important;
  }

  custom-salla-product-card .s-product-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

/* 23) قائمة مشاركة المنتج على الجوال */
@media (max-width: 767px) {
  body.product-single salla-social-share {
    position: relative !important;
    overflow: visible !important;
    z-index: 100 !important;
  }

  body.product-single salla-social-share .s-social-share-wrapper {
    position: relative !important;
    overflow: visible !important;
    z-index: 101 !important;
  }

  body.product-single salla-social-share .s-social-share-list {
    flex-direction: column !important;
    align-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    gap: 4px !important;
    padding: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(38, 37, 33, 0.1) !important;
    border-radius: 22px !important;
    box-shadow: 0 6px 20px rgba(20, 19, 17, 0.1) !important;
    overflow: visible !important;
  }

  body.product-single salla-social-share .s-social-share-list.opened {
    position: absolute !important;
    bottom: 52px !important;
    top: auto !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 9999 !important;
  }

  body.product-single salla-social-share .s-social-share-list > li {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.product-single salla-social-share .s-social-share-list > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  body.product-single salla-social-share .s-social-share-list svg {
    width: 18px !important;
    height: 18px !important;
  }

  body.product-single .wish-share {
    overflow: visible !important;
    z-index: 90 !important;
  }
}

/* =========================================================
   CARX — MALAK HOMEPAGE ADD-ON v1.0
   يوضع هذا الملف في نهاية CSS الحالي، بعد جميع الأكواد السابقة.

   الوظائف:
   1) تقليل ارتفاع هيدر الجوال.
   2) عرض 3 شعارات سيارات كبيرة مع السحب الأفقي.
   3) تنسيق كل زوج: بنر القسم/السيارة ثم سلايدر منتجاته.
   4) إبراز رابط "عرض الكل".

   ملاحظة تقنية:
   CSS ينسق Swiper ولا يشغّل Autoplay حقيقيًا.
   التشغيل التلقائي الحقيقي يحتاج تفعيل auto-play في مكوّن سلة نفسه.
   ========================================================= */

:root {
  --carx-home-lime: #c6d400;
  --carx-home-black: #141311;
  --carx-home-text: #262521;
  --carx-home-border: #dedbd2;
  --carx-home-radius: 14px;
  --carx-home-section-gap: 22px;
  --carx-home-banner-ratio: 8 / 3;
}

/* ---------------------------------------------------------
   1) الهيدر — الجوال فقط
   --------------------------------------------------------- */
@media (max-width: 767px) {
  .store-header #mainnav {
    height: 72px !important;
    min-height: 72px !important;
  }

  .store-header
    .header-container
    > .flex.items-stretch.justify-between.relative,
  .store-header
    .header-container
    > .flex.items-stretch.justify-between.relative
    > div {
    height: 56px !important;
    min-height: 56px !important;
  }

  .store-header .navbar-brand {
    height: 42px !important;
  }

  .store-header .navbar-brand img,
  .store-header .navbar-brand svg {
    width: auto !important;
    max-width: 122px !important;
    max-height: 38px !important;
    object-fit: contain !important;
  }

  .store-header .header-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
}

/* ---------------------------------------------------------
   2) تسوّق حسب سيارتك — عنصر واحد، 20 شعارًا

   التصحيح 4.7.3:
   - إلغاء Grid ونسبة 4:3 اللذين ضغطا الصور.
   - عرض نحو بطاقتين ونصف على الجوال لتكبير الشعار.
   - الحفاظ على نسبة البطاقة الأصلية 183:120 بلا قص أو Scale.
   - منع ظهور شرائح مقصوصة من الجانبين عند بداية الصف.
   - دعم عنصر واحد يحتوي شعارات السيارات العشرين.
   - أزيلت جميع قواعد العنصر/الصف الثاني بعد دمجه من لوحة سلة.
   --------------------------------------------------------- */

/* كتلة واحدة: العنوان ثم الشعارات العشرون ثم بنر تابي وتمارا. */
body.index
  section.s-block--banners:has(.square-grid > .banner-square:nth-child(20)) {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(20))
    .square-grid {
    display: flex !important;
    flex-flow: row nowrap !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2px 0 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-padding-inline: 0 !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(20))
    .square-grid::-webkit-scrollbar {
    display: none !important;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(20))
    .square-grid
    > .banner-square {
    flex: 0 0 40% !important;
    width: 40% !important;
    min-width: 40% !important;
    max-width: 40% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(20))
    .square-grid
    > .banner-square
    > a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 183 / 120 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(20))
    .square-grid
    .box-img {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 183 / 120 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid var(--carx-home-border) !important;
    border-radius: 12px !important;
  }

  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(20))
    .square-grid
    .box-img
    img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    transform-origin: center;
  }

  /* عنصر واحد فقط؛ لا توجد قواعد لصف أو عنصر ثانٍ. */
  body.index
    .s-block--banners:has(.square-grid > .banner-square:nth-child(20)) {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }
}

/* ---------------------------------------------------------
   3) زوج البنر + سلايدر المنتجات

   تعمل القواعد عندما يكون عنصر الصور ملاصقًا مباشرة لعنصر منتجات.
   تشمل منتجات سلة القياسية ومنتجات ملاك.
   --------------------------------------------------------- */
body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  ),
body.index section.s-block--banners:has(+ section.s-block--products-slider) {
  margin-top: var(--carx-home-section-gap) !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  )
  .container,
body.index
  section.s-block--banners:has(+ section.s-block--products-slider)
  .container {
  padding-bottom: 0 !important;
}

body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  )
  :is(a, picture),
body.index
  section.s-block--banners:has(+ section.s-block--products-slider)
  :is(a, picture) {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: var(--carx-home-radius) !important;
}

body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  )
  img,
body.index
  section.s-block--banners:has(+ section.s-block--products-slider)
  img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--carx-home-banner-ratio) !important;
  object-fit: cover !important;
  border-radius: var(--carx-home-radius) !important;
}

/* ضغط الفراغ بين البنر والمنتجات التابعة له */
body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  )
  + section,
body.index
  section.s-block--banners:has(+ section.s-block--products-slider)
  + section.s-block--products-slider {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 4px !important;
}

body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  )
  + section
  .s-slider-block__title,
body.index
  section.s-block--banners:has(+ section.s-block--products-slider)
  + section.s-block--products-slider
  .s-slider-block__title {
  min-height: 42px !important;
  margin-bottom: 8px !important;
  gap: 10px !important;
}

body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  )
  + section
  .s-slider-block__title
  h2,
body.index
  section.s-block--banners:has(+ section.s-block--products-slider)
  + section.s-block--products-slider
  .s-slider-block__title
  h2 {
  margin: 0 !important;
  color: var(--carx-home-text) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

/* زر عرض الكل */
body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  )
  + section
  .s-slider-block__display-all,
body.index
  section.s-block--banners:has(+ section.s-block--products-slider)
  + section.s-block--products-slider
  .s-slider-block__display-all {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 92px !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  color: var(--carx-home-black) !important;
  background: var(--carx-home-lime) !important;
  border: 1px solid #b6c300 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.index
  section.s-block--banners:has(
    + section :is(salla-products-slider, salla-slider)
  )
  + section
  .s-slider-block__display-all::after,
body.index
  section.s-block--banners:has(+ section.s-block--products-slider)
  + section.s-block--products-slider
  .s-slider-block__display-all::after {
  display: none !important;
  content: none !important;
}

/* حركة الانتقال اليدوي تصبح ناعمة، من دون كسر سحب Swiper */
body.index salla-products-slider .swiper-wrapper,
body.index salla-slider .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

@media (max-width: 767px) {
  :root {
    --carx-home-section-gap: 16px;
    --carx-home-radius: 11px;
  }

  body.index
    section.s-block--banners:has(
      + section :is(salla-products-slider, salla-slider)
    )
    img,
  body.index
    section.s-block--banners:has(+ section.s-block--products-slider)
    img {
    /* تقبل صورة الجوال 1:1 أو 4:5 أو أي نسبة طبيعية بلا ضغط أو قص. */
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: var(--carx-home-black) !important;
  }

  body.index
    section.s-block--banners:has(
      + section :is(salla-products-slider, salla-slider)
    )
    + section,
  body.index
    section.s-block--banners:has(+ section.s-block--products-slider)
    + section.s-block--products-slider {
    padding-top: 6px !important;
  }

  body.index
    section.s-block--banners:has(
      + section :is(salla-products-slider, salla-slider)
    )
    + section
    .s-slider-block__title,
  body.index
    section.s-block--banners:has(+ section.s-block--products-slider)
    + section.s-block--products-slider
    .s-slider-block__title {
    min-height: 40px !important;
    margin-bottom: 6px !important;
  }

  body.index
    section.s-block--banners:has(
      + section :is(salla-products-slider, salla-slider)
    )
    + section
    .s-slider-block__title
    h2,
  body.index
    section.s-block--banners:has(+ section.s-block--products-slider)
    + section.s-block--products-slider
    .s-slider-block__title
    h2 {
    font-size: 17px !important;
  }

  body.index
    section.s-block--banners:has(
      + section :is(salla-products-slider, salla-slider)
    )
    + section
    .s-slider-block__display-all,
  body.index
    section.s-block--banners:has(+ section.s-block--products-slider)
    + section.s-block--products-slider
    .s-slider-block__display-all {
    min-width: 88px !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.index salla-products-slider .swiper-wrapper,
  body.index salla-slider .swiper-wrapper {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   CARX v4.7.7 — SINGLE PAGE / PAYMENT TABLES ON MOBILE
   Actual Salla scope: div.content.content--single-page.opt-text
   ========================================================== */
@media screen and (max-width: 767px) {
  body.page-single.rtl
    div.content.content--single-page.opt-text {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry
    table {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry
    :is(tbody, tr) {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry
    :is(td, th) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    padding: 10px 9px !important;
    vertical-align: middle !important;
    white-space: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  /* The editor marks the short heading cell with a direct strong element. */
  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry
    :is(td, th):has(> strong) {
    width: 34% !important;
    overflow-wrap: normal !important;
  }

  /* The long description gets the remaining width and may wrap long IDs safely. */
  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry
    :is(td, th):not(:has(> strong)) {
    width: 66% !important;
    overflow-wrap: anywhere !important;
  }

  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry
    :is(td, th):has(> strong)
    > strong {
    display: inline !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry
    :is(td, th):not(:has(> strong))
    > :is(span, p) {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: none !important;
  }

  /* The first dark payment-options table contains two headings, so keep it 50/50. */
  body.page-single.rtl
    div.content.content--single-page.opt-text
    > .content-entry
    > table:first-of-type
    :is(td, th) {
    width: 50% !important;
  }
}
/* ==========================================================
   CARX v4.7.9 — MOBILE SEARCH RESULTS FIX
   إصلاح قص نتائج البحث على الجوال
   ========================================================== */
@media (max-width: 767px) {
  #angel-search .angelmodal__container_search {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 100px) !important;
    height: calc(100dvh - 100px) !important;
    max-height: calc(100vh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
    overflow: hidden !important;
  }

  #angel-search .angelmodal__search,
  #angel-search salla-search {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #angel-search .s-search-input-wrapper {
    flex: 0 0 46px !important;
  }

  #angel-search .s-search-results {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
/* ==========================================================
   CARX v4.7.10 — MOBILE SEARCH SCROLL
   تفعيل تمرير نتائج البحث وإظهار مؤشر التمرير
   ========================================================== */
@media (max-width: 767px) {
  #angel-search .s-search-results {
    overflow-x: hidden !important;
    overflow-y: scroll !important;

    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;

    scrollbar-width: thin;
    scrollbar-color: #b7d500 transparent;
    scrollbar-gutter: stable;
  }

  #angel-search .s-search-results::-webkit-scrollbar {
    width: 5px !important;
    display: block !important;
  }

  #angel-search .s-search-results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 999px !important;
  }

  #angel-search .s-search-results::-webkit-scrollbar-thumb {
    background: #b7d500 !important;
    border-radius: 999px !important;
  }
}
/* ==========================================================
   CARX v4.7.11 — MOBILE SEARCH EMPTY STATE FIX
   منع تمدد نافذة البحث عند عدم وجود نتائج
   ========================================================== */
@media (max-width: 767px) {
  /* النافذة تكون بحجم المحتوى عند فتحها */
  #angel-search .angelmodal__container_search {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 100px) !important;
  }

  #angel-search .angelmodal__search,
  #angel-search salla-search {
    flex: 0 1 auto !important;
    min-height: 0 !important;
  }

  /* تتمدد النافذة فقط عند وجود نتائج فعلية */
  #angel-search .angelmodal__container_search:has(
    .s-search-results:not(:empty)
  ) {
    height: calc(100dvh - 100px) !important;
  }

  #angel-search .angelmodal__container_search:has(
    .s-search-results:not(:empty)
  ) .angelmodal__search,
  #angel-search .angelmodal__container_search:has(
    .s-search-results:not(:empty)
  ) salla-search {
    flex: 1 1 auto !important;
  }

  /* إخفاء مساحة النتائج الفارغة تمامًا */
  #angel-search .s-search-results:empty {
    display: none !important;
    flex: 0 0 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}