@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #143C31; /* Deep Forest Green */
  --ink-soft: #235A4A;
  --muted: #80968F;
  --muted-light: #B4C4BE;
  --paper: #FFFFFF;
  --surface: #F2EFE8; /* Soft Sand / Warm Beige */
  --surface-warm: #FAF8F5;
  --accent: #E37D56; /* Warm Terracotta / Peach */
  --accent-soft: #FDE8E0;
  --green: #143C31;
  --green-soft: #D7F0E6;
  --gold: #DDAA3A;
  --blue: #407BA7;
  
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: 88px; /* Extra height to accommodate floating pill */
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-xs: 0 1px 2px rgba(20, 60, 49, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 60, 49, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 60, 49, 0.08);
  --shadow-lg: 0 20px 40px rgba(20, 60, 49, 0.12);
  
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.18, .89, .32, 1.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: #E5E1D8; color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5; }
button, input, textarea, select { font: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ── APP SHELL ── */
#app-root { max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--surface-warm); position: relative; overflow-x: hidden; }
@media(min-width: 431px) {
  body { padding: 20px 0; }
  #app-root { border-radius: 40px; box-shadow: 0 0 0 1px rgba(0,0,0,.05), var(--shadow-lg); min-height: calc(100dvh - 40px); }
}

/* ── TOP BAR ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.location-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.location-row svg { color: var(--ink); flex-shrink: 0; }
.location-text { flex: 1; min-width: 0; }
.location-label { display: none; }
.location-address { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-chev { color: var(--ink); flex-shrink: 0; opacity: 0.5; }
.delivery-eta { display: none; }

/* ── VIEWS ── */
.view { display: none; padding-bottom: calc(var(--tab-h) + 24px); animation: v-in .3s var(--ease) both; }
.view.active { display: block; }
@keyframes v-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── HOME & HERO ── */
.home-greeting { padding: 12px 20px 4px; display: flex; justify-content: space-between; align-items: center; }
.home-greeting h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.profile-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); cursor: pointer; }

