:root {
  --bg: #12140f;
  --bg-2: #1b1e16;
  --panel: #22261c;
  --line: rgba(214, 188, 122, 0.22);
  --ink: #f3efe4;
  --muted: #b7b1a2;
  --brass: #c6a15a;
  --brass-2: #e4cc8a;
  --olive: #6d7a45;
  --danger: #c45b4a;
  --ok: #8faf6a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(198, 161, 90, 0.16), transparent 55%),
    linear-gradient(180deg, #181b13 0%, var(--bg) 280px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--brass-2); text-decoration: none; }
a:hover { color: white; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 8px 0; color: var(--muted); font-size: 13px; letter-spacing: 0.04em;
}
.topbar span { white-space: nowrap; }
header.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(18, 20, 15, 0.86);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: white; }
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.brand strong { display: block; font-family: var(--serif); font-weight: 560; letter-spacing: 0.04em; }
.brand small { color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.links a { color: var(--ink); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.links a.active { color: var(--brass-2); }
.role-pill, .btn, .btn-ghost {
  border: 1px solid var(--line); background: #2a2e22; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.btn { background: linear-gradient(180deg, #d7b56a, #a7843e); color: #1a160c; font-weight: 650; border: 0; }
.btn-ghost { background: transparent; }
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center;
  padding: 42px 0 28px;
}
.kicker { color: var(--brass-2); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 520; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 0.95; margin: 8px 0 16px; }
h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; }
.lede { font-size: 18px; color: var(--muted); max-width: 58ch; }
.hero-card { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-card img { width: 100%; height: 460px; object-fit: cover; }
.hero-card figcaption {
  position: absolute; left: 14px; bottom: 14px; background: rgba(18,20,15,0.78);
  padding: 8px 12px; border-radius: 999px; font-size: 13px;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 36px; }
.stat, .card, .panel {
  background: rgba(34, 38, 28, 0.86); border: 1px solid var(--line); border-radius: 16px;
}
.stat { padding: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.section { padding: 18px 0 42px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { overflow: hidden; }
.card img { width: 100%; height: 210px; object-fit: cover; background: #111; }
.card .pad, .panel { padding: 16px; }
.price { color: var(--brass-2); font-family: var(--serif); font-size: 22px; }
.muted { color: var(--muted); }
.tag {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 8px; font-size: 12px; letter-spacing: 0.04em; color: var(--brass-2);
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.filters button[aria-pressed="true"] { background: var(--brass); color: #1a160c; border-color: transparent; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.notice {
  border: 1px solid var(--line); background: #26281c; border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 14px;
}
.admin-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field input, .field select, .field textarea {
  background: #12140f; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px;
}
.product-admin { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.product-admin img { width: 92px; height: 64px; object-fit: cover; border-radius: 8px; }
.modal, .gate {
  position: fixed; inset: 0; background: rgba(8, 9, 6, 0.78); display: grid; place-items: center; z-index: 40; padding: 16px;
}
.modal .panel, .gate .panel { width: min(720px, 100%); max-height: min(88vh, 860px); overflow: auto; }
.hidden { display: none !important; }
.cart-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .hero, .split, .admin-grid, .stats, .grid { grid-template-columns: 1fr; }
  .hero-card img { height: 260px; }
  .links { display: none; }
  .links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: #161811; padding: 16px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex !important; }
}
.menu-btn { display: none; }
