@font-face {
  font-family: 'TT Norms Pro';
  src: url('/assets/fonts/TT-Norms-Pro-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
:root {
  --yellow: #ffed00;
  --ink: #141414;
  --muted: #667085;
  --line: #d9dce5;
  --soft: #f7f7f5;
  --danger: #d92d20;
  --ok: #067647;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'TT Norms Pro', Arial, Helvetica, sans-serif;
  background: linear-gradient(120deg, #fff9bd 0, #fff 34%, #f6f6f4 100%);
  color: var(--ink);
}
.page { padding: 28px 42px 70px; max-width: 1540px; margin: 0 auto; }
.toplink {
  position: absolute;
  right: 42px;
  top: 26px;
  background: white;
  border-radius: 28px;
  padding: 14px 26px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
}
.eyebrow { letter-spacing: .22em; color: #697386; font-weight: 800; font-size: 13px; margin-bottom: 8px; text-transform: uppercase; }
.hero h1 { font-size: 74px; line-height: .95; margin: 0 0 10px; font-weight: 800; letter-spacing: -.055em; }
.hero p { font-size: 22px; color: var(--muted); margin: 0 0 44px; }
.card {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 22px 55px rgba(20,20,20,.08);
  margin-bottom: 28px;
}
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.label, label { font-size: 16px; font-weight: 700; color: #344054; }
.input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 18px;
  background: white;
  margin-top: 8px;
}
.btn {
  border: 0;
  border-radius: 20px;
  padding: 15px 28px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  background: #1f2937;
  color: white;
  white-space: nowrap;
}
.btn.yellow { background: var(--yellow); color: #111; }
.btn.gray { background: #efefec; color: #111; }
.btn.danger { background: #fff0f0; color: var(--danger); }
.msg { margin-top: 18px; border-radius: 18px; padding: 16px 20px; font-size: 17px; }
.msg.error { background: #fff1f1; border: 1px solid #ffa8b5; color: #9b111e; }
.msg.ok { background: #ecfdf3; border: 1px solid #abefc6; color: var(--ok); }
.hidden { display: none !important; }
.product-results { margin-top: 18px; display: grid; gap: 10px; }
.product-result {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 14px 18px;
  cursor: pointer;
}
.product-result:hover { border-color: var(--yellow); background: #fffde8; }
.product-result strong { display: block; font-size: 18px; }
.product-result span { color: var(--muted); display: block; margin-top: 3px; }
.grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: start; }
.grid-wide { grid-column: 1 / -1; }
.product-title { font-size: 34px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.35; }
.current-price-badge {
  display: inline-block;
  margin-top: 22px;
  background: #111;
  color: #fff;
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 800;
}
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 10px; }
h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.03em; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th { text-align: left; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); padding: 10px; }
td { border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: middle; }
.current { display: inline-block; background: var(--yellow); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; margin-left: 8px; color: #111; }
.form-row { display: grid; gap: 14px; align-items: end; margin-top: 16px; }
.form-row.four { grid-template-columns: 1fr 1fr 1fr auto; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-buttons { display: flex; gap: 10px; align-items: center; }
.price-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.smallbtn { border: 0; border-radius: 999px; padding: 9px 14px; font-family: inherit; font-weight: 800; cursor: pointer; }
.smallbtn.edit { background: #eef4ff; color: #1849a9; }
.smallbtn.del { background: #fff1f1; color: #b42318; }
@media (max-width: 960px) {
  .hero h1 { font-size: 44px; }
  .grid, .search-row, .form-row.four, .form-row.two { grid-template-columns: 1fr; }
  .page { padding: 24px; }
  .toplink { position: static; display: inline-block; margin-bottom: 20px; }
}