.search-wrap { display: flex; align-items: center; gap: 10px; margin: 16px 20px; padding: 14px 18px; background: #FFFFFF; border-radius: 24px; box-shadow: 0 2px 12px rgba(20,60,49,0.04); transition: box-shadow .2s; }
.search-wrap:focus-within { box-shadow: 0 4px 20px rgba(20,60,49,0.08); }
.search-wrap svg { color: var(--muted); flex-shrink: 0; }
.search-wrap input { flex: 1; font-size: 16px; color: var(--ink); font-weight: 500; }
.search-wrap input::placeholder { color: var(--muted-light); font-weight: 400; }

/* ── OFFERS RAIL ── */
.offers-rail { display: flex; gap: 16px; padding: 4px 20px 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.offers-rail::-webkit-scrollbar { display: none; }

.offer-card { 
  flex: 0 0 280px; 
  height: 140px; 
  border-radius: var(--r-xl); 
  padding: 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  position: relative; 
  overflow: hidden; 
  scroll-snap-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease);
}
.offer-card:active { transform: scale(0.97); }

.offer-card.orange { background: linear-gradient(135deg, #FF8E53 0%, #FE6B8B 100%); }
.offer-card.blue { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.offer-card.green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }

.offer-content { position: relative; z-index: 2; color: #fff; }
.offer-tag { 
  display: inline-block; 
  padding: 4px 10px; 
  background: rgba(255,255,255,0.2); 
  border-radius: 10px; 
  font-size: 11px; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  margin-bottom: 8px; 
  backdrop-filter: blur(4px);
}
.offer-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.offer-card p { font-size: 13px; opacity: 0.9; font-weight: 500; margin-bottom: 12px; }
.promo-code { 
  display: inline-block; 
  font-size: 12px; 
  font-weight: 800; 
  padding: 6px 12px; 
  background: #fff; 
  color: var(--ink); 
  border-radius: 12px; 
}

.offer-emoji { 
  font-size: 80px; 
  opacity: 0.25; 
  position: absolute; 
  right: -10px; 
  bottom: -10px; 
  transform: rotate(-15deg); 
  pointer-events: none; 
}

.filter-tags { display: flex; gap: 10px; padding: 0 20px 16px; overflow-x: auto; scrollbar-width: none; }
.filter-tags::-webkit-scrollbar { display: none; }
.f-tag { padding: 8px 18px; background: #FFFFFF; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: 0 2px 8px rgba(20,60,49,0.04); border: 1px solid rgba(20,60,49,0.03); transition: all 0.2s; }
.f-tag.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.hero-banner { background: var(--surface); border-radius: var(--r-xl); padding: 32px 24px; margin: 8px 20px 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 180px; }
.hero-banner h2 { font-size: 32px; font-weight: 800; line-height: 1.1; margin-bottom: 12px; color: var(--ink); max-width: 60%; position: relative; z-index: 2; }
.hero-banner p { font-size: 14px; color: var(--muted); max-width: 55%; margin-bottom: 20px; position: relative; z-index: 2; }
.hero-btn { background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; width: fit-content; position: relative; z-index: 2; box-shadow: 0 4px 12px rgba(20,60,49,0.2); }
.hero-illustration { position: absolute; right: -10px; bottom: -10px; font-size: 140px; opacity: 0.9; transform: rotate(-10deg); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); pointer-events: none; }

/* ── LABELS ── */
.section-label { padding: 12px 20px 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: flex-end; }
.section-label .see-all { font-size: 14px; color: var(--accent); font-weight: 600; }
.cat-view-header { padding: 16px 20px 16px; }
.cat-view-header h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.cat-view-sub { font-size: 15px; color: var(--muted); margin-top: 2px; }

/* ── QUICK CATEGORIES (Square Grid) ── */
.quick-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 4px 20px 24px; }
.qcat-card { 
  display: flex; flex-direction: column; align-items: flex-start; padding: 20px; 
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(10px);
  border-radius: 28px 12px 28px 12px; 
  box-shadow: 0 10px 30px rgba(20,60,49,0.04); 
  gap: 12px; 
  border: 1px solid rgba(255, 255, 255, 0.6); 
  cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28); 
  position: relative;
  overflow: hidden;
}
.qcat-card:active { transform: scale(0.94) translateY(2px); box-shadow: 0 4px 10px rgba(20,60,49,0.02); }

.qcat-icon { 
  width: 52px; height: 52px; border-radius: 18px; 
  display: grid; place-items: center; 
  font-size: 24px; position: relative; z-index: 2;
  transition: 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  background: var(--bg);
}

.qcat-card:hover .qcat-icon { transform: rotate(-8deg) scale(1.1); }

.qcat-card .qcat-text-wrap { z-index: 2; }
.qcat-card span.cat-title { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; display: block; margin-bottom: 2px; }
.qcat-card span.cat-count { font-size: 11px; font-weight: 600; color: var(--muted); opacity: 0.7; }

/* Dynamic Category Accents */
.qcat-card[data-cat="meat"] { --accent-soft: #FFE5E5; }
.qcat-card[data-cat="chicken"] { --accent-soft: #FFF1E6; }
.qcat-card[data-cat="fish"] { --accent-soft: #E3F2FD; }
.qcat-card[data-cat="eggs"] { --accent-soft: #FFF9C4; }
.qcat-card[data-cat="mutton"] { --accent-soft: #F5EFE6; }
.qcat-card[data-cat="grocery"] { --accent-soft: #E8F5E9; }

.qcat-card .qcat-icon { background: var(--accent-soft, #f5f5f5); }
.qcat-card::after { 
  content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.15; z-index: 1; transition: 0.4s;
}
.qcat-card:hover::after { opacity: 0.3; transform: scale(1.1); }
[data-cat="fruits"] .qcat-icon { background: #FFF3E0; }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 20px; }
.product-card { background: #FFFFFF; border-radius: var(--r-xl); padding: 12px; border: 1px solid rgba(20,60,49,0.03); box-shadow: 0 4px 20px rgba(20,60,49,0.04); display: flex; flex-direction: column; position: relative; animation: c-in .4s var(--ease) both; }
.product-card.bounce { animation: card-bounce .4s var(--ease); }
@keyframes c-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes card-bounce { 0% { transform: scale(1); } 30% { transform: scale(0.95); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }

.product-image { width: 100%; aspect-ratio: 1; border-radius: 16px; margin-bottom: 12px; position: relative; background: var(--surface); display: grid; place-items: center; }
.product-emoji { font-size: 64px; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.1)); transform: scale(1.1); transition: transform 0.3s; }
.product-card:hover .product-emoji { transform: scale(1.2); }
.unit-tag { position: absolute; bottom: 8px; left: 8px; padding: 4px 8px; background: rgba(255,255,255,0.9); border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--ink-soft); z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.product-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.2; color: var(--ink); }
.product-card .product-note { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.product-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.product-price { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }

/* Stepper */
.card-stepper { display: flex; align-items: center; border-radius: 14px; overflow: hidden; background: var(--ink); height: 36px; transition: width .25s var(--ease); }
.card-stepper.single { width: 36px; border-radius: 50%; box-shadow: 0 4px 12px rgba(20,60,49,0.2); }
.card-stepper.expanded { width: 92px; border-radius: 14px; }
.card-stepper button { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 700; transition: background .15s; }
.card-stepper button:active { background: rgba(255,255,255,.15); }
.card-stepper .qty-num { flex: 1; text-align: center; color: #fff; font-size: 14px; font-weight: 800; min-width: 20px; }
.sold-out { height: 36px; display: grid; place-items: center; padding: 0 10px; border-radius: 14px; background: #FDE8E0; color: var(--accent); font-size: 12px; font-weight: 800; }

/* ── SUB-CATEGORY RAIL ── */
.subcat-rail { display: flex; gap: 10px; padding: 4px 20px 20px; overflow-x: auto; scrollbar-width: none; }
.subcat-rail::-webkit-scrollbar { display: none; }
.subcat-pill { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 20px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; background: #FFFFFF; color: var(--ink); transition: all .2s var(--ease); box-shadow: 0 2px 10px rgba(20,60,49,0.03); border: 1px solid rgba(20,60,49,0.03); }
.subcat-pill:active { transform: scale(.95); }
.subcat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.subcat-pill .se { font-size: 16px; line-height: 1; }

/* ── CART ── */
.cart-empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.cart-empty svg { margin-bottom: 20px; opacity: 0.3; }
.cart-empty h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.cart-empty p { font-size: 15px; }

.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #FFFFFF; margin: 0 20px 12px; border-radius: var(--r-xl); box-shadow: 0 4px 16px rgba(20,60,49,0.03); animation: c-in .3s var(--ease) both; }
.cart-item-img { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; background: var(--surface); display: grid; place-items: center; font-size: 32px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; color: var(--ink); }
.cart-item-meta { font-size: 13px; color: var(--muted); font-weight: 500; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-price { font-weight: 800; font-size: 16px; color: var(--ink); }
.qty-control { display: flex; align-items: center; background: var(--surface); border-radius: 12px; overflow: hidden; }
.qty-btn { width: 32px; height: 32px; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: var(--ink); transition: background .15s; }
.qty-btn:active { background: rgba(0,0,0,.06); }
.qty-btn.remove { color: var(--accent); }
.qty-val { width: 24px; text-align: center; font-size: 15px; font-weight: 800; }

.cart-summary { margin: 24px 20px; padding: 24px; background: #FFFFFF; border-radius: var(--r-xl); box-shadow: 0 8px 30px rgba(20,60,49,0.05); }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.summary-row.total { margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(20,60,49,0.1); font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 0; }
.free-tag { color: var(--ink); font-weight: 700; background: var(--green-soft); padding: 4px 10px; border-radius: 8px; font-size: 12px; }
.checkout-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px; background: var(--ink); color: #fff; border-radius: 20px; font-weight: 700; font-size: 18px; margin-top: 24px; transition: transform .15s var(--spring); box-shadow: 0 8px 24px rgba(20,60,49,0.2); }
.checkout-btn:active { transform: scale(.97); }
.checkout-btn:disabled { opacity: .4; pointer-events: none; box-shadow: none; }

/* ── TAB BAR (Floating Pill) ── */
.tab-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 390px; height: 68px; background: var(--ink); border-radius: 34px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; box-shadow: 0 16px 40px rgba(20,60,49,0.3); z-index: 100; border: none; }
.tab-item { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 28px; color: rgba(255,255,255,0.5); transition: all .3s var(--ease); cursor: pointer; }
.tab-item.active { background: rgba(255,255,255,0.15); color: #FFFFFF; }
.tab-item svg { width: 24px; height: 24px; }
.tab-item > span { display: none; }
.tab-cart-wrap { position: relative; display: grid; place-items: center; }
.cart-badge { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; border-radius: 10px; display: none; place-items: center; line-height: 20px; text-align: center; transition: transform .3s var(--spring); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.cart-badge.show { display: grid; }
.cart-badge.pop { animation: badge-bounce .4s var(--spring); }
@keyframes badge-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* ── TOAST ── */
.toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%) translateY(-120px); max-width: 340px; padding: 14px 24px; background: var(--ink); color: #fff; border-radius: 24px; font-size: 15px; font-weight: 700; z-index: 200; text-align: center; box-shadow: var(--shadow-lg); transition: transform .4s var(--spring), opacity .3s; opacity: 0; pointer-events: none; }
.toast.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── MODALS ── */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(20,60,49,.4); backdrop-filter: blur(8px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-card { width: 100%; max-width: 430px; background: var(--surface-warm); border-radius: 32px 32px 0 0; padding: 36px 28px calc(36px + var(--safe-bottom)); text-align: center; transform: translateY(100%); transition: transform .4s var(--spring); }
.modal-overlay.show .modal-card { transform: translateY(0); }
.modal-card h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.modal-card p { font-size: 16px; color: var(--muted); line-height: 1.5; font-weight: 500; }
.modal-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.modal-heading-row h2 { margin: 0; }
.icon-close { width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: var(--ink); font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(20,60,49,0.05); }
.modal-eta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 20px; background: var(--green-soft); color: var(--ink); border-radius: 16px; font-size: 15px; font-weight: 700; }
.modal-order-id { margin-top: 16px; font-weight: 800; color: var(--ink)!important; }
.location-modal-card { text-align: left; }
.detect-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px; background: #FFFFFF; border-radius: 20px; font-weight: 700; font-size: 16px; color: var(--ink); box-shadow: 0 4px 16px rgba(20,60,49,0.05); transition: background .15s; margin-top: 24px; }
.detect-btn:active { transform: scale(0.98); }
.location-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted-light); font-size: 14px; font-weight: 600; }
.location-divider::before, .location-divider::after { content: ""; flex: 1; height: 1px; background: rgba(20,60,49,.1); }
.address-input { width: 100%; padding: 18px 20px; border: 2px solid transparent; border-radius: 20px; font-size: 16px; font-weight: 500; color: var(--ink); background: #FFFFFF; margin-bottom: 16px; transition: border-color .2s, box-shadow 0.2s; box-shadow: 0 2px 12px rgba(20,60,49,0.03); }
textarea.address-input { resize: vertical; min-height: 100px; font-family: var(--font); }
select.address-input { appearance: none; background: #FFFFFF url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23143C31" stroke-width="3"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 20px center; }
.address-input:focus { border-color: var(--ink); box-shadow: 0 4px 16px rgba(20,60,49,0.08); }
.primary-btn { width: 100%; padding: 18px; background: var(--ink); color: #fff; border-radius: 20px; font-weight: 700; font-size: 16px; transition: transform 0.15s; box-shadow: 0 8px 24px rgba(20,60,49,0.2); }
.primary-btn:active { transform: scale(0.97); }
.text-btn { background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer; padding: 16px; }

/* ── PROFILE & ORDERS ── */
.profile-content { padding: 0 20px; }
.track-panel { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 24px; }
.track-panel input { min-width: 0; padding: 16px 20px; border: none; background: #FFFFFF; border-radius: 20px; font-size: 16px; font-weight: 500; box-shadow: 0 4px 16px rgba(20,60,49,0.04); }
.track-panel .primary-btn { width: auto; margin: 0; padding: 16px 24px; white-space: nowrap; box-shadow: 0 4px 16px rgba(20,60,49,0.15); }
.section-label.inline { padding: 24px 0 16px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
.ghost-btn { background: #FFFFFF; color: var(--ink); box-shadow: 0 4px 16px rgba(20,60,49,0.04); margin-top: 24px; }
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { background: #FFFFFF; border-radius: 24px; padding: 20px; box-shadow: 0 4px 20px rgba(20,60,49,0.04); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.order-id { font-weight: 800; font-size: 15px; color: var(--ink); }
.order-status { padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.order-status.pending, .order-status.placed { background: #FDE8E0; color: var(--accent); }
.order-status.packing { background: #DBEAFE; color: #1D4ED8; }
.order-status.out_for_delivery { background: #FEF3C7; color: #B45309; }
.order-status.confirmed, .order-status.delivered { background: var(--green-soft); color: var(--ink); }
.order-status.cancelled { background: #FEE2E2; color: #B91C1C; }
.order-body { display: flex; flex-direction: column; gap: 8px; }
.order-item-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-weight: 500; }
.order-footer { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(20,60,49,0.1); display: flex; justify-content: space-between; align-items: center; }
.order-total { font-weight: 800; font-size: 17px; color: var(--ink); }
.order-time { font-size: 13px; color: var(--muted-light); font-weight: 600; }

.order-timeline { display: flex; justify-content: space-between; margin-top: 20px; position: relative; padding: 0 16px; }
.order-timeline::before { content: ""; position: absolute; top: 7px; left: 16px; right: 16px; height: 2px; background: rgba(20,60,49,0.06); z-index: 1; }
.t-dot { width: 16px; height: 16px; border-radius: 50%; background: #E5E1D8; z-index: 2; position: relative; border: 3px solid #FFFFFF; }
.t-dot.active { background: var(--ink); box-shadow: 0 0 0 4px var(--green-soft); }

@media(max-width:360px){
  .track-panel { grid-template-columns: 1fr; }
  .track-panel .primary-btn { width: 100%; }
  .product-grid { gap: 12px; padding: 0 16px; }
}
