.menu-header-desktop {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 1540px;
    margin:0 auto;
}
.menu-header-wrapper{
    margin:0 0 20px 0;
}
.menu-header-text{
    font-size:30px;
    text-align:left;
}
.menu-tabs-container{
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: flex;
    column-gap: 2rem;
    padding:1rem 0;
}
.menu-tabs-container.menu-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  z-index: 999999;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.menu-tab {
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
  color: rgb(0, 0, 0);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.9);
  border-radius: 0.25rem;
  white-space: nowrap;
  background-color: transparent;
  cursor: pointer;
}
.menu-tab.active-menu {
    background-color: rgb(0, 0, 0);
    color:#fff;
}
.menu-tabs-wrapper{
    display: flex;
    flex: 1 1 0%;
    column-gap: 0.5rem;
    user-select: none;
    overflow-y: hidden;
    overflow-x: overlay;
    align-items: stretch;
    cursor: grab;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.menu-tabs-wrapper::-webkit-scrollbar {
  display: none;
}
.menu-search {
  flex-basis: 15%;
}
.menu-search-wrapper{
    position: relative;
    display: flex;
    align-items: center;
    align-items: stretch;
    cursor: grab;
    column-gap: 0.5rem;
}
.menu-search-wrapper .search-icon{
    align-items: center;
    padding-left: 0.75rem;
    display: flex;
    position: absolute;
    pointer-events: none;
    height: 100%;
}
.menu-search-wrapper .search-icon svg{
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    color: rgba(87, 89, 98, 0.5);
}
.menu-search-wrapper input{
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 26px;
    width: 100%;
    height: 2.5rem;
    padding: 0.5rem 2.5rem;
}
.menu-container {
    background-color: rgba(247, 247, 247, 1);
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 5rem;
}
.menu-container section{
    width: 100%;
    margin: 20px auto;
    max-width: 1540px;
    padding: 0 1.5rem;
}
.menu-image{
    width:100%;
    padding:1rem 0;
    display: inline-block;
}
.menu-image img{
    width: 100%;
    border-radius: 0.375rem;
    object-fit: cover;
    aspect-ratio: 3 / 1;
}
.menu-description {
    display: block;
    width: 100%;
    margin: 0.75rem 0;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  width: 100%;
  padding-top: 0.75rem;
  background-color: #f7f7f7;
}
.grid-item {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border-radius: 0.375rem;
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    cursor: pointer;
    box-shadow: 0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}
.grid-item:hover{
    transform: translate(0, 4px);
}
.grid-wrapper{
    display: flex;
    grid-gap: 20px;
}
.grid-text{
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    display: flex;
    font-size:16px;
}
.grid-text p, .popup-text p{
    margin-bottom: 10px;
}
.grid-text .add-on, .popup-text .add-on{
  font-size: 13px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-bottom:5px
}
.grid-text .add-on p.add-on-header, .popup-text .add-on p.add-on-header{
  font-weight: bold;
}
.grid-text .add-on p, .popup-text .add-on p{
  margin-bottom: 0;
}
.grid-image{
  display: block;
  margin-bottom: 5px;
  height: 100%;
}
.grid-image img{
  flex: 0 0 auto;
  border-radius: 0.25rem;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100px;
  height: 100px;
  opacity: 0;
  display: none;
}
.grid-image img.active {
  opacity: 1;
  display: block;
}
.grid-item h3, .popup-text h3{
  word-break: break-word;
  text-align: left;
  line-height: 1.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  font-weight: bold;
  margin:0 0 10px 0;
}

.grid-item .price, .popup-text .price{
  font-size: 16px;
  font-weight:bold;
}

/* RTL Styles */

[dir="rtl"] .menu-section h2 {
    text-align: right;
    float: none;
}

[dir="rtl"] .grid-item {
  text-align: right;
}

[dir="rtl"] .grid-item h3 {
  text-align: right;
}

[dir="rtl"] .grid-item p {
  text-align: right;
}

[dir="rtl"] .menu-search-wrapper input {
  direction: rtl;
  padding-left: 1.5rem;
  text-align: right;
}

[dir="rtl"] .popup-image img {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
/* Responsive Styles */

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-tabs-container {
    flex-direction: column;
  }
  .menu-search{
    margin-bottom: 20px;
    width:100%;
  }
  .menu-tabs-wrapper {
    order: 2;
  }
  .popup-content {
    flex-direction: column !important;
  }
  .popup-image{
    width:100% !important;
    margin-right:0 !important;
    max-width: 100% !important;
  }
  .popup-text {
    background-color: #fff;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}
#popup-overlay {
  background-color: rgba(0, 0, 0, 1);
  opacity: 0.5;
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  z-index: 1501;
  display: none;
}
#share-overlay {
  background-color: rgba(0, 0, 0, 1);
  opacity: 0.5;
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  z-index: 1503;
  display: none;
}
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width:100%;
  z-index: 1502;
padding: 0 1.5rem;
max-width: 1540px;
}

