/* ================================================================
   DapurBGN Marketplace — Stylesheet
   Brand Colors: bgn.go.id
   Primary Teal  : #015d64  (dark)  → #017a82 (mid) → #00bac7 (cyan)
   Navy          : #0b2e6b
   Gold Accent   : #c7a76a
================================================================ */

/* ── CSS Variables ── */
:root {
  --primary:        #015d64;
  --primary-dark:   #014a50;
  --primary-mid:    #017a82;
  --primary-light:  #e0f7f8;
  --cyan:           #00bac7;
  --cyan-mid:       #00a3af;
  --cyan-light:     #ccf2f5;
  --navy:           #0b2e6b;
  --gold:           #c7a76a;
  --gold-light:     #fdf3e0;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --warning:        #d97706;
  --warning-light:  #fef3c7;
  --success:        #059669;
  --success-light:  #d1fae5;
  --info:           #0284c7;
  --info-light:     #dbeafe;
  --text-dark:      #0f2027;
  --text-body:      #1e3a3f;
  --text-muted:     #5a7a7e;
  --bg-page:        #f0f8f9;
  --bg-light:       #f4fbfb;
  --bg-white:       #ffffff;
  --border:         #b8dde0;
  --border-light:   #daeef0;
  --shadow-sm:      0 1px 3px rgba(1,93,100,.08);
  --shadow:         0 2px 8px rgba(1,93,100,.10), 0 1px 3px rgba(1,93,100,.06);
  --shadow-md:      0 4px 16px rgba(1,93,100,.13), 0 2px 6px rgba(1,93,100,.08);
  --shadow-lg:      0 10px 30px rgba(1,93,100,.16), 0 4px 10px rgba(1,93,100,.08);
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      16px;
  --radius-xl:      20px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #9ecdd0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-mid); }

/* ── Loading Spinner ── */
.spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 3px solid var(--border); border-top-color: var(--cyan);
  border-radius: 50%; animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast Notifications ── */
.toast-container {
  position: fixed; top: 74px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  min-width: 300px; max-width: 380px; padding: 14px 18px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); animation: slideIn .3s ease;
  color: white; pointer-events: all;
}
.toast.success { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); }
.toast.error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.toast.info    { background: linear-gradient(135deg, var(--primary-mid), var(--cyan)); }
.toast.warning { background: linear-gradient(135deg, #d97706, #b45309); }
@keyframes slideIn  { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(110%); } }
.toast.out { animation: slideOut .3s ease forwards; }

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: white; border-bottom: 2px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(1,93,100,.08);
}
.navbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px; height: 68px;
}
/* Logo */
.navbar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.navbar-logo-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 3px 10px rgba(1,93,100,.28); flex-shrink: 0;
}
.navbar-logo-text { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -.4px; line-height: 1.1; }
.navbar-logo-sub  { font-size: 9px; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Search */
.navbar-search { flex: 1; max-width: 560px; position: relative; }
.navbar-search input {
  width: 100%; height: 42px; padding: 0 16px 0 44px;
  border: 1.5px solid var(--border); border-radius: 22px;
  font-size: 14px; outline: none; background: var(--bg-light);
  transition: border-color .2s, box-shadow .2s; color: var(--text-dark);
}
.navbar-search input::placeholder { color: var(--text-muted); }
.navbar-search input:focus {
  border-color: var(--cyan); background: white;
  box-shadow: 0 0 0 3px rgba(0,186,199,.14);
}
.navbar-search i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px; pointer-events: none;
}

/* Search mobile */
.search-mobile {
  display: none; padding: 10px 16px; background: white;
  border-bottom: 1px solid var(--border-light);
}

/* Actions */
.navbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.btn-icon {
  position: relative; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-dark); transition: all .2s;
}
.btn-icon:hover { border-color: var(--cyan); color: var(--primary); background: var(--primary-light); }
.badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  background: #dc2626; color: white; border-radius: 9px; font-size: 10px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid white; padding: 0 3px;
}

