:root {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
}
body {
  margin: 0;
  background: #0b0f14;
  color: #e8eef6;
}
header {
  position: sticky;
  top: 0;
  background: #0b0f14;
  padding: 14px 16px;
  border-bottom: 1px solid #1b2633;
  z-index: 5;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #223245;
  background: #0f1520;
  color: #e8eef6;
  outline: none;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #1a6cff;
  color: #fff;
}
button.secondary {
  background: #172333;
  border: 1px solid #223245;
  color: #e8eef6;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.card {
  background: #0f1520;
  border: 1px solid #1b2633;
  border-radius: 14px;
  padding: 12px;
}
.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  background: #0b0f14;
}
.muted {
  color: #a8b3c3;
  font-size: 13px;
}
.title {
  font-weight: 700;
  margin: 8px 0 4px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #172333;
  border: 1px solid #223245;
  font-size: 12px;
  color: #cfe0ff;
}
.space {
  height: 10px;
}

.cart-btn {
  position: relative;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3b30;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  padding: 2px 7px;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: #0f1520;
  border-left: 1px solid #1b2633;
  transform: translateX(100%);
  transition: 0.2s;
  z-index: 10;
}
.drawer.open {
  transform: translateX(0);
}
.drawer header {
  position: sticky;
  top: 0;
  background: #0f1520;
  border-bottom: 1px solid #1b2633;
}
.drawer .content {
  padding: 12px;
}
.item {
  border: 1px solid #1b2633;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  background: #0b0f14;
}
.item .small {
  font-size: 12px;
  color: #a8b3c3;
}
.item input {
  width: 70px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #223245;
  background: #0f1520;
  color: #e8eef6;
}
hr {
  border: 0;
  border-top: 1px solid #1b2633;
  margin: 10px 0;
}
a {
  color: #8fb6ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
