:root {
  --ink: #14231c;
  --forest: #1e4a38;
  --forest-deep: #123328;
  --clay: #e07a3d;
  --amber: #f0b429;
  --paper: #f3eee4;
  --line: rgba(30, 74, 56, 0.14);
}
* { box-sizing: border-box; }
body.app-body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(700px 360px at 10% -10%, rgba(224,122,61,.22), transparent 60%),
    linear-gradient(165deg, #f7f2e8, #e8efe5 50%, #f4ebe0);
  min-height: 100vh;
  padding: 1rem 1rem 2.5rem;
}
.hidden { display: none !important; }
.gate {
  max-width: 420px;
  margin: 18vh auto 0;
  text-align: center;
  display: grid;
  gap: .9rem;
  justify-items: center;
}
.gate h1, .top h1, .store-head h1 {
  font-family: Syne, sans-serif;
  letter-spacing: -.04em;
  margin: 0;
}
.hint, .muted, .msg { color: rgba(20,35,28,.68); font-size: .92rem; }
.top, .store-head {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clay);
  font-weight: 700;
}
.panel {
  background: rgba(255,255,255,.48);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}
.panel h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
label { display: grid; gap: .35rem; margin-bottom: .75rem; font-weight: 600; font-size: .9rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem .8rem;
  font: inherit;
  background: #fff;
}
.row { display: flex; align-items: center; gap: .4rem; }
.prefix { color: rgba(20,35,28,.55); font-weight: 600; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
.btn.primary { background: var(--clay); color: #fff8f2; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(30,74,56,.3); color: var(--forest); }
.btn.danger { background: transparent; color: #a33; box-shadow: inset 0 0 0 1px rgba(160,50,50,.35); }
.add-form { display: grid; gap: .55rem; margin-bottom: 1rem; }
@media (min-width: 640px) {
  .add-form { grid-template-columns: 2fr 1fr 2fr auto; }
}
.list { display: grid; gap: .65rem; }
.item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .65rem;
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
}
.item img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #dde8d9;
}
.item .meta { min-width: 0; }
.item .meta b { display: block; }
.item .price { color: var(--forest); font-weight: 700; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
  padding-bottom: 5rem;
}
.card {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #dde8d9; display: block; }
.card .body { padding: .7rem .75rem .85rem; }
.card .body b { display: block; margin-bottom: .2rem; }
.store-foot {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(243,238,228,.95) 30%);
  display: flex; justify-content: center;
}
.store-foot .btn { width: min(420px, 100%); }