/* Buttons */
.btn-primary {
  height: 40px; padding: 0 22px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: white; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(1,93,100,.22);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  height: 40px; padding: 0 20px; background: white; color: var(--primary);
  border: 1.5px solid var(--primary); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary-mid); }

.btn-success {
  height: 34px; padding: 0 14px; background: var(--primary-light); color: var(--primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-success:hover { background: var(--cyan-light); color: var(--primary-mid); border-color: var(--cyan); }

.btn-danger {
  height: 34px; padding: 0 14px; background: var(--danger-light); color: var(--danger);
  border: 1px solid #fca5a5; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-danger:hover { background: #fecaca; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }

/* User Avatar */
.user-avatar {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(1,93,100,.25);
}

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: white; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 300;
}
.dropdown.open { display: block; animation: dropIn .18s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-item {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px;
  color: var(--text-dark); cursor: pointer;
  display: flex; align-items: center; gap: 10px; transition: background .15s;
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-item.danger:hover { background: var(--danger-light); color: var(--danger); }
.dropdown-item i { width: 16px; text-align: center; color: var(--text-muted); }
.dropdown-item:hover i { color: inherit; }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 0; }

/* Notification Panel */
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px;
  background: white; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: none; z-index: 300; overflow: hidden;
}
.notif-panel.open { display: block; animation: dropIn .18s ease; }
.notif-panel-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border-light);
  font-weight: 700; font-size: 14px; color: var(--text-dark);
}
.notif-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border-light); transition: background .15s;
}
.notif-item:hover { background: var(--bg-light); }
.notif-item.unread { background: var(--primary-light); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; flex-shrink: 0;
}
.notif-text-title { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.notif-text-msg   { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.notif-time       { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ════════════════════════════════════════
   HERO BANNER
════════════════════════════════════════ */
.hero {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-mid) 45%, var(--cyan) 100%);
  padding: 60px 24px 52px; text-align: center; color: white;
  position: relative; overflow: hidden;
}
/* Dot pattern overlay */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* Gold top bar */
.hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold), #e8c97e, #f0d080, var(--gold));
}
.hero h1 {
  font-size: 34px; font-weight: 900; margin-bottom: 14px;
  position: relative; letter-spacing: -.6px; line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero p {
  font-size: 16px; opacity: .93; margin-bottom: 28px;
  position: relative; line-height: 1.65; max-width: 560px; margin-inline: auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  padding: 7px 18px; border-radius: 22px; font-size: 13px;
  font-weight: 600; margin-bottom: 20px; position: relative;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; margin-bottom: 0; }
.hero-btn-white {
  height: 48px; padding: 0 30px; background: white; color: var(--primary);
  border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.hero-btn-outline {
  height: 48px; padding: 0 30px; background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px); color: white;
  border: 2px solid rgba(255,255,255,.5); border-radius: var(--radius);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-btn-outline:hover { background: rgba(255,255,255,.25); border-color: white; transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 0; justify-content: center; position: relative;
  flex-wrap: wrap; margin-top: 40px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg);
  max-width: 640px; margin-inline: auto; overflow: hidden;
}
.hero-stat { text-align: center; flex: 1; min-width: 120px; padding: 16px 12px; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,.2); }
.hero-stat-num   { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.hero-stat-label { font-size: 11px; opacity: .85; margin-top: 3px; font-weight: 500; }

/* ════════════════════════════════════════
   CATEGORIES
════════════════════════════════════════ */
.category-section { background: white; border-bottom: 1px solid var(--border-light); }
.category-grid {
  display: flex; gap: 10px; padding: 20px 24px; max-width: 1320px; margin: 0 auto;
  overflow-x: auto; scrollbar-width: none;
}
.category-grid::-webkit-scrollbar { display: none; }
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 16px; background: var(--bg-light); border-radius: var(--radius);
  border: 1.5px solid var(--border-light); cursor: pointer; transition: all .2s;
  text-decoration: none; color: var(--text-dark); white-space: nowrap; flex-shrink: 0;
  min-width: 80px;
}
.category-card:hover {
  border-color: var(--cyan); background: var(--primary-light);
  transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary);
}
.category-card.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.category-card-icon  { font-size: 26px; }
.category-card-label { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3; color: inherit; }

