/* =========================================================
   MHR — PREMIUM SALLA PRODUCT CARD
   ========================================================= */

:root {
  --mhr-card-bg: #ffffff;
  --mhr-card-image-bg: #f4f5f6;
  --mhr-card-text: #101820;
  --mhr-card-muted: #697179;
  --mhr-card-border: #e7e8ea;
  --mhr-card-accent: #f47721;
  --mhr-card-radius: 0px;
  --mhr-image-radius: 0px;
  --mhr-card-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

/* البطاقة الأساسية */
custom-salla-product-card.mhr-product-card {
  position: relative;
  display: block !important;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--mhr-card-bg);
  border: 1px solid var(--mhr-card-border);
  border-radius: var(--mhr-card-radius);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  isolation: isolate;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

@media (hover: hover) {
  custom-salla-product-card.mhr-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 24, 32, 0.16);
    box-shadow: var(--mhr-card-shadow);
  }
}

/* =========================================================
   صورة المنتج
   ========================================================= */

.mhr-product-card .s-product-card-image {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  background:
    linear-gradient(
      145deg,
      #f7f7f8 0%,
      var(--mhr-card-image-bg) 55%,
      #f0f1f2 100%
    );
  border-radius: var(--mhr-image-radius);
}

.mhr-product-card .s-product-card-image > a {
  display: block !important;
  width: 100%;
  height: 100%;
}

.mhr-product-card .s-product-card-image-cover {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  transform: scale(1.001);
  transition:
    transform 0.65s cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 0.4s ease;
}

@media (hover: hover) {
  .mhr-product-card:hover .s-product-card-image-cover {
    transform: scale(1.045);
  }
}

/* تدرج خفيف أسفل الصورة */
.mhr-product-card .s-product-card-image::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(16, 24, 32, 0.08),
    transparent
  );
}

/* =========================================================
   شارة العرض
   ========================================================= */

.mhr-product-card .s-product-card-promotion-title {
  position: absolute !important;
  right: 14px !important;
  bottom: 14px !important;
  left: auto !important;
  top: auto !important;
  z-index: 3;
  width: auto !important;
  max-width: calc(100% - 82px);
  min-height: 30px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px !important;
  margin: 0 !important;
  color: #ffffff !important;
  background: rgba(16, 24, 32, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mhr-product-card .s-product-card-promotion-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--mhr-card-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.18);
}

/* =========================================================
   زر المفضلة
   ========================================================= */

.mhr-product-card .s-product-card-wishlist-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  z-index: 5 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.mhr-product-card
  .s-product-card-wishlist-btn
  .s-button-element {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  color: #6f7881 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(16, 24, 32, 0.11) !important;
  border-radius: 50% !important;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease !important;
}

.mhr-product-card
  .s-product-card-wishlist-btn
  .s-button-element:hover {
  color: var(--mhr-card-accent) !important;
  border-color: rgba(244, 119, 33, 0.35) !important;
  transform: scale(1.06);
}

.mhr-product-card
  .s-product-card-wishlist-btn
  .s-button-text {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.mhr-product-card
  .s-product-card-wishlist-btn
  i {
  margin: 0 !important;
  font-size: 18px !important;
}

.mhr-product-card
  .s-product-card-wishlist-btn.added
  .s-button-element,
.mhr-product-card
  .s-product-card-wishlist-btn.favorited
  .s-button-element,
.mhr-product-card
  .s-product-card-wishlist-btn:not(.un-favorited)
  .s-button-element {
  color: #ffffff !important;
  background: var(--mhr-card-accent) !important;
  border-color: var(--mhr-card-accent) !important;
}

/* =========================================================
   محتوى البطاقة
   ========================================================= */

.mhr-product-card .s-product-card-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main main"
    "price cart";
  align-items: end;
  column-gap: 14px;
  row-gap: 20px;
  min-height: 225px;
  padding: 21px 20px 20px !important;
  margin: 0 !important;
  background: #ffffff;
}

