/* ===== Shwe Bazaar — Custom Styles ===== */
:root {
  --primary: #E85A14;
  --primary-light: #f97316;
  --primary-dark: #c04c0f;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f6;
  min-height: 100dvh;
}

.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #fff;
  position: relative;
}

/* Scrollbar hide */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-top: 1px solid #f1f1f1;
  display: flex;
  z-index: 50;
  box-shadow: 0 -2px 16px rgba(0,0,0,.04);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 12px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
  gap: 3px;
  transition: color .15s;
}

.bottom-nav a.active,
.bottom-nav a:hover { color: var(--primary); }
.bottom-nav a svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* Buttons */
.btn-primary {
  display: block; width: 100%;
  padding: 16px; border: none; border-radius: 16px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 20px rgba(232,90,20,.3);
  transition: opacity .15s, transform .1s;
}
.btn-primary:active { opacity: .9; transform: scale(.98); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

/* Input */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--primary); background: #fff; }

/* Badge */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.badge-orange { background: var(--primary); color: #fff; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }

/* Product card */
.product-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f1f1f1;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  cursor: pointer;
  transition: transform .15s;
}
.product-card:active { transform: scale(.97); }
.product-card-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #d1d5db;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f1f1f1 25%, #e5e7eb 50%, #f1f1f1 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Category circle */
.cat-circle {
  width: 56px; height: 56px;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  transition: box-shadow .15s;
  flex-shrink: 0;
}
.cat-circle img { width: 100%; height: 100%; object-fit: cover; }

/* Toast */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff;
  padding: 10px 18px; border-radius: 12px;
  font-size: 13px; font-weight: 500;
  z-index: 999; opacity: 0;
  transition: opacity .25s;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.success { background: #15803d; }
.toast.error   { background: #dc2626; }

/* Admin */
.admin-card { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid #f1f1f1; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.stat-card { padding: 18px; }
.stat-card .stat-value { font-size: 22px; font-weight: 800; color: #111827; }
.stat-card .stat-label { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* Page transitions */
#page { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Image placeholder */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; color: #d1d5db;
  font-weight: 700;
}
