/* =====================================================================
   Su Getir — Premium Design System 2026
   Inter typography • SVG icons • glass effects • spring animations
   ===================================================================== */

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

:root {
  /* Color tokens — sophisticated, water brand */
  --c-primary-50:  #eff6ff;
  --c-primary-100: #dbeafe;
  --c-primary-200: #bfdbfe;
  --c-primary-300: #93c5fd;
  --c-primary-400: #60a5fa;
  --c-primary-500: #3b82f6;
  --c-primary-600: #2563eb;
  --c-primary-700: #1d4ed8;
  --c-primary-800: #1e40af;
  --c-primary-900: #1e3a8a;
  --c-primary:     var(--c-primary-600);
  --c-primary-rgb: 37, 99, 235;

  --c-accent-500: #06b6d4;
  --c-accent-600: #0891b2;

  --c-success:     #10b981;
  --c-success-bg:  #d1fae5;
  --c-warning:     #f59e0b;
  --c-warning-bg:  #fef3c7;
  --c-danger:      #ef4444;
  --c-danger-bg:   #fee2e2;
  --c-info:        #3b82f6;
  --c-info-bg:     #dbeafe;

  /* Neutrals */
  --c-bg:          #f8fafc;
  --c-bg-elevated: #ffffff;
  --c-surface:     #ffffff;
  --c-surface-2:   #f1f5f9;
  --c-border:      #e2e8f0;
  --c-border-strong:#cbd5e1;
  --c-divider:     rgba(15, 23, 42, .06);

  --c-text:        #0f172a;
  --c-text-2:      #334155;
  --c-text-3:      #64748b;
  --c-text-dim:    #94a3b8;
  --c-text-inv:    #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.05), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-md: 0 10px 24px rgba(15,23,42,.08), 0 4px 8px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 48px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.06);
  --shadow-xl: 0 32px 80px rgba(15,23,42,.16), 0 12px 24px rgba(15,23,42,.08);
  --shadow-primary: 0 10px 24px -8px rgba(var(--c-primary-rgb), .35);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px;

  /* Type scale */
  --t-xs: 11px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --t-3xl: 36px;

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: calc(72px + var(--safe-bottom));
  --topbar-h: calc(56px + var(--safe-top));

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg:          #0a0f1e;
    --c-bg-elevated: #0f172a;
    --c-surface:     #131c30;
    --c-surface-2:   #1e293b;
    --c-border:      #1e293b;
    --c-border-strong:#334155;
    --c-divider:     rgba(255,255,255,.08);
    --c-text:        #f1f5f9;
    --c-text-2:      #cbd5e1;
    --c-text-3:      #94a3b8;
    --c-text-dim:    #64748b;
    --c-primary-100: #1e3a8a;
    --c-success-bg:  rgba(16,185,129,.15);
    --c-warning-bg:  rgba(245,158,11,.15);
    --c-danger-bg:   rgba(239,68,68,.15);
    --c-info-bg:     rgba(59,130,246,.15);
  }
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--t-base);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; -webkit-appearance: none; appearance: none; }
a { color: var(--c-primary); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
input:focus, textarea:focus, select:focus, button:focus { outline: none; }
input::placeholder, textarea::placeholder { color: var(--c-text-dim); }

/* ===== Layout ===== */
.app { min-height: 100vh; }
.root {
  display: flex; flex-direction: column;
  min-height: 100vh;
  padding-top: var(--topbar-h);
  padding-bottom: var(--tabbar-h);
}
.view {
  padding: var(--s-4) var(--s-4) var(--s-6);
  min-height: calc(100vh - var(--topbar-h) - var(--tabbar-h));
  animation: pageIn .32s var(--ease-out);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ===== Splash ===== */
.splash {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 60%),
    linear-gradient(180deg, var(--c-primary-500) 0%, var(--c-primary-700) 100%);
  color: #fff; z-index: 9999;
  gap: var(--s-4);
}
.splash-logo {
  width: 92px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  animation: splashPulse 2s ease-in-out infinite;
}
.splash-logo svg { width: 48px; height: 48px; color: #fff; }
@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.splash-title {
  font-size: var(--t-2xl); font-weight: 700;
  letter-spacing: -.02em; margin-top: var(--s-2);
}
.splash-sub { font-size: var(--t-sm); opacity: .8; font-weight: 500; }
.splash.hide { opacity: 0; transition: opacity .4s var(--ease-out); pointer-events: none; }

/* ===== Top Bar ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  padding: calc(var(--safe-top) + var(--s-2)) var(--s-4) var(--s-2);
  background: color-mix(in srgb, var(--c-bg-elevated) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-divider);
  display: flex; align-items: center; gap: var(--s-3);
  z-index: 50;
  transition: box-shadow .3s var(--ease-out);
}
.topbar-title {
  font-weight: 700; font-size: var(--t-md); flex: 1;
  letter-spacing: -.01em;
  display: flex; flex-direction: column;
}
.topbar-subtitle { font-size: var(--t-xs); color: var(--c-text-3); font-weight: 500; }
.topbar-back, .topbar-action {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--c-surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text);
  position: relative;
  transition: background .15s, transform .1s;
}
.topbar-back:active, .topbar-action:active { transform: scale(.94); background: var(--c-border); }
.topbar-back svg, .topbar-action svg { width: 20px; height: 20px; }
.topbar-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--c-danger); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--c-bg-elevated);
}

/* ===== Bottom Tab Bar ===== */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  padding: var(--s-2) var(--s-2) calc(var(--s-2) + var(--safe-bottom));
  background: color-mix(in srgb, var(--c-bg-elevated) 92%, transparent);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--c-divider);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 50;
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 4px;
  color: var(--c-text-3);
  font-size: var(--t-xs); font-weight: 500;
  position: relative;
  border-radius: 14px;
  transition: color .2s;
}
.tab svg { width: 22px; height: 22px; transition: transform .25s var(--ease-spring); }
.tab.active { color: var(--c-primary); }
.tab.active svg { transform: translateY(-2px) scale(1.08); }
.tab.active::before {
  content: ''; position: absolute; top: 2px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--c-primary);
  animation: tabIndicator .3s var(--ease-spring);
}
@keyframes tabIndicator {
  from { width: 0; opacity: 0; }
  to { width: 24px; opacity: 1; }
}
.tab-badge {
  position: absolute; top: 4px; right: calc(50% - 22px);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--c-danger); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--c-bg-elevated);
}

