/* =========================
   GLOBAL FIX (STEP 1)
========================= */
* {
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body { 
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
  background: #e53935;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-btn {
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
}

/* =========================
   FILTERS
========================= */
.filters {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filters button {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  background: #333;
  color: #fff;
}

/* =========================
   MENU
========================= */
.menu-list {
  padding: 10px;
}

.food-card {
  display: flex;
  background: #1c1c1c;
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 10px;
  gap: 10px;
}

.food-img {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.food-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.food-info h3 {
  margin: 0;
  font-size: 16px;
}

.food-info p {
  font-size: 13px;
  color: #ccc;
  margin: 4px 0;
}

.food-info select {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: none;
}

/* =========================
   QTY
========================= */
.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.qty-box input {
  width: 40px;
  text-align: center;
  background: #fff;
  color: #000;
  border-radius: 4px;
}

.qty-box button {
  background: #555;
  color: #fff;
  font-size: 18px;
  min-width: 36px;
  height: 32px;
  border: none;
  border-radius: 4px;
}

/* =========================
   ADD BUTTON
========================= */
.add-btn {
  background: #e53935;
  color: #fff;
  padding: 8px;
  border: none;
  border-radius: 6px;
  width: 100%;
}

/* =========================
   VEG TOGGLE
========================= */
.veg-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4CAF50;
  font-size: 14px;
  font-weight: bold;
}

.switch {
  position: relative;
  width: 40px;
  height: 20px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #555;
  border-radius: 20px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: .3s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* =========================
   CHECKOUT BAR
========================= */
.checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #e53935;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  z-index: 999;
}

.checkout-total {
  font-size: 18px;
  font-weight: bold;
}

.checkout-form {
  display: flex;
  gap: 8px;
}

.checkout-form input {
  padding: 8px;
  border-radius: 6px;
  border: none;
}

.checkout-form button {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
}

/* =========================
   DELIVERY / PAGE CARD
   (STEP 2 + STEP 3)
========================= */
.page-center {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.page-card {
  width: 100%;
  max-width: 420px;
  background: #1c1c1c;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-card h2,
.page-card h3 {
  text-align: center;
  margin-bottom: 15px;
}

.page-card input,
.page-card textarea,
.page-card select,
.page-card button {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
}

/* =========================
   MOBILE FINAL FIX (STEP 4)
========================= */
@media (max-width: 480px) {
  .page-center {
    padding: 12px;
  }

  .page-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-card input,
  .page-card textarea,
  .page-card select {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Existing tablet fix */
@media (max-width: 768px) {
  .top-bar {
    flex-wrap: wrap;
  }

  .veg-toggle {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}
