/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --gold: #D4AF37;
    --charcoal: #1B1B1B;
    --off-white: #FAF8F2;
    --red: #C1272D;
    --wasabi: #91C14F;
    --slate: #4A4A4A;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background: var(--off-white);
    color: var(--charcoal);
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Image Optimization */
  img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
  }
  
  /* Mobile Header */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: sticky;
    top: 0;
    background: var(--off-white);
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  padding: 5px;
  color: #555;
}

.cart-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 5px;
  color: #007bff;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -2px; /* Adjusted: Even closer to the top of the button */
  right: -3px; /* Adjusted: Even closer to the right of the button */
  background-color: #dc3545;
  color: white;
  font-size: 0.8em;
  padding: 3px 6px;
  border-radius: 50%;
}
  
/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  border-radius: 8px;
  position: relative;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#cart-items {
  list-style-type: none;
  padding: 0;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

#cart-items li:last-child {
  border-bottom: none;
}

.cart-total {
  margin-top: 20px;
  text-align: right;
  font-size: 1.2em;
}

.checkout-button {
  background-color: #C1272D; /* Example checkout button color */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 15px;
  width: 100%;
}

.checkout-button:hover {
  background-color: #d32c31;;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: bold;
}

.cart-item-price {
  color: #dc3545;
}

.cart-item-quantity {
  margin-left: 10px;
}

/* Style for the quantity control buttons */
.cart-item-quantity-controls {
  display: flex;
  align-items: center;
}

.cart-item-quantity-controls button {
  background: none;
  border: 1px solid #4A4A4A; /* Slate Gray for border */
  border-radius: 5px;
  padding: 5px 8px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 0.9em;
  line-height: 1;
  color: #4A4A4A; /* Slate Gray for text */
}

.cart-item-quantity-controls button:hover {
  background-color: #D4AF37; /* Gold on hover */
  color: #1B1B1B; /* Deep Charcoal text on hover */
}

.cart-item-quantity-controls span {
  font-size: 1em;
  margin: 0 5px;
  color: #4A4A4A; /* Slate Gray for quantity text */
}

#qrcode-container {
  text-align: center;
  margin-top: 20px;
  display: flex; /* Add flexbox */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  border: 1px solid #ccc; /* Add a thin frame */
  padding: 10px; /* Add some padding around the QR code */
  border-radius: 5px; /* Optional: Add rounded corners */
}

/* Styles for the table number input */
.table-number-input {
  margin-top: 10px;
  margin-bottom: 10px;
}

.table-number-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.table-number-input input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

/* Styles for the order notes section */
.order-notes {
  margin-top: 15px;
  margin-bottom: 15px;
}

.order-notes label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.order-notes textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  resize: vertical; /* Allow vertical resizing */
  min-height: 80px;
}

/* Style for the remove button */
.remove-item {
  background-color: #C1272D; /* Rich Red for background */
  color: #FAF8F2; /* Off-White for text */
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9em;
  margin-left: 10px;
}

.remove-item:hover {
  background-color: #1B1B1B; /* Deep Charcoal on hover */
  color: #D4AF37; /* Gold text on hover */
}



  .header button {
    background: none;
    border: none;
    color: var(--slate);
    font-size: 1.2rem;
  }
  
  /* Hero Image */
.hero-image {
  width: 100%;
  height: auto; /* Adjust height to content */
  display: flex; /* Enable flexbox for centering */
  justify-content: center; /* Center the image horizontally */
  align-items: center; /* Center the image vertically (if needed) */
  margin-bottom: 0.5rem; /* Add some space below the image */
}

.hero-image img {
  max-width: 90%; /* Ensure image doesn't exceed container width */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Make sure the entire image is visible within its container */
  display: block; /* Remove any default inline spacing */
}
  
  /* Category Scroll */
  .category-scroll {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-scroll button {
  background: var(--off-white); /* Off-White background */
  border: 1px solid var(--red); /* Red border */
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--slate); /* Slate Gray text */
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.category-scroll button.active {
  background: var(--red); /* Red background for active */
  color: var(--off-white); /* Off-White text for active */
}

.category-scroll button:hover {
  background: var(--gold); /* Gold background on hover */
  color: var(--off-white); /* Off-White text on hover */
}
  
/* Menu Items */
.menu-items {
  padding: 0 1rem 5rem;
  scroll-margin-top: 80px;
}

.menu-card {
  display: flex;
  gap: 1rem;
  padding: 1rem; /* Add padding around the entire card */
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: center; /* Vertically align image and info/price */
}

.menu-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-card:focus-within,
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.menu-card:hover img {
  transform: scale(1.05) rotate(1deg);
}

.item-info {
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem; /* Add some right padding for spacing */
}

.item-info h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-info p {
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 0.5rem;

  /* Modern standard */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* Fallbacks for other browsers */
  display: -moz-box;
  -moz-line-clamp: 2;
  -moz-box-orient: vertical;

  display: box;
  line-clamp: 2;
  box-orient: vertical;
}

.price {
  color: var(--gold);
  font-weight: 500;
  font-size: 1.1rem;
  padding-left: 0.5rem; /* Add some left padding for spacing */
}
  
  .add-btn {
    position: absolute;
    right: 0;
    bottom: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s ease;
    cursor: pointer;
  }
  
  .add-btn:active {
    transform: scale(0.9);
  }
  
  /* Bottom Navigation */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    background: white;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  }
  
  .bottom-nav a {
    color: var(--slate);
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }
  
  .bottom-nav a.active {
    color: var(--red);
  }
  
  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--off-white);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 4px;
  }
  
  /* Responsive Tweaks */
  @media (min-width: 768px) {
    .hero-image {
      height: 250px;
    }
    
    .menu-items {
      padding: 0 2rem 5rem;
    }
    
    .menu-card {
      gap: 1.5rem;
      padding: 1.5rem 0;
    }
    
    .menu-card img {
      width: 100px;
      height: 100px;
    }
  }

/* Search Bar */
  .search-container {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--off-white); /* Use your off-white color */
    border-bottom: 1px solid #eee; /* Optional border */
  }
  
  #search-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
  }
  
  #search-button {
    background-color: var(--red); /* Use your red color for the button */
    color: var(--off-white); /* Use your off-white color for the text */
    border: none;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1em;
  }
  
  #search-button:hover {
    background-color: var(--gold); /* Use your gold color on hover */
    color: var(--deep-charcoal); /* Use your deep charcoal color on hover */
  }