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

body {
  font-family: "Segoe UI", sans-serif;
  background: #fff8f0;
  color: #333;
}

/* NAVBAR */
nav {
  background: #ff6b35;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .logo {
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav ul a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}
nav ul a:hover {
  text-decoration: underline;
}
#cart-btn {
  background: white;
  color: #ff6b35;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #ff6b35, #ff9a3c);
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}
.hero button {
  background: white;
  color: #ff6b35;
  border: none;
  padding: 14px 35px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}
.hero button:hover {
  background: #ffe0cc;
}

/* SEARCH */
.search-section {
  text-align: center;
  padding: 40px 20px 20px;
}
.search-section input {
  width: 50%;
  padding: 12px 20px;
  border: 2px solid #ff6b35;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
}
.search-section input:focus {
  border-color: #cc4a1a;
}

/* MENU SECTION */
.menu-section {
  padding: 40px;
}
.menu-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ff6b35;
  text-align: center;
}

/* FILTER BUTTONS */
.filter-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-btns button {
  padding: 8px 20px;
  border: 2px solid #ff6b35;
  background: white;
  color: #ff6b35;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.2s;
}
.filter-btns button.active,
.filter-btns button:hover {
  background: #ff6b35;
  color: white;
}

/* FOOD CARDS */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}
.food-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}
.food-card:hover {
  transform: translateY(-5px);
}
.food-card .food-img {
  background: #ffe5d0;
  text-align: center;
  font-size: 4.5rem;
  padding: 25px;
}
.food-card .food-info {
  padding: 15px;
}
.food-card .food-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.food-card .food-cat {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 8px;
}
.food-card .food-price {
  color: #ff6b35;
  font-size: 1.1rem;
  font-weight: bold;
}
.food-card .add-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.food-card .add-btn:hover {
  background: #cc4a1a;
}

/* CART SIDEBAR */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  padding: 25px;
  transition: right 0.3s;
  z-index: 200;
  overflow-y: auto;
}
.cart-sidebar.open {
  right: 0;
}
.cart-sidebar h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #ff6b35;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.cart-item-name {
  font-size: 0.95rem;
  font-weight: 500;
}
.cart-item-price {
  color: #ff6b35;
  font-weight: bold;
}
.cart-item-remove {
  background: #ffeeee;
  border: none;
  color: #cc0000;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.cart-total {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}
.checkout-btn {
  width: 100%;
  margin-top: 15px;
  padding: 13px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.checkout-btn:hover {
  background: #cc4a1a;
}
.close-cart {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  float: right;
  color: #999;
}
.empty-cart {
  text-align: center;
  color: #aaa;
  margin-top: 40px;
  font-size: 0.95rem;
}

/* OVERLAY */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
}
.overlay.show {
  display: block;
}

/* ABOUT */
.about {
  background: #fff;
  padding: 60px 40px;
  text-align: center;
}
.about h2 {
  font-size: 2rem;
  color: #ff6b35;
  margin-bottom: 15px;
}
.about p {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.feature {
  text-align: center;
}
.feature .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.feature h4 {
  font-size: 1rem;
  color: #333;
}
.feature p {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

/* CONTACT */
.contact {
  padding: 60px 40px;
  background: #fff8f0;
  text-align: center;
}
.contact h2 {
  font-size: 2rem;
  color: #ff6b35;
  margin-bottom: 25px;
}
.contact form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact input,
.contact textarea {
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.contact input:focus,
.contact textarea:focus {
  border-color: #ff6b35;
}
.contact textarea {
  resize: vertical;
  min-height: 100px;
}
.contact button {
  padding: 12px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.contact button:hover {
  background: #cc4a1a;
}
#form-msg {
  color: green;
  font-weight: bold;
  display: none;
}

/* FOOTER */
footer {
  background: #ff6b35;
  color: white;
  text-align: center;
  padding: 25px;
  font-size: 0.95rem;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #333;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