.mhr-product-card .s-product-card-content-main {
  grid-area: main;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* عنوان المنتج */
.mhr-product-card .s-product-card-content-title {
  min-height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mhr-card-text) !important;
  font-size: clamp(15px, 1.2vw, 17px) !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  letter-spacing: -0.015em;
  text-align: right;
}

.mhr-product-card .s-product-card-content-title a {
  display: -webkit-box !important;
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.25s ease;
}

.mhr-product-card:hover .s-product-card-content-title a {
  color: var(--mhr-card-accent) !important;
}

/* الوصف الذي يضيفه JavaScript */
.mhr-product-card .mhr-card-description {
  min-height: 67px;
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: var(--mhr-card-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  text-align: right;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* خط زخرفي بسيط */
.mhr-product-card .mhr-card-description::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 0 0 9px auto;
  background: var(--mhr-card-accent);
  border-radius: 999px;
}

/* =========================================================
   السعر
   ========================================================= */

.mhr-product-card .s-product-card-content-sub {
  grid-area: price;
  min-width: 0;
  align-self: center;
  margin: 0 !important;
  padding: 0 !important;
}

.mhr-product-card .s-product-card-sale-price {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
  margin: 0 !important;
  padding: 0 !important;
}

.mhr-product-card .s-product-card-sale-price h4,
.mhr-product-card .s-product-card-price {
  margin: 0 !important;
  color: var(--mhr-card-text) !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.mhr-product-card .s-product-card-sale-price h4 i,
.mhr-product-card .s-product-card-price i {
  font-size: 17px !important;
  font-weight: 400;
}

.mhr-product-card .s-product-card-sale-price > span {
  position: relative;
  margin: 0 !important;
  color: #9a9fa5 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: line-through;
  white-space: nowrap;
}

.mhr-product-card .s-product-card-sale-price > span i {
  font-size: 11px !important;
}

/* =========================================================
   زر إضافة المنتج للسلة
   ========================================================= */

.mhr-product-card .s-product-card-content-footer {
  grid-area: cart;
  align-self: center;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mhr-product-card .s-product-card-content-footer salla-add-product-button,
.mhr-product-card
  .s-product-card-content-footer
  salla-add-product-button
  > div,
.mhr-product-card
  .s-product-card-content-footer
  salla-add-product-button
  salla-button {
  display: block !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
}

.mhr-product-card
  .s-product-card-content-footer
  .s-button-element {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--mhr-card-text) !important;
  background: #ffffff !important;
  border: 1px solid var(--mhr-card-border) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease !important;
}

.mhr-product-card
  .s-product-card-content-footer
  .s-button-element:hover {
  color: #ffffff !important;
  background: var(--mhr-card-text) !important;
  border-color: var(--mhr-card-text) !important;
  transform: translateY(-2px);
}

.mhr-product-card
  .s-product-card-content-footer
  .s-button-text {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* إخفاء عبارة إضافة للسلة والإبقاء على الأيقونة */
.mhr-product-card
  .s-product-card-content-footer
  .s-button-text
  > span {
  display: none !important;
}

.mhr-product-card
  .s-product-card-content-footer
  .s-button-text
  > i {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

/* حالة التحميل */
.mhr-product-card
  .s-product-card-content-footer
  .s-button-element.is-loading,
.mhr-product-card
  .s-product-card-content-footer
  .s-button-element:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* =========================================================
   منع اختلاف ارتفاع البطاقات
   ========================================================= */

.products-grid custom-salla-product-card,
.s-products-list-wrapper custom-salla-product-card,
.swiper-slide custom-salla-product-card {
  height: 100%;
}

/* =========================================================
   الجوال
   ========================================================= */

@media screen and (max-width: 767px) {
  .mhr-product-card .s-product-card-wishlist-btn {
    top: 9px !important;
    right: 9px !important;
  }

  .mhr-product-card .s-product-card-wishlist-btn,
  .mhr-product-card
    .s-product-card-wishlist-btn
    .s-button-element {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .mhr-product-card .s-product-card-promotion-title {
    right: 9px !important;
    bottom: 9px !important;
    max-width: calc(100% - 58px);
    min-height: 26px;
    padding: 6px 8px !important;
    font-size: 9px !important;
  }

  .mhr-product-card .s-product-card-content {
    column-gap: 9px;
    row-gap: 15px;
    min-height: 200px;
    padding: 15px 13px 14px !important;
  }

  .mhr-product-card .s-product-card-content-title {
    min-height: 45px;
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  .mhr-product-card .mhr-card-description {
    min-height: 59px;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
  }

  .mhr-product-card .mhr-card-description::before {
    width: 22px;
    margin-bottom: 7px;
  }

  .mhr-product-card .s-product-card-sale-price {
    gap: 5px;
  }

  .mhr-product-card .s-product-card-sale-price h4,
  .mhr-product-card .s-product-card-price {
    font-size: 17px !important;
  }

  .mhr-product-card .s-product-card-sale-price h4 i,
  .mhr-product-card .s-product-card-price i {
    font-size: 13px !important;
  }

  .mhr-product-card .s-product-card-sale-price > span {
    font-size: 11px !important;
  }

  .mhr-product-card
    .s-product-card-content-footer
    salla-add-product-button,
  .mhr-product-card
    .s-product-card-content-footer
    salla-add-product-button
    > div,
  .mhr-product-card
    .s-product-card-content-footer
    salla-add-product-button
    salla-button,
  .mhr-product-card
    .s-product-card-content-footer
    .s-button-element {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  .mhr-product-card
    .s-product-card-content-footer
    .s-button-text
    > i {
    font-size: 16px !important;
  }
}

/* الشاشات الصغيرة جدًا */
@media screen and (max-width: 380px) {
  .mhr-product-card .s-product-card-content {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .mhr-product-card .mhr-card-description {
    font-size: 10.5px;
  }
}



/* =========================================================
   كيرف متناسق لبطاقات المنتجات
   ========================================================= */

:root {
  --mhr-card-radius: 18px;
  --mhr-image-radius: 17px 17px 0 0;
}

/* البطاقة كاملة */
custom-salla-product-card.mhr-product-card {
  border-radius: var(--mhr-card-radius) !important;
  overflow: hidden !important;
}

/* حاوية الصورة */
.mhr-product-card .s-product-card-image {
  border-radius: var(--mhr-image-radius) !important;
  overflow: hidden !important;
}

/* صورة المنتج */
.mhr-product-card .s-product-card-image-cover,
.mhr-product-card .s-product-card-image > a {
  border-radius: var(--mhr-image-radius) !important;
}

/* محتوى البطاقة من الأسفل */
.mhr-product-card .s-product-card-content {
  border-radius: 0 0 var(--mhr-card-radius) var(--mhr-card-radius) !important;
}

/* تحسين الحواف أثناء التحويم */
@media (hover: hover) {
  custom-salla-product-card.mhr-product-card:hover {
    border-radius: var(--mhr-card-radius) !important;
  }
}

/* كيرف أخف على الجوال */
@media screen and (max-width: 767px) {
  :root {
    --mhr-card-radius: 14px;
    --mhr-image-radius: 13px 13px 0 0;
  }
}





/* =========================================================
   إعادة تصميم قسم مميزات المتجر
   ========================================================= */

.s-block--features.container {
  position: relative;
  margin-top: 35px !important;
  margin-bottom: 35px !important;
}

/* الحاوية الخارجية */
.s-block--features > .grid {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;

  padding: 14px !important;

  background:
    linear-gradient(
      135deg,
      rgba(248, 248, 248, 0.98) 0%,
      rgba(255, 255, 255, 1) 50%,
      rgba(246, 246, 246, 0.98) 100%
    );

  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 24px;

  box-shadow:
    0 12px 35px rgba(15, 23, 42, 0.045);

  overflow: hidden;
}

/* وهج خلفي خفيف */
.s-block--features > .grid::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;

  width: 210px;
  height: 210px;

  background: radial-gradient(
    circle,
    rgba(244, 119, 33, 0.1) 0%,
    transparent 70%
  );

  pointer-events: none;
}

/* بطاقة الميزة */
.s-block--features__item {
  position: relative;
  z-index: 1;

  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon text";
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;

  min-width: 0;
  min-height: 110px;

  padding: 18px !important;
  margin: 0 !important;

  text-align: right !important;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;

  box-shadow:
    0 5px 18px rgba(15, 23, 42, 0.035);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* لمسة زخرفية */
.s-block--features__item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;

  width: 42px;
  height: 3px;

  background: #f47721;
  border-radius: 0 0 10px 10px;

  transition: width 0.3s ease;
}

/* خلفية ناعمة داخل البطاقة */
.s-block--features__item::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;

  width: 125px;
  height: 125px;

  background: radial-gradient(
    circle,
    rgba(244, 119, 33, 0.07),
    transparent 70%
  );

  pointer-events: none;
}

/* الأيقونة */
.s-block--features__item .feature-icon {
  grid-area: icon;

  position: relative;
  z-index: 2;

  width: 56px !important;
  height: 56px !important;
  min-width: 56px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  margin: 0 !important;
  padding: 0 !important;

  color: #ffffff !important;

  background:
    linear-gradient(
      145deg,
      #0f1113 0%,
      #292c30 100%
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px !important;

  box-shadow:
    0 8px 20px rgba(15, 17, 19, 0.15);

  transform: rotate(0deg);

  transition:
    transform 0.3s ease,
    border-radius 0.3s ease,
    background-color 0.3s ease;
}

/* نقطة برتقالية على الأيقونة */
.s-block--features__item .feature-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;

  width: 6px;
  height: 6px;

  background: #f47721;
  border: 2px solid #191b1e;
  border-radius: 50%;
}

/* شكل الأيقونة */
.s-block--features__item .feature-icon i {
  position: relative;
  z-index: 2;

  margin: 0 !important;

  color: #ffffff !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

/* عنوان الميزة */
.s-block--features__item h2 {
  grid-area: title;

  position: relative;
  z-index: 2;

  margin: 0 !important;
  padding: 0 !important;

  color: #111315 !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;

  text-align: right !important;
}

/* وصف الميزة */
.s-block--features__item p {
  grid-area: text;

  position: relative;
  z-index: 2;

  margin: 0 !important;
  padding: 0 !important;

  color: #747a80 !important;

  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;

  text-align: right !important;
}

/* التحويم */
@media (hover: hover) {
  .s-block--features__item:hover {
    transform: translateY(-4px);

    border-color: rgba(244, 119, 33, 0.22);

    box-shadow:
      0 14px 30px rgba(15, 23, 42, 0.08);
  }

  .s-block--features__item:hover::before {
    width: 70px;
  }

  .s-block--features__item:hover .feature-icon {
    transform: rotate(-4deg) scale(1.04);
    border-radius: 20px 14px 20px 14px !important;
  }
}

/* =========================================================
   التابلت
   ========================================================= */

@media screen and (max-width: 991px) {
  .s-block--features > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 20px;
  }

  .s-block--features__item {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 10px;

    min-height: 98px;
    padding: 14px !important;

    border-radius: 15px;
  }

  .s-block--features__item .feature-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;

    border-radius: 14px !important;
  }

  .s-block--features__item .feature-icon i {
    font-size: 20px !important;
  }

  .s-block--features__item h2 {
    font-size: 13px !important;
  }

  .s-block--features__item p {
    font-size: 10.5px !important;
  }
}

/* =========================================================
   الجوال
   ========================================================= */

@media screen and (max-width: 767px) {
  .s-block--features.container {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }

  .s-block--features > .grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;

    padding: 9px !important;

    border-radius: 18px;
  }

  .s-block--features__item {
    grid-template-columns: 50px minmax(0, 1fr);

    min-height: 88px;

    padding: 13px 14px !important;

    border-radius: 14px;
  }

  .s-block--features__item::before {
    right: 20px;
    width: 34px;
  }

  .s-block--features__item .feature-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;

    border-radius: 14px !important;
  }

  .s-block--features__item h2 {
    font-size: 14px !important;
  }

  .s-block--features__item p {
    font-size: 11px !important;
  }
}



/* =========================================================
   DABA STORE — BRANDS PAGE
   تصميم كامل لصفحة الماركات التجارية
   ========================================================= */

.brands-index {
  --daba-primary: #000010;
  --daba-primary-soft: #171722;
  --daba-text: #17171d;
  --daba-muted: #777780;
  --daba-bg: #f7f7f9;
  --daba-card: #ffffff;

  --daba-border: rgba(0, 0, 16, 0.09);
  --daba-border-hover: rgba(0, 0, 16, 0.18);

  --daba-radius-xl: 28px;
  --daba-radius-lg: 22px;
  --daba-radius-md: 16px;

  --daba-shadow:
    0 2px 5px rgba(0, 0, 16, 0.025),
    0 15px 40px rgba(0, 0, 16, 0.06);

  --daba-shadow-hover:
    0 5px 12px rgba(0, 0, 16, 0.04),
    0 22px 45px rgba(0, 0, 16, 0.1);
}

/* =========================================================
   إعدادات عامة
   ========================================================= */

.brands-index,
.brands-index *,
.brands-index *::before,
.brands-index *::after {
  box-sizing: border-box;
}

.brands-index #main-content {
  position: relative;
  min-height: 70vh;
  padding: 24px 0 65px;

  background:
    radial-gradient(
      circle at 85% 6%,
      rgba(0, 0, 16, 0.035),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7f7f9 38%,
      #ffffff 100%
    );
}

.brands-index #main-content > .container {
  width: min(calc(100% - 36px), 1280px);
  max-width: 1280px;

  margin-inline: auto;
  margin-bottom: 0 !important;
  padding-inline: 0 !important;
}

/* =========================================================
   مسار التنقل
   ========================================================= */

.brands-index .breadcrumbs {
  width: 100%;
  margin: 0 0 16px;
  padding: 0 !important;
}

.brands-index .s-breadcrumb-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;

  width: fit-content;
  min-height: 38px;

  margin: 0;
  padding: 7px 14px;

  border: 1px solid var(--daba-border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.92);

  box-shadow:
    0 1px 2px rgba(0, 0, 16, 0.02),
    0 7px 20px rgba(0, 0, 16, 0.035);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brands-index .s-breadcrumb-item,
.brands-index .s-breadcrumb-item a {
  color: var(--daba-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.brands-index .s-breadcrumb-item a {
  transition: color 0.2s ease;
}

.brands-index .s-breadcrumb-item a:hover {
  color: var(--daba-primary);
}

.brands-index .s-breadcrumb-item:last-child {
  color: var(--daba-text);
  font-weight: 700;
}

.brands-index .s-breadcrumb-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  color: #a1a1a9;
}

.brands-index .s-breadcrumb-arrow svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   رأس صفحة الماركات
   ========================================================= */

.brands-index
  #main-content
  > .container
  > .flex.justify-between {
  position: relative;
  isolation: isolate;

  display: flex;
  align-items: center;

  width: 100%;
  min-height: 155px;

  margin: 0 0 18px;
  padding: 35px 40px !important;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--daba-radius-xl);

  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 255, 255, 0.11),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      var(--daba-primary) 0%,
      var(--daba-primary-soft) 100%
    );

  box-shadow: var(--daba-shadow);
}

