/* ============================================================
   Anuj Tandoori Chaap & Momos — Customer Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --primary:      #E65C00; /* Warm Orange Accent */
  --primary-dark: #C44E00;
  --secondary:    #1E1E1E; /* Deep Charcoal for main text & dark elements */
  --accent:       #E65C00;
  --bg:           #FAFAFA; /* Warm Off-White / Cream background */
  --bg2:          #FFFFFF; /* Pure White for cards/containers */
  --bg3:          #F2F2F2; /* Light grey for controls */
  --card-bg:      #FFFFFF;
  --text:         #1E1E1E;
  --text-muted:   #757575;
  --green:        #2E7D32;
  --red:          #C62828;
  --border:       #E0E0E0;
  --shadow:       0 4px 20px rgba(0,0,0,0.05);
  --radius:       12px;
  --radius-sm:    6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Hero Header ---- */
.hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 50%, rgba(230,92,0,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(230,92,0,0.03) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #FF9500);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(255,107,53,0.4);
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.brand-text .tagline {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(230,92,0,0.08);
  border: 1px solid rgba(230,92,0,0.2);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.badge.green {
  background: rgba(46,125,50,0.08);
  border-color: rgba(46,125,50,0.2);
  color: var(--green);
}


/* ---- Category Tabs ---- */
.category-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.category-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-tab:hover, .cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ---- Main Content ---- */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 120px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  font-size: 22px;
}

/* ---- Menu Grid ---- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

/* ---- Food Card ---- */
.food-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255,107,53,0.15);
  border-color: rgba(255,107,53,0.3);
}

.food-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #2A1500, #3D2200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.food-card-body {
  padding: 16px;
}

.food-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.food-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.veg-badge {
  width: 18px;
  height: 18px;
  border: 2px solid var(--green);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.veg-badge::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.food-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.food-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.food-price span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Add to Cart Button */
.btn-add {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add:hover { opacity: 0.9; transform: scale(1.03); }

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border-radius: 999px;
  padding: 4px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}

.qty-btn:hover { background: var(--primary-dark); transform: scale(1.1); }

.qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

/* ---- Cart Sidebar ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 100vw);
  background: var(--bg2);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-count-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}

.btn-close {
  background: var(--bg3);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close:hover { background: var(--red); color: white; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg3);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.cart-empty-icon { font-size: 64px; opacity: 0.3; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.cart-item-icon { font-size: 32px; flex-shrink: 0; }

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: 13px; color: var(--primary); font-weight: 600; }

.cart-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label { font-size: 15px; color: var(--text-muted); }
.cart-total-val { font-size: 22px; font-weight: 800; color: var(--accent); }

.free-delivery-note {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-checkout {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.4);
}

/* ---- Floating Cart Button ---- */
.floating-cart {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255,107,53,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 150;
  transition: all 0.25s;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 8px 32px rgba(255,107,53,0.5); }
  50%      { box-shadow: 0 8px 40px rgba(255,107,53,0.8); }
}

.floating-cart:hover { transform: translateY(-3px) scale(1.03); }
.floating-cart.hidden { transform: scale(0); opacity: 0; pointer-events: none; }

.cart-bubble {
  background: white;
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---- Search ---- */
.search-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 44px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--primary); }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg2);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
  pointer-events: none;
}

@keyframes toastIn  { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform: translateX(40px); } }

/* ---- Order Page ---- */
.order-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.order-page h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.order-item-row:last-child { border: none; }

.order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
  border-top: 2px solid var(--border);
}

.order-total-row .val { color: var(--primary); }

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus { border-color: var(--primary); }

.payment-options {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pay-option {
  position: relative;
}

.pay-option input { display: none; }

.pay-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.pay-option label .icon { font-size: 24px; }

.pay-option input:checked + label {
  border-color: var(--primary);
  background: rgba(255,107,53,0.1);
  color: var(--primary);
}

.btn-place-order {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-place-order:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,53,0.4); }

/* ---- UPI QR Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-box { transform: scale(1); }

.modal-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.qr-placeholder {
  width: 200px;
  height: 200px;
  background: white;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.upi-id {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary);
}

/* ---- Confirm Page ---- */
.confirm-page {
  max-width: 500px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.confirm-icon {
  font-size: 80px;
  margin-bottom: 16px;
  animation: bounce 1s ease;
}

@keyframes bounce {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

.confirm-page h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.confirm-page p  { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

.order-id-box {
  background: var(--card-bg);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.order-id-box .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.order-id-box .num   { font-size: 24px; font-weight: 800; color: var(--accent); margin-top: 4px; }

.btn-back {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-back:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: repeat(3, 1fr); }
  .brand-text h1 { font-size: 16px; }
  .hero-inner { padding: 20px 16px; }
}
