:root {
  --brand: #2952e3;
  --brand-dark: #1c3aa8;
  --bg-soft: #f6f8fc;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-soft);
  color: #1f2430;
}

.site-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.navbar-brand { color: var(--brand); }
.cart-badge { font-size: .65rem; margin-left: 2px; vertical-align: top; }

.btn-primary, .bg-primary { background-color: var(--brand) !important; border-color: var(--brand) !important; }
.btn-primary:hover { background-color: var(--brand-dark) !important; border-color: var(--brand-dark) !important; }
.text-primary { color: var(--brand) !important; }
.footer-link { color: #9aa4b8; text-decoration: none; }
.footer-link:hover { color: #fff; }

.site-footer { background: #12172b; color: #cbd2e0; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand), #6a8dff);
  color: #fff;
  border-radius: 0 0 28px 28px;
}

/* Product cards */
.product-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eaedf3;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(20,30,60,.08); }
.product-card .product-img-wrap {
  aspect-ratio: 1 / 1;
  background: #f0f2f8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.old-price { text-decoration: line-through; color: #9aa4b8; font-size: .85rem; }
.discount-badge { font-size: .72rem; }

.category-pill {
  border-radius: 999px;
  padding: .5rem 1.1rem;
  border: 1px solid #dfe4ef;
  background: #fff;
  color: #1f2430;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.category-pill.active, .category-pill:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.empty-state { padding: 4rem 1rem; text-align: center; color: #8a93a8; }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }

.otp-input {
  width: 3rem; height: 3.4rem; text-align: center; font-size: 1.5rem; font-weight: 600;
}

.step-indicator .step { color: #b7bfd1; }
.step-indicator .step.active { color: var(--brand); font-weight: 600; }

.order-status-badge { font-size: .75rem; padding: .35em .7em; }

/* Admin */
.admin-sidebar { min-height: 100vh; background: #12172b; color: #cbd2e0; }
.admin-sidebar a { color: #cbd2e0; text-decoration: none; display: block; padding: .6rem 1rem; border-radius: 8px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-topbar { background: #fff; border-bottom: 1px solid #eaedf3; }
.stat-card { background: #fff; border-radius: 14px; border: 1px solid #eaedf3; padding: 1.25rem; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }

@media (max-width: 576px) {
  .otp-input { width: 2.6rem; height: 3rem; font-size: 1.2rem; }
}
