/* =====================================================================
   כרטיסי מנות + סרגל תחתון (v16) — מבנה בלבד, אותם צבעי "לוח" (board.css)
   ניגודיות: זהב על board-2 = 8.9:1 · טקסט משני #cbbda9 על board-2 = 8.6:1 · אבן על board-2 = 13.9:1
   ===================================================================== */

/* ---------- ראש התפריט: כותרת + חיפוש ---------- */
.sheet__head { display: grid; gap: 12px; justify-items: stretch; padding-block: var(--s-2) var(--s-3); padding-inline: var(--gutter); }
.sheet__head .sheet__title { font-size: var(--fs-2xl); text-align: center; }
.sheet .msearch { max-width: 560px; width: 100%; margin: 0 auto; }
.sheet .msearch__in { min-height: 52px; border-radius: 999px; border-width: 1.5px; font-size: 1rem; }
.sheet .msearch__in:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--board), 0 0 0 5px var(--gold); }

/* ---------- כותרות קטגוריה ותת־כותרות ---------- */
.cat__sub { margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-l); font-weight: 800; color: var(--board-text); display: flex; align-items: center; gap: 10px; }
.cat__sub::after { content: ""; flex: 1; border-top: 1px solid var(--board-line); }

/* ---------- כרטיס מנה ---------- */
.items { display: grid; gap: 12px; }
.pcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; align-items: stretch;
  padding: 14px; border: 1px solid var(--board-line); border-radius: 14px; background: var(--board-2);
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.pcard:hover { border-color: var(--gold); }
.pcard .thumb { order: 2; width: 104px; height: 104px; aspect-ratio: 1; border-radius: 12px; box-shadow: none; align-self: center; }
.pcard__body { order: 1; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; padding: 0; text-align: start; }
.pcard__name { font-size: var(--fs-l); font-weight: 800; line-height: 1.3; color: var(--board-text); }
.pcard__desc { color: var(--board-muted); font-size: var(--fs-s); line-height: 1.45; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { margin-top: auto; padding-top: 8px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard .price { font-size: var(--fs-l); font-weight: 800; color: var(--gold); white-space: nowrap; }
.price__from { font-size: .78em; font-weight: 700; color: var(--board-muted); margin-inline-end: 2px; }
.pcard.is-out { opacity: .78; }
.pcard.is-out .thumb { filter: grayscale(1); }
/* בטל את פריסת "השלט" הקודמת */
.pcard__line, .pcard__lead { display: contents; }
.pcard__body--solo .pcard__foot { grid-column: auto; grid-row: auto; }

/* תמונה בטעינה: רקע ממותג במקום ריבוע ריק, ובלי אייקון "תמונה שבורה" */
.thumb--photo { background: radial-gradient(110% 90% at 50% 115%, rgba(232, 87, 42, .35) 0%, rgba(28, 23, 20, 0) 60%), var(--coal); }
.thumb img:not([src]):not([srcset]) { visibility: hidden; }
.thumb img { color: transparent; }   /* טקסט חלופי לא מוצג בתוך הריבוע בזמן טעינה */

/* תג "אזל כרגע" על התמונה */
.pcard .thumb__badge { inset-inline: 6px; bottom: 6px; top: auto; right: auto; left: 6px; text-align: center; background: rgba(28, 23, 20, .88); color: var(--stone); }

/* מחשב: 2–3 כרטיסים בשורה */
@media (min-width: 1024px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 14px; }
  .pcard { grid-template-columns: minmax(0, 1fr) 120px; padding: 16px; border: 1px solid var(--board-line); border-radius: 14px; background: var(--board-2); max-width: none; }
  .pcard .thumb { width: 120px; height: 120px; aspect-ratio: 1; border-radius: 12px; }
  .pcard__body { padding: 0; }
  .pcard__link::after { border-radius: 14px; }
}
@media (min-width: 1400px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- סרגל תחתון (טלפון) ---------- */
.bnav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: var(--safe-b); background: var(--coal); border-top: 1px solid rgba(242, 180, 106, .28);
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .6);
}
.bnav[hidden] { display: grid !important; }
.bnav__item {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 60px; padding: 6px 2px;
  border: 0; background: none; color: #cbbda9; font: inherit; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bnav__item .ic { width: 24px; height: 24px; }
.bnav__item[aria-current] { color: var(--saffron-glow); }
.bnav__item[aria-current]::before { content: ""; position: absolute; top: 0; inset-inline: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--saffron-glow); }
.bnav__item:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--saffron-glow); border-radius: 10px; }
.bnav__ic { position: relative; display: grid; }
.bnav__count {
  position: absolute; top: -6px; inset-inline-start: -10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--action); color: var(--on-action); font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.bnav.has-items .bnav__cart { color: var(--stone); }
