/* ==========================================================================
   Neighbourhood Food — World-Class Storefront & Tracking UI
   Premium Design System · Micro-Interactions · Glass Morphism
   ========================================================================== */

/* ---------- Reset & Typography ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm Culinary Brand Palette */
  --orange:        #d9531e;
  --orange-dark:   #b83d0d;
  --orange-deep:   #962f07;
  --orange-light:  #fdf2ec;
  --orange-glow:   rgba(217, 83, 30, .20);

  --green:         #2e7d32;
  --green-dark:    #1b5e20;
  --green-light:   #edf7ee;
  --green-glow:    rgba(46, 125, 50, .18);

  --red:           #d32f2f;
  --red-dark:      #b71c1c;
  --red-light:     #fdecec;

  /* Warm Earthy Neutrals */
  --text:          #22201e;
  --text-secondary:#6c6863;
  --muted:         #9c9790;
  --line:          #ede8e1;
  --line-subtle:   #f5f1eb;
  --bg:            #faf8f5;
  --card:          #ffffff;
  --card-hover:    #fdfcfa;

  /* Elevation */
  --shadow-xs:     0 1px 2px rgba(34,32,30,.04);
  --shadow-sm:     0 1px 4px rgba(34,32,30,.06);
  --shadow:        0 4px 20px rgba(34,32,30,.07);
  --shadow-md:     0 6px 28px rgba(34,32,30,.10);
  --shadow-lg:     0 12px 40px rgba(34,32,30,.14);
  --shadow-xl:     0 20px 60px rgba(34,32,30,.18);

  /* Radii */
  --r-xs:   6px;
  --r-sm:   10px;
  --r:      16px;
  --r-lg:   22px;
  --r-xl:   26px;
  --r-pill: 999px;

  /* Transitions */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-smooth: cubic-bezier(.25, .1, .25, 1);
  --ease-spring: cubic-bezier(.175, .885, .32, 1.275);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-bottom: 120px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
button { font-family: inherit; cursor: pointer; transition: all .2s var(--ease-smooth); }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--text); }

/* ========================================================================
   HEADER — Frosted Glass Sticky Bar
   ======================================================================== */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding-top: max(10px, env(safe-area-inset-top));
}
.hdr.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.hdr-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.logo-wrap { position: relative; }
.logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(34, 32, 30, .08);
  flex-shrink: 0;
  transition: transform .3s var(--ease-spring);
  overflow: hidden;
}
.logo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block;
}
.hdr-brand:hover .logo { transform: rotate(-6deg) scale(1.05); }
.logo.big { width: 68px; height: 68px; font-size: 38px; margin: 0 auto 12px; }

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 20px; letter-spacing: -.2px; color: var(--text);
  line-height: 1.2;
}
.brand-loc {
  font-size: 12px; color: var(--text-secondary); font-weight: 600;
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}

/* Status Pills */
.status-pill {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: .3px; text-transform: uppercase;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}
.status-open { background: var(--green-light); color: var(--green-dark); }
.status-open .status-dot { background: var(--green); animation: pulse-dot 2s infinite; }
.status-closed { background: var(--red-light); color: var(--red-dark); }
.status-closed .status-dot { background: var(--red); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}

/* Header Right Actions */
.hdr-right { display: flex; align-items: center; gap: 8px; }

.track-link {
  text-decoration: none; color: var(--text-secondary); font-size: 13px; font-weight: 700;
  background: #f4f5f7; padding: 9px 14px; border-radius: var(--r-pill); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s var(--ease-smooth); border: 1px solid transparent;
}
.track-link:hover { background: #ebedf0; border-color: var(--line); color: var(--text); }

.cart-pill {
  border: none; background: var(--orange); color: #fff;
  font-weight: 800; font-size: 13.5px; padding: 9px 16px; border-radius: var(--r-pill);
  box-shadow: 0 4px 16px rgba(252, 128, 25, .35);
  display: inline-flex; align-items: center; gap: 7px;
  position: relative; overflow: hidden;
}
.cart-pill::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  pointer-events: none;
}
.cart-pill:hover {
  background: var(--orange-dark); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(252, 128, 25, .45);
}
.cart-pill:active { transform: translateY(0) scale(.97); }

/* ========================================================================
   BANNERS
   ======================================================================== */
