:root {
  --bg: #0e0f11;
  --panel: #17191d;
  --panel-2: #1f2228;
  --line: #2b2f36;
  --text: #e8e6e1;
  --muted: #9a9890;
  --accent: #e0a63a;
  --accent-2: #f3c66b;
  --danger: #e25d4a;
  --ok: #5ec27a;
  --radius: 10px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { line-height: 1.45; }
a { color: var(--accent-2); }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #141619, #0e0f11);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand .mark { width: 40px; height: 40px; }
.brand h1 { font-size: 1.15rem; margin: 0; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.brand small { display: block; color: var(--accent); letter-spacing: 0.25em; font-size: 0.65rem; text-transform: uppercase; }
header nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
header nav a:hover { color: var(--text); }

.hero { padding: 48px 28px 12px; max-width: 1200px; margin: 0 auto; }
.hero h2 { font-size: 2rem; margin: 0 0 6px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 24px 28px 64px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

/* arsenal + category tabs */
.arsenal { min-width: 0; scroll-margin-top: var(--head-h, 78px); }
.cart { scroll-margin-top: calc(var(--head-h, 78px) + 12px); }
.cats { position: sticky; top: var(--head-h, 78px); z-index: 4; display: flex; gap: 8px; margin: 0 0 18px; padding: 10px 0 12px;
  background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.cat:hover, .cat:focus-visible { color: var(--text); border-color: #3d424b; }
.cat[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #1a1407; }
.cat .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--panel-2); color: var(--accent-2); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.cat[aria-selected="true"] .n { background: #1a1407; }
.cat .n[hidden] { display: none; }
.guns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gun { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gun img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; display: block; }
.gun .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gun h3 { margin: 0; font-size: 1.1rem; }
.gun .cal { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.gun .blurb { color: var(--muted); font-size: 0.88rem; margin: 0; flex: 1; }
.gun .price { font-size: 0.9rem; }
.gun .price b { color: var(--accent-2); font-size: 1.05rem; }
.gun .price .per { color: var(--muted); font-size: 0.82rem; }
.gun .min { color: var(--muted); font-size: 0.8rem; margin-top: -6px; }
.tag.pair { border-color: var(--accent); color: var(--accent-2); }
.ctl .part { display: flex; flex-direction: column; gap: 8px; }
.ctl .part + .part { border-top: 1px solid var(--line); padding-top: 10px; }
.ctl .part-h { display: flex; align-items: baseline; gap: 8px; font-size: 0.88rem; }
.ctl .part-h span { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tag { display: inline-block; font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* cart controls */
.ctl { background: var(--panel-2); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ctl .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.ctl label { color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stepper button { width: 34px; height: 32px; border: 0; background: #262a31; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.stepper button:hover { background: #30353d; }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.stepper.wide output { min-width: 96px; }
.hint { font-size: 0.78rem; color: var(--muted); }
.hint.bad { color: var(--danger); }
.hint.ok { color: var(--ok); }

/* cart */
.cart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 92px; align-self: start; }
.cart h3 { margin: 0 0 12px; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cart .empty { color: var(--muted); font-size: 0.9rem; }
.line { border-top: 1px solid var(--line); padding: 10px 0; font-size: 0.9rem; }
.line .t { display: flex; justify-content: space-between; font-weight: 600; }
.line .d { color: var(--muted); font-size: 0.8rem; }
.line .d span.bad { color: var(--danger); }
.line .t { align-items: flex-start; gap: 8px; }
.line .t > span:first-child { flex: 1; min-width: 0; }
.line button.x { flex: none; width: 22px; height: 22px; margin: -1px -4px 0 0; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; }
.line button.x svg { width: 14px; height: 14px; }
.line button.x:hover, .line button.x:focus-visible { color: var(--danger); background: var(--panel-2); }
.ctl .load { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--accent-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.totals { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 12px; display: flex; justify-content: space-between; font-size: 1.05rem; }
.totals b { color: var(--accent-2); }
.errors { margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--danger); }
.errors li::before { content: "• "; }

.btn { display: inline-block; padding: 11px 16px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 700; font-size: 0.95rem; width: 100%; margin-top: 14px; }
.btn.primary { background: var(--accent); color: #1a1407; }
.btn.primary:hover { background: var(--accent-2); }
.btn.primary:disabled { background: #3a3a3a; color: #777; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

/* checkout form */
.form { display: none; flex-direction: column; gap: 8px; margin-top: 12px; }
.form.open { display: flex; }
.form input { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 9px 10px; border-radius: 6px; font-size: 0.9rem; }
.form input:focus { outline: 1px solid var(--accent); }
.confirm { background: #15241a; border: 1px solid #2d5a3a; color: #cfead7; padding: 12px; border-radius: 8px; font-size: 0.9rem; margin-top: 12px; }

footer { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 24px; border-top: 1px solid var(--line); }

/* admin */
.admin { max-width: 860px; margin: 0 auto; padding: 32px 28px 64px; }
.admin table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin th, .admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.admin th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.admin input[type=number], .admin input[type=password] { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 8px 10px; border-radius: 6px; width: 120px; }
.admin button.save { background: var(--accent); border: 0; color: #1a1407; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-weight: 700; }
.admin .login { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); }
.admin .login input { width: 260px; }
.admin .status { font-size: 0.85rem; color: var(--muted); margin-left: 8px; }
.admin .status.ok { color: var(--ok); } .admin .status.bad { color: var(--danger); }
.admin .scrollx { overflow-x: auto; }
.admin .arsenal-edit td { vertical-align: top; }
.admin .arsenal-edit input[type=number] { width: 92px; }
.admin .arsenal-edit input.edited { border-color: var(--accent); }
.admin .arsenal-edit input.hide { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; margin-top: 8px; }
.admin .arsenal-edit tr.is-hidden td:not(:first-child) { opacity: 0.4; }
.admin .sub { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 4px; }
.admin pre { background: var(--panel); border: 1px solid var(--line); padding: 12px; border-radius: 8px; overflow: auto; font-size: 0.8rem; }

/* hero locations */
.where { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.where div { border-left: 2px solid var(--accent); padding-left: 12px; font-size: 0.9rem; }
.where small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; }
.where b { display: block; }
.where span { color: var(--muted); font-size: 0.82rem; }

/* party section */
.party { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.party h4 { margin: 0; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.party .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.party .row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.party .row > label { color: var(--text); }
.party .opt { display: flex; align-items: center; gap: 8px; background: var(--panel-2); padding: 8px 10px; border-radius: 6px; cursor: pointer; flex-wrap: wrap; }
.party .opt small { color: var(--muted); font-size: 0.75rem; width: 100%; padding-left: 22px; }
.party .opt input { accent-color: var(--accent); }
.fee { border-top: 1px solid var(--line); padding: 10px 0; font-size: 0.9rem; }
.fee .t { display: flex; justify-content: space-between; font-weight: 600; }
.fee .d { color: var(--muted); font-size: 0.8rem; }
.subtotals { border-top: 1px solid var(--line); padding-top: 8px; font-size: 0.85rem; color: var(--muted); }
.subtotals div { display: flex; justify-content: space-between; padding: 2px 0; }

/* location links + picture-in-picture map */
a.maplink { color: inherit; text-decoration: underline dotted var(--accent); text-underline-offset: 3px; cursor: pointer; }
a.maplink:hover, a.maplink:focus-visible { color: var(--accent-2); text-decoration-style: solid; }
.where a.maplink { display: block; text-decoration: none; }
.where a.maplink b { text-decoration: underline dotted var(--accent); text-underline-offset: 4px; }
.where a.maplink:hover b, .where a.maplink:focus-visible b { text-decoration-style: solid; }
.mappip { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(420px, calc(100vw - 32px)); height: 320px;
  display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.mappip[hidden] { display: none; }
.mappip .bar { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.mappip .bar b { flex: 1; min-width: 0; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mappip .icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; padding: 0; border: 1px solid var(--line);
  border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; }
.mappip .icon:hover, .mappip .icon:focus-visible { border-color: var(--accent); color: var(--accent-2); }
.mappip iframe { flex: 1; width: 100%; border: 0; background: #e5e3df; }
@media (max-width: 600px) { .mappip { left: 8px; right: 8px; bottom: 8px; width: auto; height: 55vh; } }
