:root {
  --blue: #3476c4;
  --blue-dark: #2a6cb9;
  --blue-soft: #eaf1f8;
  --text: #17202a;
  --muted: #667085;
  --border: #e4e7ec;
  --background: #f5f7fa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0 !important;
  background: var(--background) !important;
  color: var(--text) !important;
}

header {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08) !important;
  overflow: visible !important;
  z-index: 1000 !important;
}

.site-name-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 1180px !important;
  height: 82px !important;
  min-height: 82px !important;
  margin: 0 auto !important;
  padding: 0 18px !important;
  background: #fff !important;
}

.bazari-brand {
  display: inline-flex !important;
  direction: ltr !important;
  align-items: center !important;
  gap: 11px !important;
  color: var(--blue) !important;
  text-decoration: none !important;
}

.site-title {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--blue) !important;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-size: 31px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -1px !important;
  text-shadow: none !important;
}

.bazari-mark {
  position: relative !important;
  display: inline-block !important;
  width: 37px !important;
  height: 43px !important;
  flex: 0 0 37px !important;
}

.bazari-mark::before,
.bazari-mark::after {
  content: "";
  position: absolute;
  width: 16px;
  border: 3px solid var(--blue);
  border-radius: 15px 15px 15px 4px;
}

.bazari-mark::before {
  left: 2px;
  top: 2px;
  height: 34px;
}

.bazari-mark::after {
  left: 15px;
  top: 9px;
  height: 26px;
  transform: rotate(42deg);
}

.header-actions-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;

  width: 100% !important;
  max-width: none !important;
  min-height: 74px !important;

  margin: 0 !important;
  padding: 12px max(18px, calc((100% - 1180px) / 2)) !important;

  background: var(--blue) !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

.b24-search,
#searchForm.b24-search {
  position: relative !important;
  display: grid !important;

  grid-template-columns:
    minmax(220px, 1.5fr)
    195px
    minmax(200px, 1fr)
    125px
    90px !important;

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

  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 930px !important;
  min-width: 0 !important;

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

  margin: 0 !important;
  padding: 5px !important;
  gap: 0 !important;

  background: #fff !important;
  border: 0 !important;
  border-radius: 27px !important;
  box-shadow: 0 5px 18px rgba(30, 97, 175, 0.24) !important;
  overflow: visible !important;
}

.b24-search > * {
  box-sizing: border-box !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.b24-query-field,
.b24-location-field {
  position: relative !important;
  display: flex !important;
  align-items: center !important;

  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

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

  background: #fff !important;
  border: 0 !important;
  border-left: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.b24-query-field {
  flex: initial !important;
}

.b24-query-field input,
.b24-location-field input {
  display: block !important;

  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

  margin: 0 !important;
  padding: 0 4px 0 10px !important;

  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 14px !important;
}

.b24-query-field input:focus,
.b24-location-field input:focus {
  box-shadow: none !important;
}

.b24-field-icon {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
  margin: 0 10px !important;

  fill: none !important;
  stroke: var(--muted) !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.b24-category-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;

  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

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

  background: #fff !important;
  color: #344054 !important;

  border: 0 !important;
  border-left: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  font-family: inherit !important;
  font-size: 14px !important;
  cursor: pointer !important;
}

.b24-category-trigger:hover {
  background: #f8faff !important;
}

.b24-category-trigger span {
  display: block !important;
  flex: 1 !important;
  min-width: 0 !important;

  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;

  text-align: right !important;
}

.b24-category-trigger b {
  color: #98a2b3 !important;
  font-size: 16px !important;
}

.b24-location-field #citySelect {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.b24-radius {
  display: block !important;

  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;

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

  background: #fff !important;
  color: #475467 !important;

  border: 0 !important;
  border-left: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;

  font-family: inherit !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

.b24-find,
#searchBtn.b24-find {
  position: static !important;
  inset: auto !important;
  transform: none !important;

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

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

  margin: 0 3px !important;
  padding: 0 11px !important;

  background: var(--blue-dark) !important;
  color: #fff !important;

  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: none !important;

  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 800 !important;

  cursor: pointer !important;
}

.b24-find svg {
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.b24-find:hover {
  background: #1e61af !important;
}

.b24-find:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

.b24-query-field .search-suggestions {
  display: none;
  position: absolute !important;
  top: 47px !important;
  right: 0 !important;

  width: 100% !important;
  max-height: 320px !important;
  overflow-y: auto !important;

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

  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16) !important;

  list-style: none !important;
  z-index: 12000 !important;
}

#chosenInfo,
.selected-info {
  display: none !important;
}

#loginBtn,
#addBtn,
#freeBtn {
  position: static !important;
  flex: 0 0 auto !important;

  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 15px !important;

  border: 2px solid #fff !important;
  border-radius: 22px !important;

  font-family: inherit !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

#loginBtn,
#freeBtn {
  background: transparent !important;
  color: #fff !important;
}

