:root {
  --bg: #071026;
  --card: #0b1220;
  --accent: #7c3aed;
  --muted: #9aa4b2;
  --white: #e6eef6;
  --card-2: rgba(255, 255, 255, 0.02);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:#002252;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.card {
  width: min(1100px, 96%);
  background: linear-gradient(180deg, var(--card-2), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #22c1c3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 18px;
}

.lead {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.control label,
.control .small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

input[type="search"],
input[type="number"],
select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: inherit;
  outline: none;
  width: 100%;
}

.range-row {
  display: flex;
  gap: 8px;
  align-items: center
}

.range-row input {
  width: 100%
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px
}

.muted {
  color: var(--muted);
  font-size: 13px
}

.btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--accent), #22c1c3);
  color: white;
  font-weight: 600;
  cursor: pointer
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted)
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px
}

.product-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
}

.p-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #0b1220
}

.p-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1
}

.p-title {
  margin: 0;
  font-size: 16px
}

.p-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  flex: 1
}

.p-meta {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.p-price {
  font-weight: 700;
  font-family: ui-monospace, monospace
}

.p-stock {
  font-size: 13px;
  color: var(--muted)
}

/* empty state */
.empty {
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
}

/* small screens */
@media (max-width:540px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .controls-grid {
    grid-template-columns: 1fr
  }
}