.share {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  width:100%;
  max-width: 480px;
  z-index: 1504;
  flex-direction: column;
  padding:0 1.5rem;
}

.popup.show, #popup-overlay.show, .share.show, #share-overlay.show{
  display: block;
}

.popup-content, .share-content {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.share-content {
    flex-direction: column !important;
}
.share-header{
    padding:16px 16px 0 16px;
    width:100%;
    display: flex;
    justify-content: space-between;
}
.share-header p{
  padding-left:40px;
}
.share-body{
    padding:16px;
}
.share-links{
    display: flex;
    justify-content: center;
}
.share-link{
  display:block;
  margin:0 10px;
}

.share-icon {
    background: #000;
    border-radius: 9999px !important;
    width:64px;
    height:64px;
    padding:8px;
    display:flex;
    align-items: center;
    justify-content: center;
    margin-bottom:10px;
}
.share-icon svg{
  color:#fff;
  fill:#fff;
}

.popup-image {
  margin-right: 20px;
  max-width: 620px;
  max-height: 420px;
  display:flex;
  flex-direction: column;
  flex-direction: column;
  position: relative;
  margin-bottom: 0;
}

.popup-image img{
  width: 100%;
  object-fit: contain;
  position: sticky;
  max-width: 100%;
  height: 100% !important;
  opacity: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  display: none;
  background:#fff;
}

.popup-image img.active{
  opacity: 1;
  display: block;
}

.popup-image .grid-image{
  margin-bottom: 0;
}

.popup-text {
  padding-top: 1.5rem;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  z-index: 1;
}

.popup-controls {
  position: absolute;
  z-index: 1;
  top:10px;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.close-popup, .close-share {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ccc;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.allergen-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin:5px 0 0 0;
}
.allergen-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.allergen-icon img {
  width: 18x;
  height: 18px;
}

.allergen-icon:hover::before {
  content: attr(data-title);
  position: absolute;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px;
  bottom: 30px;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: normal;
  color: #333;
  border-radius: 4px;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
button svg{
  width:100%;
}
.control-btn{
  width:32px;
  display: flex;
  cursor: pointer;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  box-shadow: var(0, 0 0 rgba(0, 0, 0, 0)), 0, 0 0 rgba(0, 0, 0, 0), 1;
  padding: 0.5rem !important;
  border-radius: 9999px !important;
  justify-content: center;
  align-items: center;
}
#close-share{
  width:20px;
  height:20px;
  cursor: pointer;
  background: transparent;
}
.share-icon {
    background: #000;
    border-radius: 9999px !important;
    width:48px;
    height:48px;
    padding:10px;
    display:flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}
.share-icon svg{
  color:#fff;
  fill:#fff;
  width:100%;
}
[dir="rtl"] .popup-image{
  margin-left:20px;
  margin-right:0;
}
[dir="rtl"] .popup-content h3, [dir="rtl"] .popup-content p {
    text-align: right;
}
[dir="rtl"] .control-btn{
  transform: rotate(180deg);
}
[dir="rtl"] .share-header p {
  padding-left:0;
  padding-right: 40px;
}
[dir="rtl"] .menu-search-wrapper .search-icon {
  padding-left:0;
  padding-right: 0.75rem;
}