.brands-index
  #main-content
  > .container
  > .flex.justify-between::before {
  content: "";

  position: absolute;
  z-index: -1;

  inset-inline-end: -65px;
  top: -100px;

  width: 255px;
  height: 255px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.brands-index
  #main-content
  > .container
  > .flex.justify-between::after {
  content: "";

  position: absolute;
  z-index: -1;

  inset-inline-end: 80px;
  bottom: -100px;

  width: 175px;
  height: 175px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.brands-index
  #main-content
  > .container
  > .flex.justify-between
  h2 {
  position: relative;

  margin: 0 !important;

  color: #ffffff;

  font-size: clamp(29px, 3vw, 43px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.brands-index
  #main-content
  > .container
  > .flex.justify-between
  h2::after {
  content: "";

  display: block;

  width: 48px;
  height: 4px;

  margin-top: 15px;

  border-radius: 999px;
  background: #ffffff;
  opacity: 0.95;
}

/* =========================================================
   شريط أحرف الماركات
   إصلاح كامل لمشكلة التحول العمودي
   ========================================================= */

.brands-index .brands-nav-wrap {
  position: relative !important;

  display: block !important;

  width: 100% !important;
  height: 62px !important;
  min-height: 62px !important;

  margin: 0 0 24px !important;
  padding: 0 !important;

  overflow: visible !important;
}

/*
  إلغاء أي position:fixed أو flex-direction:column
  يضيفه قالب سلة أثناء السكرول
*/

.brands-index #brands-nav,
.brands-index #brands-nav.brands-nav,
.brands-index #brands-nav.is-sticky,
.brands-index #brands-nav.fixed,
.brands-index #brands-nav.sticky,
.brands-index #brands-nav[class*="sticky"],
.brands-index #brands-nav[style] {
  position: relative !important;

  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;

  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  max-width: 100% !important;

  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;

  margin: 0 !important;
  padding: 9px 12px !important;

  gap: 8px !important;

  float: none !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  border: 1px solid var(--daba-border) !important;
  border-radius: 20px !important;

  background: rgba(255, 255, 255, 0.96) !important;

  box-shadow:
    0 1px 2px rgba(0, 0, 16, 0.025),
    0 10px 30px rgba(0, 0, 16, 0.06) !important;

  transform: none !important;
  translate: none !important;

  transition: none !important;
  animation: none !important;

  scrollbar-width: none !important;

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.brands-index #brands-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.brands-index #brands-nav > li {
  position: relative !important;

  display: block !important;
  flex: 0 0 auto !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  float: none !important;

  transform: none !important;
  translate: none !important;
}

.brands-index #brands-nav > li:first-child:empty {
  display: none !important;
}

.brands-index #brands-nav .brands-nav__item {
  position: relative !important;

  display: flex !important;
  flex: 0 0 auto !important;

  align-items: center !important;
  justify-content: center !important;

  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;

  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid transparent !important;
  border-radius: 13px !important;

  background: #f3f3f5 !important;
  color: var(--daba-text) !important;

  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  text-align: center !important;
  white-space: nowrap !important;

  float: none !important;

  transform: none !important;
  translate: none !important;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

.brands-index #brands-nav .brands-nav__item:hover,
.brands-index #brands-nav .brands-nav__item.active,
.brands-index #brands-nav .brands-nav__item.is-active,
.brands-index
  #brands-nav
  .brands-nav__item[aria-current="true"] {
  border-color: var(--daba-primary) !important;

  background: var(--daba-primary) !important;
  color: #ffffff !important;

  box-shadow: 0 8px 18px rgba(0, 0, 16, 0.17) !important;

  transform: translateY(-2px) !important;
}

.brands-index #brands-nav .fix-align {
  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  line-height: 1 !important;

  transform: none !important;
  translate: none !important;
}

/* =========================================================
   حاوية أقسام الماركات
   ========================================================= */

.brands-index #main-content .brands-nav-wrap + div {
  display: grid !important;

  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

  align-items: stretch !important;

  width: 100% !important;

  gap: 24px !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* إخفاء Hooks الفارغة داخل الشبكة */
.brands-index
  #main-content
  .brands-nav-wrap
  + div
  > salla-hook {
  display: none !important;
}

/* =========================================================
   أقسام الحروف
   ========================================================= */

.brands-index [id^="brand-section-"] {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  height: 100%;

  margin: 0 !important;
  padding: 24px !important;

  scroll-margin-top: 120px;

  overflow: hidden;

  border: 1px solid var(--daba-border);
  border-radius: var(--daba-radius-xl);

  background: var(--daba-card);

  box-shadow: var(--daba-shadow);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.brands-index [id^="brand-section-"]:hover {
  border-color: var(--daba-border-hover);
  box-shadow: var(--daba-shadow-hover);
  transform: translateY(-3px);
}

/* =========================================================
   عنوان كل حرف
   ========================================================= */

.brands-index [id^="brand-section-"] > .flex.items-center {
  position: relative;

  display: flex !important;

  align-items: center !important;

  width: 100%;

  gap: 14px !important;

  margin: 0 0 20px !important;
  padding: 0 !important;
}

.brands-index [id^="brand-section-"] .brand-char {
  position: relative;

  display: inline-flex !important;
  flex: 0 0 50px !important;

  align-items: center !important;
  justify-content: center !important;

  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;

  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: 16px;

  background: var(--daba-primary);
  color: #ffffff;

  font-size: 20px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 9px 20px rgba(0, 0, 16, 0.15);
}

.brands-index
  [id^="brand-section-"]
  .brand-char
  .fix-align {
  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  width: 100%;
  height: 100%;

  transform: none !important;
}

/* الخط بجانب عنوان الحرف */
.brands-index
  [id^="brand-section-"]
  > .flex.items-center
  > .bg-border-color {
  position: relative;

  display: block !important;
  flex: 1 !important;

  width: auto !important;
  height: 1px !important;

  margin: 0 !important;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 16, 0.04),
    rgba(0, 0, 16, 0.16),
    rgba(0, 0, 16, 0.04)
  ) !important;
}

