* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background: url('../images/bg.jpg') center center / cover fixed no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow-x: hidden;
  padding-top: 37px;
}


body::before {
  content: "";
  position: fixed;
  top: 37px;          
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: -1;
}

header {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 26px;
}

nav {
  margin-top: 8px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #28a745;
}


.container {
  max-width: 1000px;
  margin: 30px auto;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px;
  backdrop-filter: blur(8px);
}


.searchbar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  max-width: 700px;
  background: #fff;
  border-radius: 50px;
  padding: 8px 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.searchbar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 12px 18px;
  border-radius: 50px;
}

.searchbar button {
  background: #ff4b2b;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
}

.searchbar button:hover {
  background: #ff2b2b;
}

/* === Restaurant Slider === */
.restaurant-slider { position: relative; }

.restaurant-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px;
}

.restaurant-list::-webkit-scrollbar { height: 8px; }

.restaurant-card {
  min-width: 180px;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.restaurant-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Scroll arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: white;
  border: none;
  font-size: 22px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.arrow:hover { background: #28a745; }
.arrow:first-of-type { left: -10px; }
.arrow:last-of-type { right: -10px; }


.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.menu-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.menu-card:hover { transform: translateY(-5px); }

.menu-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.menu-card .info { padding: 12px; }
.menu-card h4 { margin: 6px 0; }
.menu-card p { font-size: 14px; color: #555; }

.menu-card .btn {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 14px;
}
.menu-card .btn:hover { background: #28a745; }


.order-box {
  max-width: 420px;
  margin: 60px auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  text-align: center;
  backdrop-filter: blur(5px);
}
.order-box button {
  background: #111; color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px; cursor: pointer;
}
.order-box button:hover { background: #28a745; }


footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 14px;
}

/* === Responsive === */
@media (max-width: 768px) {
  body { padding-top: 70px; } 

  .container {
    width: 94%;
    margin: 15px auto;
    padding: 15px;
  }

  header h1 { font-size: 22px; }
  nav a { font-size: 14px; margin: 0 6px; }

  .searchbar { flex-direction: row; padding: 6px 10px; width: 92%; }

  .menu-grid { grid-template-columns: 1fr 1fr; }
  .menu-card img { height: 150px; }

  .order-box { margin: 40px auto; width: 90%; padding: 20px; }

  footer { font-size: 12px; padding: 10px; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
  .restaurant-card { min-width: 150px; }
}
