/*=====================[ الأساسيات العامة ]=====================*/
:root {
  --main-blue: #0a2463;
  --light-blue: #d6f0ff;
  --red-alert: #ec1c42;
  --gray-bg: #f3f4f6;
}

/* الخطوط */
.salla-advertisement .container h2 a {
  font-family: 'Apple' !important;
}

/* النصوص الصغيرة */
.text-sm {
  display: block !important;
  color: #3e4857 !important;
}

/*=====================[ الهيدر والبحث ]=====================*/
header.page-header.h-24 {
  background-color: white !important;
}

.header-mainbar .sides-wrap {
  padding: 8px 0 !important;
}

.header-mainbar .search-bar--mobile .s-search-input {
  border-color: #ececec !important;
  --tw-border-opacity: 0.5 !important;
}

/*=====================[ القوائم والتنقل ]=====================*/
#mainnav li>a {
  line-height: 0.8rem !important;
}

#mainnav .inner {
  padding-bottom: 100px !important;
}

#mainnav li.root-level:last-child {
  background-color: var(--main-blue) !important;
}

#mainnav li.root-level:last-child>a {
  color: white !important;
  font-weight: bold !important;
}

@media (min-width: 1025px) {
  .main-menu li.root-level > .sub-menu,
  .main-menu .sub-menu ul > li:not(:first-child) > .sub-menu {
    background: var(--main-blue) !important;
  }

  .main-menu li li > a {
    color: white !important;
  }
}

/*=====================[ الأزرار ]=====================*/
.s-button-btn,
salla-button .s-button-btn {
  background: var(--main-blue) !important;
  color: var(--light-blue) !important;
  border-radius: 8px !important;
}

.product-entry .btn--add-to-cart:not(.deal) button:not(:hover) {
  background: var(--main-blue) !important;
  color: white !important;
}

.s-button-primary-outline:hover {
  background: white !important;
  color: var(--main-blue) !important;
  border: 2px solid var(--main-blue) !important;
}

/*=====================[ الأسعار والعروض ]=====================*/
.cart-item .space-y-1 .item-regular-price {
  display: none !important;
}

.promotion-badge,
.s-cart-summary-count,
.text-red-500 {
  background-color: var(--red-alert) !important;
  color: var(--red-alert) !important;
}

/*=====================[ السلايدرز والبنرات ]=====================*/
section.s-block--photos-slider .carousel-slider .swiper {
  margin: 0 !important;
  padding-left: 0 !important;
}

.carousel-slider .swiper-wrapper > div {
  padding: 0 !important;
  margin-left: 13px !important;
}

.slide--cat-entry h4 {
  display: none !important;
}

.slide--cat-entry i {
  border-radius: 5px;
}

.slide--one-sixth .slide--cat-entry {
  padding: 0 !important;
}

@media (min-width: 1024px) {
  salla-slider .slide--one-sixth {
    width: 12.4% !important;
  }
}

@media (max-width: 767px) {
  salla-slider .slide--one-sixth {
    width: 37% !important;
  }
}

/*=====================[ البنرات - الجوال ]=====================*/
@media (max-width: 767px) {
  .banner-entry {
    height: 7.2rem !important;
    border-radius: 0 !important;
  }

  .s-block--banners,
  .s-block--fixed-banner {
    margin-top: 5px !important;
  }

  .banner-entry .lazy__bg {
    background-size: contain !important;
    background-repeat: no-repeat !important;
  }

  .banner-entry:first-child > a.lazy__bg {
    margin-left: 5px;
  }

  .banner-entry:last-child > a.lazy__bg {
    margin-left: 0 !important;
  }
}

@media (max-width: 1024px) {
  .s-block--banners .container .has-2-photos {
    display: -webkit-box !important;
  }

  .s-block--banners .container .has-2-photos .banner-entry,
  .s-block--banners .container .has-6-photos .banner-entry {
    width: 49% !important;
  }

  .android-device .s-block--banners .container .has-2-photos {
    padding-right: 10px !important;
  }
}

/*=====================[ المنتجات والعروض ]=====================*/
@media (max-width: 767px) {
  .product-entry__image a img {
    height: auto !important;
  }

  .s-block--deals .product-entry .content-wrap {
    padding-top: 150px !important;
  }
}

@media (max-width: 1024px) {
  .grid-flow-row {
    grid-auto-flow: unset;
    display: inline-block;
  }

  .product-entry--vertical .product-entry__content {
    padding-top: 25px;
    margin-bottom: -3.75rem;
  }

  .grid-flow-row .product-entry--vertical {
    position: inherit !important;
    display: inline-block !important;
    width: 49% !important;
  }
}

/*=====================[ الشعار ]=====================*/
.navbar-brand img {
  max-height: 3rem !important;
  content: url("https://cdn.salla.sa/oRmZv/DZKJbjD8RRrItNqGeUs8AwX0DSFY4bCMNOU3nVRo.png") !important;
}

/*=====================[ صور إضافية ]=====================*/
#licenceImage {
  height: 140px !important;
  display: block;
  margin: 0 auto;
}

/*=====================[ مراكز وتوسيط ]=====================*/
.center-between {
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-offer-modal-btn-wrap {
  width: fit-content !important;
}
.s-product-card-entry .s-product-card-sale-price h4{
    color: red !important;
}

.custom-main-normal .main-menu .sub-menu {
    background: var(--main-blue) !important;
}