/* ============================================================
   SPICY SPARK — Main Stylesheet  (White Theme)
   Palette: #ffffff bg · #c0392b red · #e67e22 orange · #f1c40f gold
            #1a1a1a body text · #f5f5f5 surface · #e8e8e8 border
   ============================================================ */

:root {
  --bg:          #ffffff;
  --surface:     #f8f8f8;
  --surface-2:   #f0f0f0;
  --border:      #e2e2e2;
  --border-2:    #d0d0d0;
  --text:        #1a1a1a;
  --text-muted:  #777777;
  --text-light:  #aaaaaa;
  --red:         #c0392b;
  --red-dark:    #961f15;
  --red-light:   #fdf0ef;
  --orange:      #e67e22;
  --gold:        #c9920a;
  --gold-light:  #fff8e1;
  --green:       #2e7d32;
  --green-light: #e8f5e9;
  --white:       #ffffff;
  --black:       #1a1a1a;
  --radius:      8px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
  --shadow-red:  0 4px 16px rgba(192,57,43,0.18);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 2rem;
  background: #ffffff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-logo { height: 52px; object-fit: contain; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }

.cart-btn {
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-red);
}
.cart-btn:hover { opacity: 0.88; color: var(--white) !important; }

.cart-badge {
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Flash ────────────────────────────────────────────────── */
.flash { padding: 0.85rem 2rem; font-weight: 600; text-align: center; }
.flash-success { background: var(--green-light); color: var(--green); border-bottom: 1px solid #a5d6a7; }
.flash-error   { background: var(--red-light);   color: var(--red);   border-bottom: 1px solid #ef9a9a; }
.flash-info    { background: #e3f2fd; color: #1565c0; border-bottom: 1px solid #90caf9; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #0a0000;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.loaded {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(20,4,0,0.45) 50%,
    rgba(0,0,0,0.72) 100%
  );
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 2rem; }
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 2rem; }
.hero-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(2rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.btn-fire {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-fire:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.3);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b07d08; color: var(--white); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.88rem; }
.btn-full { width: 100%; display: block; }
.btn-danger { background: var(--red-dark); color: var(--white); }
.btn-danger:hover { background: #7a1810; color: var(--white); }

/* ── Section ──────────────────────────────────────────────── */
.section { padding: 4rem 2rem; }
.section-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.8rem;
  text-align: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

/* ── Grid ─────────────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── Food Card ────────────────────────────────────────────── */
.food-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.food-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}
.food-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--surface);
}
.food-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #fff0ec, #fff8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.food-card-body { padding: 1rem; }
.food-card-name { font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: 0.3rem; }
.food-card-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.food-card-meta { display: flex; justify-content: space-between; align-items: center; }
.food-price { font-size: 1.15rem; font-weight: 700; color: var(--red); }
.food-price s { color: var(--text-light); font-size: 0.85rem; margin-left: 0.3rem; font-weight: 400; }
.spice-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spice-mild      { background: #e8f5e9; color: #2e7d32; }
.spice-medium    { background: #fff8e1; color: #f57f17; }
.spice-hot       { background: #fff3e0; color: var(--orange); }
.spice-extra_hot { background: #fce4ec; color: var(--red); }

/* Veg / Non-veg dot badge */
.veg-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  flex-shrink: 0;
}
.veg-dot.veg     { border: 2px solid #2e7d32; }
.veg-dot.veg::after    { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #2e7d32; }
.veg-dot.non_veg { border: 2px solid var(--red); }
.veg-dot.non_veg::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.out-of-stock-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--text-muted); letter-spacing: 0.1em;
  font-size: 1rem;
}

/* ── Search bar (menu page) ───────────────────────────────── */
.menu-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.menu-search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.menu-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.menu-search {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  border: 1.5px solid var(--border-2);
  border-radius: 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.menu-search:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
.menu-search::placeholder { color: var(--text-light); }

/* Veg toggle */
.veg-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 24px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.veg-toggle-wrap:hover { border-color: #2e7d32; }
.veg-toggle-wrap.active { border-color: #2e7d32; background: var(--green-light); }

.toggle-switch {
  width: 34px;
  height: 18px;
  background: var(--border-2);
  border-radius: 9px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.veg-toggle-wrap.active .toggle-switch { background: #2e7d32; }
.veg-toggle-wrap.active .toggle-switch::after { left: 18px; }

.veg-toggle-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.veg-toggle-wrap.active .veg-toggle-label { color: #2e7d32; }

/* no-results state */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: none;
}

/* ── Category bar ─────────────────────────────────────────── */
.cat-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.cat-pill {
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-pill:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.cat-pill.active {
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-color: transparent;
  color: var(--white);
}

/* ── Cart ─────────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table th { color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface); }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table tr:hover td { background: var(--surface); }

.qty-input { width: 60px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); padding: 0.3rem; border-radius: 4px; text-align: center; }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.95rem; color: var(--text); }
.summary-row.total { font-size: 1.2rem; font-weight: 700; color: var(--red); border-top: 1px solid var(--border-2); margin-top: 0.5rem; padding-top: 0.8rem; }

/* ── Form ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.4rem; font-weight: 600; }
.form-control {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border-2);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }
select.form-control { background: var(--white); }

/* ── Auth card ────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--surface); }
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 2rem;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem; background: var(--white); }

/* ── Order card ───────────────────────────────────────────── */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.2rem; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.order-number { font-weight: 700; color: var(--red); }

/* ── Status badges ────────────────────────────────────────── */
.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-pending          { background: #fff8e1; color: #f57f17; }
.status-confirmed        { background: #e3f2fd; color: #1565c0; }
.status-preparing        { background: #fff3e0; color: var(--orange); }
.status-out_for_delivery { background: #f3e5f5; color: #6a1b9a; }
.status-delivered        { background: var(--green-light); color: var(--green); }
.status-cancelled        { background: var(--red-light); color: var(--red); }
.status-paid             { background: var(--green-light); color: var(--green); }
.status-failed           { background: var(--red-light); color: var(--red); }
.status-pending.payment  { background: #fff8e1; color: #f57f17; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.footer-tagline {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ── Admin Layout ─────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 50;
}
.admin-logo { padding: 1.5rem; border-bottom: 1px solid var(--border); text-align: center; background: var(--white); }
.admin-logo img { height: 48px; }
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active {
  color: var(--red);
  background: var(--red-light);
  border-left-color: var(--red);
}
.admin-main { margin-left: 240px; flex: 1; background: var(--bg); }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.admin-page { padding: 2rem; }
.admin-page-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.4rem;
  color: var(--red);
  margin-bottom: 1.5rem;
}

/* ── Admin Cards ──────────────────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--red), var(--orange));
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--red); }

/* ── Admin Table ──────────────────────────────────────────── */
.admin-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--surface);
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.93rem; color: var(--text); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface); }

/* ── Admin Form Card ──────────────────────────────────────── */
.admin-form-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; max-width: 760px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: 0.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.page-link { padding: 0.4rem 0.85rem; background: var(--white); border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--text); font-weight: 600; transition: all 0.2s; }
.page-link:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.page-link.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold); }
.text-red    { color: var(--red); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ── Checkout layout ──────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0.75rem 1rem; }
  .nav-links { gap: 0.75rem; }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
  .form-row { grid-template-columns: 1fr; }
  .menu-toolbar { padding: 0.75rem 1rem; gap: 0.75rem; }
  .menu-search-wrap { max-width: 100%; }
}
@media (max-width: 600px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .cat-bar { padding: 0.75rem 1rem; }
}