:root {
  --bg: #f4efe7;
  --surface: #fffdf9;
  --surface-strong: #fff7eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #b45309;
  --brand-dark: #7c2d12;
  --line: #eadfce;
  --success: #166534;
  --danger: #991b1b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fff4dd 0, transparent 30%),
    radial-gradient(circle at bottom right, #f5d7b8 0, transparent 28%),
    var(--bg);
}

.container {
  width: min(1120px, 94%);
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

.menu a:hover {
  color: var(--brand-dark);
}

.page {
  padding: 34px 0 60px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 35px rgba(60, 38, 14, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(60, 38, 14, 0.08);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--brand-dark);
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  max-width: 700px;
  line-height: 1.6;
}

.hero-actions,
.inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.metric-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 2rem;
  color: var(--brand-dark);
}

.feature-strip,
.grid,
.product-grid {
  display: grid;
  gap: 16px;
}

.feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.catalog-shell {
  display: grid;
  gap: 16px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.catalog-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.filter-bar {
  display: grid;
  gap: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(60, 38, 14, 0.07);
}

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

.product-badge {
  background: #ffedd5;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.product-price {
  color: var(--success);
  font-size: 1.1rem;
}

.product-actions {
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.btn-ghost {
  background: #f5efe6;
  color: var(--brand-dark);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7c8b5;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  background: #fffdfa;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

.flash-wrap {
  margin-bottom: 14px;
}

.flash {
  padding: 11px 13px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.flash.success { background: #dcfce7; color: #166534; }
.flash.warning { background: #fef3c7; color: #92400e; }
.flash.danger { background: #fee2e2; color: #991b1b; }
.flash.info { background: #dbeafe; color: #1d4ed8; }

footer {
  color: var(--muted);
  font-size: 13px;
  padding: 18px 0 34px;
}

@media (max-width: 900px) {
  .hero,
  .feature-strip,
  .filter-grid,
  .catalog-header {
    grid-template-columns: 1fr;
  }

  .catalog-header {
    align-items: start;
  }
}

@media (max-width: 768px) {
  .menu {
    gap: 10px;
    font-size: 14px;
  }

  .page {
    padding-top: 24px;
  }
}
