:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --soft: #eef2ff;
  --green: #16a34a;
  --orange: #f97316;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.16s ease;
}

button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #20c997);
  font-weight: 800;
}

.brand h1,
.brand p,
.hero h2,
.hero p {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
}

.brand p,
.muted {
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.sidebar .card {
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.login-card label {
  display: block;
  color: var(--muted);
  margin: 10px 0;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin-top: 6px;
  outline: none;
}

.login-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-card button {
  width: 100%;
  margin-top: 10px;
}

.service-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.sdk-placeholder {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed #c7d2fe;
  border-radius: 14px;
  color: #4f46e5;
  background: #f5f7ff;
  text-align: center;
}

.main {
  padding: 28px;
  overflow-y: auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at right top, rgba(37, 99, 235, 0.14), transparent 32%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
}

.hero h2 {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.hero p:last-child {
  margin-top: 8px;
  color: var(--muted);
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px !important;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.category {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.category.active,
.category:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 380px;
  gap: 20px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.74;
  border-radius: 16px;
  object-fit: cover;
  background: #e0f2fe;
}

.product-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.product-card p {
  margin: 6px 0 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.price {
  color: var(--orange);
  font-weight: 800;
  font-size: 18px;
}

.add-cart {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  border-radius: 999px;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}

.right-column {
  display: grid;
  align-content: start;
  gap: 20px;
}

.cart-item,
.order-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child,
.order-item:last-child {
  border-bottom: 0;
}

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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