/* styles.css */

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #fdfdfd;
    color: #333;
  }
  
  header {
    background: #222;
    color: #00e5ff;
    padding: 1.5rem;
    text-align: center;
  }
  
  #category-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff00;
    white-space: nowrap;
  }
  
  #category-nav button {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  #category-nav button.active,
  #category-nav button:hover {
    background: #ff7f50;
    color: #fff;
    border-color: #ff7f50;
  }
  
  #menu {
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
  }
  
  .category h2 {
    margin-bottom: 1rem;
  }
  
  .menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  }
  
  .menu-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .item-info {
    flex-grow: 1;
  }
  
  .item-name {
    font-weight: bold;
    font-size: 1rem;
  }
  
  .item-price {
    color: #ff7f50;
    font-weight: bold;
  }
  
 /* Modal container */
#image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease forwards;
}

/* Modal hidden state */
#image-modal.hidden {
  display: none;
}

/* Modal content wrapper with scale animation */
#image-modal .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.3s ease forwards;
}

/* Image styling */
#image-modal img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

/* Close button */
#image-modal .close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 28px;
  background: white;
  color: black;
  border-radius: 50%;
  cursor: pointer;
  padding: 0 10px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}




/* Language Toggle Button Styles */
.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #6F4E37; /* Coffee brown color */
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
  background-color: #5a3d2a; /* Darker coffee brown */
  transform: translateY(-2px);
}

/* For RTL (Arabic) layout */
body.rtl {
  direction: rtl;
  text-align: right;
}

/* Adjust other elements for RTL if needed */
body.rtl .menu-item,
body.rtl .category-title {
  text-align: right;
}


.category-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.scroll-snap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  gap: 15px;
}

.scroll-snap::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.scroll-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator.right {
  right: 10px;
}

.scroll-indicator.left {
  left: 10px;
}

.scroll-indicator.hidden {
  display: none;
}

/* Category items styling */
.category-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  padding: 8px 20px;
  background: #f5f5f5;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

.category-item.active {
  background: #333;
  color: white;
}