.announcement {
  background: linear-gradient(135deg, #fff8f0, var(--orange-light));
  color: #8a4b0f; border-bottom: 1px solid #ffd9b0;
  padding: 11px 16px; font-size: 13.5px; text-align: center; font-weight: 600;
  line-height: 1.4;
}

/* Kitchen Closed Hero Notice */
.closed-banner-hero {
  max-width: 960px; margin: 16px auto 0; padding: 0 16px;
  animation: bannerFadeIn .35s var(--ease-smooth);
}
@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cb-hero-inner {
  background: linear-gradient(135deg, #fff8f8 0%, #ffeded 50%, #fee4e4 100%);
  border: 1.5px solid #fecaca;
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(226, 55, 68, 0.08);
}
.cb-hero-badge {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, #ff7675, #d63031);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(214, 48, 49, .28);
}
.cb-hero-title {
  font-size: 16.5px; font-weight: 900; color: #991b1b;
  letter-spacing: -.2px; display: flex; align-items: center; gap: 8px;
}
.cb-hero-sub {
  font-size: 13px; color: #7f1d1d; margin-top: 3px; line-height: 1.5; font-weight: 500;
}

/* ========================================================================
   SEARCH & QUICK FILTERS
   ======================================================================== */
.filter-controls {
  max-width: 960px; margin: 0 auto; padding: 16px 16px 6px;
  display: flex; flex-direction: column; gap: 10px;
}
.search-box {
  position: relative; width: 100%; display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 16px; color: var(--muted); pointer-events: none;
  transition: color .2s;
}
.search-box:focus-within .search-icon { color: var(--orange); }

#search {
  width: 100%; padding: 14px 44px 14px 46px; border-radius: var(--r);
  border: 1.5px solid var(--line); outline: none; background: var(--card);
  font-size: 15px; font-weight: 500; transition: all .25s var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}
#search::placeholder { color: var(--muted); font-weight: 400; }
#search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow), var(--shadow-sm);
}
.search-clear {
  position: absolute; right: 12px; border: none; background: var(--line);
  width: 26px; height: 26px; border-radius: 50%; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.search-clear:hover { background: #d5d7dc; color: var(--text); }

.quick-filters {
  display: flex; align-items: center; gap: 12px; padding: 2px 4px;
}
.veg-toggle-wrap {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 16px; font-size: 13px; font-weight: 700; user-select: none;
  transition: all .25s var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}
.veg-toggle-wrap input { display: none; }
.veg-toggle-switch {
  width: 34px; height: 19px; background: #d5d7dc; border-radius: var(--r-pill);
  position: relative; transition: background .25s var(--ease-smooth);
}
.veg-toggle-switch::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 14px; height: 14px;
  background: #fff; border-radius: 50%; transition: transform .25s var(--ease-bounce);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.veg-toggle-wrap input:checked + .veg-toggle-switch { background: var(--green); }
.veg-toggle-wrap input:checked + .veg-toggle-switch::after { transform: translateX(15px); }
.veg-toggle-wrap:has(input:checked) {
  border-color: var(--green); background: var(--green-light); color: var(--green-dark);
}
.veg-badge-mini {
  width: 14px; height: 14px; border-radius: 3px; display: inline-flex;
  align-items: center; justify-content: center;
}
.veg-badge-mini.v { border: 2px solid #22a447; }
.veg-badge-mini.v i { width: 5px; height: 5px; border-radius: 50%; background: #22a447; display: block; }

/* ========================================================================
   CATEGORY PILLS — Horizontal Scroll with Fade Edges
   ======================================================================== */
.cat-pills {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  max-width: 960px; margin: 0 auto;
  position: sticky; top: 66px; z-index: 30;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 80%, transparent 100%);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.cat-pills::-webkit-scrollbar { display: none; }

.pill {
  flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--card);
  padding: 8px 18px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700;
  color: var(--text-secondary); white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: all .2s var(--ease-smooth);
}
.pill:hover {
  border-color: #c8cad0; background: var(--card-hover);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.pill.active {
  background: var(--text); border-color: var(--text); color: #ffffff;
  box-shadow: 0 4px 14px rgba(27, 28, 36, .2);
  transform: translateY(-1px);
}

/* ========================================================================
   MENU GRID & ITEM CARDS — Premium Design
   ======================================================================== */
.menu {
  max-width: 960px; margin: 0 auto; padding: 8px 16px 40px; min-height: 400px;
}
.cat-section { margin-top: 28px; scroll-margin-top: 140px; }
.cat-title {
  font-size: 21px; font-weight: 900; display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 10px; letter-spacing: -.3px;
  border-bottom: 2px solid var(--line);
  color: var(--text);
}
.cat-title small {
  color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0;
}
.cat-items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px; margin-top: 16px;
}
@media (max-width: 768px) {
  .cat-items { grid-template-columns: 1fr; gap: 10px; }
}

/* --- Item Card (Hero Element) --- */
.item-card {
  display: flex; justify-content: space-between; gap: 16px;
  background: var(--card); border-radius: var(--r); padding: 18px;
  border: 1px solid var(--line); position: relative;
  transition: all .25s var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}
.item-card:hover {
  border-color: #dcd6cc;
  box-shadow: 0 4px 18px rgba(34,32,30,.06);
  transform: translateY(-2px);
}
.item-card.soldout { opacity: .7; }
.item-card.soldout:hover { transform: none; box-shadow: var(--shadow-xs); }

/* Typography-First Cards (When dish has no photo) */
.item-card.no-image {
  align-items: center;
}
.item-card.no-image .item-info {
  padding-right: 8px;
}
.item-action-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.item-action-wrap .add-btn,
.item-action-wrap .stepper {
  position: static;
  transform: none;
}
.item-action-wrap .add-btn:hover {
  transform: scale(1.04);
}

.item-info { flex: 1; min-width: 0; }

/* Veg / Non-Veg Badge */
.veg-badge {
  width: 17px; height: 17px; border-radius: 4px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 6px;
  transition: transform .2s var(--ease-bounce);
}
.item-card:hover .veg-badge { transform: scale(1.1); }
.veg-badge.v { border: 1.5px solid #2e7d32; background: #fff; }
.veg-badge.nv { border: 1.5px solid #d32f2f; background: #fff; }
.veg-badge i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.veg-badge.v i { background: #2e7d32; }
.veg-badge.nv i { background: #d32f2f; }

.item-name {
  font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.3;
  letter-spacing: -.2px;
}
.item-price {
  font-size: 15px; margin-top: 5px; font-weight: 800; color: var(--text);
  letter-spacing: -.1px;
}
.item-desc {
  font-size: 13px; color: var(--text-secondary); margin-top: 5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Item Image --- */
.item-img-wrap {
  position: relative; flex: 0 0 118px;
  display: flex; flex-direction: column; align-items: center;
}
.item-img {
  width: 118px; height: 98px; object-fit: cover; border-radius: 12px; display: block;
  border: 1px solid var(--line); background: #fdfaf6;
  box-shadow: 0 2px 8px rgba(34,32,30,.06);
  transition: transform .3s var(--ease-smooth);
}
.item-card:hover .item-img { transform: scale(1.02); }

/* ADD / Stepper Buttons */
.add-btn, .stepper {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1.5px solid var(--orange); color: var(--orange);
  font-weight: 800; font-size: 13px; letter-spacing: .5px;
  padding: 7px 0; width: 98px; border-radius: 8px;
  box-shadow: 0 3px 12px rgba(34,32,30,.08); text-align: center;
  text-transform: uppercase;
  transition: all .2s var(--ease-smooth);
}
.add-btn:hover {
  background: var(--orange); color: #ffffff;
  transform: translateX(-50%) scale(1.04);
  box-shadow: 0 4px 14px var(--orange-glow);
}
.add-btn:active { transform: translateX(-50%) scale(.96); }

.stepper {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--orange); border-color: var(--orange); color: #ffffff;
  box-shadow: 0 4px 14px var(--orange-glow);
}
.stepper button {
  border: none; background: none; color: #ffffff; font-weight: 900;
  font-size: 17px; padding: 0 10px; line-height: 1; height: 100%;
  transition: all .15s;
}
.stepper button:hover { background: rgba(0,0,0,0.12); border-radius: var(--r-xs); }
.stepper button:active { transform: scale(.85); }
.stepper span { font-weight: 800; color: #ffffff; font-size: 14px; }

/* Sold Out Styling */
.soldout-wrap { position: relative; }
.soldout-wrap .item-img {
  filter: grayscale(1) opacity(.4); transition: filter .3s;
}
.soldout-tag {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(34, 32, 30, 0.88); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 4px 10px;
  border-radius: var(--r-xs); white-space: nowrap;
  backdrop-filter: blur(4px);
}
.item-action-wrap .soldout-tag {
  position: static; transform: none;
  background: #f0ede8; color: var(--text-secondary);
  font-size: 11px; padding: 6px 12px;
}
.add-btn.disabled, .add-btn.closed-btn {
  color: #8b8d96; cursor: not-allowed; border-color: var(--line);
  background: #f4f5f8; font-size: 12px; font-weight: 800;
  letter-spacing: .5px;
}
.add-btn.disabled:hover, .add-btn.closed-btn:hover {
  background: #ebecef; transform: translateX(-50%);
  box-shadow: var(--shadow-xs);
}

/* Empty States */
.empty-note {
  text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px;
  line-height: 1.6;
}

/* Loading Animation */
.loading-wrap { text-align: center; padding: 80px 20px; color: var(--muted); }
.loader {
  width: 44px; height: 44px; margin: 0 auto 18px; position: relative;
}
.loader-ring {
  position: absolute; inset: 0; border: 3px solid transparent;
  border-radius: 50%;
}
.loader-ring:nth-child(1) {
  border-top-color: var(--orange); animation: spin .9s linear infinite;
}
.loader-ring:nth-child(2) {
  inset: 4px; border-right-color: var(--green); animation: spin 1.2s linear infinite reverse;
}
.loader-ring:nth-child(3) {
  inset: 8px; border-bottom-color: var(--text); animation: spin 1.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 16px; height: 16px; border: 2.5px solid #e5e5ec; border-top-color: var(--orange);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle;
}

/* ========================================================================
   FLOATING CART BAR (Mobile Bottom)
   ======================================================================== */
.cart-bar {
  position: fixed; left: 14px; right: 14px; max-width: 560px; margin: 0 auto;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(135deg, #e46836 0%, var(--orange) 45%, var(--orange-dark) 100%);
  color: #ffffff; border-radius: 18px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  box-shadow: 0 8px 30px rgba(217, 83, 30, .38),
              0 0 0 1px rgba(255,255,255,.12) inset;
  z-index: 75; cursor: pointer;
  transition: bottom .3s var(--ease-smooth), transform .2s var(--ease-smooth), box-shadow .2s var(--ease-smooth);
  animation: floatBarSlideUp .35s var(--ease-spring);
}
@keyframes floatBarSlideUp {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (hover: hover) {
  .cart-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(252, 128, 25, .55);
  }
}
.cart-bar:active { transform: scale(.98); }

.cb-left { display: flex; align-items: center; gap: 12px; }
.cb-badge {
  background: rgba(0, 0, 0, 0.2); width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px;
  backdrop-filter: blur(4px);
}
.cb-total-label { font-size: 11px; opacity: .85; text-transform: uppercase; font-weight: 700; letter-spacing: .5px; }
.cb-price { font-size: 18px; font-weight: 900; letter-spacing: -.2px; }
.cb-right {
  font-weight: 800; font-size: 15px; letter-spacing: .2px;
  display: flex; align-items: center; gap: 4px;
}

/* ========================================================================
   DRAWER & CHECKOUT MODAL
   ======================================================================== */
.backdrop {
  position: fixed; inset: 0; background: rgba(18, 20, 28, .55); z-index: 90;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: opacity .3s var(--ease-smooth);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  position: fixed; background: var(--card); z-index: 100;
  display: flex; flex-direction: column;
  transition: transform .32s cubic-bezier(.32, .72, 0, 1);
}

.drawer-handle {
  width: 44px; height: 5px; background: #ded9d2; border-radius: 999px;
  margin: 10px auto 2px; cursor: pointer; flex-shrink: 0;
}

@media (max-width: 640px) {
  .drawer {
    top: auto; bottom: 0; right: 0; left: 0;
    width: 100%; max-width: 100%; max-height: 88vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(105%);
    box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  }
  .drawer.open { transform: translateY(0); }
  .drawer-handle { display: block; }
}

@media (min-width: 641px) {
  .drawer {
    top: 0; bottom: 0; right: 0; height: 100%;
    width: min(450px, 100%);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    box-shadow: -6px 0 30px rgba(0,0,0,.15);
  }
  .drawer.open { transform: translateX(0); }
  .drawer-handle { display: none; }
}

.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
}
.drawer-title-wrap { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.drawer-icon { font-size: 22px; }
.icon-btn {
  border: none; background: #f4f5f7; width: 36px; height: 36px;
  border-radius: 50%; color: var(--text-secondary); display: flex;
  align-items: center; justify-content: center;
  transition: all .2s;
}
.icon-btn:hover { background: #eaebee; color: var(--text); transform: rotate(90deg); }
.icon-btn:active { transform: scale(.9); }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }

/* Cart Lines */
.cart-line {
  display: flex; justify-content: space-between; gap: 14px; padding: 14px 0;
  align-items: center; border-bottom: 1px solid var(--line-subtle);
  transition: background .15s;
}
.cart-line:hover { background: #fafbfc; }
.cart-line .cl-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.cart-line .cl-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

.mini-stepper {
  display: flex; align-items: center; gap: 12px; background: #faf7f3;
  border: 1.5px solid #ecdcc9; border-radius: var(--r-sm); padding: 6px 12px;
  color: var(--green); font-weight: 900;
}
.mini-stepper button {
  border: none; background: none; color: var(--green); font-size: 17px; font-weight: 900;
  transition: transform .15s var(--ease-bounce);
}
.mini-stepper button:hover { transform: scale(1.2); }
.mini-stepper button:active { transform: scale(.85); }

/* Bill Summary Box */
.bill-box {
  background: linear-gradient(135deg, #f9fafb, #f4f5f7);
  border: 1.5px dashed #d5d8df; border-radius: var(--r);
  padding: 18px; margin-top: 20px;
}
.bill-row {
  display: flex; justify-content: space-between; font-size: 14px;
  padding: 5px 0; color: var(--text-secondary);
}
.bill-row.total {
  font-weight: 900; font-size: 17px; color: var(--text);
  border-top: 1.5px solid var(--line); margin-top: 10px; padding-top: 13px;
}

.cod-note {
  margin-top: 16px; background: var(--green-light); color: var(--green-dark);
  font-size: 13px; font-weight: 700; border-radius: var(--r); padding: 14px 16px;
  line-height: 1.5;
  border: 1px solid rgba(27, 166, 114, .15);
}

/* Buttons */
.btn {
  border: none; border-radius: var(--r); font-weight: 800; font-size: 15px;
  padding: 14px 20px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: all .2s var(--ease-smooth); position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.btn-orange {
  background: var(--orange); color: #fff;
  box-shadow: 0 4px 16px rgba(252,128,25,.3);
}
.btn-orange:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 20px rgba(252,128,25,.4);
  transform: translateY(-1px);
}
.btn-orange:active { transform: translateY(0) scale(.98); }
.btn-orange:disabled { background: #fcc89e; box-shadow: none; cursor: not-allowed; }

.btn-ghost { background: #f4f5f7; color: var(--text); }
.btn-ghost:hover { background: #eaebee; }
.btn-ghost:active { transform: scale(.98); }
.btn.full { width: 100%; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 14px var(--green-glow); }
.btn-green:hover { background: var(--green-dark); box-shadow: 0 6px 18px var(--green-glow); transform: translateY(-1px); }

/* Form Fields */
.fld { margin-top: 16px; }
.fld label {
  font-size: 13px; font-weight: 800; color: var(--text-secondary);
  display: block; margin-bottom: 7px; letter-spacing: .2px;
}
.fld input, .fld textarea, .fld select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--card); outline: none;
  transition: all .25s var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}
.fld input:focus, .fld textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-glow);
}

/* Order Type Toggle */
.type-toggle { display: flex; gap: 10px; margin-top: 16px; }
.type-opt {
  flex: 1; border: 2px solid var(--line); border-radius: var(--r); padding: 14px 10px;
  text-align: center; background: var(--card); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .25s var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}
.type-opt:hover { border-color: #c8cad0; background: var(--card-hover); }
.type-opt.active {
  border-color: var(--orange); background: var(--orange-light); color: #9c4c04;
  box-shadow: 0 4px 14px var(--orange-glow);
}
.type-opt small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; margin-top: 4px; }

/* Error Box */
.err-msg {
  margin-top: 14px; background: var(--red-light); color: var(--red-dark);
  padding: 13px 16px; border-radius: var(--r); font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(226, 55, 68, .15);
  animation: shake .4s var(--ease-smooth);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Success */
.success-wrap { text-align: center; padding: 28px 8px; }
.success-tick {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-light); color: var(--green); font-size: 40px;
  display: flex; align-items: center; justify-content: center; font-weight: 900;
  box-shadow: 0 0 0 8px rgba(27, 166, 114, .08);
  animation: successPop .5s var(--ease-spring);
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-code {
  font-size: 32px; font-weight: 900; letter-spacing: 2px; margin: 12px 0;
  background: var(--orange-light); border: 2px dashed var(--orange); border-radius: var(--r);
  padding: 16px; color: #8a4b0f;
  animation: successPop .6s var(--ease-spring);
}

.empty-cart { text-align: center; padding: 70px 16px; color: var(--muted); }
.empty-cart .big { font-size: 58px; margin-bottom: 14px; }

/* ========================================================================
   TRACKING PAGE
   ======================================================================== */
.track-main { max-width: 680px; margin: 0 auto; padding: 20px 16px 50px; }
.track-header-bar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.hist-title { font-size: 22px; font-weight: 900; letter-spacing: -.3px; }
.live-indicator {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--green-dark); font-weight: 700; background: var(--green-light);
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(27, 166, 114, .15);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 166, 114, .3);
  animation: pulse-dot 2s infinite;
}

.card {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow); }

.order-wrap { margin-top: 16px; }
.order-card-inner { padding: 22px !important; }
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.oc-code { font-size: 24px; font-weight: 900; letter-spacing: 1px; color: var(--text); }
.oc-meta { font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 500; }

.oc-status {
  font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: var(--r-pill);
  letter-spacing: .4px; white-space: nowrap; text-transform: uppercase;
}
.st-placed    { background: #fff3e0; color: #b45c0c; }
.st-preparing { background: #e8f0fe; color: #1a56b8; }
.st-ready     { background: var(--green-light); color: var(--green-dark); }
.st-delivered { background: var(--green-light); color: var(--green-dark); }
.st-cancelled { background: var(--red-light); color: var(--red-dark); }

/* Timeline */
.timeline { margin: 24px 0 8px; }
.tl-step { display: flex; gap: 16px; position: relative; padding-bottom: 28px; }
.tl-dot {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  background: #ebebf0; color: #9c9ca4; display: flex; align-items: center;
  justify-content: center; font-size: 14px; z-index: 2; font-weight: 800;
  transition: all .3s;
}
.tl-line {
  position: absolute; left: 14px; top: 30px; bottom: 0; width: 2.5px; background: #ebebf0;
}
.tl-done .tl-dot { background: var(--green); color: #fff; }
.tl-done .tl-line { background: var(--green); }
.tl-current .tl-dot {
  background: var(--orange); color: #fff;
  box-shadow: 0 0 0 6px var(--orange-glow);
  animation: pulse-dot 2s infinite;
}
.tl-item .tl-title { font-weight: 800; font-size: 15px; }

.cancelled-note {
  background: var(--red-light); color: var(--red-dark); border-radius: var(--r); padding: 14px;
  font-weight: 700; font-size: 14px; margin-top: 14px;
  border: 1px solid rgba(226, 55, 68, .15);
}

.oc-items { margin-top: 16px; border-top: 1.5px dashed var(--line); padding-top: 14px; }
.oc-line { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.oc-total {
  display: flex; justify-content: space-between; font-weight: 900; font-size: 16px;
  border-top: 1.5px solid var(--line); margin-top: 10px; padding-top: 12px;
}

.fb-box { margin-top: 24px; padding: 8px 18px; }
.fb-box summary { cursor: pointer; color: var(--text-secondary); font-size: 14px; font-weight: 700; padding: 10px 0; }
.track-row { display: flex; gap: 10px; margin-top: 12px; margin-bottom: 8px; }
.track-row input {
  flex: 1; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r);
  text-transform: uppercase; font-weight: 800; letter-spacing: 1px; outline: none;
  box-shadow: var(--shadow-xs);
}
.track-row input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-glow); }

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
  padding: 32px 20px 40px; max-width: 960px; margin: 0 auto;
}
.footer-inner {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 22px;
  box-shadow: var(--shadow-xs);
}
.footer-badge {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--green-light); display: flex;
  align-items: center; justify-content: center; font-size: 20px;
  flex-shrink: 0;
}
.footer-sub { font-size: 14px; font-weight: 600; color: var(--text-secondary); line-height: 1.45; }

/* WhatsApp Support Button */
.btn-whatsapp {
  background: #25D366; color: #ffffff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r); padding: 11px 18px; text-decoration: none;
  font-size: 13.5px; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition: all .2s var(--ease-smooth); border: none; cursor: pointer;
}
.btn-whatsapp:hover {
  background: #20ba59; transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.38); color: #ffffff;
}
.btn-whatsapp:active { transform: translateY(0) scale(.98); }
.btn-whatsapp svg { flex-shrink: 0; fill: currentColor; }

.help-card {
  margin-top: 18px; padding: 18px 20px; display: flex;
  align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f7fdf9 0%, #edfcf2 100%);
  border: 1.5px solid #d1fae5; border-radius: var(--r);
}
.help-card-text { font-size: 13.5px; color: #065f46; font-weight: 600; line-height: 1.45; }
.help-card-text b { font-weight: 800; color: #047857; font-size: 14.5px; display: block; margin-bottom: 2px; }

/* ========================================================================
   RESPONSIVE FINE-TUNING
   ======================================================================== */
@media (max-width: 480px) {
  .hdr { padding: 8px 14px; }
  .brand-name { font-size: 16px; }
  .track-text { display: none; }
  .track-link { padding: 9px 11px; }
  .cart-pill { font-size: 12.5px; padding: 8px 12px; }
  .filter-controls { padding: 12px 12px 4px; }
  .menu { padding: 6px 12px 30px; }
  .item-card { padding: 14px; gap: 12px; }
  .item-img-wrap { flex: 0 0 100px; }
  .item-img { width: 100px; height: 88px; }
  .img-fallback { width: 100px; height: 88px; font-size: 38px; }
  .add-btn, .stepper { width: 90px; }
  .cat-pills { padding: 8px 12px; }
  .pill { padding: 7px 14px; font-size: 12.5px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .help-card { flex-direction: column; text-align: center; }
  .btn-whatsapp { width: 100%; justify-content: center; }

  /* Mobile Bottom Floating Widgets */
  .floating-order-bar {
    left: 10px; right: 10px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    padding: 10px 14px;
    border-radius: 16px;
  }
  .floating-order-bar.has-cart {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .cart-bar {
    left: 10px; right: 10px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    padding: 12px 16px;
    border-radius: 16px;
  }
  .fob-icon-wrap { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .fob-title-row strong { font-size: 12.5px; }
  .fob-status-pill { font-size: 9.5px; padding: 2px 6px; }
  .fob-sub { font-size: 11px; }
  .fob-right { font-size: 11.5px; }
}

/* ========================================================================
   MODERN TOAST NOTIFICATIONS
   ======================================================================== */
.ok-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #1b1c24;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
  pointer-events: none;
  animation: toastPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
  text-align: center;
}

@keyframes toastPop {
  from { transform: translateX(-50%) translateY(20px) scale(0.92); opacity: 0; }
  to { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

/* ========================================================================
   COMBO CUSTOMIZER MODAL & BOTTOM SHEET
   ======================================================================== */
.combo-sheet {
  position: fixed;
  z-index: 110;
  background: var(--card);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,.22);
  transition: transform .32s cubic-bezier(.32, .72, 0, 1), opacity .25s ease;
}

@media (max-width: 640px) {
  .combo-sheet {
    bottom: 0; left: 0; right: 0;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(105%);
  }
  .combo-sheet.open {
    transform: translateY(0);
  }
}

@media (min-width: 641px) {
  .combo-sheet {
    top: 50%; left: 50%;
    transform: translate(-50%, -45%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    width: min(520px, calc(100% - 32px));
    max-height: 85vh;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 50px rgba(0,0,0,.20);
  }
  .combo-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}

.combo-sheet-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
}
.combo-sheet-title { font-weight: 800; font-size: 17px; color: var(--text); }
.combo-sheet-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }

.combo-sheet-body {
  flex: 1; overflow-y: auto; padding: 18px 22px;
}
.combo-section-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-secondary); margin: 14px 0 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.combo-step-badge {
  background: var(--orange-light); color: var(--orange);
  font-size: 10.5px; padding: 2px 8px; border-radius: 6px; font-weight: 800;
}

.combo-option-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  margin-bottom: 8px; cursor: pointer; transition: all .2s;
  background: var(--card);
}
.combo-option-card:hover {
  border-color: #dcd6cc; background: #fdfcfa;
}
.combo-option-card.selected {
  border-color: var(--orange); background: var(--orange-light);
  box-shadow: 0 2px 8px var(--orange-glow);
}
.combo-option-left {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}
.combo-option-name {
  font-weight: 700; font-size: 14px; color: var(--text);
}
.combo-option-desc {
  font-size: 11.5px; color: var(--text-secondary); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.combo-option-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all .2s;
}
.combo-option-card.selected .combo-option-radio {
  border-color: var(--orange); background: var(--orange);
}
.combo-option-card.selected .combo-option-radio::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
}

.combo-sheet-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-top: 1px solid var(--line);
  background: #faf8f5;
  box-shadow: 0 -4px 14px rgba(0,0,0,.04);
}
.combo-sheet-price-label { font-size: 11px; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; }
.combo-sheet-price { font-size: 18px; font-weight: 900; color: var(--text); }

.combo-sub-line {
  font-size: 12px; font-weight: 600; color: var(--orange-dark);
  background: var(--orange-light); padding: 3px 8px; border-radius: 6px;
  display: inline-block; margin-top: 4px; border: 1px solid rgba(217, 83, 30, .15);
}

.btn-customize {
  background: var(--card); border: 1.5px solid var(--orange); color: var(--orange);
  font-weight: 800; font-size: 12px; letter-spacing: .4px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,32,30,.06); text-align: center;
  transition: all .2s;
}
.btn-customize:hover {
  background: var(--orange); color: #fff;
}

.combo-save-pill {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}

.combo-opt-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-dark);
  margin-left: 6px;
}

/* ========================================================================
   STOREFRONT ORDER HISTORY & FLOATING LIVE ORDER BAR
   ======================================================================== */
.orders-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); position: absolute;
  top: 6px; right: 8px;
  box-shadow: 0 0 0 2px #fff;
  animation: pulse-dot 1.8s infinite;
}

/* Order Again (Recent Orders) Section */
.order-again-section {
  padding: 14px 16px 4px;
  max-width: 960px;
  margin: 0 auto;
}
.order-again-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.order-again-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.order-again-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.order-again-scroll::-webkit-scrollbar { display: none; }
.order-again-card {
  flex: 0 0 170px; background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 12px; display: flex; flex-direction: column;
  justify-content: space-between; box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s;
}
.order-again-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #ded8ce;
}
.oac-meta { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.oac-name { font-weight: 800; font-size: 13px; color: var(--text); margin-top: 4px; line-height: 1.3; }
.oac-price { font-weight: 900; font-size: 13.5px; color: var(--text); margin-top: 2px; }
.oac-btn {
  margin-top: 10px; width: 100%; background: #fff8f5; border: 1.5px solid #fed7aa;
  color: var(--orange-dark); font-weight: 800; font-size: 11.5px; padding: 6px;
  border-radius: 8px; cursor: pointer; transition: all .15s; text-align: center;
}
.oac-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Floating Live Order Bar */
.floating-order-bar {
  position: fixed; left: 14px; right: 14px; max-width: 560px; margin: 0 auto;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: #18191f; color: #ffffff; border-radius: 18px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  box-shadow: 0 10px 32px rgba(18, 20, 28, .40), 0 0 0 1px rgba(255,255,255,.1) inset;
  z-index: 70; cursor: pointer;
  transition: bottom .3s var(--ease-smooth), transform .2s var(--ease-smooth), box-shadow .2s var(--ease-smooth);
  animation: floatBarSlideUp .35s var(--ease-spring);
}
.floating-order-bar.has-cart {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
@media (hover: hover) {
  .floating-order-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .45);
  }
}
.floating-order-bar:active { transform: scale(.98); }
.fob-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fob-icon-wrap {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(249, 115, 22, 0.2); border: 1.5px solid rgba(249, 115, 22, 0.4);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  position: relative; flex-shrink: 0;
}
.fob-dot-pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: #10b981; position: absolute; top: -2px; right: -2px;
  box-shadow: 0 0 0 2px #18191f; animation: pulse-dot 1.8s infinite;
}
.fob-text { min-width: 0; }
.fob-title-row { display: flex; align-items: center; gap: 8px; }
.fob-title-row strong { font-size: 13.5px; font-weight: 800; color: #fff; }
.fob-status-pill {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  background: rgba(16, 185, 129, 0.2); color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35); padding: 2px 7px; border-radius: 999px;
}
.fob-sub { font-size: 12px; color: #9ca3af; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fob-right {
  display: flex; align-items: center; gap: 4px; font-size: 12.5px;
  font-weight: 800; color: #fb923c; flex-shrink: 0; margin-left: 10px;
}

