/* ================================
   PROMISE - Salla Theme Angel / ملاك
   ================================ */

/* Target text that accidentally escapes the body or footer */
body {
  content: normal;
}

/* Hide rogue div at absolute bottom */
body > div:last-of-type:not([class]):not([id]) {
  display: none !important;
  visibility: hidden !important;
}

/* Header background black */
body header,
body .header,
body .main-header,
body .site-header,
body .store-header,
body .s-header,
body .s-header__wrapper,
body .s-header__inner,
body .main-nav-container,
body .main-menu-container,
body .navbar,
body .navbar-container,
body .mobile-header,
body .header-wrapper,
body .header-middle,
body .header-content {
  background: #0b0b0b !important;
  background-color: #0b0b0b !important;
}

/* Header inner areas transparent */
body header > *,
body .main-header > *,
body .store-header > *,
body .s-header > *,
body .main-nav-container > *,
body .mobile-header > * {
  background: transparent !important;
  background-color: transparent !important;
}

/* KEEP HEADER TEXT & ICONS WHITE (Strictly Top Header Only) */
header.s-header nav *,
header.s-header .s-header__inner *,
.main-nav-container *,
.navbar * {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* Osama Al-Hussaini | Keep WhatsApp above the mobile navigation. */
@media (max-width: 767px) {
  body.is-bottom-header #karzoun-widget-send-button {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Osama Al-Hussaini | Promise brand carousel. */
.pm-bm-section:has(.pm-bm) salla-slider .swiper {
  display: none;
}

.pm-bm-section {
  padding-block: 12px;
}

.pm-bm {
  direction: ltr;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  padding-block: 6px;
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.pm-bm__track {
  display: flex;
  width: max-content;
  animation: pm-bm-scroll var(--pm-bm-dur, 36s) linear infinite;
}

.pm-bm__group {
  display: flex;
  flex: 0 0 auto;
}

.pm-bm__item {
  direction: rtl;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  width: 200px;
  height: 76px;
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid rgb(202 176 149 / 38%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px -6px rgb(75 49 22 / 18%);
}

.pm-bm__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

.pm-bm__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-bm__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #000;
  font-size: 16px;
  font-weight: 800 !important;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: right;
}

@media (min-width: 768px) {
  .pm-bm-section { padding-block: 24px; }

  .pm-bm { padding-block: 10px 6px; }

  .pm-bm__item {
    width: 252px;
    height: 96px;
    margin-right: 16px;
    padding: 10px 16px;
    gap: 12px;
    border-radius: 16px;
  }

  .pm-bm__logo {
    width: 76px;
    height: 76px;
  }

  .pm-bm__name { font-size: 19px; }
}

@keyframes pm-bm-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .pm-bm {
    overflow-x: auto;
    mask-image: none;
  }

  .pm-bm__track { animation: none; }
  .pm-bm__item--dup { display: none; }
}
.pm-bm__item[href*="/brand-124143383"] .pm-bm__logo { overflow: hidden; }
.pm-bm__item[href*="/brand-124143383"] .pm-bm__logo img { scale: 1.15; }