/* ============================================
   BEAU App — Design System & Component Styles
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  --primary: #C8943E;
  --primary-light: #D4A855;
  --primary-dark: #A67A2E;
  --accent: #F5A623;
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --text: #2D1B0E;
  --text-secondary: #8B7355;
  --text-tertiary: #B0A090;
  --border: #E8DDD0;
  --border-light: #F0E8DC;
  --success: #4CAF50;
  --error: #E53935;
  --info: #2196F3;
  --warning: #FF9800;

  /* Tier colors */
  --tier-bronze: #CD7F32;
  --tier-bronze-bg: #FDF2E6;
  --tier-silver: #A0A0A0;
  --tier-silver-bg: #F5F5F5;
  --tier-gold: #C8943E;
  --tier-gold-bg: #FFF8E7;
  --tier-diamond: #4A90D9;
  --tier-diamond-bg: #EBF3FC;

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

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45,27,14,0.06);
  --shadow-md: 0 4px 12px rgba(45,27,14,0.08);
  --shadow-lg: 0 8px 24px rgba(45,27,14,0.12);
  --shadow-xl: 0 12px 32px rgba(45,27,14,0.16);

  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Sizes */
  --tab-bar-height: 72px;
  --header-height: 56px;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* === APP SHELL === */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--tab-bar-height);
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: block;
}

.screen.no-tab-bar {
  padding-bottom: 0;
}

/* === TYPOGRAPHY === */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--text); line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 32px; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* === HEADER === */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  height: var(--header-height);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header .back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}

.app-header .back-btn:active { transform: scale(0.92); }

.app-header .header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  text-align: center;
}

.app-header .header-action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(200,148,62,0.35);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--primary); }

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 16px;
  min-height: 52px;
}

.btn-full { width: 100%; }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* === INPUTS === */
.input-group {
  margin-bottom: var(--sp-4);
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,148,62,0.12);
}

.input::placeholder { color: var(--text-tertiary); }

.input-error { border-color: var(--error) !important; }
.input-error-msg {
  color: var(--error);
  font-size: 12px;
  margin-top: var(--sp-1);
  display: none;
}
.input-group.has-error .input-error-msg { display: block; }
.input-group.has-error .input { border-color: var(--error); }

/* === CARDS === */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card-interactive {
  cursor: pointer;
}
.card-interactive:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

/* === TAB BAR === */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--tab-bar-height);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 16px rgba(45,27,14,0.06);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 8px);
  border-top: 1px solid var(--border-light);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  position: relative;
  color: var(--text-tertiary);
  min-width: 56px;
}

.tab-item.active { color: var(--primary); }

.tab-item .tab-icon {
  font-size: 22px;
  line-height: 1;
  position: relative;
}

.tab-item .tab-label {
  font-size: 11px;
  font-weight: 600;
}

.tab-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: badgeBounce 0.3s ease;
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-bronze { background: var(--tier-bronze-bg); color: var(--tier-bronze); }
.badge-silver { background: var(--tier-silver-bg); color: var(--tier-silver); }
.badge-gold { background: var(--tier-gold-bg); color: var(--tier-gold); }
.badge-diamond { background: var(--tier-diamond-bg); color: var(--tier-diamond); }

