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

  body { font-size: 14px; font-weight: 400; font-family: 'Poppins', sans-serif; margin:0; padding:0; background:#f9f9f9; 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; }
  .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 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 p { margin:0; font-size:14px; color:#555; }
  .dish .price { font-weight:600; font-size:20px; margin-top:auto; color:#ae4e11; }
  .dish button { color: #fff; letter-spacing: 1px; cursor:pointer; font-size: 15px; margin-top:auto; padding: 12px 20px; background: #28bb45; border: 1px solid #c1c0c0; border-radius: 4px; }
  .dish button:hover { color: #fff; background: #28a745; border-color: #05c46b; }
  .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; }
  }

  #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);
  }
  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 */
}
