/* Smart Gov Supply catalog — professional B2B / government styling. STAGING. */
:root {
  --navy: #0f2747;
  --navy-2: #16385f;
  --slate: #475569;
  --slate-light: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #0f172a;
  --accent: #b8862f;      /* muted federal gold */
  --accent-ink: #7a5713;
  --ok: #1f7a4d;
  --shadow: 0 1px 2px rgba(15,23,42,0.06), 0 8px 24px rgba(15,23,42,0.06);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5rem; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Sample banner */
.sample-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 12px;
}

/* Header */
header.site {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(15,23,42,0.18);
}
.site .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand b { font-size: 1.06rem; letter-spacing: .01em; display: block; }
.brand span { font-size: .72rem; color: #9fb3cc; text-transform: uppercase; letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: #dbe6f2; text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.cart-btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 15px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-btn:hover { background: var(--accent-ink); }
.cart-count {
  background: #fff;
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 54px 0 46px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 20ch; }
.hero p { color: #cdd9e8; font-size: 1.06rem; max-width: 60ch; margin: .5rem 0 1.4rem; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 8px; padding: 12px 20px; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* Credentials strip */
.creds { background: #fff; border-bottom: 1px solid var(--line); }
.creds .container { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 16px 20px; align-items: center; justify-content: center; }
.cred {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem; color: var(--slate); font-weight: 500;
}
.cred b { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.cred .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* Section */
section { padding: 42px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: 1.6rem; }
.section-head p { color: var(--slate); margin: 0 auto; max-width: 62ch; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--slate);
  border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Search box */
.search-row { display: flex; justify-content: center; margin-bottom: 18px; }
.search-box {
  width: min(560px, 100%); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-size: .95rem; font-family: inherit; color: var(--ink); background: #fff;
  box-shadow: var(--shadow);
}
.search-box:focus { outline: 2px solid var(--navy); border-color: var(--navy); }

/* Subcategory chips (second level) */
.subchips { gap: 8px; margin-bottom: 18px; }
.subchip {
  border: 1px solid var(--line); background: #fff; color: var(--slate-light);
  border-radius: 8px; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.subchip:hover { border-color: var(--accent); color: var(--accent-ink); }
.subchip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Grid status + load more */
.grid-status { text-align: center; color: var(--slate); font-size: .86rem; margin-bottom: 18px; font-weight: 500; }
.load-more { display: flex; margin: 24px auto 0; color: var(--navy); border-color: var(--navy); background: #fff; }
.load-more:hover { background: var(--navy); color: #fff; }
.sku-val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--slate); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,23,42,0.12); }
.card .thumb { aspect-ratio: 4 / 3; background: #eef2f7; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.card .thumb img { width: 62%; height: auto; }
.card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); font-weight: 700; }
.card .name { font-size: .98rem; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.3; }
.card .sku { font-size: .78rem; color: var(--slate-light); font-variant-numeric: tabular-nums; }
.vcode { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: var(--accent-ink, #003d71); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .03em; vertical-align: middle; }
.card ul.specs { margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--slate); }
.card ul.specs li { padding-left: 15px; position: relative; }
.card ul.specs li::before { content: "•"; position: absolute; left: 3px; color: var(--accent); }
.card .add {
  margin-top: auto; background: #fff; color: var(--navy); border: 1px solid var(--navy);
  border-radius: 8px; padding: 9px; font-weight: 600; font-size: .88rem; cursor: pointer;
  transition: all .15s;
}
.card .add:hover { background: var(--navy); color: #fff; }
.card .add.in { background: var(--ok); border-color: var(--ok); color: #fff; }
.pending-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--accent-ink); background: #f6ecd6; border-radius: 4px; padding: 2px 7px;
}

/* Cart drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(15,23,42,0.5); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: #fff; z-index: 60; transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(15,23,42,0.2);
}
.drawer.open { transform: translateX(0); }
.drawer header { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.drawer header h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.drawer .close { background: transparent; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.drawer .items { flex: 1; overflow-y: auto; padding: 10px 16px; }
.drawer .empty { color: var(--slate); text-align: center; padding: 40px 10px; }
.line-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img { width: 46px; height: 46px; object-fit: contain; background: #eef2f7; border-radius: 6px; padding: 5px; flex: none; }
.line-item .li-name { font-size: .9rem; font-weight: 600; }
.line-item .li-cat { font-size: .74rem; color: var(--slate-light); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty button { border: 0; background: #f1f5f9; width: 26px; height: 26px; cursor: pointer; font-weight: 700; color: var(--navy); }
.qty span { min-width: 28px; text-align: center; font-size: .86rem; font-variant-numeric: tabular-nums; }
.li-remove { border: 0; background: transparent; color: var(--slate-light); cursor: pointer; font-size: .8rem; text-decoration: underline; }
.drawer footer { padding: 16px; border-top: 1px solid var(--line); }
.drawer footer .btn-primary { width: 100%; justify-content: center; }
.no-price-note { font-size: .78rem; color: var(--slate); text-align: center; margin: 0 0 10px; }

/* Forms / quote page */
.quote-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel h2 { font-size: 1.3rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field .req { color: #b42318; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: .95rem; font-family: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.field .hint { font-size: .78rem; color: var(--slate-light); margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-drop { border: 2px dashed var(--line); border-radius: 8px; padding: 18px; text-align: center; color: var(--slate); background: #fbfcfe; }
.file-drop input { margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.cart-review { max-height: 340px; overflow-y: auto; }
.cart-review .line-item img { width: 40px; height: 40px; }
.summary-note { font-size: .82rem; color: var(--slate); background: #f1f5f9; border-radius: 8px; padding: 12px 14px; margin-top: 12px; }

/* Footer */
footer.site { background: var(--navy); color: #b9c8da; padding: 34px 0; font-size: .86rem; margin-top: 30px; }
footer.site .container { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
footer.site b { color: #fff; display: block; margin-bottom: 6px; }
footer.site .legal { width: 100%; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; margin-top: 8px; color: #8ba0b8; font-size: .78rem; }

@media (max-width: 820px) {
  .quote-wrap { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
}
