/* ═══════════════════════════════════════════════════════════════
   Shop CSS — Professional Food Delivery UI
   Design: Zomato / Swiggy inspired, mobile-first
   ═══════════════════════════════════════════════════════════════ */
:root {
  --accent:       #f97316;
  --accent-dark:  #ea6c0a;
  --accent-light: #fff7ed;
  --accent-soft:  rgba(249,115,22,.1);
  --text:         #1c1c1e;
  --muted:        #6b7280;
  --border:       #ebebeb;
  --bg:           #f4f4f4;
  --white:        #ffffff;
  --success:      #16a34a;
  --danger:       #ef4444;
  --radius:       12px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-md:    0 4px 24px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

/* ═══════════════ HEADER ════════════════════════════════════════ */
/* ═══════════════ SHOP HEADER ═══════════════════════════════════ */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ── Top bar: logo + name + icons ── */
.shop-header-bar {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 62px;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* icon buttons */
.sh-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
  transition: background .15s;
}
.sh-icon:hover { background: #ebebeb; }
.sh-icon a {
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 1.1rem;
  text-decoration: none;
}

/* brand / logo area */
.sh-brand {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text);
  min-width: 0;
}
.sh-brand-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}
.sh-brand-text { min-width: 0; }
.sh-brand-name {
  font-size: .9rem; font-weight: 800;
  color: var(--text); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sh-brand-sub {
  font-size: .62rem; font-weight: 500;
  color: var(--accent); letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Search bar below top bar ── */
.shop-search-bar {
  padding: 10px 14px 12px;
  background: #fff;
}
.shop-search-inner {
  position: relative;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex; align-items: center;
  border: 1.5px solid transparent;
  transition: border-color .15s, background .15s;
}
.shop-search-inner:focus-within {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.shop-search-inner i {
  padding: 0 11px; color: #9ca3af; font-size: .95rem; flex-shrink: 0;
}
.shop-search-inner:focus-within i { color: var(--accent); }
.shop-search-inner input {
  flex: 1; border: none; outline: none;
  padding: 11px 4px;
  font-size: .88rem; color: var(--text); background: transparent;
  font-family: inherit;
}
.shop-search-inner input::placeholder { color: #b0b3b8; }
.shop-search-inner input[type=search]::-webkit-search-cancel-button { display: none; }
.search-clear {
  background: none; border: none; cursor: pointer;
  padding: 0 12px 0 4px; color: #b0b3b8;
  font-size: .85rem; display: flex; align-items: center;
  transition: color .15s;
}
.search-clear:hover { color: var(--text); }
.search-no-results { margin: 16px 14px; }

/* ═══════════════ PAGE WRAP ═════════════════════════════════════ */
.shop-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 100px;
}

/* ═══════════════ FLASH ═════════════════════════════════════════ */
.shop-flash { padding: 10px 16px 0; }
.alert {
  border-radius: 10px; padding: 10px 14px;
  font-size: .85rem; font-weight: 500;
  border: none; border-left: 4px solid;
}
.alert-success { background: #f0fdf4; color: #15803d; border-color: #22c55e; }
.alert-danger  { background: #fef2f2; color: #b91c1c; border-color: #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border-color: #3b82f6; }

/* ═══════════════ HOME HERO ══════════════════════════════════════ */
.home-hero {
  margin: 14px 14px 0;
  background: linear-gradient(120deg, #1c1c2e 0%, #2d2d44 100%);
  border-radius: 16px;
  padding: 22px 20px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.home-hero-tag {
  display: inline-block;
  background: var(--accent); color: #fff;
  border-radius: 50px; padding: 3px 10px;
  font-size: .7rem; font-weight: 700; margin-bottom: 8px;
}
.home-hero-text h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; line-height: 1.3; }
.home-hero-text p  { font-size: .78rem; opacity: .7; }
.home-hero-emoji   { font-size: 3.5rem; line-height: 1; flex-shrink: 0; margin-left: 12px; opacity: .85; }

/* ═══════════════ CATEGORY ICON GRID ════════════════════════════ */
.cat-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 14px 4px;
}
.cat-icon-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; text-align: center;
  transition: transform .15s;
}
.cat-icon-card:hover { transform: translateY(-2px); }
.cic-circle {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--accent-light);
  border: 1.5px solid rgba(249,115,22,.2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: box-shadow .15s;
}
.cat-icon-card:hover .cic-circle { box-shadow: 0 4px 14px rgba(249,115,22,.25); }
.cic-circle img  { width: 100%; height: 100%; object-fit: cover; }
.cic-circle span { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.cic-label {
  font-size: .68rem; font-weight: 600; color: var(--text);
  line-height: 1.2; max-width: 62px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ═══════════════ STICKY CAT TAB BAR ════════════════════════════ */
.cat-tab-bar {
  position: sticky; top: 0; z-index: 300;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: none; /* shown by JS when hero scrolls away */
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.cat-tab-bar.visible { display: block; }
.cat-tab-inner {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 14px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-tab-inner::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; padding: 6px 14px; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: .78rem; font-weight: 600; color: var(--muted);
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.cat-tab:hover  { border-color: var(--accent); color: var(--accent); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ═══════════════ SEE MORE LINK ══════════════════════════════════ */
.see-more-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent); font-size: .8rem; font-weight: 700;
  padding: 6px 16px; border-radius: 50px;
  border: 1.5px solid var(--accent);
  transition: all .15s;
}
.see-more-link:hover { background: var(--accent); color: #fff; }

/* ═══════════════ HERO BANNER (keep for other uses) ══════════════ */
.hero-banner {
  margin: 14px 14px 0;
  background: linear-gradient(120deg, #1c1c2e 0%, #2d2d44 100%);
  border-radius: 16px; padding: 22px 20px; color: #fff;
  position: relative; overflow: hidden;
}
.hero-banner h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.hero-banner p  { font-size: .8rem; opacity: .7; margin-bottom: 14px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: 8px;
  font-size: .8rem; font-weight: 700; transition: background .15s;
}
.hero-btn:hover { background: var(--accent-dark); color: #fff; }

/* ═══════════════ SECTION HEADINGS ══════════════════════════════ */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 14px 10px;
}
.sec-head h3 { font-size: .92rem; font-weight: 800; }
.sec-head a  { font-size: .78rem; color: var(--accent); font-weight: 600; }

/* ═══════════════ CATEGORY CHIPS ════════════════════════════════ */
.cat-strip {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 0 14px 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: .78rem; font-weight: 600; color: var(--muted);
  cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.cat-pill .cat-pill-img {
  width: 20px; height: 20px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.cat-pill i { font-size: .85rem; }
.cat-pill:hover  { border-color: var(--accent); color: var(--accent); }
.cat-pill.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff; box-shadow: 0 2px 10px rgba(249,115,22,.3);
}

/* ═══════════════ DEALS SCROLL ══════════════════════════════════ */
.deals-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 0 14px 4px;
  scrollbar-width: none;
}
.deals-scroll::-webkit-scrollbar { display: none; }

.deal-card {
  flex-shrink: 0; width: 200px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.deal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.deal-card-img {
  width: 100%; height: 100px; object-fit: cover;
  background: linear-gradient(135deg, #f97316, #fb923c);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.deal-card img { width: 100%; height: 100px; object-fit: cover; }
.deal-card-body { padding: 10px 12px; }
.deal-card-title { font-size: .82rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.deal-card-items { font-size: .7rem; color: var(--muted); margin-bottom: 6px; line-height: 1.4; }
.deal-card-price { font-size: .9rem; font-weight: 800; color: var(--accent); }

/* ═══════════════ MENU SECTION ══════════════════════════════════ */
.menu-section { margin-bottom: 4px; }
.menu-section-title {
  padding: 16px 14px 8px;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted);
}

/* ═══════════════ ITEM CARD — Zomato style ═══════════════════════ */
.item-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white);
  padding: 14px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background .1s;
  position: relative;
}
.item-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.item-card:last-child  { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.item-card:only-child  { border-radius: var(--radius); }
.item-card:hover { background: #fafafa; }

.item-card-body { flex: 1; min-width: 0; }
.item-veg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 3px;
  border: 1.5px solid var(--success);
  margin-bottom: 5px;
}
.item-veg-badge span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); display: block;
}
.item-name {
  font-size: .9rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-desc {
  font-size: .75rem; color: var(--muted); line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-price {
  font-size: .88rem; font-weight: 800; color: var(--text);
}

/* Image + add button on right */
.item-card-right {
  flex-shrink: 0; position: relative; text-align: center;
}
.item-card-img {
  width: 90px; height: 90px; border-radius: 10px;
  object-fit: cover; background: #f4f6fb;
}
.item-card-img-placeholder {
  width: 90px; height: 90px; border-radius: 10px;
  background: linear-gradient(135deg, #f4f6fb, #e9ecef);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.item-add-btn {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 8px; padding: 4px 18px;
  font-size: .8rem; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(249,115,22,.2);
  transition: background .15s, color .15s;
}
.item-add-btn:hover { background: var(--accent); color: #fff; }

/* Item card group (white card wrapping section items) */
.item-group {
  margin: 0 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ═══════════════ ITEM MODAL ════════════════════════════════════ */
.modal-sheet .modal-dialog {
  margin: 0; position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 640px; margin: 0 auto;
}
.modal-sheet .modal-content { border-radius: 20px 20px 0 0; border: none; box-shadow: var(--shadow-md); }
.modal-sheet .modal-body { max-height: 85vh; overflow-y: auto; padding: 0; }

.modal-img-wrap {
  position: relative;
  width: 100%; height: 220px; overflow: hidden;
  background: #f4f6fb;
}
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-img-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, #f4f6fb, #e9ecef);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.modal-close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  backdrop-filter: blur(4px);
}

.modal-info { padding: 18px 18px 0; }
.modal-item-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 5px; }
.modal-item-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.modal-item-price { font-size: 1rem; font-weight: 800; color: var(--accent); }

.modal-divider { height: 1px; background: #f0f0f0; margin: 14px 0; }

.choice-group-name {
  font-size: .8rem; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 0 18px 10px;
}
.choice-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid #f5f5f5;
}
.choice-option:last-child { border-bottom: none; }
.choice-option:hover { background: #fafafa; }
.choice-option input[type=radio] { display: none; }
.choice-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.choice-option.selected .choice-radio {
  border-color: var(--accent);
  background: var(--accent);
}
.choice-option.selected .choice-radio::after {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: #fff; display: block;
}
.choice-label { flex: 1; font-size: .88rem; font-weight: 500; }
.choice-price  { font-size: .82rem; font-weight: 700; color: var(--muted); }
.choice-option.selected .choice-price { color: var(--accent); }

.modal-footer-bar {
  padding: 14px 18px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.qty-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.qty-label { font-size: .88rem; font-weight: 600; }
.qty-stepper {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--accent); border-radius: 8px; overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 36px; border: none;
  background: transparent; color: var(--accent);
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.qty-stepper button:hover { background: var(--accent-soft); }
.qty-stepper span {
  min-width: 36px; text-align: center;
  font-size: .9rem; font-weight: 700; color: var(--text);
}
.add-cart-btn {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: 14px;
  font-size: .92rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .15s;
}
.add-cart-btn:hover { background: var(--accent-dark); }
.add-cart-btn-left { display: flex; align-items: center; gap: 8px; }

/* ═══════════════ BOTTOM CART BAR ═══════════════════════════════ */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  max-width: 640px; margin: 0 auto;
  background: var(--accent);
  display: none; align-items: center;
  padding: 12px 16px; gap: 12px;
  box-shadow: 0 -4px 20px rgba(249,115,22,.35);
  cursor: pointer;
  border-radius: 14px 14px 0 0;
}
.cart-bar.visible { display: flex; }
.cart-bar-badge {
  background: rgba(255,255,255,.25); color: #fff;
  border-radius: 8px; padding: 6px 10px;
  font-size: .82rem; font-weight: 700; white-space: nowrap;
}
.cart-bar-mid { flex: 1; color: #fff; font-size: .88rem; font-weight: 600; text-align: center; }
.cart-bar-cta {
  display: flex; align-items: center; gap: 5px;
  color: #fff; font-size: .82rem; font-weight: 700; white-space: nowrap;
}

/* ═══════════════ TOAST ════════════════════════════════════════ */
.shop-toast {
  position: fixed; top: 76px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1c1c1e; color: #fff;
  padding: 10px 20px; border-radius: 50px;
  font-size: .82rem; font-weight: 600; z-index: 9999;
  opacity: 0; transition: opacity .2s, transform .2s;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.shop-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.shop-toast.success i { color: #4ade80; }
.shop-toast.danger  i { color: #f87171; }

/* ═══════════════ CART PAGE ════════════════════════════════════ */
.cart-wrap { padding: 14px; }
.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.cart-item-img {
  width: 64px; height: 64px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: #f4f6fb;
}
.cart-item-img-ph {
  width: 64px; height: 64px; border-radius: 8px;
  background: var(--accent-soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.ci-name    { font-weight: 700; font-size: .88rem; margin-bottom: 2px; }
.ci-choices { font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.ci-price   { font-size: .82rem; font-weight: 800; color: var(--accent); }
.qty-ctrl   { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 6px; overflow: hidden; margin-top: 8px; width: fit-content; }
.qty-ctrl button { width: 28px; height: 28px; border: none; background: #f8f8f8; color: var(--text); font-size: 1rem; font-weight: 700; cursor: pointer; }
.qty-ctrl button:hover { background: var(--accent-soft); color: var(--accent); }
.qty-ctrl .qv { min-width: 28px; text-align: center; font-size: .82rem; font-weight: 700; }

/* ═══════════════ ORDER SUMMARY CARD ══════════════════════════ */
.order-summary {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: .84rem; padding: 5px 0; color: var(--muted);
}
.summary-row strong { color: var(--text); }
.summary-divider { height: 1px; background: #f0f0f0; margin: 8px 0; }
.summary-total {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 800; padding: 5px 0;
}
.summary-total span:last-child { color: var(--accent); }

/* ═══════════════ SECTION CARD (generic) ══════════════════════ */
.s-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.s-card-title {
  font-size: .88rem; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.s-card-title i { color: var(--accent); }

/* ═══════════════ FORM STYLES ══════════════════════════════════ */
.form-label   { font-size: .8rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 6px; }
.form-control, .form-select {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 13px; font-size: .88rem; font-family: inherit;
  color: var(--text); background: var(--white); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-text { font-size: .72rem; color: var(--muted); margin-top: 4px; }

/* Order type select cards */
.order-type-cards { display: flex; gap: 10px; }
.order-type-card {
  flex: 1; border: 2px solid var(--border); border-radius: 10px;
  padding: 12px; text-align: center; cursor: pointer;
  transition: all .15s;
}
.order-type-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.order-type-card i  { font-size: 1.4rem; color: var(--muted); margin-bottom: 4px; display: block; }
.order-type-card.selected i { color: var(--accent); }
.order-type-card span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.order-type-card.selected span { color: var(--accent); }

/* Payment options */
.pay-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 2px solid var(--border);
  border-radius: 10px; cursor: pointer; margin-bottom: 8px;
  transition: all .15s;
}
.pay-option:last-child { margin-bottom: 0; }
.pay-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.pay-option input { display: none; }
.pay-icon {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.pay-info .pi-title { font-size: .88rem; font-weight: 700; }
.pay-info .pi-sub   { font-size: .72rem; color: var(--muted); }
.pay-check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.pay-option.selected .pay-check { border-color: var(--accent); background: var(--accent); }
.pay-option.selected .pay-check::after { content: '✓'; color: #fff; font-size: .7rem; font-weight: 900; }

/* Voucher row */
.voucher-row { display: flex; gap: 8px; }
.voucher-row .form-control { border-radius: 8px; text-transform: uppercase; letter-spacing: .5px; }
.voucher-btn {
  flex-shrink: 0; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; padding: 0 18px;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.voucher-btn:hover { background: var(--accent-dark); }

/* Place order button */
.place-order-btn {
  width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: 12px; padding: 16px; font-size: .95rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: background .15s;
}
.place-order-btn:hover { background: var(--accent-dark); }

/* ═══════════════ ORDER TRACKING ══════════════════════════════ */
.track-wrap { padding: 0 14px; }
.track-header {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.track-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f4f4f4; display: flex; align-items: center;
  justify-content: center; color: var(--text); flex-shrink: 0;
}
.track-order-no  { font-size: .95rem; font-weight: 800; }
.track-order-date{ font-size: .72rem; color: var(--muted); }
.track-status-badge {
  margin-left: auto; flex-shrink: 0;
  background: var(--accent); color: #fff;
  border-radius: 50px; padding: 5px 12px;
  font-size: .72rem; font-weight: 700;
}
.track-status-badge.cancelled { background: var(--danger); }

.track-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.track-card-title {
  font-size: .8rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}

.track-pipeline { position: relative; }
.track-step {
  display: flex; align-items: flex-start; gap: 14px;
  position: relative; padding-bottom: 20px;
}
.track-step:last-child { padding-bottom: 0; }
.track-line {
  position: absolute; left: 17px; top: 36px;
  width: 2px; height: calc(100% - 20px);
  background: #eee; border-radius: 2px;
}
.track-step.done .track-line,
.track-step.current .track-line { background: var(--accent); }
.track-step:last-child .track-line { display: none; }

.track-dot {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #ddd; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: #bbb; z-index: 1; position: relative;
}
.track-step.done .track-dot    { background: var(--accent); border-color: var(--accent); color: #fff; }
.track-step.current .track-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(249,115,22,.18); }

.ts-label { font-size: .88rem; font-weight: 700; }
.ts-time  { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.ts-time.active { color: var(--accent); font-weight: 600; }

/* Rider card */
.rider-card {
  background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px;
  border-left: 4px solid var(--accent);
}
.rider-avi {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.rider-name  { font-weight: 700; font-size: .9rem; }
.rider-label { font-size: .72rem; color: var(--muted); }
.rider-call {
  margin-left: auto; width: 42px; height: 42px; border-radius: 50%;
  background: #22c55e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

/* ═══════════════ ORDER LIST ══════════════════════════════════ */
.order-list { padding: 0 14px; }
.order-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.order-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.order-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.order-no   { font-size: .88rem; font-weight: 700; margin-bottom: 2px; }
.order-date { font-size: .72rem; color: var(--muted); }
.order-amount { font-size: .9rem; font-weight: 800; color: var(--text); margin-bottom: 4px; text-align: right; }
.order-status-pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 50px; font-size: .68rem; font-weight: 700;
}

/* ═══════════════ AUTH PAGES ══════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 56px); padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
}
.auth-box { width: 100%; max-width: 380px; }
.auth-icon {
  width: 70px; height: 70px; border-radius: 20px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(249,115,22,.35);
}
.auth-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; text-align: center; }
.auth-sub   { font-size: .82rem; color: var(--muted); text-align: center; margin-bottom: 28px; }
.auth-card  { background: var(--white); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-md); }
.auth-input-group { margin-bottom: 16px; }
.auth-submit {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: 14px;
  font-size: .92rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: background .15s; margin-top: 4px;
}
.auth-submit:hover { background: var(--accent-dark); }
.auth-footer { text-align: center; margin-top: 18px; font-size: .82rem; color: var(--muted); }
.auth-footer a { color: var(--accent); font-weight: 700; }

/* ═══════════════ ACCOUNT PAGE ═══════════════════════════════ */
.account-hero {
  background: linear-gradient(135deg, var(--accent), #fb923c);
  padding: 28px 20px 24px; text-align: center; color: #fff;
}
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.4);
}
.account-name  { font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; }
.account-email { font-size: .78rem; opacity: .8; }

.account-menu { padding: 0 14px; margin-top: 14px; }
.account-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5; cursor: pointer;
}
.account-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.account-row:last-child  { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.account-row:only-child  { border-radius: var(--radius); }
.acc-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.acc-label { flex: 1; font-size: .88rem; font-weight: 600; }
.acc-chevron { color: #bbb; font-size: .85rem; }
.acc-group { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }

/* ═══════════════ EMPTY STATE ════════════════════════════════ */
.empty-state {
  text-align: center; padding: 48px 20px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 14px;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: .5; }
.empty-state h4   { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.empty-state p    { font-size: .8rem; color: var(--muted); margin-bottom: 20px; }

/* ═══════════════ CTA BUTTON ════════════════════════════════ */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: 13px 24px;
  font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: background .15s; width: 100%;
}
.btn-main:hover { background: var(--accent-dark); color: #fff; }
.btn-outline-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 10px;
  padding: 11px 24px; font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: all .15s; width: 100%;
}
.btn-outline-main:hover { background: var(--accent); color: #fff; }

/* ═══════════════ UTILITIES ══════════════════════════════════ */
.text-accent { color: var(--accent) !important; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-muted { color: var(--muted) !important; }
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 20px 14px 12px; }
.section-title span { font-size: .95rem; font-weight: 800; }
.section-title a { font-size: .78rem; color: var(--accent); font-weight: 600; }
.card-s { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: 12px 22px; font-size: .88rem;
  font-weight: 700; cursor: pointer; transition: background .15s;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 10px;
  padding: 11px 22px; font-size: .88rem; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.gap-2 { gap: 8px; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.ms-auto { margin-left: auto; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }

/* ═══════════════ VIEW TOGGLE BAR ═══════════════════════════ */
.view-toggle-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 8px;
}
.view-count { font-size: .78rem; color: var(--muted); font-weight: 600; }
.view-btns  { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all .15s;
}
.view-btn.active  { background: var(--accent); border-color: var(--accent); color: #fff; }
.view-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* ═══════════════ ITEM GRID ══════════════════════════════════ */
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 14px 8px;
}

.grid-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.grid-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.grid-card:active { transform: scale(.98); }

.gc-img-wrap {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(135deg, #f4f6fb, #e9ecef);
  position: relative; flex-shrink: 0;
}
.gc-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.grid-card:hover .gc-img { transform: scale(1.04); }
.gc-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}

.gc-body {
  padding: 10px 10px 8px;
  display: flex; flex-direction: column; flex: 1;
}
.gc-name {
  font-size: .82rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-desc {
  font-size: .72rem; color: var(--muted); line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.gc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.gc-price {
  font-size: .88rem; font-weight: 800; color: var(--text);
}
.gc-add {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.gc-add:hover  { background: var(--accent-dark); }
.gc-add:active { transform: scale(.92); }

/* ═══════════════ RESPONSIVE ════════════════════════════════ */
@media (min-width: 480px) {
  .item-card-img, .item-card-img-placeholder { width: 100px; height: 100px; }
  .cart-bar { border-radius: 14px 14px 0 0; left: 0; right: 0; margin: 0 auto; }
  .item-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-icon-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 640px) {
  .shop-wrap { padding-bottom: 100px; }
  .item-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat-icon-grid { grid-template-columns: repeat(6, 1fr); }
}
