:root {
  --red: #C7263A;
  --red-dark: #A8234A;
  --gold: #D2AB62;
  --sand: #E5CB9B;
  --cream: #F0E4CF;
  --ink: #231F20;
  --muted: #6b6264;
  --bg: #FBF7F0;
  --wa: #1f9d55;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Almoni Neue", "Heebo", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
}
a { color: var(--red-dark); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2 { line-height: 1.2; margin: 0; }

/* ---------- catalog ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; isolation: isolate;
  padding: 48px 0 56px; background: var(--cream);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1;
}
.hero::before { width: 420px; height: 420px; background: var(--sand); opacity: .55; top: -220px; left: -140px; }
.hero::after { width: 300px; height: 300px; background: var(--gold); opacity: .25; bottom: -180px; right: -90px; }

.logo { width: 150px; height: auto; mix-blend-mode: multiply; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; margin-top: 12px; }
.lead { max-width: 560px; margin: 10px auto 0; color: var(--muted); font-size: 1.1rem; }

.grid {
  display: grid; gap: 24px; margin: 40px 0 56px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(35,31,32,.06), 0 8px 24px rgba(35,31,32,.06);
  display: flex; flex-direction: column;
}
.media { aspect-ratio: 4 / 3; background: var(--cream); }
.media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { height: 100%; display: grid; place-items: center; }
.noimg img { width: 40%; mix-blend-mode: multiply; opacity: .8; }
.body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.body h2 { font-size: 1.35rem; font-weight: 700; }
.price { color: var(--red); font-weight: 800; font-size: 1.25rem; }
.body p { margin: 0; color: var(--muted); flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; border: 1px solid #d9cfc0; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 10px 20px; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--gold); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.wa { background: var(--wa); color: #fff; border: 0; margin-top: 8px; padding: 12px 20px; }
.btn.wa:hover { filter: brightness(1.07); }
.btn.primary { background: var(--red); color: #fff; border: 0; }
.btn.primary:hover { background: var(--red-dark); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.danger { color: var(--red); }
.link { background: none; border: 0; font: inherit; color: var(--red-dark); cursor: pointer; text-decoration: underline; padding: 4px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.foot { border-top: 1px solid #ebe2d3; padding: 22px 0; color: var(--muted); font-size: .95rem; text-align: center; }

/* ---------- admin ---------- */
.bar { background: #fff; border-bottom: 1px solid #ebe2d3; }
.bar-in { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { width: 44px; mix-blend-mode: multiply; }
.bar-actions { display: flex; gap: 8px; align-items: center; }
.admin { padding: 28px 0 60px; }
.panel { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 8px 24px rgba(35,31,32,.06); }
.narrow { max-width: 420px; margin: 40px auto; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
label small { color: var(--muted); font-weight: 400; }
input, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #d9cfc0; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
label.check { flex-direction: row; align-items: center; gap: 8px; }
.msg { margin: 0; color: var(--red); min-height: 1.4em; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(35,31,32,.06);
}
.item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--cream); flex: none; }
.item .info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.item .info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .info span { color: var(--muted); font-size: .95rem; }
.item-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hidden-item { opacity: .6; }
.settings { margin-top: 28px; }
.settings summary { cursor: pointer; font-weight: 700; }
.settings form { margin-top: 14px; max-width: 360px; }
dialog { border: 0; border-radius: var(--radius); padding: 24px; width: min(520px, 100% - 24px); }
dialog::backdrop { background: rgba(35,31,32,.45); }
.imgfield { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.imgfield img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.imgfield label.btn { flex-direction: row; }
.actions { display: flex; gap: 10px; }

@media (max-width: 600px) {
  .item { flex-wrap: wrap; }
  .item-actions { width: 100%; justify-content: flex-start; }
}