#addBtn {
  background: #fff !important;
  color: var(--blue-dark) !important;
}

#profileContainer {
  position: relative !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

#profileBtn {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;

  background: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
}

#profileBtn img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.b24-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.14);
  z-index: 9998;
}

.b24-menu-backdrop.open {
  display: block;
}

.b24-category-menu {
  display: none;
  position: absolute;
  top: 146px;
  right: max(16px, calc((100% - 760px) / 2));

  direction: rtl;
  z-index: 9999;

  filter: drop-shadow(0 15px 30px rgba(16, 24, 40, 0.18));
}

.b24-category-menu.open {
  display: flex;
}

.b24-menu-main,
.b24-menu-sub {
  width: 310px;
  padding: 8px 0;

  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.b24-menu-main button {
  display: grid;
  grid-template-columns: 35px 1fr 18px;
  align-items: center;
  gap: 7px;

  width: 100%;
  height: 48px;
  padding: 0 16px;

  background: #fff;
  color: #1d2939;

  border: 0;
  text-align: right;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.b24-menu-main button:hover,
.b24-menu-main button.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.b24-menu-main svg {
  width: 27px;
  height: 27px;

  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.b24-menu-all {
  border-bottom: 1px solid var(--border) !important;
}

.b24-menu-sub {
  min-height: 300px;
  margin-right: 8px;
  padding: 18px;
}

.b24-menu-sub h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 17px;
}

.b24-menu-sub p {
  color: var(--muted);
  line-height: 1.7;
}

.b24-sub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.b24-sub-list button {
  width: 100%;
  padding: 11px 8px;

  background: #fff;
  color: #344054;

  border: 0;
  border-radius: 7px;

  text-align: right;
  cursor: pointer;
}

.b24-sub-list button:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

main {
  max-width: 1180px !important;
  margin: 24px auto !important;
  padding: 0 12px !important;
}

.sections-container {
  width: 100% !important;
  max-width: 1180px !important;

  grid-template-columns: repeat(10, minmax(80px, 1fr)) !important;
  gap: 10px !important;

  margin: 0 auto 18px !important;
}

.section {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  padding: 11px 5px !important;

  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 9px rgba(29, 41, 57, 0.07) !important;
}

.section:hover,
.section.selected {
  background: var(--blue-soft) !important;
  border-color: var(--blue) !important;
  box-shadow: 0 7px 18px rgba(52, 118, 196, 0.17) !important;
}

.section p {
  color: var(--blue-dark) !important;
}

.section .modern-cat-icon {
  width: 48px !important;
  height: 48px !important;
  padding: 10px !important;

  background: var(--blue-soft) !important;
  border: 0 !important;
  border-radius: 50% !important;

  fill: none !important;
  stroke: var(--blue-dark) !important;
  stroke-width: 1.7 !important;
}

@media (max-width: 1050px) {
  .header-actions-row {
    padding: 10px !important;
  }

  .b24-search,
  #searchForm.b24-search {
    grid-template-columns:
      minmax(160px, 1fr)
      165px
      minmax(150px, 1fr)
      80px !important;

    max-width: none !important;
  }

  .b24-radius {
    display: none !important;
  }

  .b24-find,
  #searchBtn.b24-find {
    width: 74px !important;
    min-width: 74px !important;
  }
}

