* { box-sizing: border-box; }
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #111827;
  --accent: #2563eb;
  --danger: #dc2626;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1280px, 92%); margin: 0 auto; }
.top-banner {
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}
.brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-accent { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn, button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover, button:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 8px 20px rgba(17, 24, 39, 0.14); }
.btn-secondary { background: #eef2f7; color: var(--text); }
.btn-dark { background: #111827; color: white; }
.btn-light { background: white; color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: white; }
.btn-large { min-width: 140px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.user-chip-label { font-size: 14px; font-weight: 700; }
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 30px 0 22px;
}
.hero-panel {
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-promo {
  background: linear-gradient(135deg, #ffffff 0%, #edf3ff 52%, #f7faff 100%);
}
.hero-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-kicker {
  font-size: 13px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.05em;
}
.hero p {
  margin: 0 0 26px;
  color: #4b5563;
  line-height: 1.7;
  font-size: 16px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-tags span {
  background: rgba(255,255,255,0.8);
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  color: #334155;
  font-weight: 700;
}
.hero-side {
  display: grid;
  gap: 16px;
}
.mini-card {
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.promo-card.dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}
.promo-card.light {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
}
.mini-card-overline {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 12px;
}
.mini-card-title { font-size: 28px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.03em; }
.mini-card-text { line-height: 1.7; font-size: 15px; color: inherit; opacity: 0.82; }
.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 6px;
  margin-bottom: 18px;
}
.category-chip {
  white-space: nowrap;
  padding: 13px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 8px 0 18px;
}
.section-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.section-sub { color: var(--muted); font-size: 14px; }
.section-count { font-weight: 700; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 0 0 46px;
}
.card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.8);
}
.card-link {
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-link:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12); }
.card-image-wrap { position: relative; }
.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #e5e7eb;
  display: block;
}
.stock-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.stock-badge.normal { background: rgba(17, 24, 39, 0.86); color: white; }
.stock-badge.limited { background: rgba(234, 179, 8, 0.92); color: #111827; }
.stock-badge.soldout { background: rgba(220, 38, 38, 0.92); color: white; }
.card-body { padding: 18px; }
.card-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 50px;
}
.card-meta, .card-sub { color: var(--muted); font-size: 13px; }
.card-price { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.card-description {
  margin-top: 12px;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.form-page {
  min-height: calc(100vh - 81px);
  display: grid;
  place-items: center;
  padding: 40px 0 70px;
}
.form-wrap {
  width: min(560px, 92%);
  background: white;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-wrap h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: -0.03em; }
.form-intro { color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  font-size: 15px;
  background: #fbfdff;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: #8ab4ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.message { margin: 14px 0 0; padding: 14px; border-radius: 16px; font-size: 14px; }
.message.success { background: #dcfce7; color: #166534; }
.message.error { background: #fee2e2; color: #991b1b; }
.empty {
  background: white;
  border-radius: 24px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.detail-page { padding: 36px 0 56px; }
.detail-card {
  display: grid;
  grid-template-columns: minmax(300px, 520px) 1fr;
  gap: 30px;
  background: white;
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.detail-image-wrap { background: #f3f4f6; border-radius: 24px; overflow: hidden; }
.detail-image { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.detail-category { color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.detail-title { margin: 0 0 18px; font-size: 38px; letter-spacing: -0.04em; }
.detail-price { font-size: 34px; font-weight: 800; margin-bottom: 16px; }
.detail-stock { color: #111827; font-weight: 700; margin-bottom: 18px; }
.detail-description { color: #4b5563; line-height: 1.8; min-height: 120px; font-size: 16px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.footer {
  padding: 26px 0 40px;
  color: #6b7280;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-sub { color: #94a3b8; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .detail-card { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .header .container { align-items: flex-start; padding: 14px 0; }
  .brand { font-size: 24px; }
  .hero-panel, .mini-card { padding: 28px; min-height: auto; }
  .hero h1 { font-size: 34px; }
  .mini-card-title { font-size: 24px; }
  .section-title { font-size: 24px; }
  .form-wrap { padding: 26px; }
  .detail-title { font-size: 30px; }
  .detail-price { font-size: 28px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
