:root {
  --orange: #f5820c;
  --orange-dark: #e06f00;
  --orange-light: #fff1e3;
  --text-dark: #1a1a1a;
  --gray: #777;
  --green: #16a34a;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f7f7f7;
  color: var(--text-dark);
  padding-bottom: 76px;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 480px; margin: 0 auto; padding: 0 16px; }

/* Top header */
.topbar {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  padding: 18px 16px 60px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  position: relative;
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.brand small { display: block; font-size: 11px; font-weight: 400; opacity: 0.9; }
.topbar-icons { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid #fff; object-fit: cover; background: #eee;
}

/* Welcome card */
.welcome-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin: -46px 0 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.welcome-card h2 { margin: 4px 0 6px; font-size: 22px; }
.welcome-card p { color: var(--gray); margin: 0 0 16px; font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-outline { background: #fff; border: 1px solid #ddd; color: var(--text-dark); }
.btn-block { width: 100%; }

/* Wallet card */
.wallet-card {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.wallet-card .label { opacity: 0.9; font-size: 14px; }
.wallet-card .amount { font-size: 30px; font-weight: 800; margin: 6px 0 16px; }
.wallet-actions { display: flex; gap: 10px; }
.wallet-actions .btn { background: rgba(255,255,255,0.18); color: #fff; }
.wallet-actions .btn.solid { background: #fff; color: var(--orange-dark); }

/* Section headers */
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; }
.section-head h3 { margin: 0; font-size: 17px; }
.section-head a { color: var(--orange); font-size: 13px; font-weight: 600; }

/* Grid tiles (quick access / categories) */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
.tile {
  background: #fff; border-radius: 14px; padding: 14px 8px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tile .icon-circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--orange-light);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  font-size: 20px;
}
.tile .label { font-size: 12.5px; font-weight: 600; }

/* Product cards */
.product-card {
  background: #fff; border-radius: 14px; padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.product-card .name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.product-card .meta { font-size: 12px; color: var(--gray); }
.product-card .price { font-weight: 800; color: var(--orange-dark); white-space: nowrap; }
.stock-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #eafaf0; color: var(--green); font-weight: 600; }
.stock-badge.out { background: #fdeaea; color: #c0392b; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  border-top: 1px solid #eee; display: flex; justify-content: space-around;
  padding: 8px 0; z-index: 20;
}
.bottom-nav .nav-item { text-align: center; font-size: 11px; color: #888; }
.bottom-nav .nav-item.active { color: var(--orange); font-weight: 700; }
.bottom-nav .nav-item .icon { font-size: 20px; display: block; margin-bottom: 2px; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #ddd; font-size: 14px;
}
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #fdeaea; color: #c0392b; }
.alert-success { background: #eafaf0; color: #16a34a; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; }