/* Order Drawer Tabs & Views */
.order-dtabs-bar {
  display: flex; padding: 0 22px; border-bottom: 1.5px solid var(--line);
  background: #fafafc; gap: 20px;
}
.order-dtab {
  border: none; background: none; font-size: 13.5px; font-weight: 700;
  color: var(--text-secondary); padding: 14px 0 12px; cursor: pointer;
  border-bottom: 2.5px solid transparent; transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.order-dtab:hover { color: var(--text); }
.order-dtab.active {
  color: var(--orange); border-bottom-color: var(--orange); font-weight: 900;
}
.dtab-badge {
  font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px;
  background: var(--orange-light); color: var(--orange);
}
.dtab-badge.muted {
  background: #e9eaec; color: var(--text-secondary);
}

/* Live Order Card inside Drawer */
.drawer-live-card {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #bbf7d0; border-radius: 18px; padding: 16px;
  margin-bottom: 16px; box-shadow: var(--shadow-xs);
}
.dlc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dlc-code { font-size: 16px; font-weight: 900; color: #0f172a; }
.dlc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dlc-status-badge {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  background: #dcfce7; color: #15803d; border: 1px solid #86efac;
  padding: 3px 9px; border-radius: 999px;
}

/* Horizontal Progress Bar */
.prog-bar-wrap {
  margin: 14px 0 12px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 12px 14px;
}
.prog-steps-labels {
  display: flex; justify-content: space-between; font-size: 11px; font-weight: 800;
  color: #94a3b8; margin-bottom: 8px;
}
.prog-steps-labels .done { color: #166534; }
.prog-steps-labels .active { color: var(--orange); font-weight: 900; }
.prog-track {
  height: 7px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
}
.prog-fill {
  height: 100%; background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px; transition: width .4s ease;
}

/* Past Order Card inside Drawer */
.drawer-past-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 15px; margin-bottom: 14px; box-shadow: var(--shadow-xs);
  transition: border-color .2s;
}
.drawer-past-card:hover { border-color: #d1d5db; }
.dpc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dpc-code { font-size: 14px; font-weight: 800; color: var(--text); }
.dpc-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dpc-badge {
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px;
}
.dpc-badge.delivered { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.dpc-badge.cancelled { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dpc-items {
  font-size: 12.5px; color: var(--text-secondary); margin: 8px 0 10px;
  line-height: 1.45; font-weight: 500;
}
.dpc-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.dpc-total { font-size: 13.5px; font-weight: 800; color: var(--text); }
.dpc-reorder-btn {
  background: #fff7ed; border: 1.5px solid #fed7aa; color: var(--orange-dark);
  font-weight: 800; font-size: 12px; padding: 6px 12px; border-radius: 10px;
  cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 4px;
}
.dpc-reorder-btn:hover {
  background: var(--orange); color: #fff; border-color: var(--orange);
}
.dpc-reorder-btn:active { transform: scale(.97); }