.brands-index
  [id^="brand-section-"]
  > .flex.items-center
  > .bg-border-color::after {
  content: "";

  position: absolute;

  inset-inline-end: 0;
  top: 50%;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--daba-primary);

  transform: translateY(-50%);
}

/* =========================================================
   شبكة الماركات
   ========================================================= */

.brands-index [id^="brand-section-"] > .grid {
  display: grid !important;

  grid-template-columns: repeat(
    auto-fit,
    minmax(145px, 1fr)
  ) !important;

  align-items: stretch !important;

  width: 100% !important;

  gap: 14px !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   بطاقة الماركة
   ========================================================= */

.brands-index .brand-item {
  position: relative;
  isolation: isolate;

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-width: 0 !important;

  height: 145px !important;
  min-height: 145px !important;

  margin: 0 !important;
  padding: 20px !important;

  overflow: hidden;

  border: 1px solid var(--daba-border);
  border-radius: var(--daba-radius-md);

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8f8fa 100%
    );

  box-shadow:
    0 1px 2px rgba(0, 0, 16, 0.025),
    0 8px 22px rgba(0, 0, 16, 0.04);

  transform: none;

  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.brands-index .brand-item::before {
  content: "";

  position: absolute;
  z-index: -1;

  inset: 0;

  opacity: 0;

  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(0, 0, 16, 0.075),
      transparent 65%
    );

  transition: opacity 0.25s ease;
}