/* ===== Cards ===== */
.card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--s-4);
  border: 1px solid var(--c-border);
  transition: box-shadow .2s, transform .15s;
}
.card-elevated { box-shadow: var(--shadow-sm); border-color: transparent; }
.card-interactive { cursor: pointer; }
.card-interactive:active { transform: scale(.98); }
.card + .card { margin-top: var(--s-3); }
.surface { background: var(--c-surface); border-radius: var(--r); border: 1px solid var(--c-border); }

/* Section title */
.section-title {
  font-weight: 700; font-size: var(--t-md);
  letter-spacing: -.01em;
  margin: var(--s-6) var(--s-1) var(--s-3);
  display: flex; align-items: center; justify-content: space-between;
}
.section-title .more {
  font-size: var(--t-sm); font-weight: 500; color: var(--c-primary);
  display: inline-flex; align-items: center; gap: 4px;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-2); }
.h-scroll {
  display: flex; gap: var(--s-3);
  overflow-x: auto; padding: 4px var(--s-1) var(--s-3);
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ===== Product Card ===== */
.product-card {
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .15s, box-shadow .2s, border-color .2s;
  position: relative;
}
.product-card:active { transform: scale(.98); }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--c-border-strong); }
.product-card .img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--c-primary-50) 0%, color-mix(in srgb, var(--c-primary-100) 80%, white) 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .img.has-img { background-size: cover; background-position: center; }
.product-card .img-placeholder {
  width: 48px; height: 48px;
  color: var(--c-primary-400);
  opacity: .55;
}
.product-card .badge {
  position: absolute; top: var(--s-2); left: var(--s-2);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  color: var(--c-text);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: var(--t-xs); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.product-card .badge.discount { background: var(--c-danger); color: #fff; }
.product-card .meta { padding: var(--s-3); }
.product-card .name {
  font-size: var(--t-sm); font-weight: 600; line-height: 1.35;
  min-height: 2.7em;
  color: var(--c-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .brand { font-size: var(--t-xs); color: var(--c-text-3); margin-top: 2px; font-weight: 500; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-2); }
.product-card .price {
  font-weight: 800; font-size: var(--t-md);
  color: var(--c-text);
  letter-spacing: -.01em;
}
.product-card .add-btn {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-primary);
  transition: transform .12s, background .2s;
}
.product-card .add-btn:active { transform: scale(.92); }
.product-card .add-btn svg { width: 18px; height: 18px; }

/* ===== Brand Card ===== */
.brand-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: var(--s-4);
  text-align: center;
  min-width: 132px;
  transition: transform .15s, box-shadow .2s;
}
.brand-card:active { transform: scale(.97); }
.brand-card .logo {
  width: 64px; height: 64px; border-radius: 22px;
  background: linear-gradient(135deg, var(--c-primary-50), color-mix(in srgb, var(--c-primary-100) 50%, white)) center/cover no-repeat;
  margin: 0 auto var(--s-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-xs);
}
.brand-card .name { font-weight: 600; font-size: var(--t-sm); }
.brand-card .meta { font-size: var(--t-xs); color: var(--c-text-3); margin-top: 2px; }

/* ===== Category Chip ===== */
.cat-chip {
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  white-space: nowrap;
  font-size: var(--t-sm); font-weight: 600;
  color: var(--c-text-2);
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-chip:active { transform: scale(.95); }
.cat-chip.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  box-shadow: var(--shadow-primary);
}
.cat-chip svg { width: 16px; height: 16px; }

/* ===== Forms ===== */
.input {
  display: block; width: 100%;
  padding: 15px var(--s-4);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: var(--t-base); font-weight: 500;
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 12%, transparent);
}
.input-label {
  font-size: var(--t-sm); font-weight: 600;
  color: var(--c-text-2);
  margin: 0 0 8px 4px;
  display: block;
  letter-spacing: -.005em;
}
.field + .field { margin-top: var(--s-4); }
.input-help { font-size: var(--t-xs); color: var(--c-text-3); margin: 6px 4px 0; }

