body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  font-family: "Zain", sans-serif !important;
}

.bottom--5px {
  bottom: -5px !important;
}

.lang-font {
  font-family: "Zain", sans-serif !important;
}

.font-main,
button,
input,
select,
textarea {
  font-family: "Zain", sans-serif !important;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
}

/* البحث */
#search-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 50;
}

#search-bar.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#search-bar.show {
  transform: translateY(0);
  opacity: 1;
}

/* السلة */
#cart-popup {
  transition: transform 0.3s ease;
}

#cart-popup.show {
  transform: translateX(0);
}

#cartOverlay {
  transition: opacity 0.3s ease;
  opacity: 0;
}

#cartOverlay.show {
  opacity: 1;
}

@media (min-width: 1024px) {
  .hide-on-desktop {
    display: none !important;
  }
}

.modal {
  transition: all 0.3s ease-in-out;
}

@media (min-width: 768px) {
  .modal.show {
    display: flex !important;
    opacity: 1;
    transform: scale(1);
    align-items: center;
  }

  .modal.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
  }
}

.pb-50 {
  padding-bottom: 12.5rem !important;
}

@media (max-width: 767px) {
  .modal {
    align-items: center;
  }

  .modal-content {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
  }

  .modal.show .modal-content {
    transform: translateY(0);
  }

  .modal.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .country-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 12rem;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
  }

  .country-popup.show {
    opacity: 1;
    transform: translateY(0);
  }
}

.active-tab {
  color: #141414 !important;
  font-weight: bold !important;
  background-color: #ececec !important;
  border-radius: 50px !important;
}

.active-subtab {
  color: #000000 !important;
  font-weight: bold;
  background-color: #ececec !important;
  border-radius: 50px !important;
}

.sub-tab-btn {
  width: auto !important;
  white-space: nowrap;
}

.iti__arrow,
.iti--separate-dial-code .iti__selected-dial-code {
  margin-right: 6px;
  margin-left: auto;
}

ul#iti-0__country-listbox {
  left: 0;
  right: auto;
  z-index: 9999 !important;
  text-align: right !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.25s ease;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #1c3658;
}

@media print {
  .no-print {
    display: none;
  }
}
