:root {
  color-scheme: dark;
  --bg: #0b0f18;
  --panel: #121827;
  --panel-2: #171f31;
  --line: #2a354c;
  --text: #edf2ff;
  --muted: #95a1ba;
  --accent: #8ea2ff;
  --green: #5ee39a;
  --yellow: #ffd166;
  --red: #ff7b89;
  --shadow: 0 18px 60px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% -10%, rgba(82,98,180,.17), transparent 34%), var(--bg);
  color: var(--text);
}
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,15,24,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(149,161,186,.13);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { color: var(--accent); font-size: 21px; }
.header-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 5px rgba(94,227,154,.08); }
.hero { padding: 62px 0 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .16em; font-weight: 800; margin: 0 0 8px; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy { color: var(--muted); margin: 14px 0 0; font-size: 16px; max-width: 680px; }
.hero-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 22px 0 30px; }
.search { height: 46px; border: 1px solid var(--line); background: var(--panel); border-radius: 13px; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.search span { color: var(--muted); font-size: 20px; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search input::placeholder { color: #6e7890; }
select { height: 46px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 36px 0 14px; }
.category { margin: 0 0 34px; }
.category-promo { position: relative; isolation: isolate; }
.category-promo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -56px -36px;
  background: radial-gradient(ellipse at 28% 50%, rgba(255, 130, 65, .24), transparent 56%);
  filter: blur(28px);
  pointer-events: none;
}
.category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.category-title { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.category-count { color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { overflow: hidden; background: linear-gradient(180deg, rgba(25,33,51,.92), rgba(17,23,37,.92)); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.category-promo .card {
  border-color: rgba(255, 160, 78, .55);
  box-shadow: 0 0 0 1px rgba(255, 112, 58, .12), 0 18px 48px rgba(255, 86, 40, .22);
}
.image-wrap { position: relative; aspect-ratio: 16 / 10; background: #0c111d; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px; }
.card-top { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
.card-title { margin: 0; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }
.stock { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 800; border: 1px solid currentColor; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.stock.in { color: var(--green); background: rgba(94,227,154,.07); }
.stock.low { color: var(--yellow); background: rgba(255,209,102,.07); }
.stock.out { color: var(--red); background: rgba(255,123,137,.07); }
.meta { color: var(--muted); font-size: 12px; margin-top: 8px; }
.actions { margin-top: 15px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.btn { min-height: 40px; border-radius: 11px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 750; text-decoration: none; background: #111827; color: var(--text); }
.btn:hover { border-color: #4c5c7c; transform: translateY(-1px); }
.btn.coa-link { border-color: rgba(142,162,255,.52); background: rgba(91,111,202,.14); color: #dce3ff; }
.btn.coa-link:hover { border-color: var(--accent); background: rgba(91,111,202,.24); }
.btn.disabled { color: #66728a; pointer-events: none; background: #0f1522; }
.placeholder-note { position: absolute; left: 10px; bottom: 10px; font-size: 10px; color: rgba(237,242,255,.72); background: rgba(0,0,0,.48); border: 1px solid rgba(255,255,255,.12); padding: 5px 7px; border-radius: 8px; }
.empty { color: var(--muted); padding: 50px 0; text-align: center; }
.footer { border-top: 1px solid rgba(149,161,186,.13); margin-top: 34px; }
.footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .header-status { display: none; }
  .hero { padding-top: 42px; align-items: start; flex-direction: column; }
  .toolbar { grid-template-columns: 1fr; }
  select { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 18px 0; align-items: start; flex-direction: column; }
}

/* Product price */
.price {
  margin-top: .55rem;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: .01em;
  color: var(--text, #f3f6ff);
}
