/* ═══════════════════════════════════════════════════════
   WorkToGo PWA — Base Styles v8 (2026)
   + Full screen fix
   + Sticky CTA scroll fix
   + Cart button visibility fix
═══════════════════════════════════════════════════════ */

:root {
  --primary:       #0f7c5a;
  --primary-dark:  #0a5c42;
  --primary-light: #e8f5f0;
  --accent:        #ff6b35;
  --text-1:        #1a1a1a;
  --text-2:        #555;
  --text-3:        #999;
  --border:        #eef0f2;
  --bg:            #f7f8fa;
  --white:         #ffffff;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --nav-h:         60px;
  --top-h:         56px;
  --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --spring:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --snap:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior: none;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: var(--font); }

/* ── APP WRAPPER ──────────────────────────────────────── */

#app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--white);
  position: relative;
}

@media (min-width: 600px) { #app { max-width: 600px; } }

@media (min-width: 768px) {
  body { background: var(--bg); }
  #app {
    max-width: 100%;
    margin: 0;
    min-height: 100dvh;
    box-shadow: none;
  }
}

@media (min-width: 1024px) { #app { max-width: 100%; } }
@media (min-width: 1280px) { #app { max-width: 100%; } }

/* ── TOPBAR ───────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: var(--top-h);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
}

.topbar-left  { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 4px; }

.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; color: white;
}
.page-title {
  font-size: 17px; font-weight: 700; color: white;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0;
}

.topbar-location {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(255,255,255,.85);
  cursor: pointer; max-width: 180px; overflow: hidden;
}
.topbar-location-city {
  font-weight: 700; font-size: 13px; color: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-location-eta {
  font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap;
}
.topbar-location-arrow {
  font-size: 10px; color: rgba(255,255,255,.6); flex-shrink: 0;
}

.hidden { display: none !important; }

.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: white; background: none; border: none;
  position: relative; transition: background .1s;
}
.icon-btn:active { background: rgba(255,255,255,.18); }

.back-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: white; background: rgba(255,255,255,.15);
  border-radius: 50%; border: none; transition: background .1s;
}
.back-btn:active { background: rgba(255,255,255,.28); }

.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
  border: 1.5px solid var(--primary);
  pointer-events: none;
  transition: transform .2s var(--spring);
}

/* ── PAGE CONTAINER ───────────────────────────────────── */

.page-container {
  position: fixed;
  top: var(--top-h);
  left: 0; right: 0;
  bottom: var(--nav-h);
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  transition: bottom 0.25s ease;
}

.page { padding-bottom: 20px; }

/* ── LOADING / EMPTY ──────────────────────────────────── */

.loading-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; gap: 12px;
  color: var(--text-3); font-size: 14px;
}

.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 24px; text-align: center;
}
.empty-icon  { font-size: 52px; margin-bottom: 14px; line-height: 1; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.empty-text  { font-size: 14px; color: var(--text-3); line-height: 1.6; max-width: 260px; }

.section-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; }
.section-title  { font-size: 17px; font-weight: 700; color: var(--text-1); }
.divider { height: 8px; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── BOTTOM NAV ───────────────────────────────────────── */

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: white;
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-around;
  z-index: 200;
  transition: transform .25s var(--snap);
}

@media (max-width: 767px) {
  .bottom-nav.nav-hidden { transform: translateY(100%); }
}

.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; height: var(--nav-h);
  color: var(--text-3); font-size: 11px; font-weight: 500;
  border: none; background: none; cursor: pointer;
  transition: color .15s; padding: 8px 4px 0;
  position: relative;
}
.nav-item.active { color: var(--primary); }

.nav-item.active::after {
  content: '';
  position: absolute; bottom: 6px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary);
  animation: dotPop .2s var(--spring) both;
}

@keyframes dotPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .nav-item.active::after { animation: none; } }

/* ── BUTTONS ──────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  transition: transform .1s var(--spring), opacity .1s;
  white-space: nowrap;
}
.btn:active   { transform: scale(0.96); opacity: .9; }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn-primary  { background: var(--primary); color: white; }
.btn-outline  { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-full     { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: opacity .1s; }
  .btn:active { transform: none; }
}

/* ── FORMS ────────────────────────────────────────────── */

.auth-page  { max-width: 400px; margin: 0 auto; padding: 20px 20px 40px; }
.auth-logo  { text-align: center; margin-bottom: 28px; }
.auth-logo h1 { font-size: 26px; font-weight: 900; color: var(--text-1); margin: 10px 0 4px; }
.auth-logo p  { font-size: 14px; color: var(--text-3); }
.auth-form  { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-2); }

.form-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; color: var(--text-1); background: white;
  transition: border-color .12s; outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,124,90,.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--text-3); font-size: 13px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-switch { text-align: center; font-size: 14px; color: var(--text-3); margin-top: 16px; }
.auth-switch a { color: var(--primary); font-weight: 700; cursor: pointer; }

/* ── HOME HERO ────────────────────────────────────────── */

.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 14px 16px 20px;
  color: white;
}