.brands-index .brand-item:hover {
  border-color: var(--daba-border-hover);

  background: #ffffff;

  box-shadow:
    0 5px 12px rgba(0, 0, 16, 0.045),
    0 17px 34px rgba(0, 0, 16, 0.09);

  transform: translateY(-5px);
}

.brands-index .brand-item:hover::before {
  opacity: 1;
}

.brands-index .brand-item:focus-visible {
  outline: 3px solid rgba(0, 0, 16, 0.16);
  outline-offset: 3px;
}

/* =========================================================
   صور شعارات الماركات
   ========================================================= */

.brands-index .brand-item img,
.brands-index .brand-item img.max-h-full {
  display: block !important;

  width: auto !important;
  max-width: 82% !important;

  height: auto !important;
  max-height: 85px !important;

  margin: 0 auto !important;

  object-fit: contain !important;
  object-position: center !important;

  flex-shrink: 0;

  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.brands-index .brand-item:hover img {
  transform: scale(1.055);
}

/* =========================================================
   الأجهزة اللوحية
   ========================================================= */

@media screen and (max-width: 991px) {
  .brands-index #main-content {
    padding-top: 18px;
  }

  .brands-index #main-content .brands-nav-wrap + div {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .brands-index [id^="brand-section-"] {
    padding: 22px !important;
  }

  .brands-index [id^="brand-section-"] > .grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(145px, 1fr)
    ) !important;
  }
}

