/* ============================================================
   🛒 Einkaufszettel (shopping.js) — 🍳 Küche (Beta)
   Retro-Stil wie style.css: harte Kanten, Hard-Shadows, nur Tokens,
   keine Gradients. Große Tippflächen (Handy im Laden, eine Hand).
   ============================================================ */

.shp-page { padding-bottom: 96px; }

/* ---------- Schnelleingabe ---------- */
.shp-quick { display: flex; gap: 8px; margin: 10px 0 8px; }
.shp-quick input {
  flex: 1; min-width: 0; font-size: 1rem; padding: 12px;
  border: 2px solid var(--line); background: var(--surface); color: var(--text);
}
.shp-quick input:focus { outline: none; border-color: var(--accent); box-shadow: 3px 3px 0 var(--shadow-c); }
.shp-quick .btn { min-width: 52px; font-size: 1.2rem; }

/* ---------- Oft gekauft ---------- */
.shp-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.shp-chips-lbl { font-family: var(--px); font-size: .55rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.shp-chip {
  font: inherit; font-size: .85rem; padding: 6px 10px; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface-2); color: var(--text);
  box-shadow: 2px 2px 0 var(--shadow-c);
}
.shp-chip:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---------- Vorschläge aus dem Vorrat ---------- */
.shp-sug { margin-bottom: 12px; }
.shp-sug-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.shp-sug-list { list-style: none; margin: 0; padding: 0; }
.shp-sug-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; }
.shp-sug-list li + li { border-top: 1px dashed var(--border); }
.shp-sug-list .btn { white-space: nowrap; }

/* ---------- Zettel ---------- */
.shp-group { margin: 14px 0 0; }
.shp-cat {
  font-family: var(--px); font-size: .62rem; font-weight: 700; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px; display: flex; gap: 6px; align-items: baseline;
}
.shp-cat small { font-size: .55rem; }
.shp-list { list-style: none; margin: 0; padding: 0; border: 2px solid var(--line); background: var(--surface); box-shadow: 3px 3px 0 var(--shadow-c); }
.shp-row { display: flex; align-items: stretch; }
.shp-row + .shp-row { border-top: 2px solid var(--border); }
.shp-tick {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: inherit; text-align: left; color: var(--text); background: none; border: 0;
  padding: 12px 10px; min-height: 48px; cursor: pointer;
}
.shp-box {
  flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center;
  border: 2px solid var(--line); background: var(--surface-2); font-size: .8rem; color: #fff;
}
.shp-name { flex: 1; min-width: 6em; display: flex; flex-direction: column; font-size: 1rem; }
.shp-note { color: var(--muted); font-size: .78rem; }
.shp-amt { font-family: var(--mono); font-size: .9rem; color: var(--muted); white-space: nowrap; }
.shp-link { font-size: .85rem; }
.shp-by {
  flex: none; width: 20px; height: 20px; display: inline-grid; place-items: center;
  font-family: var(--px); font-size: .5rem; font-weight: 700; color: var(--muted); border: 2px solid var(--border);
}
.shp-more { border: 0; border-left: 2px solid var(--border); box-shadow: none; padding: 0 14px; font-size: 1.1rem; }
.shp-row.is-checked .shp-box { background: var(--ok); border-color: var(--ok); }
.shp-row.is-checked .shp-name { text-decoration: line-through; color: var(--muted); }
.shp-row.is-checked { background: var(--surface-2); }

.shp-empty { text-align: center; padding: 20px 14px; }
.shp-empty p { margin: 6px 0; }

/* ---------- Abschließen (klebt unten über der Bottom Bar) ---------- */
.shp-finish {
  position: sticky; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: flex; justify-content: center; margin-top: 14px;
}
.shp-finish .btn { font-size: .75rem; padding: 12px 18px; }

/* ---------- Verlauf ---------- */
.shp-done { margin-top: 18px; }
.shp-done summary { cursor: pointer; font-family: var(--px); font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.shp-done-list { list-style: none; margin: 8px 0 0; padding: 0; }
.shp-done-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.shp-done-list li > span { flex: 1; min-width: 0; }
.shp-done-list li + li { border-top: 1px dashed var(--border); }
