* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  color: #f8fafc;
  min-height: 100vh;
}

.page-wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 42px 22px 80px;
}

.hero {
  margin-bottom: 26px;
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 30%),
    rgba(18, 22, 42, 0.82);
  border: 1px solid rgba(255, 214, 10, 0.16);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fde047;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -1.4px;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
}

.toolbar-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 18px;
}

.add-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.24);
}

.add-btn:hover {
  transform: translateY(-1px);
}

.auth-note {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 14px;
}

.auth-note a {
  color: #fde047;
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 38px rgba(0,0,0,0.22);
}

.filters input,
.filters select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
  color: #f8fafc;
  outline: none;
  font-family: inherit;
}

.filters input::placeholder {
  color: #94a3b8;
}

.filters option {
  color: #111827;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.card-shell {
  min-width: 0;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 10, 0.12), transparent 36%),
    rgba(16, 21, 40, 0.92);
  border: 1px solid rgba(255, 214, 10, 0.14);
  box-shadow: 0 18px 42px rgba(0,0,0,0.26);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 214, 10, 0.30);
  box-shadow: 0 24px 52px rgba(0,0,0,0.34);
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  display: block;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.card h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.card .price,
.price {
  margin: 0 0 8px;
  color: #fde047;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
}

.card .category {
  margin-top: auto;
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.35px;
}

.empty-state {
  padding: 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
}

@media (max-width: 720px) {
  .page-wrap {
    padding: 30px 16px 58px;
  }

  .hero {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .toolbar-row {
    justify-content: stretch;
  }

  .add-btn {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }
}