/* === TIER CARD === */
.tier-card {
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.tier-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.tier-card.tier-bronze { background: linear-gradient(135deg, #CD7F32, #E8A850); color: white; }
.tier-card.tier-silver { background: linear-gradient(135deg, #8E8E8E, #C0C0C0); color: white; }
.tier-card.tier-gold { background: linear-gradient(135deg, #B8860B, #DAA520, #F0C75E); color: white; }
.tier-card.tier-diamond { background: linear-gradient(135deg, #2E6AB3, #4A90D9, #7BB3E8); color: white; }

/* === PROGRESS BAR === */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: white;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.progress-bar-bg {
  background: var(--border-light);
}

.progress-bar-bg .progress-bar-fill {
  background: var(--primary);
}

/* === PRODUCT CARD === */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:active {
  transform: scale(0.97);
}

.product-card-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--tier-gold-bg), #FFF0D4);
}

.product-card-body {
  padding: var(--sp-3);
}

.product-card-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-2);
}

.product-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.product-add-btn:active { transform: scale(0.9); background: var(--primary-dark); }

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  padding: 0 var(--sp-5);
}

/* === CATEGORY PILLS === */
.category-pills {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-pills::-webkit-scrollbar { display: none; }

.category-pill {
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* === HORIZONTAL SCROLL === */
.h-scroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding: 0 var(--sp-5);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* === BANNER CAROUSEL === */
.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 0 var(--sp-5);
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  padding: var(--sp-6);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.banner-slide-text h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 4px;
}

.banner-slide-text p {
  font-size: 13px;
  opacity: 0.85;
}

.banner-slide-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.banner-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: var(--sp-3);
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.banner-dot.active {
  background: var(--primary);
  width: 18px;
  border-radius: 3px;
}

/* === TOGGLE / SEGMENTED CONTROL === */
.segmented-control {
  display: flex;
  background: var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.segmented-option {
  flex: 1;
  padding: var(--sp-2) var(--sp-4);
  text-align: center;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.segmented-option.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* === TOGGLE SWITCH === */
.toggle-switch {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-switch.active { background: var(--primary); }

.toggle-switch::after {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after { transform: translateX(20px); }

/* === QUANTITY STEPPER === */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px;
}

.qty-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}

.qty-stepper button:active { transform: scale(0.9); }

.qty-stepper .qty-value {
  font-size: 16px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* === TOAST === */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: calc(100% - 32px);
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}

.toast {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
}

.toast-success { background: var(--success); color: white; }
.toast-error { background: var(--error); color: white; }
.toast-info { background: var(--info); color: white; }

.toast.removing { animation: toastOut 0.3s ease forwards; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,27,14,0.45);
  z-index: 5000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 480px;
  padding: var(--sp-6);
  animation: slideUp 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-center {
  align-items: center;
}

.modal-center .modal {
  border-radius: var(--radius-lg);
  margin: var(--sp-5);
  max-height: 90vh;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* === LIST ITEMS === */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: opacity 0.15s;
}

.list-item:active { opacity: 0.7; }
.list-item:last-child { border-bottom: none; }

.list-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-weight: 500; font-size: 15px; }
.list-item-subtitle { font-size: 13px; color: var(--text-secondary); }

.list-item-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
  flex-shrink: 0;
}

/* === SECTION === */
.section {
  padding: var(--sp-5);
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* === SPLASH SCREEN === */
.splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #2D1B0E, #4A2E18);
  padding: 0;
}

.splash-logo {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 8px;
  animation: splashFade 1.5s ease;
}

.splash-tagline {
  color: rgba(200,148,62,0.6);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: var(--sp-4);
  animation: splashFade 1.5s ease 0.3s both;
}

/* === AUTH SCREENS === */
.auth-screen {
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: var(--sp-2);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: var(--sp-8);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: var(--sp-3);
  background: var(--surface);
  transition: all 0.2s;
}

.social-btn:active { transform: scale(0.98); border-color: var(--primary); }

/* === HOME SCREEN === */
.home-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
}

.home-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.home-greeting { flex: 1; }
.home-greeting-text { font-size: 13px; color: var(--text-secondary); }
.home-greeting-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }

.home-points-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--tier-gold-bg);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* === LOCATION CARD === */
.location-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.location-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.location-card-pin {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.location-card-name { font-weight: 600; font-size: 15px; }
.location-card-address { font-size: 13px; color: var(--text-secondary); }
.location-card-hours { font-size: 13px; color: var(--text-secondary); margin-top: var(--sp-2); display: flex; align-items: center; gap: var(--sp-1); }

/* === CART ITEM === */
.cart-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--tier-gold-bg), #FFF0D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 15px; }
.cart-item-mods { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.cart-item-price { font-weight: 700; color: var(--primary); font-size: 15px; margin-top: var(--sp-2); }

.cart-item-remove {
  color: var(--error);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
}

/* === ORDER STATUS STEPPER === */
.order-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--sp-6) var(--sp-5);
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
}

.order-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--surface);
  transition: all 0.3s;
}

