* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.container { width: 1200px; max-width: calc(100% - 48px); margin: 0 auto; }
.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e9edf3;
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 20;
}
.topbar .container { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.actions { display: flex; gap: 10px; align-items: center; }
.auth-status {
  font-size: 13px; color: #475569; background: #eef2ff; border: 1px solid #c7d2fe;
  border-radius: 999px; padding: 4px 10px;
}
.btn, button {
  border: none; background: #2563eb; color: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer;
  transition: all .2s ease;
}
.btn:hover, button:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18); }
.btn-muted { background: #64748b; }
.btn-muted:hover { box-shadow: 0 8px 16px rgba(100, 116, 139, 0.2); }
.section-title { margin: 24px 0 14px; font-size: 26px; letter-spacing: .5px; }
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.banner-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; background: #ddd; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: #fff; border-radius: 12px; padding: 12px; border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12); }
.cover { width: 100%; height: 220px; border-radius: 8px; object-fit: cover; background: #ddd; }
.desc { color: #6b7280; font-size: 13px; min-height: 36px; }
.price { color: #e11d48; font-size: 20px; font-weight: 700; }
.bottom-row { display: flex; justify-content: space-between; align-items: center; }
.pager { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 24px 0; }
.empty { width: 100%; text-align: center; padding: 40px 0; color: #64748b; }
.login-box {
  width: 400px; max-width: calc(100% - 24px); margin: 80px auto; background: rgba(255,255,255,.96);
  border-radius: 12px; padding: 24px; border: 1px solid #e5e7eb; box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
.field { display: block; margin: 12px 0; }
.field input {
  width: 100%; border: 1px solid #d8dee8; border-radius: 8px; height: 42px; padding: 0 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.error { display: none; color: #dc2626; font-size: 14px; margin: 8px 0; }
.detail-box { display: grid; grid-template-columns: 420px 1fr; gap: 24px; background: #fff; border-radius: 12px; padding: 20px; margin-top: 20px; }
.detail-cover { width: 100%; height: 420px; object-fit: cover; border-radius: 10px; }
.detail-price { color: #e11d48; font-size: 30px; font-weight: 700; }
.pay-box { width: 460px; max-width: calc(100% - 24px); margin: 48px auto; background: #fff; border-radius: 12px; padding: 28px; text-align: center; }
.pay-box img { width: 260px; height: 260px; object-fit: contain; border: 1px solid #e9edf3; }
.cart-item, .order-row {
  display: grid; grid-template-columns: 90px 120px 1fr 90px; gap: 12px; align-items: center;
  background: #fff; border-radius: 10px; padding: 12px; margin: 10px 0;
}
.cart-item img, .checkout-item img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-info h3 { margin: 0 0 6px; }
.qty-row { display: flex; align-items: center; gap: 8px; }
.checkout-footer { margin: 14px 0 30px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.checkout-card { background: #fff; border-radius: 10px; padding: 14px; margin: 12px 0; }
.checkout-pay-hint { color: #444; font-size: 0.95rem; }
.checkout-item { display: grid; grid-template-columns: 80px 1fr; gap: 10px; margin: 8px 0; }
