/* ===============
   global style
================ */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");

html {
  scroll-behavior: smooth;
}
body {
  font-family: "Fredoka", sans-serif;
  overflow-x: hidden !important;
}
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
  }
}

:root {
  --primary-color: white;

  --text-white: #ffffff;
  --mid-black-color: #333333;
  --black-color: #000000;
  --bg-color: #ffffff;
  --transition: all 0.3s ease;
}
.cairo-font,
.cairo-font * {
  font-family: "Cairo", sans-serif !important;
}

.menu-body {
  line-height: 1.8;
  background-color: var(--bg-color);
}
/* ===============
   utilites
================ */
img {
  width: 100%;
}

/* ===============
    heroSection
================ */

.hero-section img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.hero-section {
  height: 360px !important;
}
@media (max-width: 768px) {
  .hero-section {
    height: 225px !important;
    background-size: auto !important;
  }
}

.content-imgs-main .menu-section-wrapper:last-child {
  margin-bottom: 0 !important;
}

/* ===============
    SocialSection
================ */
.logo-section {
  position: absolute;
  top: -67px;
}
.logo-img {
  height: 150px;
  width: 150px;
}

.logo-img img {
  border-radius: 50%;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.socail-section .links a {
  margin: 0 10px;
  font-size: 24px;
  color: var(--black-color);
}

.socail-section .links h4 {
  color: var(--primary-color);
}

/* ===============
    carousel Section
================ */

.owl-carousel .item {
  justify-items: center;
  align-items: center;
}

.owl-carousel .item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #6a6a6a;
  object-fit: cover;
}

.owl-carousel .item p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
}

.carousel-section {
  transition: all 0.3s ease;
  padding: 20px 0;
  width: 100%;
}

.carousel-section.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(208, 169, 126, 0.8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.carousel-section-placeholder {
  display: none;
}

.carousel-section.sticky + .carousel-section-placeholder {
  display: block;
}

.section-indicator {
  scroll-margin-top: 150px;
}

.owl-carousel .item {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding-top: 10px;
}

.owl-carousel .item.active-section {
  transform: scale(1.1);
}

.owl-carousel .item.active-section img {
  border: 3px solid var(--primary-color) !important;
}

.owl-carousel .item.active-section p {
  color: var(--primary-color);
  font-weight: bold;
}

.nav-section {
  padding: 20px 0;
}

.nav-items-wrapper {
  gap: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: hidden !important;
}

.nav-items-wrapper::-webkit-scrollbar {
  display: none;
}

.nav-item {
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  padding-top: 10px;
}

.nav-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #654d37;
  object-fit: cover;
  transition: all 0.3s ease;
}

.nav-item p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  color: #654d37;
}

.nav-item.active {
  transform: scale(1.1);
}

.nav-item.active .nav-img {
  border: 3px solid #d2b48c;
  box-shadow: 0 0 10px rgba(210, 180, 140, 0.5);
}

.nav-item.active p {
  color: #a67c52;
  font-weight: bold;
}

.carousel-section {
  transition: all 0.3s ease;
  width: 100%;
  background-color: var(--bg-color);
}

