:root {
  --bg: #edf4d6;
  --card: #f6f9e9;
  --ink: #1f2a14;
  --muted: #5a654e;
  --accent: #bbf30a;
  --dark: #121a0a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: linear-gradient(180deg, #dce8bf 0%, #eff6db 45%, #ecf4d5 100%);
  color: var(--ink);
  padding: 0 0 90px;
}

.app-shell {
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 14px 14px 20px;
}

.top h1 {
  margin: 2px 0 10px;
  font-size: 1.28rem;
}

.brand-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.logo { height: 62px; width: auto; }

.download-now {
  text-decoration: none;
  background: #cbf50d;
  color: #162600;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
}

.icon-btn {
  border: 0;
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  width: 34px;
  height: 34px;
}

.delivery-label {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

#currentLocation {
  cursor: pointer;
}

.search {
  background: #f8fbe9;
  border: 1px solid #d6e1bb;
  border-radius: 12px;
  height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: .95rem;
  outline: none;
}

.promo-banner {
  margin-top: 12px;
  background: #121a0a;
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
  align-items: center;
}

.promo-banner h2 { margin: 0 0 5px; font-size: 1.85rem; line-height: 1.05; }
.promo-banner h2 span { color: var(--accent); }
.promo-banner p { margin: 0 0 10px; opacity: .9; }

.promo-banner img {
  width: 100%;
  height: 118px;
  border-radius: 12px;
  object-fit: cover;
}

.order-btn {
  background: var(--accent);
  color: #132000;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-block;
}

