/* css/menu.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

  body { font-size: 14px; font-weight: 400; font-family: 'Poppins', sans-serif; margin:0; padding:0; background: #f8f9fa; color:#222; }
  header { text-align:center; padding:18px 12px; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
  h1 { font-family: 'Poppins', sans-serif; font-weight: 700; margin:0; font-size:20px; }
  .container { display:flex; gap:12px; padding:14px; flex-wrap:wrap; }
  .category h3 { font-family: 'Poppins', sans-serif; font-size:20px; color: #2b343d; }
  /*.menu { flex:3; font-family: 'Poppins', sans-serif; font-size:20px; display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }*/
.menu {
  flex: 3;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Custom category heading with the left border accent */
.menu h3 {
  grid-column: 1 / -1;
  font-size: 1.25rem; /* equivalent to text-xl */
  font-weight: 700;    /* equivalent to font-bold */
  color: #1f2937;      /* equivalent to text-gray-800 */
  margin-bottom: 1rem; /* equivalent to mb-4 */
  padding-left: 8px;   /* equivalent to px-2 (left side padding) */
  padding-right: 8px;  /* equivalent to px-2 (right side padding) */
  border-left: 4px solid #3b82f6; /* border-l-4 border-blue-500 */
  margin-top: 1.5rem;
}
  .cart { flex:1; min-width:300px; background:#fff; border-radius:8px; padding:14px; box-shadow:0 1px 6px rgba(0,0,0,0.06); height:fit-content; }
  /*.dish { background:#fff; border-radius:4px; padding:10px; box-shadow:0 1px 6px rgba(0,0,0,0.06); text-align:center; display:flex; flex-direction:column; gap:8px; }*/
.dish {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Clean, premium multi-layered shadow */
  box-shadow: rgba(50, 50, 93, 0.15) 0px 4px 12px -2px, rgba(0, 0, 0, 0.15) 0px 2px 6px -2px;
  transition: all 0.25s ease;
}

.dish:hover {
  transform: translateY(-3px);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 8px 20px -4px, rgba(0, 0, 0, 0.2) 0px 4px 10px -2px;
}
  .dish img { width:100%; height:140px; object-fit:cover; border-radius:8px; }
 /* .dish h4 { margin:0; font-family: 'Poppins', sans-serif; font-size:15px; color: #2b343d; }*/
  .dish .price { font-weight:600; font-size:20px; margin-top:auto; color:#ae4e11; }
  .cart h2 { font-family: 'Poppins', sans-serif; margin:0 0 10px 0; font-size:18px; }
  .cart ul { list-style:none; padding:0; margin:0; max-height:380px; overflow:auto; }
  .cart li { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px dashed #eee; }
  .qty-btn { border:none; background:#eee; padding:4px 8px; border-radius:4px; cursor:pointer; }
  .btn-place, .btn-pay { display:block; width:100%; padding:12px; margin-top:12px; color:#fff; font-size:16px; border:none; border-radius:6px; cursor:pointer; }
  .btn-place { background:#2c2e2f; }
  .btn-pay { background:#ffc43b; }
  .btn-cash { background:#28a745; margin-top:8px; }
  .small { font-size:13px; color:#666; }
  @media (max-width:900px) {
    .container { flex-direction:column; padding:8px; }
    .cart { min-width:auto; order:-1; }
  }

  nav a {
  margin: 0 6px;
  font-size: 14px;
  text-decoration: none;
  color: #2b343d;
  font-weight: 500;
}
nav a:hover {
  color: #ae4e11;
}
h3 {
  scroll-margin-top: 80px; /* avoids overlap by fixed nav */
  }
  
.category-nav {
  background: #fff;
  padding: 10px;
  text-align: center;
  position: sticky;
  top: 10px; /* adjust if header is taller */
  z-index: 99;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.category-nav a {
  margin: 0 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.category-nav a:hover {
  color: #ae4e11;
}
h2 {
  margin-top: 40px;
  scroll-margin-top: 100px; /* avoids header overlap */
}

header {
  text-align: center;
  padding: 18px 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0;
  font-size: 20px;
  color: #2b343d;
}

/* --- MAIN CONTAINER & GRID LAYOUT --- */
.container {
  display: grid;
  grid-template-columns: 1fr 360px; /* Menu takes main space, Cart takes a fixed 360px sidebar */
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* --- MODERNIZED CART DESIGN --- */
.cart {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  position: sticky;
  top: 90px;
  box-sizing: border-box;
}

.cart h2 {
  font-family: 'Poppins', sans-serif;
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #2b343d;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 10px;
}

.cart ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  max-height: 320px;
  overflow-y: auto;
}

.cart li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 13px;
  color: #374151;
}

/* Quantity Control Buttons inside Cart */
.qty-btn {
  border: none;
  background: #f3f4f6;
  color: #1f2937;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e5e7eb;
}

/* Cart Action Buttons */
.btn-place, .btn-pay, .btn-cash {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-place { background: #2c2e2f; }
.btn-pay { background: #ffc43b; color: #111; font-weight: 700; }
.btn-cash { background: #28a745; }

.btn-place:hover, .btn-pay:hover, .btn-cash:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.small {
  font-size: 13px;
  color: #666;
}

/* --- DISH CARD STYLING --- */
.dish-badge-wrapper {
  width: 100%;
}

.menu-badge {
  display: inline-block;
  background-color: #e2f0cb;
  color: #386641;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dish h4.dish-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2b343d;
  line-height: 1.3;
}

.dish.dish-cart h3 {
  font-family: Poppins, sans-serif;
  font-size: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  flex: 3 1 0%;

}

.dish img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.dish p.dish-desc {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.menu-allergens {
  width: 100%;
  background-color: #fcf4f4;
  border-left: 3px solid #e11d48;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 11px;
  color: #e11d48;
  box-sizing: border-box;
  line-height: 1.4;
}

.dish-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f1f1;
}

.dish .price {
  fontWeight: 600; /* Note: fixed standard CSS property */
  font-size: 18px;
  color: #ae4e11;
  margin: 0;
}

/* --- CATEGORY NAVIGATION & HEADINGS --- */
.category-nav {
  background: #fff;
  padding: 12px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  white-space: nowrap;
}

.category-nav a {
  display: inline-block;
  margin: 0 12px;
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.category-nav a:hover {
  color: #ae4e11;
}

h2, h3 {
  scroll-margin-top: 90px;
}

.category h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #2b343d;
  margin-bottom: 16px;
  border-left: 4px solid #ae4e11;
  padding-left: 8px;
}

/* --- BACK TO TOP BUTTON --- */
  #backToTop {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 1.5%;
  right: 2%;
  z-index: 100000;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  color: #fff;
  background-color: #2b343d !important;
  opacity: 1;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.4s;
  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  -moz-transition: all 0.4s;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  }

  #backToTop:hover {
    color: #fff;
    font-size: 1.25rem;
    background: #2b343d;
    transform: scale(1.1);
  }

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr; /* Switch from 2-column sidebar grid to single column on smaller screens */
    padding: 12px;
  }
  .cart {
    position: relative;
    top: 0;
    margin-bottom: 24px;
    order: -1; /* Keeps cart at the top on mobile if desired */
  }
  .menu {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}