@media (max-width: 700px) {
  .site-name-row {
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 14px !important;
  }

  .site-title {
    font-size: 25px !important;
  }

  .bazari-mark {
    transform: scale(0.82) !important;
    margin-left: -3px !important;
  }

  .header-actions-row {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    min-height: auto !important;
    padding: 9px 10px !important;
  }

  .b24-search,
  #searchForm.b24-search {
    order: -1 !important;

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

    grid-template-columns:
      minmax(120px, 1fr)
      125px
      58px !important;

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

    border-radius: 13px !important;
  }

  .b24-location-field,
  .b24-radius {
    display: none !important;
  }

  .b24-category-trigger {
    font-size: 12px !important;
  }

  .b24-find,
  #searchBtn.b24-find {
    width: 52px !important;
    min-width: 52px !important;
    padding: 0 !important;
  }

  .b24-find span {
    display: none !important;
  }

  #freeBtn {
    display: none !important;
  }

  .sections-container {
    display: flex !important;
    overflow-x: auto !important;
    gap: 9px !important;
    padding-bottom: 7px !important;
  }

  .section {
    min-width: 92px !important;
  }

  .b24-category-menu {
    position: fixed;
    inset: 12px;
    overflow-y: auto;
    filter: none;
  }

  .b24-category-menu.open {
    display: block;
  }

  .b24-menu-main {
    width: 100%;
  }

  .b24-menu-sub {
    display: none;
  }
}

html body,
html body button,
html body input,
html body select,
html body textarea,
html body a,
html body p,
html body span,
html body div,
html body label,
html body h1,
html body h2,
html body h3,
html body h4,
html body li {
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif !important;
}

:root {
  --b24-ui-font: "Noto Kufi Arabic", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --b24-listing-font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

html body,
html body button,
html body input,
html body select,
html body textarea,
html body label,
html body .site-title,
html body .brand-name,
html body .brand-number,
html body .b24-header-action-btn,
html body .b24-category-trigger,
html body .b24-menu-main button,
html body .b24-menu-sub button,
html body .section p,
html body .ads-row-header h2,
html body .b24-ad-placeholder,
html body .b24-ad-placeholder * {
  font-family: var(--b24-ui-font) !important;
}

html body .ads-slider-card,
html body .ads-slider-card *,
html body .ad-card,
html body .ad-card *,
html body .result-card,
html body .result-card *,
html body .ads-slider-title,
html body .ads-slider-meta,
html body .ads-slider-price {
  font-family: var(--b24-listing-font) !important;
}

@media (min-width: 901px) {
  html body header .header-actions-row {
    margin-bottom: 0 !important;
  }

  html body .b24-home-ad-slot {
    margin-top: -16px !important;
    margin-bottom: -18px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body .b24-ad-placeholder {
    min-height: 52px !important;
    padding: 5px 14px !important;
  }

  html body #sectionsContainer.sections-container {
    margin-top: -42px !important;
    margin-bottom: -8px !important;
  }

  html body #mainAdsSliders {
    margin-top: -28px !important;
    margin-bottom: 16px !important;
  }

  html body .ads-slider-row {
    margin-bottom: 8px !important;
  }
}

@media (max-width: 900px) {
  html body .b24-home-ad-slot {
    margin-top: -8px !important;
    margin-bottom: -10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body .b24-ad-placeholder {
    min-height: 54px !important;
    padding: 5px 10px !important;
  }

  html body #sectionsContainer.sections-container {
    margin-top: -28px !important;
    margin-bottom: 0 !important;
  }

  html body #mainAdsSliders {
    margin-top: -16px !important;
  }
}
