* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgb(0, 0, 0, 0);
  /* دا بسبب اللون اللي بيظهر عند الضغط على اي عنصر */
}

body {
  font-family: "Tajawal", sans-serif;
  height:100vh;
  /* للغة العربية */
}

section.all-project {
  position: relative;
  max-width: 768px;
  margin: auto;
  padding-bottom: 55px;
}
.bottom-header {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 768px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 -2px 10px #0002;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 10px 0 8px 0;
  z-index: 9999;
  transition: transform 0.3s, opacity 0.3s;
}

.bottom-header.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.header-btn {
  background: #f3f3f3;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #2f4031;
  box-shadow: 0 1px 4px #0001;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.header-btn:hover {
  background: #e0ffe5;
  color: #222;
}

@media (max-width: 768px) {
  .bottom-header {
    width: 100vw;
    left: 0;
    right: 0;
  }
}
/* ////////// Start Load \\\\\\\\\\ */
.shadow-portal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#loader-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 2.5em;
  font-weight: bold;
  letter-spacing: 2px;
  color: #eefff0;
  height: 80px;
}

/* /* إخفاء اللودر بعد انتهاء التحميل  */
.vanish-mode {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-text span.wave-arabic {
  display: inline-block;
  animation: wave-arabic 1.2s infinite ease-in-out;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes wave-arabic {
  0%,
  100% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(-12px);
  }

  40% {
    transform: translateY(0);
  }

  60% {
    transform: translateY(12px);
  }

  80% {
    transform: translateY(0);
  }
}

@media (max-width: 501px) {
  #loader-text {
    font-size: 2em;
  }
}

@media (max-width: 316px) {
  #loader-text {
    font-size: 1.5em;
  }
}

/* ////////// End Load \\\\\\\\\\ */

/* ////////// Start carousel \\\\\\\\\\ */
.overlay_ads {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.carousel-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* background: white; */
  max-width: 600px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  /* padding: 0 0 20px; */
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  /* perspective: 1200px; */
  overflow: hidden;
}

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  position: relative;
}

.slide_ads {
  position: absolute;
  /* max-width: 550px; */
  height: 100%;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  transition: transform 1s ease, opacity 1s ease;
  opacity: 0;
  /* Hide all slides initially */
}

.slide_ads img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

@media (max-width: 600px) {
  .carousel-modal,
  .slide_ads img {
    border-radius: 0;
  }
}

.text-buttons {
  display: flex;
  /* margin-top: 20px; */
  /* gap: 20px; */
  align-items: center;
  position: absolute;
  width: 100%;
  justify-content: space-between;
}

.text-buttons button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #a14bef;
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.text-buttons button:hover {
  background-color: #7e38c7;
}

.text-buttons button svg.arrow-next,
.text-buttons button svg.arrow-prev {
  width: 22px;
  height: 22px;
}

.close-button-ads,
.close-icon {
  position: absolute;
  top: 8px;
  right: 5px;
  font-size: 22px;
  /* background: #EDE0D4; */
  cursor: pointer;
  border: none;
  overflow: hidden;
  width: 50px;
  height: 31px;
  display: flex;
  align-items: center;
  border-radius: 19px;
  /* color: #8D6F5A; */
  justify-content: center;
  z-index: 1;
  transition: background 0.3sease;
}
.close-button-ads {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.close-button-ads {
  background: #dbcfb7;
  color: #381710;
}
/* ////////// End carousel \\\\\\\\\\ */

/* ////////// End Slider \\\\\\\\\\ */
article.slider {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.slides {
  width: 500%;
  height: 280px;
  display: flex;
}

.slides input {
  display: none;
}

.slide {
  width: 20%;
  /*transition: 2s;*/
  height: 280px;
}

.slide img {
  width: 100%;
  height: 100%;
}

/*css for manual slide navigation*/
.navigation-manual {
  position: absolute;
  width: 800px;
  margin-top: -40px;
  display: flex;
  justify-content: center;
}

#radio1:checked ~ .first {
  margin-left: 0;
}

#radio2:checked ~ .first {
  margin-left: -20%;
}

#radio3:checked ~ .first {
  margin-left: -40%;
}

#radio4:checked ~ .first {
  margin-left: -60%;
}

/*css for automatic navigation*/
.navigation-auto {
  position: absolute;
  display: flex;
  width: 800px;
  justify-content: center;
  margin-top: 460px;
}

.navigation-auto article {
  border: 2px solid #40d3dc;
  padding: 5px;
  border-radius: 10px;
  transition: 1s;
}

.navigation-auto article:not(:last-child) {
  margin-right: 40px;
}

@media (max-width: 455px) {
  article.slider,
  .slides,
  .slide {
    height: 230px;
  }
}

@media (max-width: 390px) {
  article.slider,
  .slides,
  .slide {
    height: 200px;
  }
}

/* ////////// End Slider \\\\\\\\\\ */
#popup_ads {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* background: white; */
  padding: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  z-index: 1001;
}

#popup_ads .close-ads {
  cursor: pointer;
  display: block;
  text-align: right;
  font-size: 20px;
  font-weight: bold;
}

.overlay_ads {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: none;
}

/* ////////// Start Language \\\\\\\\\\ */
article.button-and-icon-globe {
  flex-direction: row;
  display: flex;
  gap: 5px;
  align-items: center;
  position: absolute;
  left: 10px;
  cursor: pointer;
}

