:root {
  --jeevi-red: #E31E24;
  --jeevi-yellow: #FFC72C;
  --jeevi-dark: #1a1a1a;
}
body { background: #f7f7f8; font-family: 'Segoe UI', system-ui, sans-serif; padding-bottom: 0; }
body.has-bottom-nav { padding-bottom: 78px; }

/* ---------- Top navbar ---------- */
.navbar-jeevi { background: var(--jeevi-red); }
.navbar-jeevi .navbar-brand { color: #fff; font-weight: 800; font-size: 1.4rem; }
.navbar-jeevi .nav-link { color: #fff !important; font-weight: 500; }

/* ---------- Deliver-to + search bar (mockup's red header block) ---------- */
.deliver-bar { background: var(--jeevi-red); padding: 14px 0 22px; color: #fff; }
.deliver-bar .deliver-label { font-size: .72rem; opacity: .85; }
.deliver-bar .deliver-address { font-weight: 700; font-size: .95rem; }
.deliver-bar .search-pill { background: #fff; border-radius: 14px; padding: 4px 6px 4px 14px; display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.deliver-bar .search-pill input { border: none; outline: none; flex-grow: 1; padding: 8px 0; font-size: .95rem; }
.deliver-bar .search-pill .filter-btn { background: var(--jeevi-red); color: #fff; border-radius: 10px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn-jeevi { background: var(--jeevi-red); color: #fff; border: none; font-weight: 600; }
.btn-jeevi:hover { background: #b3181d; color: #fff; }
.btn-jeevi-outline { border: 2px solid var(--jeevi-red); color: var(--jeevi-red); font-weight: 600; background: #fff; }
.btn-pill-white { background: #fff; color: var(--jeevi-dark); border-radius: 30px; font-weight: 700; padding: 10px 26px; border: none; }

/* ---------- Cards ---------- */
.card-jeevi { border: none; border-radius: 16px; box-shadow: 0 3px 14px rgba(0,0,0,.08); overflow: hidden; transition: transform .15s, box-shadow .15s; background: #fff; }
.card-jeevi:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }

.cover-img { width: 100%; object-fit: cover; display: block; background: linear-gradient(135deg, #2b2b2b, #444); }
.cover-img.h-sm { height: 110px; }
.cover-img.h-md { height: 130px; }
.cover-img.h-lg { height: 170px; }
.cover-img.h-hero { height: 340px; }

.card-img-wrap { position: relative; }

/* Bottom-overlap discount chip, matching the mockup's "50% OFF" pill under the photo */
.discount-chip { position: relative; z-index: 2; margin: -14px 10px 0; background: var(--jeevi-red); color: #fff; font-weight: 700; font-size: .72rem; padding: 5px 12px; border-radius: 8px; display: inline-block; box-shadow: 0 3px 8px rgba(227,30,36,.35); }

/* ---------- Hero banner (dark food photo + starburst offer badge) ---------- */
.hero-banner {
  position: relative;
  border-radius: 20px;
  color: #fff;
  padding: 2.2rem;
  min-height: 230px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(120deg, rgba(10,10,10,.82), rgba(10,10,10,.25)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1400&h=600&fit=crop');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-banner h1 { font-weight: 800; font-size: 2.1rem; text-shadow: 0 2px 8px rgba(0,0,0,.4); margin-bottom: .25rem; }
.hero-banner .subtitle { font-weight: 700; font-size: 1.3rem; color: var(--jeevi-yellow); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.offer-starburst {
  position: absolute; top: 18px; right: 22px;
  background: var(--jeevi-red); color: #fff; width: 78px; height: 78px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: .78rem; line-height: 1.05; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.35); border: 3px solid #fff;
}
.offer-starburst .big { font-size: 1.3rem; }

/* ---------- Categories ---------- */
.section-title { font-weight: 800; color: var(--jeevi-dark); }
.category-pill { text-align: center; text-decoration: none; color: var(--jeevi-dark); font-weight: 600; font-size: .85rem; }
.category-circle { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-size: 1.7rem; border: 3px solid #fff; }

/* ---------- Promo banner cards (Free Delivery / Flat 30% off) ---------- */
.promo-card { border-radius: 16px; padding: 1.1rem 1.2rem; position: relative; overflow: hidden; min-height: 110px; display: flex; flex-direction: column; justify-content: center; }
.promo-card.promo-yellow { background: linear-gradient(135deg, #FFD65C, var(--jeevi-yellow)); color: #1a1a1a; }
.promo-card.promo-red { background: linear-gradient(135deg, #ff4d4f, var(--jeevi-red)); color: #fff; }
.promo-card .promo-title { font-weight: 800; font-size: 1.1rem; line-height: 1.15; }
.promo-card .promo-sub { font-size: .8rem; opacity: .9; }
.promo-card .promo-code { display: inline-block; margin-top: 8px; background: rgba(0,0,0,.15); padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: .78rem; }

/* Dark combo-offer style banner */
.combo-banner { background: #1a1a1a; color: #fff; border-radius: 16px; padding: 1.3rem; display: flex; justify-content: space-between; align-items: center; }
.combo-banner .combo-title { color: var(--jeevi-yellow); font-weight: 800; font-size: 1.15rem; }

/* ---------- Ratings / veg markers ---------- */
.rating-badge { background: #2f9e44; color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.veg-dot { display:inline-block; width:14px; height:14px; border:2px solid #2f9e44; border-radius:3px; position:relative; }
.veg-dot::after { content:''; position:absolute; inset:2px; background:#2f9e44; border-radius:50%; }
.nonveg-dot { display:inline-block; width:14px; height:14px; border:2px solid #c92a2a; border-radius:3px; position:relative; }
.nonveg-dot::after { content:''; position:absolute; inset:2px; background:#c92a2a; }

/* ---------- "Why Choose Jeevi" feature strip ---------- */
.why-choose-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff5f5; color: var(--jeevi-red); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 10px; }
.why-choose-item { text-align: center; }
.why-choose-item .label { font-weight: 700; font-size: .82rem; color: var(--jeevi-dark); text-transform: uppercase; letter-spacing: .3px; }

/* ---------- Trust badges (Live Tracking / Secure Payment / Easy Returns) ---------- */
.trust-badge { text-align: center; color: #444; }
.trust-badge i { font-size: 1.4rem; color: var(--jeevi-red); }
.trust-badge .label { font-weight: 700; font-size: .8rem; display: block; margin-top: 4px; }
.trust-badge .sub { font-size: .7rem; color: #888; }

/* ---------- Bottom mobile tab nav ---------- */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    background: #fff; border-top: 1px solid #eee; box-shadow: 0 -2px 10px rgba(0,0,0,.06);
    padding: 8px 0 10px;
  }
  .bottom-nav a { flex: 1; text-align: center; color: #888; text-decoration: none; font-size: .68rem; font-weight: 600; }
  .bottom-nav a i { display: block; font-size: 1.25rem; margin-bottom: 2px; }
  .bottom-nav a.active { color: var(--jeevi-red); }
}

.footer-jeevi { background: var(--jeevi-dark); color: #ccc; padding: 2rem 0; margin-top: 3rem; }

/* ---------- Order tracking timeline ---------- */
.status-step { text-align: center; flex: 1; position: relative; }
.status-step .dot { width: 30px; height: 30px; border-radius: 50%; background: #ddd; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-weight: 700; }
.status-step.active .dot, .status-step.done .dot { background: var(--jeevi-red); }
.status-line { position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #ddd; z-index: -1; }
.status-step.done .status-line, .status-step.active .status-line { background: var(--jeevi-red); }
#trackingMap { height: 300px; border-radius: 12px; }

@media (max-width: 576px) {
  .hero-banner { min-height: 190px; padding: 1.6rem; }
  .hero-banner h1 { font-size: 1.5rem; }
  .offer-starburst { width: 62px; height: 62px; font-size: .68rem; top: 12px; right: 12px; }
  .offer-starburst .big { font-size: 1.05rem; }
}


/* White badge wrapper for the logo when placed on a dark background (admin sidebar) */
.brand-badge { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block; }

/* ---------- Delivery partner: Order Details page (matches reference layout) ---------- */
.order-details-header { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.order-details-header a { color: var(--jeevi-dark); font-size: 1.3rem; text-decoration: none; }
.order-details-header h5 { margin: 0; font-weight: 700; flex-grow: 1; text-align: center; margin-right: 24px; }

.detail-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 16px; margin-bottom: 16px; }
.detail-card .section-label { color: #999; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.detail-card .party-name { font-weight: 700; font-size: 1.05rem; }
.detail-card .party-address { color: #777; font-size: .85rem; margin-top: 2px; }

.contact-actions { display: flex; gap: 22px; margin-top: 12px; }
.contact-actions a { color: var(--jeevi-red); text-decoration: none; font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.contact-actions a.direction-link { color: #666; }

.diet-tag { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.diet-tag.veg { background: #e6f7ec; color: #2f9e44; }
.diet-tag.nonveg { background: #fdeee7; color: #d9480f; }

.order-item-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f1f1f1; }
.order-item-row:last-child { border-bottom: none; }
.order-item-row .item-name { font-weight: 600; }
.order-item-row .item-price { color: #777; font-size: .85rem; margin-top: 2px; }
.order-item-row .item-qty { text-align: right; font-size: .85rem; color: #555; }

.bill-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .92rem; }
.bill-row.total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid #eee; margin-top: 6px; padding-top: 10px; }

.distance-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff3e0; color: #e8590c; font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 20px; }

/* ---------- Delivery partner: swipeable "New Orders" list ---------- */
.pending-swipe-wrap { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.pending-swipe-bg {
  position: absolute; inset: 0; background: var(--jeevi-red); color: #fff;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 24px;
  font-weight: 700; gap: 8px;
}
.pending-swipe-card {
  position: relative; z-index: 2; background: #fff; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  touch-action: pan-y; cursor: grab; user-select: none;
}
.pending-card-info { min-width: 0; }
.pending-accept-form { flex-shrink: 0; }

/* ---------- Floating "View Cart" bar on restaurant menu page ---------- */
.view-cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 16px; max-width: 500px; margin: 0 auto;
  background: var(--jeevi-red); color: #fff; border-radius: 14px;
  padding: 14px 20px; display: none; align-items: center; justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); z-index: 1040; text-decoration: none; font-weight: 700;
}
.view-cart-bar.show { display: flex; }
.view-cart-bar:hover { color: #fff; }
@media (max-width: 767px) { .view-cart-bar { bottom: 78px; } }

/* ---------- Cart page quantity stepper ---------- */
.qty-stepper { display: flex; align-items: center; gap: 10px; }
.qty-stepper button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--jeevi-red);
  background: #fff; color: var(--jeevi-red); font-weight: 800; line-height: 1;
}
.qty-stepper button:hover { background: var(--jeevi-red); color: #fff; }
.qty-stepper .qty-value { min-width: 20px; text-align: center; font-weight: 700; }

/* ---------- Star rating selector (rate a delivered order) ---------- */
.star-rating { display: inline-flex; flex-direction: row-reverse; font-size: 1.6rem; }
.star-rating input { display: none; }
.star-rating label { color: #ddd; cursor: pointer; padding: 0 2px; transition: color .15s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--jeevi-yellow); }

/* ---------- Restaurant open/closed status ---------- */
.open-status-chip {
  position: absolute; bottom: 8px; left: 8px; z-index: 2;
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  color: #fff;
}
.open-status-chip.open { background: #2f9e44; }
.open-status-chip.closed { background: #6b6b6b; }
.restaurant-closed { opacity: .6; filter: grayscale(40%); }
.closed-banner {
  background: #fdecea; color: #c92a2a; border: 1px solid #f5c2c0;
  border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Quantity stepper on menu item cards (matches reference design) ---------- */
.item-qty-stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--jeevi-red); border-radius: 30px; padding: 4px 6px;
  min-width: 92px;
}
.item-qty-stepper button {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: #fff; color: var(--jeevi-red); font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.item-qty-stepper .item-qty-value { color: #fff; font-weight: 800; font-size: .95rem; }

/* ---------- Transient "Item added to cart" toast ---------- */
.add-toast {
  position: fixed; left: 12px; right: 12px; bottom: 16px; max-width: 500px; margin: 0 auto;
  background: #2f9e44; color: #fff; border-radius: 14px; padding: 14px 20px;
  display: none; align-items: center; justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); z-index: 1050; font-weight: 700;
  opacity: 0; transition: opacity .25s ease;
}
.add-toast.show { display: flex; opacity: 1; }
.add-toast a { color: #fff; text-decoration: underline; font-weight: 700; }

/* ---------- Bottom summary bar: Item count / Total / View Cart ---------- */
.cart-summary-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  padding: 14px 18px; display: none; align-items: center; justify-content: space-between;
}
.cart-summary-bar.show { display: flex; }
.cart-summary-bar .summary-left .item-count { font-weight: 600; color: #333; font-size: .95rem; }
.cart-summary-bar .summary-left .item-total { font-weight: 800; color: var(--jeevi-red); font-size: 1.1rem; }
.cart-summary-bar .btn-view-cart {
  background: var(--jeevi-red); color: #fff; font-weight: 700; border: none;
  border-radius: 10px; padding: 12px 26px; font-size: 1rem;
}
@media (max-width: 767px) { .cart-summary-bar { padding-bottom: calc(14px + env(safe-area-inset-bottom)); } }

/* ---------- Like / Share buttons ---------- */
.like-share-row { display: flex; align-items: center; gap: 14px; }
.like-btn { background: none; border: none; display: flex; align-items: center; gap: 5px; color: #666; font-weight: 600; font-size: .85rem; padding: 0; }
.like-btn i { font-size: 1.1rem; color: #999; transition: color .15s, transform .15s; }
.like-btn.liked i { color: var(--jeevi-red); transform: scale(1.1); }
.like-btn.liked { color: var(--jeevi-red); }
.share-btn { background: none; border: none; display: flex; align-items: center; gap: 5px; color: #666; font-weight: 600; font-size: .85rem; padding: 0; }
.share-btn i { font-size: 1.05rem; color: #999; }
.card-like-overlay { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(255,255,255,.92); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: none; }
.card-like-overlay i { font-size: 1.05rem; color: #999; }
.card-like-overlay.liked i { color: var(--jeevi-red); }