.home-location-bar {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px; cursor: pointer;
}
.home-location-label {
  font-size: 11px; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .5px;
}
.home-location-city {
  font-size: 15px; font-weight: 800; color: white; line-height: 1.2;
}
.home-location-eta {
  font-size: 11px; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.15);
  padding: 2px 8px; border-radius: 20px;
  margin-left: auto; white-space: nowrap;
}
.home-location-arrow {
  font-size: 12px; color: rgba(255,255,255,.5);
}

.home-greeting { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 3px; }
.home-tagline  { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

.home-search {
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.7);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .1s;
}
.home-search:active { background: rgba(255,255,255,.22); }

/* ── BANNER STRIP ─────────────────────────────────────── */

.banner-strip {
  display: flex; gap: 10px; padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.banner-strip::-webkit-scrollbar { display: none; }

.banner-card {
  flex: 1; min-width: 90px; max-width: 120px;
  aspect-ratio: 1 / 1; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px; cursor: pointer; color: white;
  overflow: hidden; flex-shrink: 0;
  transition: transform .15s var(--spring), opacity .1s;
}
.banner-card:active { transform: scale(0.94); opacity: .85; }
.banner-card small { font-size: 10px; opacity: .85; font-weight: 500; margin-bottom: 3px; }
.banner-card span  { font-size: 14px; font-weight: 800; line-height: 1.2; }
.banner-grocery  { background: linear-gradient(135deg, #10b981, #059669); }
.banner-shop     { background: linear-gradient(135deg, #f59e0b, #d97706); }
.banner-service  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

@media (prefers-reduced-motion: reduce) {
  .banner-card { transition: opacity .1s; }
  .banner-card:active { transform: none; }
}

/* ── PRICE SUMMARY ────────────────────────────────────── */

.price-summary { padding: 12px 16px; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; }
.price-row-label { color: var(--text-2); }
.price-row-value { font-weight: 600; color: var(--text-1); }
.price-row.total { border-top: 1.5px solid var(--border); margin-top: 4px; padding-top: 10px; font-size: 16px; }
.price-row.total .price-row-label { font-weight: 700; }
.price-row.total .price-row-value { font-size: 18px; font-weight: 900; }

/* ── PRODUCT DETAIL ───────────────────────────────────── */

.product-detail-img  { background: #f8f9fa; border-bottom: 1px solid var(--border); position: relative; }
.product-img-main    { width: 100%; max-height: 300px; object-fit: contain; display: block; transition: opacity .18s; }
.product-img-thumbs  { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.product-img-thumbs::-webkit-scrollbar { display: none; }
.product-thumb       { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color .12s; }
.product-thumb.active{ border-color: var(--primary); }
.product-detail-info { padding: 16px; }
.product-detail-title{ font-size: 19px; font-weight: 800; color: var(--text-1); line-height: 1.3; margin-bottom: 8px; }
.product-detail-price{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-price-current { font-size: 24px; font-weight: 900; color: var(--text-1); }
.detail-price-original{ font-size: 15px; color: var(--text-3); text-decoration: line-through; }

.store-link { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--bg); border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border); cursor: pointer; transition: background .1s; }
.store-link:active { background: #e8f5f0; }
.store-link-info strong { font-size: 14px; font-weight: 700; color: var(--text-1); }
.store-link-info small  { font-size: 11px; color: var(--text-3); display: block; }

.stars { display: flex; gap: 2px; }
.star  { font-size: 14px; }
.star.full  { color: #f59e0b; }
.star.empty { color: #d1d5db; }

.toggle-section { border-top: 1px solid var(--border); }
.toggle-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; user-select: none; }
.toggle-title  { font-size: 15px; font-weight: 700; color: var(--text-1); }
.toggle-arrow  { font-size: 12px; color: var(--text-3); transition: transform .18s; }
.toggle-section.open .toggle-arrow { transform: rotate(180deg); }
.toggle-body   { display: none; }
.toggle-section.open .toggle-body { display: block; }
.toggle-content{ padding: 0 16px 16px; font-size: 14px; color: var(--text-2); line-height: 1.7; }

.delivery-info { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.delivery-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 12px 6px; text-align: center; font-size: 11px; border-right: 1px solid var(--border); }
.delivery-item:last-child { border-right: none; }
.delivery-item b     { font-size: 11px; font-weight: 700; color: var(--text-1); }
.delivery-item small { color: var(--text-3); font-size: 10px; }

/* ── CHECKOUT ─────────────────────────────────────────── */

.checkout-section       { background: white; border-bottom: 8px solid var(--bg); padding: 16px; }
.checkout-section-title { font-size: 16px; font-weight: 800; color: var(--text-1); margin-bottom: 14px; }

.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; margin-bottom: 10px; transition: border-color .12s, background .12s; }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-option-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.payment-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; transition: border-color .12s; }
.payment-option.selected .payment-radio { border-color: var(--primary); }
.payment-option.selected .payment-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.payment-label { font-size: 14px; font-weight: 600; }
.payment-sub   { font-size: 12px; color: var(--text-3); }

.delivery-estimate-box { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-top: 4px; border: 1px solid var(--border); min-height: 46px; display: flex; align-items: center; }

/* ── PROFILE ──────────────────────────────────────────── */

.profile-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 28px 20px 24px; text-align: center; color: white; }
.profile-avatar { width: 68px; height: 68px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 12px; border: 2px solid rgba(255,255,255,.3); }
.profile-name  { font-size: 20px; font-weight: 800; }
.profile-email { font-size: 14px; opacity: .85; margin-top: 3px; }

.menu-list { background: white; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .1s; }
.menu-item:active { background: var(--bg); }
.menu-item:last-child { border-bottom: none; }
.menu-icon  { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.menu-text  { flex: 1; font-size: 15px; font-weight: 500; color: var(--text-1); }
.menu-arrow { color: var(--text-3); font-size: 18px; }
.menu-badge { font-size: 10px; font-weight: 700; background: var(--bg); color: var(--text-3); padding: 2px 7px; border-radius: 10px; border: 1px solid var(--border); }

/* ── SEARCH ───────────────────────────────────────────── */

.search-bar-wrap { padding: 12px 16px; background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.search-input-wrap { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px; height: 44px; transition: border-color .12s; }
.search-input-wrap:focus-within { border-color: var(--primary); background: white; }
.search-input { flex: 1; border: none; background: none; font-size: 15px; color: var(--text-1); outline: none; min-width: 0; }

/* ── INSTALL PROMPT ───────────────────────────────────── */

.install-prompt {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  left: 16px; right: 16px;
  max-width: 480px; margin: 0 auto; z-index: 300;
}
.install-prompt-content { background: #1a1a1a; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.install-prompt-icon { font-size: 26px; flex-shrink: 0; }
.install-prompt-text { flex: 1; min-width: 0; }
.install-prompt-text strong { display: block; font-size: 14px; font-weight: 700; color: white; margin-bottom: 2px; }
.install-prompt-text span   { font-size: 12px; color: rgba(255,255,255,.62); }
.install-prompt-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ── STICKY CHECKOUT ──────────────────────────────────── */

.sticky-checkout {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  background: white; border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 100; box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.sticky-total-label { font-size: 12px; color: var(--text-3); }
.sticky-total-value { font-size: 20px; font-weight: 700; color: var(--text-1); }

/* ── PRODUCT DETAIL STICKY CTA — SCROLL FIX ──────────── */

.pd-sticky-cta {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  background: white; border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  z-index: 100; box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-sticky-price { display: flex; flex-direction: column; min-width: 76px; flex-shrink: 0; }
.pd-sticky-btns  { display: flex; gap: 8px; flex: 1; }

/* Cart button — always visible */
.pd-cta-cart {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: white;
  transition: background .1s;
  min-width: 80px;
}
.pd-cta-cart:active { background: var(--primary-light); }

.pd-cta-buy {
  flex: 1.6;
  height: 44px;
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
  background: var(--primary);
  color: white; border: none;
  transition: opacity .1s, transform .1s var(--spring);
}
.pd-cta-buy:active { opacity: .85; transform: scale(0.97); }
.pd-cta-oos {
  flex: 1; height: 44px; border-radius: 12px;
  background: #f3f4f6; color: #9ca3af;
  font-size: 14px; cursor: not-allowed; border: none;
}

@media (prefers-reduced-motion: reduce) {
  .pd-cta-buy { transition: opacity .1s; }
  .pd-cta-buy:active { transform: none; }
}

/* ── VAR BUTTONS ──────────────────────────────────────── */

.var-btn { padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 10px; background: white; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: border-color .12s, background .12s, transform .1s var(--spring); }
.var-btn:active   { opacity: .7; transform: scale(0.95); }
.var-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.var-btn:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .var-btn { transition: border-color .12s, background .12s; }
  .var-btn:active { transform: none; }
}

/* ── ORDER CARDS ──────────────────────────────────────── */

.order-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--border); margin: 8px 12px; overflow: hidden; }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.order-id   { font-size: 15px; font-weight: 700; color: var(--text-1); }
.order-date { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.order-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.status-pending         { background: #fef3c7; color: #92400e; }
.status-processing      { background: #dbeafe; color: #1e3a8a; }
.status-completed       { background: #d1fae5; color: #065f46; }
.status-cancelled       { background: #fee2e2; color: #991b1b; }
.status-failed          { background: #fee2e2; color: #991b1b; }
.status-out-for-delivery{ background: #e0f2fe; color: #0c4a6e; }
.status-refunded        { background: #f3f4f6; color: #374151; }
.order-card-body   { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.order-item-list   { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.order-total { font-size: 16px; font-weight: 800; color: var(--text-1); }

/* ── TOAST ────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: calc(var(--top-h) + 8px);
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 420px;
  z-index: 9998;
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}
.toast {
  background: #1a1a1a; color: white;
  padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(-8px) scale(0.96);
  transition: opacity .18s, transform .18s var(--spring);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  line-height: 1.4;
}
.toast.show    { opacity: 1; transform: translateY(0) scale(1); }
.toast.success { background: #065f46; }
.toast.error   { background: #991b1b; }
.toast.info    { background: #1e40af; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .18s; }
  .toast.show { transform: none; }
}