.bnav.has-items .bnav__total { color: var(--saffron-glow); font-variant-numeric: tabular-nums; }
.bnav.bump .bnav__cart, .bnav__cart.bump { animation: bump .45s var(--ease); }
@media (min-width: 1024px) { .bnav { display: none !important; } }
/* מקום לסרגל בתחתית הדף, והודעות קופצות מעליו */
@media (max-width: 1023px) {
  body { padding-bottom: calc(64px + var(--safe-b)); }
  .toasts { bottom: calc(76px + var(--safe-b)); }
}
@media (max-width: 1023px) { .sfoot { padding-bottom: var(--s-6); } }

/* ---------- שתייה: הבקבוק "יושב" על הכרטיס — תמונה שקופה, בלי ריבוע רקע ---------- */
.pcard--drink .thumb, .pcard--drink .thumb--photo { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.pcard--drink .thumb img { object-fit: contain; }
.pcard--drink:hover .thumb--photo img { transform: translateY(-3px); }
.pd__media--clear { background: none !important; }
.pd__media--clear img { object-fit: contain; padding: 12px 0 0; }

/* ---------- מסך מנה (בהשראת תפריטי משלוחים): תג חובה, סלטים ורטבים כאריחי סימון ---------- */
.og__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.layer__panel--board .og__title { flex: 0 1 auto; }
.og__badge { flex: none; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; line-height: 1.6; border: 1px solid var(--board-line); color: var(--board-muted); }
.og__badge--req { background: var(--action); border-color: var(--action); color: var(--on-action); }
.og__hint { flex-basis: 100%; font-size: var(--fs-s); color: var(--board-muted); }
.og { position: relative; }
.og__all {
  position: absolute; top: 16px; left: var(--pad-sheet); margin: 0; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--board-line);
  background: transparent; color: var(--gold); font: inherit; font-size: var(--fs-s); font-weight: 800; cursor: pointer;
}
.og__all:hover { border-color: var(--gold); }
.og__all:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--board), 0 0 0 5px var(--gold); }

.layer__panel--board .opts--checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.layer__panel--board .opts--checks .opt__row {
  min-height: 52px; padding: 8px 12px; gap: 10px; border: 2px solid var(--board-line); background: var(--board-2); font-weight: 700;
}
.layer__panel--board .opts--checks .opt__mark {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(244, 237, 226, .55); background: transparent;
}
.layer__panel--board .opts--checks .opt__label { font-weight: 700; line-height: 1.3; }
.layer__panel--board .opts--checks .opt__price { color: var(--gold); }
.layer__panel--board .opts--checks .opt__in:checked + .opt__row { border-color: var(--gold); background: rgba(242, 180, 106, .1); }
.layer__panel--board .opts--checks .opt__in:checked + .opt__row .opt__mark { border-color: var(--gold); background: var(--gold); }
.layer__panel--board .opts--checks .opt__in:checked + .opt__row .opt__mark::after { content: ""; width: 10px; height: 6px; border: 2.5px solid var(--board); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.layer__panel--board .opts--checks .opt__in:checked + .opt__row .opt__label { font-weight: 800; }

/* "נותר לבחור" מעל כמות + הוספה */
.layer__panel--board .layer__foot { flex-wrap: wrap; row-gap: 8px; }
.pd__left { flex-basis: 100%; margin: 0; text-align: center; font-size: var(--fs-s); color: var(--board-muted); }
.pd__left b { color: var(--gold); font-weight: 800; }