/* ════════════════════════════════════════
   SECTION & LAYOUT
════════════════════════════════════════ */
.section { max-width: 1320px; margin: 0 auto; padding: 28px 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-size: 20px; font-weight: 800; color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
}
.section-title .dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; flex-shrink: 0; }
.view-all {
  font-size: 14px; color: var(--primary-mid); font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px; transition: color .2s;
}
.view-all:hover { color: var(--cyan); }
.page-title {
  font-size: 22px; font-weight: 800; color: var(--text-dark);
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}

/* Pills (category filter) */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pill {
  padding: 7px 16px; border-radius: 22px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); background: white; color: var(--text-muted);
  cursor: pointer; transition: all .2s;
}
.pill:hover { border-color: var(--cyan); color: var(--primary); background: var(--primary-light); }
.pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Tag badge */
.tag {
  display: inline-flex; align-items: center; padding: 2px 9px;
  background: var(--cyan-light); color: var(--primary-mid);
  border-radius: 12px; font-size: 11px; font-weight: 700;
}

/* ════════════════════════════════════════
   PRODUCT GRID & CARDS
════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 16px;
}
.product-card {
  background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--border-light);
  overflow: hidden; cursor: pointer; transition: all .25s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}
.product-card-img {
  width: 100%; aspect-ratio: 1; background: linear-gradient(145deg, var(--bg-light), var(--cyan-light));
  display: flex; align-items: center; justify-content: center; font-size: 52px;
  overflow: hidden; position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.product-card-name {
  font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-supplier {
  font-size: 11.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.product-card-price { font-size: 17px; font-weight: 800; color: var(--primary); margin-top: auto; }
.product-card-unit  { font-size: 11px; color: var(--text-muted); }
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-top: 1px solid var(--border-light); background: var(--bg-light);
}
.stars     { font-size: 11px; display: flex; align-items: center; gap: 1px; }
.sold-label { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════════
   BENEFITS SECTION
════════════════════════════════════════ */
.benefits-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--cyan) 100%);
  padding: 52px 24px; margin-top: 8px; position: relative; overflow: hidden;
}
.benefits-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.benefits-grid {
  max-width: 960px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  color: white; text-align: center;
}
.benefit-icon  { font-size: 40px; margin-bottom: 12px; }
.benefit-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.benefit-desc  { font-size: 13px; opacity: .88; line-height: 1.6; }

/* ════════════════════════════════════════
   PRODUCT DETAIL MODAL
════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(1,40,45,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 600; padding: 20px; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white; border-radius: var(--radius-xl); max-width: 700px; width: 100%;
  max-height: 90vh; overflow-y: auto; animation: modalIn .28s ease;
}
@keyframes modalIn { from { transform: scale(.93) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0; position: sticky; top: 0; background: white; z-index: 1;
  border-bottom: 1px solid var(--border-light); padding-bottom: 14px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border);
  background: white; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 15px; color: var(--text-muted);
  transition: all .2s; flex-shrink: 0;
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); border-color: #fca5a5; }
.modal-body { padding: 20px 24px 28px; }
.product-detail-img {
  width: 100%; height: 260px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--bg-light), var(--cyan-light));
  display: flex; align-items: center; justify-content: center; font-size: 88px;
  margin-bottom: 20px; overflow: hidden;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }

/* Qty Control */
.qty-ctrl {
  display: flex; align-items: center; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 34px; height: 34px; background: var(--bg-light); border: none;
  font-size: 18px; cursor: pointer; font-weight: 600; color: var(--primary);
  transition: background .15s; display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--cyan-light); }
.qty-input {
  width: 52px; height: 34px; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); text-align: center; font-size: 14px;
  font-weight: 700; outline: none; color: var(--text-dark); background: white;
}

