:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --card: #1d212b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #a9b0c0;
  --primary: #ff4d6d;
  --primary-hover: #ff3358;
  --secondary: #2c3342;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  --radius: 18px;
  --container: 1150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 77, 109, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(91, 125, 255, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.hero {
  padding: 90px 0 70px;
}

.hero-content {
  max-width: 760px;
}

.tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.25);
  color: #ffd4dc;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #353d4f;
}

.section {
  padding: 30px 0 70px;
}

.section-alt {
  padding-top: 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 2rem;
  margin: 0 0 10px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #2a3140, #171b24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9d2e6;
  font-size: 0.95rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.badge {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(91, 125, 255, 0.16);
  color: #d6deff;
  border: 1px solid rgba(91, 125, 255, 0.22);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
  min-height: 76px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.buy-btn {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.buy-btn:hover {
  background: var(--primary-hover);
}

.loading,
.empty,
.error {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--muted);
}

.info-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-box h2 {
  margin-top: 0;
}

.info-box p {
  color: var(--muted);
  line-height: 1.7;
}

.info-box pre {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 14px;
  overflow: auto;
  background: #0b0d12;
  border: 1px solid var(--border);
  color: #d5def1;
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer h3 {
  margin: 0 0 6px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer-link {
  color: #fff;
  font-weight: 700;
}

.footer-link:hover {
  color: #ffd4dc;
}

@media (max-width: 640px) {
  .card p {
    min-height: auto;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .buy-btn {
    text-align: center;
  }
}