:root {
  color-scheme: dark;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #111827, #1e293b);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  margin-bottom: 24px;
}

.subtitle {
  color: #cbd5e1;
  max-width: 700px;
}

.content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.price {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 12px;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.buy-btn {
  background: #38bdf8;
  color: #082f49;
  width: 100%;
}

.cart {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 16px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #1e293b;
  border-radius: 10px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-form input,
.order-form textarea {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f8fafc;
}

.order-form button {
  background: #22c55e;
  color: white;
}

.status {
  min-height: 24px;
  margin-top: 12px;
  color: #f8fafc;
}

@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
  }

  .cart {
    position: static;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 12px;
  }

  .hero {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 1.15rem;
    margin: 0 0 4px;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .card img {
    height: 64px;
  }

  .card-body {
    padding: 6px;
  }

  .card h3 {
    font-size: 0.7rem;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .price {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .buy-btn {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
}
