/* ═══════════════════════════════════════
   VIP PIZZA – GLOBAL STYLES
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

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

:root {
  --red:     #D32F2F;
  --red2:    #B71C1C;
  --red3:    #FFEBEE;
  --yellow:  #FDD835;
  --yellow2: #F9A825;
  --white:   #FFF8F0;
  --dark:    #1A0A00;
  --gray:    #6B4C3B;
  --light:   #FFF3E0;
  --border:  #F5E6D3;
  --success: #2E7D32;
  --info:    #1565C0;
  --radius:  12px;
  --shadow:  0 2px 16px rgba(211,47,47,0.10);
}

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
.nav {
  background: var(--red);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-circle {
  width: 42px; height: 42px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.brand { color: #fff; font-family: 'Fredoka One', sans-serif; font-size: 22px; line-height: 1; }
.brand small {
  font-family: 'Nunito', sans-serif;
  font-size: 10px; font-weight: 600;
  color: var(--yellow); display: block; letter-spacing: 1px;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 7px 14px;
  color: #fff;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.15); }
.nav-btn.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.badge {
  background: var(--dark); color: var(--yellow);
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── SCREENS ── */
.screen { display: none; animation: fadeUp 0.25s ease; }
.screen.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.screen-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: #fff; position: sticky; top: 66px; z-index: 50;
}
.screen-title { font-family: 'Fredoka One', sans-serif; font-size: 20px; color: var(--red); }
.back-btn {
  background: none; border: 1.5px solid var(--red);
  border-radius: 20px; padding: 6px 14px;
  color: var(--red); cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
}
.padded { padding: 16px 20px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red2) 100%);
  padding: 28px 20px 24px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '🍕'; position: absolute;
  right: -10px; top: -10px;
  font-size: 130px; opacity: 0.1; transform: rotate(-20deg);
  pointer-events: none;
}
.hero h1 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 30px; color: #fff; line-height: 1.1; margin-bottom: 6px;
}
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p { color: rgba(255,255,255,0.82); font-size: 13px; margin-bottom: 16px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  background: var(--yellow); border: none; border-radius: 22px;
  padding: 11px 22px; font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 14px; color: var(--dark);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(253,216,53,0.4);
}
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 5px 16px rgba(253,216,53,0.5); }
.btn-outline {
  background: transparent; border: 2px solid rgba(255,255,255,0.55);
  border-radius: 22px; padding: 11px 20px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px;
  color: #fff; cursor: pointer; transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ── CATEGORIES ── */
.cats {
  display: flex; gap: 8px;
  padding: 14px 16px 8px;
  overflow-x: auto; scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 66px; z-index: 40;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  background: #fff; border: 1.5px solid #eee;
  border-radius: 20px; padding: 7px 16px;
  cursor: pointer; font-size: 13px; font-weight: 700;
  color: var(--gray); white-space: nowrap;
  transition: all 0.2s; flex-shrink: 0;
}
.cat.active { background: var(--red); border-color: var(--red); color: #fff; }
.cat:hover:not(.active) { border-color: var(--red); color: var(--red); }

/* ── SECTION HEADERS ── */
.sec-head {
  padding: 16px 16px 6px;
  font-family: 'Fredoka One', sans-serif;
  font-size: 17px; color: var(--red);
}

/* ── MENU LIST ── */
.menu-list { padding: 0 16px 10px; display: flex; flex-direction: column; gap: 10px; }

.item-card {
  background: #fff; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.item-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.item-card.unavailable { opacity: 0.5; pointer-events: none; }

.item-emoji { font-size: 38px; flex-shrink: 0; margin-top: 2px; }
.item-info { flex: 1; min-width: 0; }
.item-name { font-weight: 800; font-size: 14px; color: var(--dark); margin-bottom: 2px; }
.item-desc { font-size: 11px; color: var(--gray); margin-bottom: 7px; line-height: 1.4; }
.item-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.item-price { font-weight: 800; font-size: 15px; color: var(--red); }

.item-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 5px; }
.tag {
  font-size: 9px; font-weight: 800; padding: 2px 7px;
  border-radius: 10px; text-transform: uppercase;
}
.tag.veg   { background: #E8F5E9; color: #2E7D32; }
.tag.nv    { background: #FBE9E7; color: #BF360C; }
.tag.sig   { background: #EDE7F6; color: #4527A0; }
.tag.feast { background: #FFF3E0; color: #E65100; }
.tag.hot   { background: #FCE4EC; color: #C62828; }
.tag.exo   { background: #E3F2FD; color: #1565C0; }

.size-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.size-opt {
  background: #fff; border: 1.5px solid #E0D0C0;
  border-radius: 8px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; color: var(--dark);
}
.size-opt:hover  { border-color: var(--red); color: var(--red); }
.size-opt.active { background: var(--red); border-color: var(--red); color: #fff; }

.add-circle {
  background: var(--red); border: none; border-radius: 50%;
  width: 30px; height: 30px; color: #fff;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(211,47,47,0.35);
}
.add-circle:hover  { transform: scale(1.12); }
.add-circle:active { transform: scale(0.92); }

/* ── CART ── */
.cart-item-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 13px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  background: var(--red); border: none; border-radius: 50%;
  width: 28px; height: 28px; color: #fff; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.qty-btn:hover { transform: scale(1.1); }
.qty-num { font-weight: 800; min-width: 18px; text-align: center; font-size: 15px; }

/* ── TOTALS ── */
.total-box {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.total-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); padding: 3px 0; }
.total-line.big {
  font-size: 16px; font-weight: 800; color: var(--dark);
  border-top: 2px solid var(--border); margin-top: 8px; padding-top: 10px;
}

/* ── CHECKOUT ── */
.checkout-wrap { padding: 18px 20px; }
.step-bar { display: flex; align-items: center; margin-bottom: 22px; }
.step { flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: var(--gray); }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #ddd;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  margin: 0 auto 4px; color: #aaa; background: #fff;
  transition: all 0.3s;
}
.step.done .step-dot { background: var(--red); border-color: var(--red); color: #fff; }
.step.active .step-dot { background: var(--yellow); border-color: var(--yellow2); color: var(--dark); }
.step-line { height: 2px; background: #eee; flex: 1; margin-bottom: 18px; transition: background 0.4s; }
.step-line.done { background: var(--red); }

.card-section {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.card-section h3 { font-weight: 800; font-size: 14px; margin-bottom: 12px; color: var(--dark); }
.form-label {
  font-size: 11px; font-weight: 700; color: var(--gray);
  margin-bottom: 4px; display: block;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input {
  width: 100%; border: 1.5px solid #E0D0C0;
  border-radius: 8px; padding: 10px 13px;
  font-family: 'Nunito', sans-serif; font-size: 14px; color: var(--dark);
  margin-bottom: 12px; background: #fff; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-label { font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; }

.pay-btn {
  width: 100%; background: var(--red); border: none;
  border-radius: var(--radius); padding: 15px;
  font-family: 'Fredoka One', sans-serif; font-size: 18px;
  color: #fff; cursor: pointer; margin-top: 6px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(211,47,47,0.3);
}
.pay-btn:hover  { opacity: 0.92; transform: translateY(-1px); }
.pay-btn:active { transform: translateY(0); }
.pay-btn.razorpay-btn { background: linear-gradient(135deg, #072654, #1a56db); }

/* ── TRACKING ── */
.track-wrap { padding: 18px 20px; }
.track-hero {
  background: linear-gradient(135deg, var(--red), var(--red2));
  border-radius: 14px; padding: 20px; color: #fff;
  margin-bottom: 18px; text-align: center;
}
.track-order-num { font-family: 'Fredoka One', sans-serif; font-size: 28px; color: var(--yellow); }
.eta-badge {
  background: var(--yellow); color: var(--dark);
  border-radius: 20px; padding: 8px 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; margin-top: 12px;
}
.map-placeholder {
  background: linear-gradient(135deg, #E8F5E9, #FFF9C4);
  border-radius: var(--radius); height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin-bottom: 16px;
  border: 1.5px solid var(--border);
}
.rider-card {
  background: #fff; border-radius: var(--radius);
  padding: 13px 14px; display: flex; align-items: center;
  gap: 12px; border: 1.5px solid var(--border); margin-bottom: 16px;
}
.rider-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.timeline { position: relative; padding-left: 38px; }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -38px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; top: 0;
}
.tl-dot.done    { background: var(--red); color: #fff; }
.tl-dot.active  { background: var(--yellow); color: var(--dark); animation: pulse 1.5s infinite; }
.tl-dot.pending { background: #eee; color: #bbb; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(253,216,53,0.5); }
  50%      { box-shadow: 0 0 0 9px rgba(253,216,53,0); }
}
.tl-line { position: absolute; left: -25px; top: 28px; width: 2px; height: calc(100% - 28px); background: #eee; }
.tl-line.done { background: var(--red); }
.tl-title { font-weight: 800; font-size: 14px; }
.tl-sub   { font-size: 12px; color: var(--gray); margin-top: 1px; }
.tl-time  { font-size: 11px; font-weight: 700; color: var(--red); margin-top: 2px; }

/* ── SUCCESS OVERLAY ── */
.overlay {
  position: fixed; inset: 0; background: rgba(26,10,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; animation: fadeIn 0.25s ease;
}
.overlay-card {
  background: #fff; border-radius: 18px; padding: 32px 28px;
  text-align: center; max-width: 340px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.order-id-badge {
  background: var(--light); border: 2px solid var(--yellow);
  border-radius: 10px; padding: 10px 20px; font-size: 22px;
  font-family: 'Fredoka One', sans-serif; color: var(--red);
  display: inline-block; margin-top: 6px;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark); color: var(--yellow);
  font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 22px;
  opacity: 0; pointer-events: none;
  transition: all 0.3s; z-index: 9999;
  white-space: nowrap; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--gray); }
.big-icon { font-size: 56px; margin-bottom: 12px; }

/* ── UTILITY ── */
.section-bottom-pad { height: 80px; }
</style>
