:root {
  --bg: #fff8f2;
  --surface: rgba(255,255,255,.82);
  --card: #ffffff;
  --text: #1c1d22;
  --muted: #70727e;
  --line: rgba(20,20,20,.08);
  --brand: #ff5a1f;
  --brand-2: #ff9d2f;
  --accent: #211c5d;
  --success: #16a34a;
  --shadow: 0 18px 45px rgba(35, 22, 14, .12);
}

[data-theme="dark"] {
  --bg: #0f1117;
  --surface: rgba(26,29,38,.82);
  --card: #181b24;
  --text: #f7f7fb;
  --muted: #a5a9b8;
  --line: rgba(255,255,255,.09);
  --shadow: 0 18px 45px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 90, 31, .16), transparent 30%),
    linear-gradient(180deg, var(--bg), #fff);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 76px;
}
[data-theme="dark"] body { background: linear-gradient(180deg, #0f1117, #171923); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .35s ease, visibility .35s ease;
}
#pageLoader.hide { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 54px;
  height: 54px;
  border: 5px solid rgba(255,90,31,.16);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.glass-nav {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0;
  text-transform: uppercase;
}
.brand-mark span { filter: drop-shadow(0 8px 14px rgba(255,90,31,.28)); }
.nav-link { font-weight: 700; font-size: .92rem; color: var(--text); }
.nav-link.active, .nav-link:hover { color: var(--brand); }
.gradient-btn, .btn.gradient-btn {
  border: 0;
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  padding: .76rem 1.15rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(255, 90, 31, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gradient-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(255, 90, 31, .34); }
.soft-btn, .btn.soft-btn {
  background: rgba(255,90,31,.1);
  color: var(--brand);
  border: 1px solid rgba(255,90,31,.2);
  border-radius: 14px;
  font-weight: 800;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: var(--card);
  color: var(--text);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  min-height: 20px;
  padding: 2px 5px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.hero {
  min-height: min(74vh, 720px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slide {
  border-radius: 28px;
  min-height: 440px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.2), transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: #fff;
  padding: clamp(2rem, 7vw, 5rem);
  animation: floatUp .65s ease both;
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 5.6rem);
  line-height: .96;
  font-weight: 950;
  margin-bottom: 1rem;
}
.hero p { color: rgba(255,255,255,.86); font-size: clamp(1rem, 2vw, 1.2rem); }

.section-pad { padding: 72px 0; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.section-title h2 { font-weight: 950; margin: 0; }
.muted { color: var(--muted); }
.glass-card, .food-card, .stat-tile, .auth-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.category-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto .7rem;
}
.food-card {
  overflow: hidden;
  height: 100%;
  transition: transform .22s ease, box-shadow .22s ease;
}
.food-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(255, 90, 31, .16); }
.food-card .food-img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}
.food-card-body { padding: 1rem; }
.food-title { font-weight: 900; margin-bottom: .3rem; }
.price { font-weight: 950; color: var(--text); }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(255,90,31,.11);
  color: var(--brand);
  font-size: .74rem;
  font-weight: 800;
}
.veg-dot, .nonveg-dot, .egg-dot {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  display: inline-block;
  border-radius: 3px;
  position: relative;
}
.veg-dot { color: #16a34a; }
.nonveg-dot { color: #dc2626; }
.egg-dot { color: #f59e0b; }
.veg-dot::after, .nonveg-dot::after, .egg-dot::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
  inset: 2px;
}

.search-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .55rem .85rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.search-shell input, .search-shell select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
}
.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.qty-control button {
  border: 0;
  background: transparent;
  color: var(--text);
  width: 32px;
  height: 32px;
}
.qty-control span { min-width: 34px; text-align: center; font-weight: 900; }

.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline-step {
  position: relative;
  padding-bottom: 1.15rem;
  color: var(--muted);
  font-weight: 700;
}
.timeline-step::before {
  content: "";
  position: absolute;
  left: -1.37rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--line);
}
.timeline-step.done { color: var(--success); }
.timeline-step.done::before { background: var(--success); border-color: var(--success); }

.auth-wrap {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}
.auth-card { max-width: 460px; width: 100%; padding: 2rem; }
.form-control, .form-select {
  border-radius: 14px;
  border-color: var(--line);
  background-color: var(--card);
  color: var(--text);
  padding: .78rem .9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(255,90,31,.12); }

.site-footer {
  margin-top: 5rem;
  padding: 4rem 0 6rem;
  background: #15131d;
  color: #fff;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,.68); }
.site-footer a { display: block; margin: .45rem 0; }
.mobile-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1050;
  display: none;
  grid-template-columns: repeat(5,1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.mobile-bottom-nav a {
  display: grid;
  place-items: center;
  gap: .15rem;
  padding: .7rem .2rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.mobile-bottom-nav i { font-size: 1.15rem; color: var(--brand); }
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 1051;
}
.chat-widget a {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 14px 28px rgba(37,211,102,.32);
}

@media (max-width: 991px) {
  .hero { min-height: auto; padding: 1rem 0 0; }
  .hero-slide { min-height: 360px; border-radius: 22px; }
  .section-pad { padding: 48px 0; }
}
@media (max-width: 767px) {
  body { padding-bottom: 92px; }
  .mobile-bottom-nav { display: grid; }
  .navbar .navbar-collapse { padding: 1rem 0; }
  .hero h1 { font-size: 2.45rem; }
  .hero-slide { min-height: 340px; }
  .hero-content { padding: 2rem; }
  .cart-row { grid-template-columns: 62px 1fr; }
  .cart-row > .text-end { grid-column: 2; text-align: left !important; }
}