.order-step.completed .order-step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.order-step.active .order-step-circle {
  border-color: var(--primary);
  color: var(--primary);
  animation: pulse 1.5s infinite;
}

.order-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.order-step.completed .order-step-label,
.order-step.active .order-step-label { color: var(--text); font-weight: 600; }

.order-step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 var(--sp-2);
  margin-bottom: 20px;
  transition: background 0.3s;
}

.order-step-line.completed { background: var(--success); }

/* === ACCORDION === */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-weight: 500;
}

.accordion-header .arrow {
  transition: transform 0.2s;
}

.accordion-item.open .accordion-header .arrow { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 500px;
}

.accordion-content {
  padding-bottom: var(--sp-4);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #F5EDE4 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.w-60 { width: 60%; }
.skeleton-text.w-80 { width: 80%; }
.skeleton-text.w-40 { width: 40%; }
.skeleton-card { height: 180px; border-radius: var(--radius-md); }
.skeleton-circle { border-radius: 50%; }

/* === MAP PLACEHOLDER === */
.map-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #E8DDD0, #D4C4B0);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 0 var(--sp-5);
}

.map-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(200,148,62,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,148,62,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-pin {
  position: absolute;
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  z-index: 1;
  animation: pinBounce 0.5s ease;
}

/* === EMPTY STATE === */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
}

.empty-state-icon { font-size: 64px; margin-bottom: var(--sp-4); opacity: 0.5; }
.empty-state-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: var(--sp-2); }
.empty-state-text { color: var(--text-secondary); font-size: 14px; margin-bottom: var(--sp-6); }

/* === STICKY BOTTOM === */
.sticky-bottom {
  position: fixed;
  bottom: var(--tab-bar-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  box-shadow: 0 -4px 16px rgba(45,27,14,0.08);
  z-index: 500;
}

.sticky-bottom.no-tab {
  bottom: 0;
  padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 8px));
}

/* === MODIFIER CHIPS === */
.modifier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.modifier-chip {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
}

.modifier-chip.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.modifier-chip .chip-price {
  font-weight: 600;
  margin-left: 4px;
  opacity: 0.8;
}

/* === SEARCH BAR === */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  margin: 0 var(--sp-5);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

/* === QR CODE (CSS ART) === */
.qr-code {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  gap: 2px;
}

.qr-cell {
  border-radius: 2px;
}

.qr-cell.dark { background: #2D1B0E; }
.qr-cell.light { background: white; }

/* === LOADING SPINNER === */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: var(--sp-4);
}

.spinner-overlay .spinner {
  width: 40px;
  height: 40px;
}

/* === CHECKMARK ANIMATION === */
.checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: scaleIn 0.5s ease;
}

.checkmark-circle svg {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

.checkmark-circle svg path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkDraw 0.4s ease 0.3s forwards;
}

/* === ORDER HISTORY ITEM === */
.order-history-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-3);
}

.order-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.order-history-id { font-weight: 700; font-size: 15px; }
.order-history-date { font-size: 12px; color: var(--text-secondary); }
.order-history-items { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--sp-2); }

.order-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-light);
}

.order-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.order-status.completed { background: #E8F5E9; color: var(--success); }
.order-status.cancelled { background: #FFEBEE; color: var(--error); }
.order-status.confirmed,
.order-status.preparing,
.order-status.ready { background: var(--tier-gold-bg); color: var(--primary); }

/* === STAR ANIMATION === */
.star-burst {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.star-burst::before {
  content: '\2B50';
  font-size: 60px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: starPulse 1.5s ease infinite;
}

/* === UTILITY === */
.px-5 { padding-left: var(--sp-5); padding-right: var(--sp-5); }
.py-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }

/* === SCROLLBAR HIDE === */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* === RESPONSIVE === */
@media (min-width: 481px) {
  body { background: #2D1B0E; }
  #app {
    box-shadow: 0 0 60px rgba(0,0,0,0.3);
    border-left: 1px solid rgba(200,148,62,0.15);
    border-right: 1px solid rgba(200,148,62,0.15);
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