/* OTP boxes */
.otp-input { display: flex; gap: var(--s-2); justify-content: center; }
.otp-input input {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 24px; font-weight: 700;
  letter-spacing: -.02em;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-text);
  transition: all .15s;
}
.otp-input input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 14%, transparent);
  transform: translateY(-2px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 14px 20px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: var(--t-base);
  letter-spacing: -.005em;
  transition: all .15s;
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--c-primary-700); }
.btn-ghost { background: var(--c-surface-2); color: var(--c-text); border: 1px solid var(--c-border); }
.btn-outline { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 22px; font-size: var(--t-md); border-radius: var(--r); }
.btn-sm { padding: 8px 14px; font-size: var(--t-sm); border-radius: var(--r-xs); }
.btn svg { width: 18px; height: 18px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }

.link {
  color: var(--c-primary);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.link:active { opacity: .7; }

/* ===== Toast ===== */
.toast-container {
  position: fixed; bottom: calc(var(--tabbar-h) + var(--s-4));
  left: var(--s-4); right: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2);
  z-index: 9999; pointer-events: none;
}
.toast {
  background: var(--c-text);
  color: var(--c-bg-elevated);
  padding: 14px 18px;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  font-weight: 500; font-size: var(--t-sm);
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-3);
  animation: toastIn .35s var(--ease-spring);
  backdrop-filter: blur(8px);
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.error { background: var(--c-danger); color: #fff; }
.toast.success { background: var(--c-success); color: #fff; }
@keyframes toastIn {
  from { transform: translateY(24px) scale(.95); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ===== Bottom Sheet ===== */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  z-index: 998;
  animation: fadeIn .2s var(--ease-out);
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--c-bg-elevated);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 92vh;
  overflow-y: auto;
  padding: var(--s-3) var(--s-4) calc(var(--s-6) + var(--safe-bottom));
  animation: sheetIn .35s var(--ease-spring);
  box-shadow: var(--shadow-xl);
}
.sheet-handle {
  width: 40px; height: 5px;
  background: var(--c-border-strong);
  border-radius: 999px;
  margin: 4px auto var(--s-3);
}
.sheet-title {
  font-weight: 700; font-size: var(--t-lg);
  margin-bottom: var(--s-3);
  letter-spacing: -.01em;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

/* ===== Skeleton ===== */
.skeleton {
  background:
    linear-gradient(90deg,
      var(--c-surface-2) 0%,
      color-mix(in srgb, var(--c-surface-2) 60%, var(--c-border)) 50%,
      var(--c-surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sk-line { height: 14px; margin: 8px 0; }
.sk-card { height: 200px; border-radius: var(--r-md); }

/* ===== Empty State ===== */
.empty {
  padding: var(--s-9) var(--s-4);
  text-align: center;
  color: var(--c-text-3);
}
.empty-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-4);
  border-radius: 24px;
  background: var(--c-surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-dim);
}
.empty-icon svg { width: 36px; height: 36px; }
.empty .title {
  font-weight: 700; font-size: var(--t-md);
  color: var(--c-text);
  margin-bottom: var(--s-1);
  letter-spacing: -.01em;
}
.empty .sub { font-size: var(--t-sm); }

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(135deg, var(--c-primary-600) 0%, var(--c-primary-800) 100%);
  margin-bottom: var(--s-4);
  box-shadow: 0 16px 32px -12px rgba(var(--c-primary-rgb), .35);
}
.hero::after {
  content: '';
  position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  border-radius: 50%;
}
.hero h2 {
  font-size: var(--t-xl); font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.hero p { font-size: var(--t-sm); opacity: .9; }
.hero .cta {
  margin-top: var(--s-3);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-weight: 600; font-size: var(--t-sm);
  border: 1px solid rgba(255,255,255,.2);
}

/* ===== Address Bar ===== */
.address-bar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 12px var(--s-3);
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-4);
  transition: border-color .2s;
}
.address-bar:active { border-color: var(--c-primary); }
.address-bar .ico {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--c-primary-100);
  color: var(--c-primary-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.address-bar .ico svg { width: 18px; height: 18px; }
.address-bar .info { flex: 1; min-width: 0; }
.address-bar .label { font-size: var(--t-xs); color: var(--c-text-3); font-weight: 500; }
.address-bar .addr {
  font-size: var(--t-sm); font-weight: 600;
  color: var(--c-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== Order timeline ===== */
.timeline { padding-left: var(--s-4); border-left: 2px solid var(--c-border); }
.timeline-item { position: relative; padding: 10px 0 14px 12px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -22px; top: 14px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-border);
  border: 2px solid var(--c-bg);
}
.timeline-item.active::before {
  background: var(--c-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 20%, transparent);
}
.timeline-item .label { font-weight: 600; font-size: var(--t-sm); }
.timeline-item .time { font-size: var(--t-xs); color: var(--c-text-3); margin-top: 2px; }

/* ===== Map ===== */
.map {
  width: 100%; height: 320px;
  border-radius: var(--r-md);
  overflow: hidden; position: relative;
  border: 1px solid var(--c-border);
}
.pin-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none; user-select: none;
  width: 40px; height: 40px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}

/* ===== Status pill ===== */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: -.005em;
}
.pill-pending    { background: var(--c-warning-bg); color: #92400e; }
.pill-confirmed  { background: var(--c-info-bg); color: #1e40af; }
.pill-preparing  { background: #e0e7ff; color: #3730a3; }
.pill-on_the_way { background: #fce7f3; color: #9d174d; }
.pill-delivered  { background: var(--c-success-bg); color: #047857; }
.pill-cancelled, .pill-rejected { background: var(--c-danger-bg); color: #991b1b; }

/* ===== Quantity stepper ===== */
.qty-stepper {
  display: inline-flex; align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text);
  transition: background .15s;
}
.qty-stepper button:active { background: var(--c-surface-2); }
.qty-stepper button svg { width: 16px; height: 16px; }
.qty-stepper .val {
  min-width: 32px; text-align: center;
  font-weight: 700; font-size: var(--t-sm);
}

/* ===== Cart line item ===== */
.line-item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-divider);
}
.line-item:last-child { border-bottom: none; }
.line-item .thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary-50), color-mix(in srgb, var(--c-primary-100) 60%, white)) center/cover;
  flex-shrink: 0;
}
.line-item .info { flex: 1; min-width: 0; }
.line-item .name {
  font-weight: 600; font-size: var(--t-sm);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.line-item .price { font-size: var(--t-xs); color: var(--c-text-3); margin-top: 2px; }

/* ===== Summary row ===== */
.sum-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: var(--t-sm);
}
.sum-row .label { color: var(--c-text-3); }
.sum-row .val { font-weight: 600; }
.sum-row.total {
  margin-top: var(--s-2); padding-top: var(--s-3);
  border-top: 1px solid var(--c-divider);
  font-size: var(--t-md);
}
.sum-row.total .val { color: var(--c-primary); font-size: var(--t-lg); font-weight: 800; letter-spacing: -.01em; }

/* ===== Selectable card ===== */
.select-card {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.select-card.selected {
  border-color: var(--c-primary);
  background: color-mix(in srgb, var(--c-primary-100) 40%, var(--c-surface));
}
.select-card .radio {
  width: 22px; height: 22px;
  border: 2px solid var(--c-border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s;
}
.select-card.selected .radio { border-color: var(--c-primary); }
.select-card.selected .radio::after {
  content: ''; position: absolute; inset: 4px;
  background: var(--c-primary); border-radius: 50%;
  animation: radioIn .25s var(--ease-spring);
}
@keyframes radioIn { from { transform: scale(0); } to { transform: scale(1); } }
.select-card .body { flex: 1; }
.select-card .body .title { font-weight: 600; font-size: var(--t-sm); }
.select-card .body .sub { font-size: var(--t-xs); color: var(--c-text-3); margin-top: 2px; }
.select-card + .select-card { margin-top: var(--s-2); }

/* ===== Sticky bottom bar ===== */
.bottom-bar {
  position: fixed; left: 0; right: 0;
  bottom: var(--tabbar-h);
  padding: var(--s-3) var(--s-4) var(--s-3);
  background: color-mix(in srgb, var(--c-bg-elevated) 92%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--c-divider);
  z-index: 49;
}

/* ===== Utilities ===== */
.row { display: flex; align-items: center; gap: var(--s-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.col { display: flex; flex-direction: column; gap: var(--s-2); }
.gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); }
.flex-1 { flex: 1; min-width: 0; }
.text-xs { font-size: var(--t-xs); }
.text-sm { font-size: var(--t-sm); }
.text-md { font-size: var(--t-md); }
.text-lg { font-size: var(--t-lg); }
.text-xl { font-size: var(--t-xl); }
.text-bold { font-weight: 700; letter-spacing: -.005em; }
.text-semi { font-weight: 600; }
.text-dim { color: var(--c-text-3); }
.text-faint { color: var(--c-text-dim); }
.text-primary { color: var(--c-primary); }
.text-danger { color: var(--c-danger); }
.text-success { color: var(--c-success); }
.text-center { text-align: center; }
.text-tabular { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--c-divider); margin: var(--s-3) 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--c-primary-200); color: var(--c-primary-900); }
