:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --emerald: #047857;
  --emerald-dark: #065f46;
  --emerald-light: #ecfdf5;
  --border: #cbd5e1;
  --text: #0f172a;
  --muted: #334155;
  --gold: #b45309;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.tnum { font-variant-numeric: tabular-nums; }
.auth-strip {
  background: #064e3b;
  color: #ecfdf5;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 24px;
  text-align: center;
  letter-spacing: 0.015em;
  border-bottom: 2px solid #10b981;
}
.auth-strip span { color: #6ee7b7; }
header.site-header {
  background: var(--navy);
  color: #ffffff;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #059669, #047857);
  border: 1px solid #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-text strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: 0.02em; }
.brand-text small { display: block; font-size: 11.5px; color: #cbd5e1; font-weight: 500; }
nav.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav.main-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: #1e293b;
  color: #6ee7b7;
}
.bag-btn {
  background: #059669;
  color: #ffffff;
  border: 1px solid #34d399;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bag-btn:hover { background: #047857; }
.container { max-width: 1320px; margin: 0 auto; padding: 28px 24px; }
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}
.hero-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #34d399;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { font-size: 34px; line-height: 1.18; font-weight: 900; margin-bottom: 14px; }
.hero p { color: #e2e8f0; font-size: 15.5px; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: #10b981;
  color: #052e16;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.kpi-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: 10px;
  padding: 16px;
}
.kpi-box .val { font-size: 24px; font-weight: 900; color: #6ee7b7; display: block; }
.kpi-box .lbl { font-size: 12px; color: #cbd5e1; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 34px 0 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 24px; font-weight: 800; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 14.5px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.prod-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.prod-card:hover { border-color: #059669; box-shadow: 0 8px 22px rgba(4, 120, 87, 0.1); }
.prod-img-wrap {
  background: #ffffff;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.prod-img-wrap img { max-height: 182px; max-width: 100%; object-fit: contain; }
.cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}
.stock-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.prod-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.prod-spec { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.prod-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  margin-bottom: 12px;
}
.prod-price { font-size: 22px; font-weight: 900; color: #047857; }
.prod-subval { font-size: 11.5px; color: #475569; font-weight: 600; }
.prod-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-add {
  background: #047857;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-add:hover { background: #065f46; }
.btn-qc {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-qc:hover { background: #e2e8f0; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.trust-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid #047857;
  border-radius: 10px;
  padding: 15px 18px;
}
.trust-item strong { display: block; font-size: 14.5px; color: var(--navy); margin-bottom: 3px; }
.trust-item span { font-size: 12.5px; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  background: #0f172a;
  color: #ffffff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; color: #0f172a; font-weight: 500; }
.data-table tr:nth-child(even) td { background: #f8fafc; }
.data-table tr.total-row td { background: #ecfdf5; font-weight: 800; border-top: 2px solid #047857; }
.badge-green {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.filter-btn.active { background: #0f172a; color: #ffffff; border-color: #0f172a; }
footer.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  margin-top: 48px;
  border-top: 3px solid #059669;
}
.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  font-size: 13px;
}
.footer-grid h4 { color: #6ee7b7; font-size: 13.5px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-grid a { color: #cbd5e1; text-decoration: none; display: block; margin-bottom: 6px; }
.footer-grid a:hover { color: #ffffff; }
.footer-bottom {
  background: #020617;
  padding: 14px 24px;
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
}
/* Modal & Bag Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55); z-index: 90; display: none;
}
.drawer-backdrop.open { display: block; }
.bag-drawer {
  position: fixed; top: 0; right: 0; width: 410px; max-width: 94vw; height: 100vh;
  background: #ffffff; z-index: 100; box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  display: none; flex-direction: column;
}
.bag-drawer.open { display: flex; }
.drawer-head { padding: 18px 20px; background: #0f172a; color: #ffffff; display: flex; justify-content: space-between; align-items: center; }
.drawer-body { padding: 18px 20px; flex: 1; overflow-y: auto; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid #cbd5e1; background: #f8fafc; }
.modal-box {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #ffffff; border-radius: 14px; width: 580px; max-width: 94vw; max-height: 90vh;
  overflow-y: auto; z-index: 110; box-shadow: 0 24px 60px rgba(0,0,0,0.3); display: none;
  border: 2px solid #047857;
}
.modal-box.open { display: block; }
.toast {
  position: fixed; bottom: 22px; right: 22px; background: #064e3b; color: #ffffff;
  padding: 12px 20px; border-radius: 9px; font-weight: 700; font-size: 13.5px;
  border: 1px solid #34d399; z-index: 120; display: none; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
@media (max-width: 960px) {
  .hero, .grid-2, .grid-3, .trust-strip, .footer-grid { grid-template-columns: 1fr; }
}