#languagespan {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

#overlay_language {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1001;
}

#overlay_language.active {
  display: block;
}

#languageMenu {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 768px;
  box-shadow: 0 4px 6px rgb(0, 0, 0);
  transform: translateY(100%);
  transition: transform 0.3sease;
  z-index: 10000;
  border-radius: 20px 20px 0 0;
}

#languageMenu.visible {
  transform: translateX(-50%) translateY(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgb(241, 205, 171);
}

.menu-header span {
  font-size: 18px;
  font-weight: bold;
}

.menu-header i {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

button:focus,
#languageMenu {
  outline: none;
}

ul.name-lang {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.name-lang li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-bottom: 1px solid rgb(241, 205, 171);
  list-style: none;
  cursor: pointer;
}

ul.name-lang li a {
  text-align: center;
  font-size: 16px;
  text-decoration: none;
}

/* ////////// End Language \\\\\\\\\\ */

/* ////////// Start \\\\\\\\\\ */
.icon-heart-and-profile-and-discription-and-button-and-icon-globe {
  display: flex;
  flex-direction: row;
  padding: 10px;
  position: relative;
}

.profile-and-discription {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: auto;
  gap: 10px;
}

.profile-pic {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 0 5px;
  margin-top: -56px;
  transition: transform 0.2s;
  cursor: pointer;
}

.profile-pic:hover {
  transform: scale(1.1);
}

