/* ===== ADITYA FOOD — PREMIUM DESIGN SYSTEM ===== */
:root {
  --primary: #E8401C;
  --primary-light: #FF5733;
  --primary-dark: #C0321A;
  --primary-bg: #FFF1ED;
  --orange: #FF7043;
  --cream: #FFFAF7;
  --cream-dark: #F5EDE8;
  --charcoal: #1C1C1E;
  --charcoal-2: #2C2C2E;
  --charcoal-3: #3A3A3C;
  --text: #1C1C1E;
  --text-2: #48484A;
  --text-3: #636366;
  --text-4: #AEAEB2;
  --border: #E5E5EA;
  --border-2: #D1D1D6;
  --white: #FFFFFF;
  --green: #34C759;
  --green-bg: #E8F5E9;
  --red: #FF3B30;
  --red-bg: #FFEBEE;
  --yellow: #FF9500;
  --yellow-bg: #FFF8E1;
  --blue: #007AFF;
  --blue-bg: #E3F2FD;
  --shadow-xs: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --shadow-primary: 0 4px 20px rgba(232,64,28,0.28);
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { text-decoration: none; }
button { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 0; height: 0; }

/* ===== TOP NAV ===== */
.top-nav {
  background: var(--white);
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.top-nav .nav-title { font-size: 17px; font-weight: 700; color: var(--text); }
.nav-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream-dark); display: flex; align-items: center;
  justify-content: center; font-size: 18px; cursor: pointer;
  color: var(--text); flex-shrink: 0;
}
.cart-btn {
  position: relative; width: 38px; height: 38px;
  border-radius: 50%; background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
}
.cart-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--primary); color: white;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--white); display: flex; justify-content: space-around;
  padding: 10px 0 18px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06); z-index: 100;
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-4); font-size: 10px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: color 0.2s; padding: 0 8px;
}
.bottom-nav .nav-item .icon { font-size: 23px; }
.bottom-nav .nav-item.active { color: var(--primary); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange) 100%);
  color: white; border: none; border-radius: var(--radius);
  padding: 15px 20px; font-size: 16px; font-weight: 700;
  width: 100%; cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-primary); letter-spacing: 0.1px;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background 0.2s;
}
.btn-primary:active::after { background: rgba(255,255,255,0.12); }
.btn-primary:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }

.btn-outline {
  background: var(--white); border: 2px solid var(--primary);
  color: var(--primary); border-radius: var(--radius);
  padding: 14px 20px; font-size: 15px; font-weight: 700;
  width: 100%; cursor: pointer; transition: all 0.2s;
}
.btn-outline:active { background: var(--primary-bg); }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text-3); }
.form-input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 15px; outline: none; background: var(--white);
  transition: all 0.2s; color: var(--text); font-family: inherit;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,64,28,0.09); }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 14px; }
.card-body { padding: 16px; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; gap: 3px; }
.badge-orange { background: var(--primary-bg); color: var(--primary); }
.badge-green { background: var(--green-bg); color: #1B5E20; }
.badge-blue { background: var(--blue-bg); color: #0D47A1; }
.badge-red { background: var(--red-bg); color: #B71C1C; }
.badge-yellow { background: var(--yellow-bg); color: #E65100; }
.badge-gray { background: #F5F5F5; color: #424242; }

/* ===== TOAST ===== */
#toast-container { position: fixed; top: 58px; left: 50%; transform: translateX(-50%); z-index: 9999; width: 90%; max-width: 440px; }
.toast { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 8px; animation: toastIn 0.3s cubic-bezier(.34,1.56,.64,1); display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-md); }
.toast-success { background: var(--green-bg); color: #1B5E20; border: 1px solid #A5D6A7; }
.toast-error { background: var(--red-bg); color: #B71C1C; border: 1px solid #EF9A9A; }
.toast-info { background: var(--blue-bg); color: #0D47A1; border: 1px solid #90CAF9; }
.toast-reward { background: var(--yellow-bg); color: #E65100; border: 1px solid #FFE082; }
@keyframes toastIn { from { opacity:0; transform:translateY(-10px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }

/* ===== LOADING ===== */
.loading { text-align: center; padding: 60px 20px; color: var(--text-3); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 64px 24px; color: var(--text-3); }
.empty-state .empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; line-height: 1.5; }

/* ===== PAGE ===== */
.page { padding: 16px; padding-bottom: 96px; }
.section-title { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 14px; }

/* ===== TIME SLOTS ===== */
.time-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.time-slot { padding: 9px 14px; border-radius: var(--radius-xs); border: 1.5px solid var(--border); background: var(--white); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; color: var(--text-2); }
.time-slot.active { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.time-slot.disabled { opacity: 0.35; cursor: not-allowed; background: var(--cream-dark); }

/* ===== INFO BOX ===== */
.info-box { background: var(--primary-bg); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13px; color: var(--primary); font-weight: 500; margin-bottom: 16px; border-left: 3px solid var(--primary); }

/* ===== STAR RATING ===== */
.star-row { display: flex; gap: 6px; margin: 14px 0; }
.star { font-size: 34px; cursor: pointer; color: var(--border); transition: color 0.12s; }
.star.active { color: var(--yellow); }
