/* v29s.css — SPEC-v2.9 §2 ("🏠 מוצרי בסיס", צבי): the staples on the shopping list (ui/shop.js) —
   their box at the top of "צריך לקנות" with "✏️ ניהול מוצרי בסיס", the word on them under an
   empty page — and the "ניהול מוצרי בסיס" sheet: the list with ✕, "+ הוספת מוצר" and the
   "💡 מופיעים הרבה בלוח:" chips.
   Like v27b.css / v28.css: built only from the app's shared variables (style.css), which
   theme-clean.css points at its own tokens (--paper / --ink / --ink-soft / --rule / --hand /
   --g-white …), so the fridge look (default, where the notepad and the sheets stay light paper
   objects even in dark mode) and html[data-theme="clean"] (light and dark) both follow it; the few
   clean-only rules below just swap a fridge object for its flat twin.
   A staple's line is the list's own .srow / .sitem (the same tap, tick and strike-through).
   Every font-size follows the text-size slider (var(--ts)); every tap target >= 44px; nothing is
   wider than a 360px phone. */

/* ---------------- the list: the staples' box at the top of "צריך לקנות" ---------------- */
/* a stroke of yellow highlighter across the page (the red margin line still shows through it) */
.base-box {
  margin: 6px 0 10px; padding-bottom: 2px;
  background: linear-gradient(180deg, rgba(255, 216, 77, 0.24), rgba(255, 216, 77, 0.14));
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}
.base-box .base-head { padding-top: 10px; }
.base-box .pad-note { padding-top: 8px; padding-bottom: 4px; }
/* "✏️ ניהול מוצרי בסיס": written in blue marker, from the margin line like the items */
.base-manage {
  display: flex; align-items: center; gap: 6px;
  width: 100%; min-height: 44px;
  padding: 6px 56px 6px 14px;
  font: 600 calc(16px * var(--ts))/1.2 var(--hand); color: var(--marker-blue);
  text-align: start; overflow-wrap: anywhere;
}
.base-manage:active { opacity: 0.7; }
@media (hover: hover) { .base-manage:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* no meals and no staples yet: a small card under the empty page */
.base-invite { padding: 18px 16px 14px; }
.base-invite .card-title { margin-bottom: 4px; }
.base-invite .muted { font-size: calc(15px * var(--ts)); line-height: 1.45; }

/* ---------------- the sheet: "ניהול מוצרי בסיס" ---------------- */
.base-empty { margin: 4px 2px 6px; font-size: calc(15.5px * var(--ts)); line-height: 1.45; }
.base-list { list-style: none; margin: 2px 0 4px; }
.base-li {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 5px 2px;
  border-bottom: 1px solid var(--rule);
}
.base-li .bl-name {
  flex: 1; min-width: 0;
  font: 600 calc(18px * var(--ts))/1.25 var(--hand); color: var(--ink);
  overflow-wrap: anywhere;
}
/* "+ הוספת מוצר" and "הוספה" side by side (the field takes what is left) */
.base-add { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.base-add .input { flex: 1; min-width: 0; }
.base-add .btn { flex: none; width: auto; min-height: 50px; margin-top: 0; padding: 10px 16px; }
.base-full { margin-top: 12px; }
/* "💡 מופיעים הרבה בלוח:" — a round chip per suggestion ("+ ביצים · 12 ארוחות"), wrapping */
.base-sugg .field-label { margin-top: 22px; }
.base-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.base-chip {
  max-width: 100%; min-height: 44px;
  padding: 7px 14px; border-radius: 999px;
  font: 700 calc(15px * var(--ts))/1.25 var(--font); color: var(--ink);
  text-align: start; overflow-wrap: anywhere;
  background: var(--g-white); box-shadow: var(--sh-white);
}
.base-chip:active { transform: translateY(1px) scale(0.98); }

/* ---------------- the clean look ("לבן ולימון") ---------------- */
/* no highlighter there: a grey rounded card (the rows inside keep their hairlines) */
html[data-theme="clean"] .base-box { margin: 10px 0 8px; padding: 0 12px 2px; border-radius: 16px; background: var(--c-fill); box-shadow: none; }
html[data-theme="clean"] .base-box .srow:last-child { border-bottom: 0; }
@media (hover: hover) { html[data-theme="clean"] .base-box .srow:hover { background: transparent; } }
html[data-theme="clean"] .base-manage { padding: 6px 0; font: 600 calc(14px * var(--ts))/1.2 var(--c-sans); color: var(--c-ink); }
html[data-theme="clean"] .base-chip { background: var(--c-fill); box-shadow: none; font-weight: 600; }
html[data-theme="clean"] .base-chip:active { transform: none; background: var(--c-fill2); }

/* ---------------- צבי 27/9: the box folds to its header (ui/shop.js baseHtml, per phone) ---------------- */
/* the header is one button: 🏠 מוצרי בסיס · how many are missing (or "הכול בבית ✓" when folded) · ▴/▾ */
.base-box .base-head { padding: 0; }
.base-fold {
  display: flex; align-items: center; gap: 7px;
  width: 100%; min-height: 44px; margin: 0;
  padding: 10px 56px 4px 14px;
  font: inherit; color: inherit; text-align: start;
  background: none; border: 0; border-radius: 0; cursor: pointer;
}
.base-fold:active { opacity: 0.75; }
.base-sum { font: 600 calc(13.5px * var(--ts, 1))/1.2 var(--font); color: var(--ink-soft, #4F5664); }
.base-arr { margin-inline-start: auto; font: 700 calc(15px * var(--ts, 1))/1 var(--font); color: var(--ink-mute, #7A808B); }
.base-box.folded { padding-bottom: 0; }
.base-box.folded .base-fold { padding-bottom: 10px; }
.base-box.folded .base-head { border-bottom: 0; }