/* =========================================================
   الجوال
   ========================================================= */

@media screen and (max-width: 767px) {
  .brands-index #main-content {
    padding: 14px 0 42px;
  }

  .brands-index #main-content > .container {
    width: min(calc(100% - 22px), 1280px);
  }

  /* مسار التنقل */
  .brands-index .breadcrumbs {
    margin-bottom: 12px;
  }

  .brands-index .s-breadcrumb-wrapper {
    max-width: 100%;
    min-height: 34px;

    padding: 6px 11px;
  }

  .brands-index .s-breadcrumb-item,
  .brands-index .s-breadcrumb-item a {
    font-size: 11px;
  }

  /* رأس الصفحة */
  .brands-index
    #main-content
    > .container
    > .flex.justify-between {
    min-height: 125px;

    margin-bottom: 12px;
    padding: 24px 22px !important;

    border-radius: 22px;
  }

  .brands-index
    #main-content
    > .container
    > .flex.justify-between
    h2 {
    font-size: 27px;
  }

  .brands-index
    #main-content
    > .container
    > .flex.justify-between
    h2::after {
    width: 38px;
    height: 3px;

    margin-top: 12px;
  }

  /* شريط الأحرف */
  .brands-index .brands-nav-wrap {
    height: 56px !important;
    min-height: 56px !important;

    margin-bottom: 16px !important;
  }

  .brands-index #brands-nav,
  .brands-index #brands-nav.brands-nav,
  .brands-index #brands-nav.is-sticky,
  .brands-index #brands-nav.fixed,
  .brands-index #brands-nav.sticky,
  .brands-index #brands-nav[class*="sticky"],
  .brands-index #brands-nav[style] {
    justify-content: flex-start !important;

    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;

    padding: 7px 9px !important;

    gap: 7px !important;

    border-radius: 17px !important;
  }

  .brands-index #brands-nav .brands-nav__item {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    border-radius: 12px !important;
  }

  /* أقسام الماركات */
  .brands-index #main-content .brands-nav-wrap + div {
    gap: 14px !important;
  }

  .brands-index [id^="brand-section-"] {
    padding: 18px !important;

    scroll-margin-top: 90px;

    border-radius: 21px;
  }

  .brands-index [id^="brand-section-"]:hover {
    transform: none;
  }

  .brands-index [id^="brand-section-"] > .flex.items-center {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .brands-index [id^="brand-section-"] .brand-char {
    flex-basis: 44px !important;

    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;

    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;

    border-radius: 14px;

    font-size: 18px;
  }

  /* شبكة الماركات */
  .brands-index [id^="brand-section-"] > .grid {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    ) !important;

    gap: 10px !important;
  }

  /* بطاقة الماركة */
  .brands-index .brand-item {
    height: 115px !important;
    min-height: 115px !important;

    padding: 14px !important;

    border-radius: 15px;
  }

  .brands-index .brand-item img,
  .brands-index .brand-item img.max-h-full {
    max-width: 88% !important;
    max-height: 65px !important;
  }

  .brands-index .brand-item:hover {
    transform: none;
  }
}

/* =========================================================
   الجوال الصغير
   ========================================================= */

@media screen and (max-width: 390px) {
  .brands-index [id^="brand-section-"] {
    padding: 15px !important;
  }

  .brands-index [id^="brand-section-"] > .grid {
    gap: 8px !important;
  }

  .brands-index .brand-item {
    height: 105px !important;
    min-height: 105px !important;

    padding: 11px !important;
  }

  .brands-index .brand-item img,
  .brands-index .brand-item img.max-h-full {
    max-height: 57px !important;
  }
}

/* =========================================================
   الشاشات الكبيرة
   ========================================================= */

@media screen and (min-width: 1400px) {
  .brands-index #main-content > .container {
    max-width: 1320px;
  }

  .brands-index
    #main-content
    > .container
    > .flex.justify-between {
    min-height: 165px;
  }

  .brands-index .brand-item {
    height: 155px !important;
    min-height: 155px !important;
  }
}

/* =========================================================
   تقليل الحركة
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .brands-index *,
  .brands-index *::before,
  .brands-index *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}