.overlay,
.popup-overlay {
  position: fixed;
  top: 0;
  margin: auto;
  width: 768px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

@media (max-width: 768px) {
  .overlay,
  .popup-overlay {
    width: 100%;
  }
}

.popup.popup2 {
  padding: 20px;
  max-height: 100vh;
  min-width: 275px;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3sease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.overlay img {
  width: 280px;
  height: 280px;
  border-radius: 10px;
}

.modal-open {
  overflow: hidden;
  height: 100vh;
}

article.overlay-card,
.overlay-card-gride {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 70%);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbcfb7;
  z-index: 1;
}

.overlay-card-gride-img {
  background-color: rgb(0 0 0 / 70%);
  z-index: 1;
}

.product,
article.overlay-card {
  border-radius: 25px 0 10px 10px;
}

.overlay-card-gride {
  border-radius: 10px 10px 25px 10px;
}

button.close-share-branch {
  background: rgb(241, 205, 171);
  padding: 5px 10px;
  font-size: 15px;
  border-radius: 12px;
}

.content-share-branch {
  padding: 20px;
  border-radius: 10px;
  display: flex;
  text-align: center;
  overflow-y: auto;
  gap: 10px;
  flex-direction: row;
  width: 100%;
  position: relative;
}

.btn-copy-link-and-copied-link {
  display: flex;
  flex-direction: column;
}

.btn-copy-link-and-copied-link svg {
  width: 50px;
  height: 50px;
}

.close-profile,
.close-btn {
  position: absolute;
  top: 20px;
  right: 10px;
  font-size: 22px;
  cursor: pointer;
  border: none;
  overflow: hidden;
  width: 50px;
  height: 31px;
  display: flex;
  align-items: center;
  border-radius: 19px;
  justify-content: center;
  z-index: 1;
  transition: background 0.3sease;
}

.copy-notification {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out;
}

@media (max-width: 425px) {
  .profile-pic {
    width: 90px;
    height: 90px;
    margin-top: -57px;
  }
}
span.price-addition {
  font-size: 13px;
}
h1.place-name {
  font-family: sans-serif;
  font-size: 18px;
  font-family: "montserrat", sans-serif;
  margin: 0;
}
h1.place-name.description {
  font-size: 12px !important;
  margin: 0;
  text-align: center;
}
.socialmedia {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}

.socialmedia a {
  text-decoration: none;
}

.socialmedia a i,
svg.lucide.lucide-phone-call-icon.lucide-phone-call,
svg.lucide.lucide-map-pin-icon.lucide-map-pin,
.icon-clock,
.icon-facebook,
svg.icon-tiktok,
fa-solid.fa-link {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 21px;
  height: 21px;
}

.icon-clock {
  position: absolute;
  right: 10px;
  top: 10px;
}

.work-timings {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 15px;
}

.time-popup {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding-bottom: 7px;
}

.time-popup .day {
  text-align: right;
}

.data-time {
  direction: rtl;
  display: flex;
  gap: 10px;
}

body.modal-open {
  overflow: hidden;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.popup.popup1 {
  padding: 20px;
  width: 570px;
  height: 100vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3sease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

@media (max-width: 598px) {
  .popup.popup1 {
    width: 100%;
    padding: 5px;
    border-radius: 0;
  }
}

button.openPopup.branch {
  position: absolute;
  top: 0;
  margin: 10px;
  padding: 4px 13px;
  font-size: 15px;
  box-shadow: 0 4px 6px rgb(0, 0, 0);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#install-btn,
#ios-install-btn {
  position: absolute;
  top: 0;
  right: 0;
  margin: 10px;
  padding: 4px 13px;
  background-color: #ede0d4;
  color: #8d6f5a;
  font-size: 15px;
  box-shadow: 0 4px 6px rgb(0, 0, 0);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

article.profile-pic-branch-and-place-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  margin-top: 46px;
  gap: 10px;
}

img.profile-pic-branch {
  width: 100px;
  border-radius: 50%;
  height: 100px;
}

h2.name-branches {
  font-size: 15px;
}

article.branches-all {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  flex-direction: column;
  padding: 10px;
  gap: 13px;
  margin-bottom: 45px;
}

article.branches-place {
  width: 100%;
  height: 75px;
  flex-direction: row;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 10px 0 10px 10px;
}

a.img-place-description-place {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  text-decoration: none;
}

article.img-place {
  width: 80px;
  height: 60px;
}

article.img-place img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

article.description-place {
  font-size: 12px;
  width: 237px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  direction: rtl;
  margin: auto;
  text-align: center;
}

@media (max-width: 768px) {
  article.description-place {
    font-size: 14px;
  }
}

@media (max-width: 412px) {
  article.description-place {
    width: 163px;
    font-size: 12px;
  }

  article.img-place {
    width: 64px;
  }
}

.menu-container-branch {
  display: inline-block;
  margin: 20px;
  position: relative;
}

.menu-icon-branch {
  cursor: pointer;
  font-size: 24px;
  justify-content: center;
  align-items: center;
  display: inline-block;
  text-align: center;
}

.dropdown-branch {
  position: absolute;
  top: 23px;
  right: 9px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  overflow: hidden;
  z-index: 1000;
  width: 139px;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.4sease, transform 0.4sease;
}

.dropdown-branch ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-branch li {
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease;
}

.menu-icon-branch.active .dropdown-branch {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

li.item-share-branch,
li.item-place-branch {
  border-bottom: rgb(241, 205, 171) solid 1px;
}

span.share-branch,
a.place-branch,
a.menu-branch {
  color: #8d6f5a;
  display: flex;
  align-items: center;
  flex-direction: row;
  text-decoration: none;
  gap: 10px;
  justify-content: right;
  font-size: 15px;
}

a.menu-branch {
  margin-right: 30px;
}

a.place-branch svg {
  width: 20px;
}

.btn-copy-link {
  display: block;
  margin: 10px auto;
  padding: 10px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  width: max-content;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-copy-link:hover {
  background: #0056b3;
  color: white;
}

.popup-share-branch {
  display: none;
  position: fixed;
  flex-direction: column;
  border-radius: 12px;
  left: 0;
  width: 100%;
  height: 300px;
  background: white;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* ////////// End \\\\\\\\\\ */

/* ////////// Start \\\\\\\\\\ */
.menu-container {
  position: sticky;
  overflow-x: scroll;
  display: flex;
  flex-direction: row;
  direction: rtl;
  width: 100%;
  top: 0;
  justify-content: space-around;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 5px;
  z-index: 1000;
}

.menu-container a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 550;
  gap: 10px;
  font-size: 13px;
  text-transform: capitalize;
}
.menu-container a span {
  text-align: center;
}
.menu-container a img {
  width: 73px;
  height: 73px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: #40d3dc solid 2px;
}

::-webkit-scrollbar {
  display: none;
}

/* ////////// End \\\\\\\\\\ */

/* ////////// Start \\\\\\\\\\ */
.toggle-container {
  margin-top: 10px;
  gap: 10px;
  border-radius: 25px;
  border: 2px solid transparent;
  border: rgb(241, 205, 171) solid 2px;
  margin: auto;
  width: 90px;
  flex-direction: row;
  display: flex;
}

.random1 {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 15px;
  cursor: pointer;
}

.random2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80px;
  height: 35px;
  border: #8d6f5a solid 2px;
  border-radius: 25px;
  position: relative;
  padding: 10px;
}

.random2 i {
  font-size: 20px;
}

.random3 {
  width: 35px;
  height: 35px;
  border: #876e5f solid 2px;
  border-radius: 50%;
  position: absolute;
  transition: 0.3s;
  margin-left: -11px;
}

.random2.active .random3 {
  transform: translateX(43px);
}

.random4 {
  display: none;
  font-size: 18px;
  margin-bottom: 20px;
}

.random4.active {
  display: block;
}

/* ////////// End \\\\\\\\\\ */

/* ////////// Start According \\\\\\\\\\ */

article.countainer-item {
  max-width: 768px;
  margin: auto;
}

article.relative {
  display: flex;
  width: 49%;
  /* background: aliceblue; */
}

@media (max-width: 642px) {
  article.relative {
    width: 100%;
  }
}

.custom-container {
  margin: 0 auto;
}

.custom-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background: #f8e1e7; */
  border-radius: 8px;
  width: 96%;
  margin: auto;
  padding: 5px 10px;
  height: 65px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-transform: capitalize;
  transition: background-color 0.3s;
}

.custom-box-product {
  display: flex;
  align-items: center;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  gap: 10px;
  /* background: #f8e1e7; */
  direction: rtl;
  height: 85px;
  cursor: pointer;
  position: relative;
  text-transform: capitalize;
  /*    justify-content: space-between;*/
  width: 100%;
  padding: 5px;
}

.custom-box-product,
article.overlay-card {
  border-radius: 25px 0 10px 10px;
}

.custom-heading {
  font-size: 20px;
  font-weight: bold;
  text-align: right;
}

.accordion-content {
  padding: 16px;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  padding: 0;
  margin: 0;
}

.accordion-content.active {
  display: block;
  opacity: 1;
  transition: max-height 0.4s ease-in, opacity 0.3s ease-in-out;
}

.custom-spacing > * + * {
  margin-top: 12px;
}

.custom-spacing {
  margin: 10px;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  direction: rtl;
  align-items: end;
}

.img-product {
  width: 78px;
  height: 100%;
}

.img-product img {
  width: 100%;
  height: 97%;
  border-radius: 3px;
  display: flex;
  align-items: center;
}

.custom-text {
  font-size: 14px;
}

.img-main-product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.img-main-product i,
.img-main-product img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heading-text-share {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 35px 0 10px;
  font-size: 15px;
}

.image-name-container-share {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: auto;
}

.image-name-container-share #shareImage {
  border-radius: 12px;
  width: 200px;
  height: 200px;
}

.image-name-container-share .product-name-share {
  color: #0056b3;
}

.button-container {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  overflow-x: scroll;
  scrollbar-width: none;
  flex-direction: row;
  align-items: center;
  direction: rtl;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.copy-button,
.whatsapp-button,
.telegram-button,
.facebook-button,
.messenger-button,
.twitter-button,
.tiktok-button,
.snapchat-button,
.linkedin-button {
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  display: flex;
  gap: 5px;
}

.copy-button i,
.whatsapp-button img,
.telegram-button img,
.facebook-button img,
.messenger-button img,
.tiktok-button img,
.twitter-button img,
.snapchat-button img,
.linkedin-button img {
  width: 45px;
  font-size: 20px;
}

.copy-button i {
  border-radius: 50%;
  /* border: #0056b3 solid 2px; */
  padding: 10px;
}

body.popup-open {
  overflow: hidden;
}

.popup-container {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1001;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
}

.popup-container.active {
  visibility: visible;
  opacity: 1;
}

.popup_content {
  width: 100%;
  max-width: 768px;
  border-radius: 20px 20px 0 0;
  text-align: center;
  padding: 20px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 59vh;
  display: flex;
  flex-direction: column;
}

.popup-container.active .popup_content {
  transform: translateY(0);
}

.share-popup-container {
  position: fixed;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.5); */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.share-popup-container.active {
  visibility: visible;
  opacity: 1;
  z-index: 1001;
}

.share-popup {
  /* background: white; */
  border-radius: 12px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  height: 100%;
  text-align: center;
  padding: 5px;
}

@media (min-width: 570px) {
  .share-popup {
    width: 570px;
  }
}

@media (max-width: 570px) {
  .share-popup {
    width: 100%;
    border-radius: 0;
  }
}

.accordion-icon {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.icon-rotated {
  transform: rotate(180deg);
}

.menu-container {
  position: sticky;
  overflow-x: scroll;
  display: flex;
  flex-direction: row;
  direction: rtl;
  width: 100%;
  top: 0;
  justify-content: space-around;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 5px;
  z-index: 1000;
}

article.content-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
  justify-content: center;
}

.content-product h3 {
  margin: 0;
  font-size: 13px;
  overflow: hidden;
  text-transform: capitalize;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.description_text {
  font-size: 12px;
  width: 237px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .content-product h3,
  .description_text {
    width: 225px;
  }
}

@media (max-width: 715px) {
  .content-product h3,
  .description_text {
    width: 199px;
  }
}

@media (max-width: 642px) {
  .content-product h3,
  .description_text {
    width: 411px;
  }
}

@media (max-width: 562px) {
  .content-product h3,
  .description_text {
    width: 394px;
  }
}

@media (max-width: 510px) {
  .content-product h3,
  .description_text {
    width: 345px;
  }
}

@media (max-width: 480px) {
  .content-product h3,
  .description_text {
    width: 334px;
  }
}

@media (max-width: 460px) {
  .content-product h3,
  .description_text {
    width: 296px;
  }
}

@media (max-width: 429px) {
  .content-product h3,
  .description_text {
    width: 280px;
  }
}

@media (max-width: 408px) {
  .content-product h3,
  .description_text {
    width: 262px;
  }
}

@media (max-width: 379px) {
  .content-product h3,
  .description_text {
    width: 237px;
  }
}

@media (max-width: 367px) {
  .content-product h3,
  .description_text {
    width: 222px;
  }
}

@media (max-width: 353px) {
  .content-product h3,
  .description_text {
    width: 206px;
  }
}

@media (max-width: 335px) {
  .content-product h3,
  .description_text {
    width: 194px;
  }
}

@media (max-width: 319px) {
  .content-product h3,
  .description_text {
    width: 190px;
  }
}

@media (max-width: 308px) {
  .content-product h3,
  .description_text {
    width: 170px;
  }
}

article.calories-all {
  direction: rtl;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.unit-according {
  display: flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 0 0 0 5px;
  gap: 5px;
  font-size: 14px;
  flex-direction: row;
  position: absolute;
  bottom: 4px;
  font-style: italic;
  font-weight: bold;
}

.icon-plus-calories-all-price i.fa-solid.fa-cart-shopping {
  /* width: 35px;
    height: 35px; */
  padding: 9px;
  gap: 5px;
  top: 0;
  position: absolute;
  background: #dbcfb7;
  color: #381710;
  align-items: center;
  border-radius: 25px 0 10px 0;
  display: flex;
  justify-content: center;
  font-size: 15px;
}

span.number-calories {
  display: flex;
  flex-direction: row;
  align-items: center;
}
article.stickyHeader {
  margin-bottom: 62px;
}
.stickyHeader img {
  width: 210px;
  height: 210px;
  border-radius: 10px;
  transform: translate(-50%);
  -webkit-transform: translate(-50%);
  position: absolute;
  top: -185px;
  left: 50%;
}

.stickyHeader h2 {
  text-transform: capitalize;
}

.stickyHeader .content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 10px;
  text-align: right;
  max-height: 35vh;
  margin: 5px 0 5px;
}

.share-btn i.fa-solid.fa-share {
  position: absolute;
  top: 8px;
  left: 5px;
  font-size: 22px;
  /* background: #EDE0D4; */
  cursor: pointer;
  border: none;
  overflow: hidden;
  width: 50px;
  height: 31px;
  display: flex;
  align-items: center;
  border-radius: 19px;
  justify-content: center;
  z-index: 1;
  transition: background 0.3sease;
}

.title-name-and-desc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 10px 0 0px;
}

article.pound-description-and-calories-all-popframe {
  display: flex;
  align-items: center;
  position: absolute;
  flex-direction: column;
  right: 0px;
  bottom: 7px;
  justify-content: space-between;
  width: 100%;
}

span.pound-description {
  font-weight: bold;
  gap: 5px;
  direction: rtl;
  border-radius: 10px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  margin-left: -10px;
}

article.size-options {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 13px;
}
article.size-options button {
  padding: 5px;
  border-radius: 10px;
  border: none;
  background: none;
  box-shadow: 0 0 5px black;
}
.size-options button.active {
  font-weight: bold;
}

.close-btn-share {
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 80%;
  margin-top: 10px;
  cursor: pointer;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.text-additional {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  direction: rtl;
  margin: 10px 0 5px 0;
}

article.checkbox-and-name-item-add {
  display: flex;
  align-items: center;
  gap: 10px;
}

label.checkbox-and-name-item-add-and-price-additional {
  width: 100%;
  display: flex;
  padding-bottom: 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: solid 1px rgb(241, 205, 171);
}

input[type="checkbox"]:checked::before {
  content: "✔";
  /* إضافة علامة صح */
  position: absolute;
  font-size: 18px;
  font-weight: 700;
  top: -2px;
  left: 4px;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
input[type="checkbox"]:checked {
  border-color: white;
}
.name-item-add {
  font-size: 14px;
}

article.calories-all-popframe {
  direction: rtl;
  color: #8d6f5a;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
}

span.price-addition {
  display: flex;
  align-items: center;
}

article.overlay-card,
.overlay-card-gride {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 70%);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ////////// End According \\\\\\\\\\ */

/* ////////// Start Gride \\\\\\\\\\ */
/* .content.hidden {} */
.item-product-all {
  display: flex;
  flex-direction: column;
}

.cards-gride {
  padding: 10px;
  flex-wrap: wrap;
  display: flex;
  gap: 60px 15px;
  align-items: center;
  justify-content: center;
}

article.grid-item-product {
  width: 160px;
  height: 194px;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  border-radius: 10px 10px 25px;
  position: relative;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  cursor: pointer;
}

@media (max-width: 320px) {
  article.grid-item-product {
    width: 152px;
  }

  .cards-gride {
    padding: 5px;
    gap: 60px 6px;
  }
}

h1.name-items-gride {
  display: flex;
  align-items: center;
  direction: rtl;
  margin: 20px 20px 55px;
  font-size: 15px;
  justify-content: center;
}

.unit-gride-offer {
  position: absolute;
  bottom: 4px;
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.unit-gride-collect img.offer {
  width: 50px;
  height: 50px;
  position: absolute;
  top: -8px;
  right: -4px;
}

img.image-product-gride {
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
}

img.image-product-gride,
.overlay-card-gride-img {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  align-items: center;
  display: flex;
  top: -52px;
  position: absolute;
  justify-content: center;
}

h1.name-product-gride {
  font-size: 13px;
  direction: rtl;
  margin-top: 53px;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  justify-content: center;
}

article.calories-all-gride {
  display: flex;
  align-items: center;
  direction: rtl;
  font-size: 12px;
  gap: 3px;
}

.plus-grid i.fa-solid.fa-cart-shopping {
  position: absolute;
  /* width: 35px; */
  /* height: 35px; */
  padding: 8px 10px;
  bottom: 0;
  background: #dbcfb7;
  color: #381710;
  align-items: center;
  border-radius: 10px 0 25px 0;
  display: flex;
  justify-content: center;
  direction: rtl;
  gap: 5px;
  font-size: 15px;
}

.unit-grid {
  display: flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 0 0 0 5px;
  gap: 5px;
  font-size: 12px;
  flex-direction: row;
  position: absolute;
  bottom: 4px;
}
del.discount-gride,
span.pound-gride {
  direction: rtl;
  display: flex;
  align-items: center;
  padding-top: 10px;
}
.pound-gride {
  font-weight: bold;
  font-size: 15px;
  font-style: italic;
}
del.discount-gride {
  padding-top: 10px;
  font-size: 10px;
}

span.pound-gride {
  gap: 4px;
  font-size: 12px;
}
.unit-gride-size {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #fff;
  flex-direction: row;
  position: absolute;
  bottom: 0;
  gap: 5px;
  direction: rtl;
}

/* ////////// End Gride \\\\\\\\\\ */

/* //////////  Start Description \\\\\\\\\\ */

.stickyHeader h2,
.image-name-container-share .product-name-share {
  font-size: 13px;
  line-height: 25px;
  letter-spacing: 0.38px;
  margin: 0 16px 7px;
}

.stickyHeader p {
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.32px;
  margin-bottom: 10px;
  text-align: center;
}

.popFrame .content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 10px;
  text-align: right;
  max-height: 50vh;
  /* تحديد أقصى ارتفاع لمحتوى النص */
  margin: 5px 0 5px;
}

.item-add {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: rtl;
  gap: 10px;
}

.text-additional {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  margin: 10px 0 5px 0;
}

label.checkbox-and-name-item-add-and-price-additional {
  width: 100%;
  display: flex;
  padding: 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: solid 1px rgb(241, 205, 171);
}

article.checkbox-and-name-item-add {
  display: flex;
  align-items: center;
  gap: 10px;
}

article.name-item-add-and-calories-all-popframe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

article.calories-all-popframe {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 3px;
}

input[type="checkbox"] {
  /* إخفاء الـ checkbox الأصلي */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border: 2px solid rgb(241, 205, 171);
  /* تحديد الحدود */
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked::before {
  content: "✔";
  /* إضافة علامة صح */
  position: absolute;
  font-size: 18px;
  font-weight: 700;
  top: -2px;
  left: 4px;
}

.plus-grid i.fa-solid.fa-cart-shopping:hover,
.icon-plus-calories-all-price i.fa-solid.fa-cart-shopping:hover {
  background: white;
}

.price-discription {
  font-size: 20px;
  margin-top: 20px;
}

article.pound-description-and-calories-all-popframe
  article.calories-all-popframe {
  direction: rtl;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  font-weight: bold;
  margin-right: -10px;
}

span.unit-description {
  display: flex;
  flex-direction: row;
  align-items: center;
  box-shadow: 0 4px 6px rgb(0, 0, 0);
}

del.discount-description {
  padding: 5px;
  height: 30px;
  direction: rtl;
  border-radius: 0 0 10px 0;
  display: flex;
  align-items: center;
  font-size: 15px;
}

.goBack {
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}

/* //////////  End Description \\\\\\\\\\ */

/* //////////  Start Footer \\\\\\\\\\ */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 12px 12px 0 0;
}

.popup.popup3 {
  padding: 20px;
  max-height: 100vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3sease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

span.open-popup-footer {
  font-size: 17px;
  cursor: pointer;
  /* تغيير المؤشر عند المرور فوق النص */
  color: #fff;
}

.click-here {
  text-decoration: underline;
  font-weight: 600;
}

img.logo-quick-menu {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 0 5px;
}

h2.content-our {
  font-size: 18px;
}

.socialmedia-our {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
}

.socialmedia-our a {
  text-decoration: none;
}

.socialmedia-our a svg.gmail-activity,
svg.instagram-activity,
svg.facebook-acticity,
svg.whatssapp-activity,
svg.phone-activity {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  display: flex;
}

/* //////////  End Footer \\\\\\\\\\ */
article.name-product-gride-and-detailts-product-gride {
  text-align: center;
}
/*  */
.order-btn {
  background: linear-gradient(90deg, #40c351 60%, #2f4031 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1em;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 50% !important;
  margin-top: 10px;
  cursor: pointer;
  font-size: 14px;
  direction: ltr;
}

.order-btn:hover {
  background: linear-gradient(90deg, #2f4031 60%, #40c351 100%);
  transform: scale(1.05);
}

/* تنسيق العداد */
.quantity-control {
  /* background: #fff; */
  border-radius: 20px;
  /* box-shadow: 0 1px 6px #2f403133; */
  padding: 4px 10px;
  margin: 0 8px;
  font-size: 1.1em;
  display: inline-flex;
  align-items: center;
  /* border: 1px solid #a5b8a8; */
}

.quantity-label {
  font-weight: bold;
  color: #2f4031;
  margin-right: 6px;
  font-size: 1em;
}

.quantity-btn:hover {
  transform: scale(1.1);
}

.quantity-input {
  border: none;
  background: transparent;
  width: 38px;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  outline: none;
}

article.orderNow-back {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 10px;
  padding: 0 10px;
  direction: rtl;
}

.stickyHeader .back-btn,
.close-btn-share {
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}

/* إخفاء الأسهم من input[type="number"] الخاص بالكمية في جميع المتصفحات */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input {
  -moz-appearance: textfield;
}

button.quantity-btn,
.quantity-btn-plus {
  background: none;
  border: none;
  box-shadow: 0 0 5px black;
  border-radius: 50%;
  padding: 6px;
  font-size: 14px;
  font-weight: 500;
}

.quantity-btn-plus {
  background-color: #222;
  color: white;
}

/*  */
button.cart-plus-btn {
  background: red;
  border: none;
  border-radius: 3px;
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
}

button.cart-minus-btn {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 3px;
  background: none;
  border: solid 1.5px #ccc;
}

.count-productqqq {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.title-product-and-count-shop {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  gap: 7px;
  flex-direction: column;
}

.cart-comment {
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  border-radius: 0 0 12px 12px;
  border: 1px solid #ccc;
  position: absolute;
  bottom: 0;
  right: 0;
}

article.popup.popup7 {
  border-radius: 12px;
  height: 100%;
  width: 100%;
}

article.popup.popup7 b {
  direction: rtl;
  display: flex;
}

.edit-extras-list {
  display: flex;
  /* flex-wrap: wrap; */
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 11px;
  /* padding: 26px; */
  max-height: 100%;
  overflow-x: auto;
}

/* أضف هذا في style.css أو داخل <style> في رأس الصفحة لتحسين الشكل */
.cart-extras-toggle {
  font-weight: bold;
  color: #40c351;
  margin-right: -73px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-extras-list {
  text-align: right;
  /* padding-right: 10px; */
  margin-right: -78px;
  margin-bottom: 30px;
}

#cart-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

span.cart-count {
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgpoduct-andtitile-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
  direction: rtl;
}

#apply-extras-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.apply-extras-modal-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  max-width: 320px;
  margin: auto;
  text-align: center;
}

.apply-extras-modal-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

#apply-extras-yes {
  margin: 0 10px 0 0;
  padding: 8px 24px;
  background: #40c351;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#apply-extras-no {
  margin: 0 10px 0 0;
  padding: 8px 24px;
  background: #ccc;
  color: #333;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/*  */
.navigation {
  width: 100%;
  max-width: 735px;
  height: 60px;
  /* background: #ffffff; */
  position: relative;
  bottom: 0;
  position: fixed;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  margin: 0 16px;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: 0 0 5px black;
}

.navigation.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.navigation ul {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.navigation ul li {
  position: relative;
  list-style: none;
  width: 25%;
  min-width: 50px;
  height: 60px;
  z-index: 2;
}

#cart-icon-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  padding: 0 6px;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  display: none;
  box-shadow: 0 1px 4px #0002;
  font-weight: bold;
  z-index: 10;
}

.navigation ul li span.group-home-nav,
.navigation ul li span.group-cart-icon-nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: 0.5s;
}

.navigation ul li span.group-home-nav .cart-icon,
.navigation ul li span.group-cart-icon-nav .cart-icon,
.navigation ul li span.group-home-nav .icon,
.navigation ul li span.group-cart-icon-nav .icon {
  position: relative;
  display: block;
  line-height: 65px;
  font-size: 1.5em;
  text-align: center;
  transition: 0.5s;
  color: #222327;
}

.navigation ul li span.group-home-nav .cart-icon i,
.navigation ul li span.group-cart-icon-nav .cart-icon i,
.navigation ul li span.group-home-nav .icon i,
.navigation ul li span.group-cart-icon-nav .icon i {
  padding: 10px;
  border-radius: 50%;
  /* box-shadow: 0 0 5px black; */
}

.navigation ul li.active span .cart-icon,
.navigation ul li.active span .cart-icon,
.navigation ul li.active span .icon,
.navigation ul li.active span .icon {
  transform: translateY(-32px);
  /* color: #2196f3; */
}

.navigation ul li span.group-home-nav .text,
.navigation ul li span.group-cart-icon-nav .text {
  position: absolute;
  background: #2196f3;
  color: #fff;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 400;
  font-size: 0.75em;
  letter-spacing: 0.05em;
  transition: 0.5s;
  opacity: 0;
  transform: translateY(15px);
}

.navigation ul li.active span .text,
.navigation ul li.active span .text {
  opacity: 1;
  transform: translateY(-4px);
}

@media (max-width: 500px) {
  .navigation {
    max-width: 100%;
    height: 55px;
    margin: 0 5px;
  }

  .navigation ul {
    max-width: 100%;
    width: 100%;
    padding: 0 5px;
  }

  .navigation ul li {
    width: 25%;
    min-width: 40px;
    height: 55px;
  }

  .navigation ul li span.group-home-nav .cart-icon,
  .navigation ul li span.group-cart-icon-nav .cart-icon,
  .navigation ul li span.group-home-nav .icon,
  .navigation ul li span.group-cart-icon-nav .icon {
    line-height: 56px;
  }
}

@media (max-width: 768px) {
  .navigation {
    max-width: 100%;
    margin: auto;
    border-radius: 12px 12px 0 0;
  }
}
.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    /* background: #fff; */
    border-radius: 50%;
    box-shadow: 0 2px 8px #0002;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
}

.floating-cart-btn:hover {
    box-shadow: 0 4px 16px #0003;
    background: #f3f3f3;
}

.dragging-cart-item {
    transition: transform 0.2s;
    z-index: 10;
    position: relative;
}

/*  */
.menu-container a.active-section {
    background: #40c351;
    color: #fff !important;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

/* ...existing code... */
.cart-flip-container {
    perspective: 1200px;
    position: relative;
    min-height: 300px;
}

.cart-flip-inner {
    transition: transform 0.6s cubic-bezier(.4, 2, .6, 1);
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    min-height: 300px;
}

.cart-flip-front,
.cart-flip-back {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
}

.cart-flip-back {
    transform: rotateY(180deg);
}

.cart-flip-inner.flipped {
    transform: rotateY(180deg);
}
/*  */
.check-in-edit {
  /* background: #f3f3f3; */
  padding: 6px 12px;
  direction: rtl;
  display: flex;
  align-items: center;
  border-radius: 8px;
  gap: 5px;
  /* display: inline-block; */
  cursor: pointer;
}

.total-price-in-edit {
  margin-bottom: 20px;
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
}

.countity-in-edit {
  margin-bottom: 15px;
  display: flex;
  direction: rtl;
  gap: 5px;
}

#checkout-summary {
  background: #fff;
  padding: 15px 10px 10px 10px;
  border-radius: 10px;
  margin-bottom: 18px;
  text-align: right;
  box-shadow: 0 2px 8px #0001;
  direction: rtl;
  display: flex;
  flex-direction: column;
}
/*  */
html[lang="ar"] .menu-header {
  direction: ltr; /* محاذاة النصوص من اليمين لليسار */
  display: flex;
}

/* عند تحديد اللغة الإنجليزية */
html[lang="en"] .menu-header {
  direction: rtl; /* محاذاة النصوص من اليسار لليمين */
  display: flex;
}
/* يمكنك وضعه في ملف style.css أو داخل <style> في رأس الصفحة */
.dragging-cart-item {
  transition: transform 0.2s;
  z-index: 10;
  position: relative;
}

/*  */
.menu-container a.active-section {
  background: #40c351;
  color: #fff !important;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}

/* ...existing code... */
.cart-flip-container {
  perspective: 1200px;
  position: relative;
  min-height: 300px;
}

.cart-flip-inner {
  transition: transform 0.6s cubic-bezier(0.4, 2, 0.6, 1);
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  min-height: 300px;
}

.cart-flip-front,
.cart-flip-back {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
}

.cart-flip-back {
  transform: rotateY(180deg);
}

.cart-flip-inner.flipped {
  transform: rotateY(180deg);
}

/*  */

article.popup.popup6 {
  width: 100%;
  max-width: 768px;
  height: 100%;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  padding-bottom: 62px;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

#empty-cart-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 20px;
  color: #888;
  z-index: 2;
  background: transparent;
  font-weight: 600;
  letter-spacing: 1px;
}

/* تنسيق الأحجام في السلة */
.cart-size {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 6px;
  background: #eee;
  color: #222;
  font-weight: normal;
  border: 1px solid #ccc;
  transition: background 0.2s, color 0.2s;
}

.cart-size.selected {
  background: #40c351;
  color: #fff;
  font-weight: bold;
}

/*  */
article#cart-items {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  padding: 0 10px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.cart-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 10px 8px 10px 8px;
  box-shadow: 0 2px 8px #0001;
  position: relative;
  direction: rtl;
  user-select: none;
  cursor: grab;
  transition: transform 0.3s;
  padding-bottom: 33px;
}

img.cart-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 4px #0001;
}

i.fa-solid.fa-pen-to-square {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 18px;
  color: #40c351;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0002;
  padding: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

i.fa-solid.fa-pen-to-square:hover {
  background: #f3f3f3;
}

p.cart-total {
  position: absolute;
  bottom: 33px;
  left: 0px;
  font-size: 15px;
  color: #40c351;
  font-weight: bold;
  background: #fff;
  border-radius: 8px;
  padding: 2px 10px;
  box-shadow: 0 1px 4px #0001;
}

.cart-extras span {
  display: inline-flex;
  align-items: center;
  background: #f3f3f3;
  border-radius: 6px;
  padding: 2px 8px;
  /* margin: 2px 2px 2px 0; */
  font-size: 13px;
}

.cart-extras button {
  background: none;
  border: none;
  color: #40c351;
  font-size: 15px;
  margin: 0 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.cart-extras button:hover {
  background: #e6fbe6;
}

.cart-qty,
.cart-sizes {
  margin-bottom: 6px;
}

.cart-qty button,
.cart-qty .cart-count {
  font-size: 16px;
  margin: 0 2px;
}

.cart-qty button {
  background: #eee;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  color: #222;
  font-weight: bold;
  transition: background 0.2s;
  cursor: pointer;
}

.cart-qty button:hover {
  background: #d2f5d2;
}

.cart-name {
  font-size: 1.1em;
  font-weight: bold;
  color: #222;
  margin-bottom: 4px;
  margin-top: 2px;
  text-align: right;
}

/* يمكنك وضعه في style.css */
.toggle-comment-btn {
  box-shadow: 0 1px 4px #0001;
}

.toggle-comment-btn.active {
  background: #40c351 !important;
  color: #fff !important;
}

#cart-total {
  text-align: center;
  /* font-size: 20px; */
  /* color: #40c351; */
  /* margin: 20px 0; */
  font-weight: bold;
  margin: 0;
  display: none;
  direction: rtl;
  /* position: fixed; */
  bottom: 64px;
  right: 5px;
}

#checkout-btn {
  display: none;
  /* margin: 0 auto 14px auto; */
  padding: 10px 30px;
  background: #40c351;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  position: fixed;
  bottom: 10px;
  left: 19px;
}

select#governorate-select,
#city-select,
#address-name,
#address-phone,
#address-detail {
  display: flex;
  direction: rtl;
  padding: 16px 2px !important;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
/* ...existing code... */
#undo-delete-toast {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  max-width: 768px;
  width: 100%;
  transform: translateX(-50%);
  background: #fff;
  padding: 8px 28px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 16px #0002;
  z-index: 99999;
  text-align: center;
}
#undo-delete-btn {
  background: #40c351;
  color: #fff;
  padding: 6px 22px;
  border: none;
  border-radius: 6px;
  margin: 0 10px;
  cursor: pointer;
  font-size: 16px;
}
#undo-success-toast {
  display: none;
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 18px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 16px #0002;
  z-index: 99999;
  text-align: center;
}
/*  */
.popup.popup7 {
  background-color: #fff;
}
