:root {
  --navy: #0b1c2c;
  --navy-light: #132a40;
  --gold: #c6a45a;
  --gold-light: #e0c27a;
  --text: #e8eef5;
  --muted: #9fb0c3;
  --card: rgba(255,255,255,0.04);
  --ok: #1f7a4d;
  --err: #8b2e2e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, #07131f 0%, #0b1c2c 40%, #10263a 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #fff; }
.site-header, .site-footer {
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer { border-bottom: 0; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 3rem; font-size: 0.9rem; color: #9fb0c3; }
.site-footer .bar { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.35rem; }
.site-footer p { margin: 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--gold); font-weight: 700; }
.brand small { display: block; color: #9fb0c3; font-weight: 400; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.brand img { background: transparent; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.95rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem; }
h1, h2, h3 { font-weight: 700; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--card);
  border: 1px solid rgba(198,164,90,0.25);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #000; }
.card .body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card .meta { margin-top: auto; display: flex; flex-direction: column; gap: 0.35rem; }
.price { color: var(--gold); font-size: 1.15rem; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  border: 0;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}
.btn:hover { background: var(--gold-light); }
.btn.secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn.danger { background: var(--err); color: #fff; }
.btn:disabled, button:disabled { opacity: 0.55; cursor: not-allowed; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.65rem; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
label { display: block; margin: 0.75rem 0 0.25rem; color: #c5d2e0; font-size: 0.9rem; }
input, select, textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.65rem 0.75rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font: inherit;
}
.alert { padding: 0.85rem 1rem; margin-bottom: 1rem; border-radius: 2px; }
.alert.ok { background: rgba(31,122,77,0.25); border: 1px solid #1f7a4d; }
.alert.err { background: rgba(139,46,46,0.3); border: 1px solid #8b2e2e; }
.muted { color: #9fb0c3; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { margin: 0; }
.form-narrow { max-width: 32rem; }
.form-narrow input, .form-narrow select, .form-narrow textarea { max-width: none; }
.hint { margin: 0; color: var(--muted); font-size: 0.85rem; }
.summary { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.25rem; }
.summary p { margin: 0; }
[hidden] { display: none !important; }
.row { display: flex; flex-wrap: nowrap; gap: 0.5rem; align-items: center; }
.row input, .row select { width: auto; max-width: 6rem; }
.row input[type="number"] { width: 4.5rem; }
.row label { margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.product img { width: 100%; border-radius: 4px; margin-bottom: 0.75rem; }
.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(198,164,90,0.2); color: var(--gold); font-size: 0.75rem; }
@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 1fr; gap: 0.15rem; }
  table.lines, table.lines thead, table.lines tbody, table.lines tr, table.lines td, table.lines th { display: block; width: auto; }
  table.lines thead { display: none; }
  table.lines tr { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  table.lines td { border: 0; padding: 0.3rem 0; }
}
@media (max-width: 640px) {
  .site-header .bar { align-items: flex-start; }
}