.quick-links {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-links article {
  text-align: center;
}

.quick-links div {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  border-radius: 14px;
  background: #e9f1d1;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.quick-links p { margin: 0; font-size: .82rem; font-weight: 700; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-head h3 { margin: 0; font-size: 1.6rem; }
.section-head a {
  text-decoration: none;
  color: #273416;
  background: #dfedb8;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.deal-card {
  border-radius: 14px;
  padding: 8px;
}

.deal-card img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 12px;
}

.deal-card p { margin: 7px 0 2px; font-size: 1rem; }
.deal-card small { color: #304015; }
.lime { background: #d8f502; }
.yellow { background: #d4e65c; }

.save-strip {
  margin-top: 12px;
  background: #e8f2ce;
  border-radius: 12px;
  border: 1px solid #d2e2ab;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.save-strip h4 { margin: 0; font-size: 1.7rem; }
.save-strip p { margin: 0; color: var(--muted); font-size: .88rem; }

.timer span {
  background: #131e08;
  color: #d9ff61;
  border-radius: 7px;
  padding: 5px 7px;
  font-weight: 800;
  margin-left: 6px;
}

.nearby { margin-top: 12px; }

.restaurant-link {
  text-decoration: none;
  color: inherit;
}

.restaurant {
  background: #f8faeb;
  border: 1px solid #d8e3bb;
  border-radius: 14px;
  overflow: hidden;
}

.restaurant img { width: 100%; height: 118px; object-fit: cover; }
.restaurant div { padding: 10px; }
.restaurant h4 { margin: 0 0 4px; }
.restaurant p { margin: 0; color: var(--muted); }

.made-india {
  margin-top: 16px;
  margin-bottom: 6px;
  text-align: center;
}

.made-india img {
  width: min(180px, 58vw);
  height: auto;
  margin: 0 auto 6px;
}

.made-india p {
  margin: 0;
  font-weight: 800;
  color: #2a3a1a;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  width: min(410px, calc(100% - 20px));
  background: #151f08;
  border-radius: 999px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.bottom-nav a {
  text-decoration: none;
  color: #e6efcc;
  font-size: .78rem;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 2px;
  border-radius: 999px;
}

.bottom-nav a.active {
  background: #cbf50d;
  color: #1b2904;
  font-weight: 800;
}

.auth-card,
.orders-list {
  margin-top: 12px;
}

.auth-card {
  background: #f6fae8;
  border: 1px solid #d7e4b8;
  border-radius: 14px;
  padding: 14px;
}

.auth-card h2 {
  margin: 0 0 4px;
}

.auth-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-weight: 700;
  font-size: 0.92rem;
  display: grid;
  gap: 6px;
}

.auth-form input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #ccd8ac;
  padding: 0 12px;
  font-size: 0.95rem;
  background: #fbfdf2;
  outline: none;
}

.auth-btn {
  border: 0;
  margin-top: 8px;
  width: 100%;
  font-size: 1rem;
}

.auth-meta p {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.auth-meta a {
  color: #274600;
  font-weight: 800;
  text-decoration: none;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.order-item {
  background: #f8faeb;
  border: 1px solid #d8e3bb;
  border-radius: 14px;
  padding: 9px;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 10px;
  align-items: center;
}

.order-item img {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.order-item h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.order-item p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.order-item small {
  color: #3d5334;
  font-size: 0.79rem;
  font-weight: 700;
}

.order-item b {
  align-self: start;
  font-size: 0.96rem;
}

.restaurant-shell {
  padding: 0 14px 20px;
}

.rest-hero {
  margin: 0 -14px;
  position: relative;
}

.rest-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  z-index: 2;
}

.rest-topbar div {
  display: flex;
  gap: 8px;
}

.icon-link {
  text-decoration: none;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.rest-hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.rest-card {
  margin-top: -16px;
  background: #f6fae8;
  border-radius: 16px;
  border: 1px solid #d8e3bb;
  padding: 12px;
  position: relative;
}

.rest-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.rest-heading h1 {
  margin: 0;
  font-size: 1.85rem;
}

.rest-heading p {
  margin: 0;
  color: #2f4227;
  font-size: 0.86rem;
}

.rest-meta {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.old-price {
  color: #b5b7ad;
  text-decoration: line-through;
  font-weight: 700;
}

.rest-meta strong {
  font-size: 2rem;
}

.rest-meta span {
  color: #42553b;
  font-weight: 700;
}

.rest-chips {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.rest-chips span {
  background: #eaf2cf;
  border-radius: 999px;
  font-weight: 700;
  padding: 7px 14px;
  font-size: 0.92rem;
}

.rest-chips .chip-accent {
  background: #cbf50d;
}

.menu-tabs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.menu-tabs button {
  border: 0;
  background: #e7eed0;
  color: #2b3a1d;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-tabs .active {
  background: #cbf50d;
}

.menu-list {
  margin-top: 6px;
}

.menu-list h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #dae6b9;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-copy h3 {
  margin: 0 0 3px;
}

.menu-copy p {
  margin: 0 0 6px;
  color: var(--muted);
}

.price-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.price-row strong {
  font-size: 1.7rem;
}

.menu-media {
  position: relative;
  padding-bottom: 34px;
}

.menu-media img {
  width: 124px;
  height: 94px;
  object-fit: cover;
  border-radius: 10px;
}

.add-btn,
.qty-box button {
  border: 0;
  background: #cbf50d;
  color: #192505;
  font-weight: 800;
  border-radius: 999px;
}

.add-btn {
  position: absolute;
  right: 6px;
  bottom: 0;
  padding: 7px 12px;
}

.qty-box {
  position: absolute;
  right: 6px;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #cbf50d;
  border-radius: 999px;
  padding: 5px 8px;
}

.qty-box button {
  width: 24px;
  height: 24px;
  padding: 0;
  background: #152302;
  color: #dfffa0;
}

.qty-box b {
  min-width: 12px;
  text-align: center;
}

.open-app-notice {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 92px;
  width: min(430px, calc(100% - 20px));
  background: #1b2a07;
  color: #e7f7ba;
  border-radius: 14px;
  padding: 10px;
  z-index: 40;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.open-app-notice span {
  font-size: 0.86rem;
  line-height: 1.35;
}

.open-app-notice div {
  display: flex;
  gap: 8px;
}

.open-app-notice button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  padding: 7px 12px;
}

.open-app-btn {
  background: #cbf50d;
  color: #152302;
}

.dismiss-app-btn {
  background: #334d11;
  color: #d9ef9e;
}

@media (max-width: 360px) {
  .logo { height: 54px; }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-banner img { height: 100px; }
  .section-head h3 { font-size: 1.35rem; }
}

@media (min-width: 768px) {
  body {
    padding: 24px 20px 110px;
  }

  .app-shell {
    width: min(920px, 100%);
    background: rgba(248, 252, 236, 0.92);
    border: 1px solid #d8e4b8;
    border-radius: 24px;
    box-shadow: 0 16px 44px rgba(60, 92, 20, 0.14);
    padding: 24px;
  }

  .logo {
    height: 74px;
  }

  .top h1 {
    font-size: 1.6rem;
  }

  .promo-banner {
    grid-template-columns: 1fr 280px;
    padding: 18px;
  }

  .promo-banner img {
    height: 150px;
  }

  .quick-links div {
    width: 56px;
    height: 56px;
  }

  .quick-links p {
    font-size: 0.92rem;
  }

  .section-head h3 {
    font-size: 1.9rem;
  }

  .deal-card img {
    height: 130px;
  }

  .restaurant img {
    height: 240px;
  }

  .made-india img {
    width: 220px;
  }

  .made-india p {
    font-size: 1.05rem;
  }

  .bottom-nav {
    width: min(760px, calc(100% - 28px));
    padding: 10px;
  }

  .open-app-notice {
    width: min(620px, calc(100% - 28px));
    bottom: 104px;
  }

  .bottom-nav a {
    font-size: 0.86rem;
  }

  .auth-card {
    padding: 18px;
  }

  .order-item {
    grid-template-columns: 96px 1fr auto;
  }

  .order-item img {
    width: 96px;
    height: 96px;
  }

  .restaurant-shell {
    padding: 0 24px 20px;
  }

  .rest-hero {
    margin: 0 -24px;
  }

  .rest-hero img {
    height: 320px;
  }

  .menu-item {
    grid-template-columns: 1fr 162px;
  }

  .menu-media img {
    width: 162px;
    height: 116px;
  }
}