.carousel-section.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(208, 169, 126, 0.8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.carousel-section-placeholder {
  display: none;
  height: 0;
}

.carousel-section.sticky + .carousel-section-placeholder {
  display: block;
}
/* ===============
   menu
================ */
.menu {
  background: #aa9077;
  padding: 50px 20px;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}
.menu-items {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section .section-description,
.section-title {
  color: var(--text-white);
}

.menu-section .menu-items .item-img-wrapper {
  width: 10rem;
  height: 120px;
  margin-right: 0;
  flex-shrink: 0;
}
.menu-items-wrapper {
  display: flex;
  justify-content: space-evenly;
}

.menu-section .menu-items .item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.price-badge {
  background-color: #212529;
  color: var(--bg-color);
  padding: 4px 12px;
  border-radius: 5px;
  margin-right: 10px;
  display: inline-block;
}

.menu-item-desc {
  flex: 1;
  color: var(--text-white);
  padding: 5px 0;
}

.menu-item-title {
  color: var(--black-color);
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.menu-item-desc .fa-star {
  font-size: 12px;
  color: var(--mid-black-color);
  margin-top: 10px;
}

/* ===============
  modal
================ */
.modal.fade .modal-dialog {
  position: fixed;
  bottom: -50px;
  left: 0;
  right: 0;
  transform: translate(0, 100%);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content {
  background-color: #bb9e80;
  border-radius: 25px 25px 0 0;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
}

.modal-header .btn {
  color: #000;
  font-weight: 500;
}

.modal-title {
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
}

.allergy-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.allergy-icon i {
  color: #074634;
  font-size: 1.25rem;
}

.allergy-text h6 {
  font-weight: 600;
  font-size: 1rem;
  text-align: end;
}

.allergy-text p {
  font-size: 0.875rem;
}

.modal-text {
  cursor: pointer;
  transition: var(--transition);
  font-size: 19px;
}

.modal-text:hover {
  color: var(--primary-color);
}

/* lang modal  */
#languageModal .modal-dialog {
  bottom: -208px !important;
}
.lang {
  cursor: pointer;
  width: fit-content;
}
.lang p {
  cursor: pointer;
  margin-bottom: 0;
  transition: var(--transition);
}

.lang:hover {
  color: var(--primary-color);
}

.lang .fa-sort-down {
  position: relative;
  top: -3px;
}

/* Language modal styles */
.language-options {
  border-radius: 15px;
  overflow: hidden;
}

.language-option {
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-option.active {
  background-color: rgba(255, 255, 255, 0.05);
}

.language-option .fa-check {
  font-size: 1rem;
  color: var(--primary-color);
}

.language-option.active .fa-check {
  opacity: 1 !important;
}

.modal.show .modal-dialog {
  transform: none;
}

/* ===============
 product preview page
================ */

.nav-button {
  background-color: #212529;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  position: absolute;
  z-index: 10;
}
.back-button {
  left: 20px;
  top: 20px;
}
.share-button {
  right: 20px;
  top: 20px;
}
.badge-custom {
  background-color: #a88f75;
  color: var(--black-color);
  border-radius: 50px;
  padding: 8px 16px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  display: inline-block;
}

.badge-custom i {
  font-size: 10px;
  margin: 0 5px;
}
.price-tag {
  background-color: #0f5132;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}
.header-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 20px;
}
.content-wrapper {
  padding: 20px;
}

.product-disc {
  color: var(--text-white) !important;
}
/* ===============
  media
================ */

@media only screen and (max-width: 768px) {
  .menu-items {
    gap: 15px;
  }
  .menu-items-wrapper {
    display: block;
  }
  .menu-section .menu-items .item-img-wrapper {
    width: 10rem;
    height: 120px;
  }

  .menu-items .menu-item-title {
    font-size: 15px;
  }

  .price-badge {
    font-size: 13px;
    padding: 3px 10px;
  }
  .carousel-section-mt {
    margin-top: 0 !important;
  }

  .owl-stage {
    margin-top: 10px !important;
  }

  .modal.fade .modal-dialog {
    bottom: -80px;
  }

  .modal.fade .modal-dialog {
    bottom: -80px;
  }

  #languageModal .modal-dialog {
    bottom: -208px !important;
  }

  .header-image {
    height: 300px;
  }
}
/* ========================
   RTL Styles 
=========================== */
html[lang="ar"] body {
  direction: rtl !important;
  text-align: right !important;
}

html[lang="ar"] .menu-items,
html[lang="ar"] .menu-items-wrapper {
  flex-direction: row-reverse !important;
}

html[lang="ar"] .menu-section .menu-items .item-img-wrapper {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html[lang="ar"] .price-badge {
  margin-left: 10px !important;
  margin-right: 0 !important;
}

html[lang="ar"] .nav-item p {
  text-align: center !important;
}

html[lang="ar"] .carousel-section.sticky {
  left: auto !important;
  right: 0 !important;
}

html[lang="ar"] .nav-button.back-button {
  left: auto !important;
  right: 20px !important;
}

html[lang="ar"] .nav-button.share-button {
  right: auto !important;
  left: 20px !important;
}

html[lang="ar"] .modal-header .btn {
  text-align: left !important;
}

html[lang="ar"] .allergy-text h6,
html[lang="ar"] .allergy-text p {
  text-align: right !important;
}

html[lang="ar"] .badge-custom {
  margin-left: 8px !important;
  margin-right: 0 !important;
}

html[lang="ar"] .socail-section .links a {
  margin: 0 0 0 10px !important;
}

html[lang="ar"] .lang .fa-sort-down {
  left: auto !important;
  right: 0 !important;
}

html[lang="ar"] .language-option .fa-check {
  margin-left: 10px !important;
  margin-right: 0 !important;
}

html[lang="ar"] .modal-text {
  text-align: right !important;
}

html[lang="ar"] .menu-item-desc {
  text-align: right !important;
}

html[lang="ar"] .modal-title,
html[lang="ar"] .modal-body,
html[lang="ar"] .modal-header {
  text-align: right !important;
}

html[lang="ar"] .language-option {
  text-align: right !important;
  direction: rtl !important;
}

html[lang="ar"] .nav-item {
  text-align: center !important;
}

html[lang="ar"] .modal-content {
  direction: rtl !important;
  text-align: right !important;
}
@media (min-width: 992px) {
  .menu-section {
    width: 75%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 992px) {
  .menu-section {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
