/* home.css - Light Theme with 2-Step Cart Flow */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --cyan-top: #008be5;
  --cyan-bottom: #00b2ff;
  --bg-light: #f8fafc;
  --card-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --brand-red: #e11d48;
  --veg-green: #15803d;
  --border-light: #e2e8f0;
}

* {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  padding-bottom: 50px;
}

/* 1. TOP STICKY CYAN HEADER */
.main-sky-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: linear-gradient(180deg, var(--cyan-top) 0%, #009cf0 75%, var(--cyan-bottom) 100%);
  padding: 10px 0 12px 0;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 139, 229, 0.2);
}

.loc-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.loc-subtitle {
  font-size: 11px;
  color: #e0f2fe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.district-pill {
  background: #741584;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.circle-nav-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  border: none;
}

.avatar-initial {
  width: 36px;
  height: 36px;
  background: #fed7aa;
  color: #9a3412;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border: 1.5px solid #ffffff;
}

/* Search bar & VEG Switch */
.search-input-box {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-input-box input {
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  width: 100%;
  background: transparent;
}

.veg-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.veg-switch {
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s ease;
}

.veg-switch::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.veg-active .veg-switch {
  background: #16a34a;
}

.veg-active .veg-switch::after {
  transform: translateX(16px);
}

/* 2. DYNAMIC CATEGORY SCROLLER STRIP */
.category-scroller-wrap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}
.category-scroller-wrap::-webkit-scrollbar {
  display: none;
}

.meals-under-250-card {
  flex: 0 0 92px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border-radius: 18px;
  padding: 10px 6px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
  cursor: pointer;
  border: none;
}

.cat-item-pill {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
}

.cat-img-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.cat-item-pill:hover .cat-img-circle,
.cat-item-pill.active .cat-img-circle {
  border-color: #ef4444;
  transform: scale(1.05);
}

.cat-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-label-text {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
}

.cat-item-pill.active .cat-label-text {
  font-weight: 800;
  color: #0f172a;
}

.cat-red-indicator {
  width: 26px;
  height: 3px;
  background: #ef4444;
  border-radius: 3px;
  margin-top: 3px;
  display: none;
}

.cat-item-pill.active .cat-red-indicator {
  display: block;
}

/* 3. STICKY FILTER STRIP */
.sticky-filter-row {
  position: sticky;
  top: 53px;
  z-index: 1030;
  background: #ffffff;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.filter-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip-btn.active {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}

/* 4. DISH CARDS */
.dish-grid-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-img-box {
  position: relative;
  width: 100%;
  height: 130px;
  background: #f1f5f9;
}

.dish-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-black-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  text-align: center;
  letter-spacing: 0.3px;
}

.star-rating-pill {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: #15803d;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.veg-indicator-box {
  position: absolute;
  bottom: 6px;
  right: 8px;
  width: 15px;
  height: 15px;
  background: #ffffff;
  border: 1.5px solid #16a34a;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veg-indicator-box::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
}

.dish-content-box {
  padding: 10px 12px 14px 12px;
}

.dish-name-text {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dish-category-text {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 4px;
}

.near-delivery-text {
  font-size: 10px;
  font-weight: 700;
  color: #0d9488;
  display: flex;
  align-items: center;
  gap: 3px;
}

.dish-action-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dish-price-text {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.btn-red-add {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 11.5px;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-red-add:hover {
  background: #e11d48;
  color: #ffffff;
}

.stepper-btn-box {
  background: #e11d48;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 800;
}

.stepper-btn-box button {
  background: none;
  border: none;
  color: #ffffff;
  padding: 0 4px;
  font-weight: 900;
  cursor: pointer;
}

/* 5. FLOATING RED CART BAR */
.floating-red-cart-bar {
  position: fixed;
  bottom: 84px;
  left: 14px;
  right: 14px;
  max-width: 480px;
  margin: 0 auto;
  background: #e11d48;
  color: #ffffff;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1050;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
  cursor: pointer;
}

.red-cart-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.red-cart-right {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
}

/* 6. FLOATING DUAL NAVIGATION PILL */
.bottom-dual-pill {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 1045;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.pill-container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  max-width: 480px;
  width: 100%;
}

.white-capsule {
  flex: 1;
  background: #ffffff;
  border-radius: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
}

.pill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}

.pill-item.active {
  color: #e11d48;
}

.healthy-mode-pill {
  background: #1e392a;
  color: #ffffff;
  border-radius: 40px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  border: none;
  box-shadow: 0 6px 20px rgba(30, 57, 42, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

/* 7. 2-STEP CART DRAWER STYLES */
.cart-drawer-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.cart-item-stepper {
  display: inline-flex;
  align-items: center;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 2px 6px;
}

.cart-item-stepper button {
  background: none;
  border: none;
  color: #e11d48;
  font-weight: 900;
  font-size: 14px;
  padding: 2px 8px;
  cursor: pointer;
}

.cart-item-stepper span {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  min-width: 18px;
  text-align: center;
}

.bill-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
}

.step-indicator-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.step-circle.active {
  background: #e11d48;
  color: #ffffff;
}

.step-circle.inactive {
  background: #e2e8f0;
  color: #64748b;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #cbd5e1;
}

/* 8. DESKTOP VIEW */
@media (min-width: 992px) {
  body {
    padding-bottom: 30px;
  }
  .floating-red-cart-bar {
    display: none !important;
  }
  .bottom-dual-pill {
    display: none !important;
  }
  .desktop-checkout-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 110px;
  }
}

.floating-red-cart-bar {
  z-index: 1035 !important; /* Drawer ke neeche rahega */
}




/* ================= PROFESSIONAL MODERN FOOTER ================= */
.pro-footer-section {
  background: #0b1329;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  padding: 50px 0 115px 0; /* Mobile bottom floating menu ke liye spacing */
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.pro-footer-brand-title {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.pro-footer-brand-title span {
  color: #00b2ff;
}

.pro-footer-address {
  color: #cbd5e1 !important;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #131f37;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 8px 14px;
  color: #f8fafc !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-contact-pill:hover {
  background: #008be5;
  color: #ffffff !important;
  border-color: #008be5;
}

.footer-fssai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80 !important;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: monospace;
}

.footer-col-heading {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}

.footer-col-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 24px;
  height: 2px;
  background: #00b2ff;
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  color: #cbd5e1 !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.footer-nav-link i {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-nav-link:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

.footer-nav-link:hover i {
  color: #00b2ff;
}

/* ============ COLORFUL PAYMENT BADGES STRIP ============ */
.footer-payment-strip {
  background: #101c38;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 16px 20px;
  margin-top: 35px;
}

.payment-badge-card {
  height: 32px;
  padding: 4px 12px;
  background: #ffffff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.payment-badge-card:hover {
  transform: translateY(-2px);
}

.payment-badge-card img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

.payment-badge-card.razorpay-badge {
  background: #02042b;
  border: 1px solid #2b395e;
  padding: 4px 12px;
}

.payment-badge-card.razorpay-badge img {
  height: 16px;
}

.pro-footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 25px;
  padding-top: 20px;
  color: #94a3b8 !important;
  font-size: 12.5px;
}