/* ════════════════════════════════════════
   CART SIDEBAR
════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(1,40,45,.45);
  z-index: 400; opacity: 0; visibility: hidden; transition: all .3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 95vw; height: 100vh;
  background: white; z-index: 401; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(1,93,100,.12);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  padding: 18px 20px; border-bottom: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-light); flex-shrink: 0;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex; gap: 12px; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--border-light); margin-bottom: 10px;
  background: white; transition: border-color .2s;
}
.cart-item:hover { border-color: var(--cyan); }
.cart-item-img {
  width: 60px; height: 60px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(145deg, var(--bg-light), var(--cyan-light));
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 600; color: var(--text-dark); line-height: 1.3; margin-bottom: 3px; }
.cart-item-supplier { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--primary); }
.cart-footer {
  padding: 16px 20px; border-top: 1.5px solid var(--border-light);
  background: white; flex-shrink: 0; box-shadow: 0 -4px 12px rgba(1,93,100,.06);
}
.cart-total-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cart-total-label  { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.cart-total-amount { font-size: 22px; font-weight: 900; color: var(--primary); }

/* ════════════════════════════════════════
   FORMS
════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-dark);
  margin-bottom: 7px;
}
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text-dark);
  background: var(--bg-light); outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-control:focus {
  border-color: var(--cyan); background: white;
  box-shadow: 0 0 0 3px rgba(0,186,199,.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a7a7e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

/* ════════════════════════════════════════
   DASHBOARD LAYOUT
════════════════════════════════════════ */
.dashboard-layout {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 0; min-height: calc(100vh - 68px);
}
.sidebar {
  background: white; border-right: 1px solid var(--border-light);
  padding: 24px 0; position: sticky; top: 68px;
  height: calc(100vh - 68px); overflow-y: auto;
}
.sidebar-section-title {
  font-size: 10px; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 0 20px; margin-top: 8px; margin-bottom: 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  font-size: 14px; font-weight: 500; color: var(--text-body); cursor: pointer;
  border-left: 3px solid transparent; transition: all .15s; text-decoration: none;
}
.sidebar-link:hover { background: var(--primary-light); color: var(--primary); border-left-color: var(--cyan); }
.sidebar-link.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 700; }
.sidebar-link i { width: 16px; text-align: center; font-size: 14px; }

.dashboard-content { padding: 28px 24px; min-width: 0; }

/* ════════════════════════════════════════
   STATS CARDS
════════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  border: 1px solid var(--border-light); display: flex; align-items: center; gap: 16px;
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon {
  width: 54px; height: 54px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-icon.green  { background: var(--primary-light); color: var(--primary); }
.stat-icon.teal   { background: var(--cyan-light);    color: var(--primary-mid); }
.stat-icon.blue   { background: var(--info-light);    color: var(--info); }
.stat-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon.red    { background: var(--danger-light);  color: var(--danger); }
.stat-icon.gold   { background: var(--gold-light);    color: #92600a; }
.stat-value { font-size: 26px; font-weight: 900; color: var(--text-dark); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ════════════════════════════════════════
   CARDS
════════════════════════════════════════ */
.card {
  background: white; border-radius: var(--radius-lg); padding: 22px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}

