:root {
  --bg: #f6f8f9;
  --panel: #ffffff;
  --text: #18232f;
  --muted: #60707f;
  --line: #d9e3e8;
  --brand: #0b7a75;
  --brand-2: #1f5f8b;
  --danger: #b42318;
  --ok: #137333;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 24px; font-weight: 800; text-decoration: none; color: var(--brand); }
.nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nav a, .admin-menu a { text-decoration: none; color: var(--text); font-weight: 700; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
.hero {
  min-height: 360px;
  display: grid;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #e9f7f4, #fff8ec);
}
.hero h1 { font-size: clamp(42px, 8vw, 86px); margin: 0 0 8px; letter-spacing: 0; }
.hero p { font-size: 20px; color: var(--muted); max-width: 620px; }
h1, h2 { letter-spacing: 0; }
.search, .filters, .form { display: grid; gap: 12px; margin: 18px 0; }
.search { grid-template-columns: 1fr auto; max-width: 680px; }
.search label { grid-column: 1 / -1; font-weight: 700; }
input, select, textarea, button {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
label { display: grid; gap: 6px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; }
.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.btn.secondary { background: var(--brand-2); }
.btn.small { min-height: 34px; padding: 7px 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { align-items: stretch; flex-direction: column; max-width: 360px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.products { margin-top: 14px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(20, 35, 50, .06);
}
.product-card { padding: 0; overflow: hidden; }
.product-card a { display: grid; gap: 8px; text-decoration: none; padding-bottom: 14px; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8eef2; }
.product-card strong, .product-card span, .product-card small { padding: 0 14px; }
.product-card span, .price { color: var(--brand); font-size: 22px; font-weight: 900; }
.product-card small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 28px; }
.main-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #e8eef2; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs img { width: 86px; height: 72px; object-fit: cover; border-radius: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
.stats article { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.stats strong { display: block; font-size: 30px; color: var(--brand); }
.stats span { color: var(--muted); font-weight: 700; }
.admin-menu { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.admin-menu a { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.table-wrap { overflow-x: auto; margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #eef5f6; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-actions button, table button { min-height: 32px; padding: 6px 9px; background: #eef5f6; color: var(--text); border: 1px solid var(--line); }
.alert, .success { padding: 12px; border-radius: 8px; font-weight: 700; }
.alert { color: var(--danger); background: #fff0ee; border: 1px solid #ffd0ca; }
.success { color: var(--ok); background: #eef8ee; border: 1px solid #cbe8cb; }
code { white-space: normal; overflow-wrap: anywhere; }
.site-footer { padding: 28px 16px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .search, .detail { grid-template-columns: 1fr; }
  .hero { padding: 24px; min-height: 300px; }
  .container { width: min(100% - 24px, 1120px); }
}

