@import url(https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap);
.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phone-block .iti {
  display: block !important;
}

@keyframes scaleBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.animate-btn {
  animation: scaleBounce 0.3s ease-in-out;
  border-color: #4CAF50 !important;
  background-color: #4CAF50 !important;
  color: white !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-pagination div {
  width: 100%;
}
@media (max-width: 576px) {
  .custom-pagination .justify-content-between {
    justify-content: center !important;
  }
}

html[dir=rtl],
html[dir=rtl] body,
html[dir=rtl] button,
html[dir=rtl] input,
html[dir=rtl] optgroup,
html[dir=rtl] select,
html[dir=rtl] textarea {
  font-family: "Cairo", sans-serif !important;
}

.product-title-slider {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-modal-dialog {
  min-width: 600px !important;
  max-width: 600px !important;
  margin: auto;
}

@media (max-width: 575.98px) {
  .order-modal-dialog {
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}
@media (max-width: 575px) {
  #toast-container > div {
    min-width: 300px !important;
  }
}
.rtl-phone-input input {
  padding-right: 73px !important;
}

.rtl-phone-input .iti__flag-container {
  right: 0 !important;
  left: auto !important;
}

.rtl-phone-input {
  direction: rtl;
  text-align: right;
}

.rtl-phone-input .iti {
  direction: rtl;
  text-align: right;
}

.modal-header .btn-close {
  padding: 0.5rem 0.5rem;
  margin: 0;
}

.main-content.rtl .recommended-product-section .product-slider .prev-arrow {
  left: 10px !important;
  right: auto !important;
}
.main-content.rtl .recommended-product-section .product-slider .next-arrow {
  left: 66px !important;
  right: auto !important;
}

/* Prevent accidental clicks on share buttons when modals are open */
body.modal-open .share,
body.modal-open #whatsapp-store-shareModel,
body.modal-open .btn-section.cursor-pointer {
  pointer-events: none !important;
}

/* Aggressive Fix: Hide share modal COMPLETELY when any other modal is open */
/* This prevents "ghost" links from capturing clicks in the background */
body.modal-open #whatsapp-store-shareModel:not(.show) {
  display: none !important;
}

/* Re-enable pointer events for the active modal content */
body.modal-open .modal.show {
  pointer-events: auto !important;
  display: block !important;
}

/* Ensure store modals are always on top of share modal */
#cartModal,
#orderNowModal {
  z-index: 1060 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.share-blocker {
  cursor: default;
  background: transparent;
}

[dir=rtl], .rtl {
  text-align: right !important;
}
[dir=rtl] .text-start, .rtl .text-start {
  text-align: right !important;
}
[dir=rtl] .text-end, .rtl .text-end {
  text-align: left !important;
}
[dir=rtl] .ms-auto, .rtl .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}
[dir=rtl] .me-auto, .rtl .me-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}
[dir=rtl] .dropdown-menu, .rtl .dropdown-menu {
  text-align: right !important;
}
[dir=rtl] .btn-close, .rtl .btn-close {
  margin-left: 0 !important;
  margin-right: auto !important;
}