/* ════════════════════════════════════════
   TABLES
════════════════════════════════════════ */
.table-container {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); overflow: hidden; box-shadow: var(--shadow-sm);
}
.table-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; background: var(--bg-light);
}
.table-title { font-size: 15px; font-weight: 700; color: var(--text-dark); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--bg-light); font-size: 11.5px; font-weight: 800;
  color: var(--primary-mid); text-transform: uppercase; letter-spacing: .7px;
  padding: 12px 16px; text-align: left; border-bottom: 1.5px solid var(--border);
}
td {
  padding: 14px 16px; font-size: 14px; color: var(--text-dark);
  border-top: 1px solid var(--border-light);
}
tr:hover td { background: #f9fdfd; }

/* Status Badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.status-pending    { background: var(--warning-light); color: #92400e; }
.status-confirmed  { background: var(--cyan-light);    color: var(--primary-mid); }
.status-processing { background: #ede9fe;              color: #5b21b6; }
.status-shipped    { background: var(--info-light);    color: #1e4db7; }
.status-delivered  { background: var(--primary-light); color: var(--primary-mid); }
.status-completed  { background: var(--primary-light); color: var(--primary-dark); }
.status-cancelled  { background: var(--danger-light);  color: #991b1b; }
.status-paid       { background: var(--primary-light); color: var(--primary-dark); }
.status-unpaid     { background: var(--warning-light); color: #92400e; }

/* ════════════════════════════════════════
   AUTH PAGE
════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy) 0%, var(--primary) 45%, var(--cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.auth-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* Decorative circles */
.auth-page::after {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: rgba(0,186,199,.12); bottom: -150px; right: -100px; pointer-events: none;
}
.auth-card {
  background: white; border-radius: var(--radius-xl); padding: 44px;
  width: 100%; max-width: 470px; box-shadow: 0 24px 80px rgba(1,30,40,.35);
  position: relative; z-index: 1;
}
/* Gold accent bar */
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold), #e8c97e, #f0d080, var(--gold));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-icon {
  width: 68px; height: 68px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(1,93,100,.3);
}
.auth-title { font-size: 24px; font-weight: 900; color: var(--text-dark); margin-bottom: 4px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); }
.auth-divider {
  text-align: center; position: relative; margin: 20px 0; color: var(--text-muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border-light);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* Role Selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.role-option {
  padding: 16px 12px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-align: center; transition: all .2s;
}
.role-option:hover  { border-color: var(--cyan); background: var(--primary-light); }
.role-option.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(1,93,100,.1); }
.role-option-icon  { font-size: 26px; margin-bottom: 7px; }
.role-option-label { font-size: 13px; font-weight: 700; color: var(--text-dark); }

/* Demo buttons */
.demo-btn {
  width: 100%; height: 40px; background: white; color: var(--text-dark);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.demo-btn:hover { border-color: var(--cyan); background: var(--primary-light); color: var(--primary); }

/* ════════════════════════════════════════
   CHECKOUT
════════════════════════════════════════ */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 24px;
  max-width: 1100px; margin: 0 auto; padding: 28px 24px;
}
.checkout-card {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--border-light); margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.checkout-card-title {
  font-size: 16px; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px; color: var(--text-dark);
}
.order-summary-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border-light); gap: 12px;
}
.order-summary-item:last-child { border-bottom: none; }
.summary-total {
  display: flex; justify-content: space-between; font-size: 18px; font-weight: 900;
  padding: 16px 0 0; color: var(--text-dark); border-top: 2px solid var(--border);
  margin-top: 8px;
}
.summary-total span:last-child { color: var(--primary); }

/* ════════════════════════════════════════
   NOTIFICATIONS & EMPTY STATE
════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 60px 24px; color: var(--text-muted);
}
.empty-state-icon  { font-size: 60px; margin-bottom: 16px; opacity: .8; }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.empty-state-desc  { font-size: 14px; margin-bottom: 20px; line-height: 1.5; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dashboard-layout { grid-template-columns: 200px 1fr; }
  .checkout-layout  { grid-template-columns: 1fr; }
  .product-grid     { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 768px) {
  .navbar-search { display: none; }
  .search-mobile { display: block; }
  .navbar-inner  { padding: 0 16px; }
  .navbar-logo-sub { display: none; }
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 24px; }
  .hero p  { font-size: 14px; }
  .hero-stats { margin-top: 28px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-content { padding: 20px 16px; }
  .section { padding: 20px 16px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cart-sidebar { width: 100%; max-width: 100%; }
  .auth-card { padding: 32px 24px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stat { min-width: 100px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: 1fr; }
  .hero h1 { font-size: 20px; }
  .hero-stats { margin-top: 20px; }
  .hero-stat + .hero-stat { border-left: none; border-top: 1px solid rgba(255,255,255,.2); }
  .checkout-layout { padding: 16px; }
  .role-selector { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}
