/* menu.css — menu filter tabs, dish cards, and the sticky WhatsApp order bar + order sheet. */

.menu__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: background .25s, color .25s, border-color .25s;
}
.tab:hover { color: var(--cream); border-color: rgba(246, 239, 228, .4); }
.tab.is-active { background: var(--amber); color: var(--charcoal); border-color: var(--amber); }

.cat-blurb { margin-top: 26px; font-family: var(--font-display); font-size: 22px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; min-height: 1.4em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 22px; }

.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--charcoal-2); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); border-color: rgba(232, 160, 32, .35); }
.card.is-hidden { display: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--charcoal-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 999px; background: var(--ember); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.card__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card__name { font-size: 28px; }
.card__price { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--amber); }
.card__short { font-weight: 600; }
.card__desc { font-size: 15px; color: var(--muted); }
.card__portion { font-family: var(--font-display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.card__actions .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid rgba(246, 239, 228, .25); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 42px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; }
.qty button:hover { background: rgba(246, 239, 228, .08); }
.qty output { min-width: 28px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; }

/* Sticky order bar (appears once something is added) */
.orderbar {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 140%); width: min(100% - 24px, 640px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 12px 12px 20px; border-radius: 999px;
  background: var(--charcoal-2); border: 1px solid rgba(232, 160, 32, .4); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease);
}
.orderbar.is-visible { transform: translate(-50%, 0); }
.orderbar__sum { display: flex; flex-direction: column; line-height: 1.1; cursor: pointer; }
.orderbar__sum strong { font-family: var(--font-display); font-size: 24px; color: var(--amber); }
.orderbar__sum span { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* Order sheet (review before sending) */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet.is-open { opacity: 1; pointer-events: auto; }
.sheet__panel {
  width: min(100%, 560px); max-height: 85vh; overflow: auto; padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: var(--charcoal-2); border: 1px solid var(--line);
  transform: translateY(40px); transition: transform .4s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h3 { font-size: 32px; }
.sheet__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-size: 22px; }
.sheet__list { margin-top: 14px; border-top: 1px solid var(--line); }
.sheet__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet__row .name { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; }
.sheet__row .line { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--amber); min-width: 70px; text-align: right; }
.sheet__total { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--font-display); font-size: 26px; text-transform: uppercase; }
.sheet__total strong { color: var(--amber); }
.sheet__fields { display: grid; gap: 10px; margin-top: 16px; }
.sheet__fields input, .sheet__fields textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(246, 239, 228, .2);
  background: var(--charcoal); color: var(--cream); font: inherit;
}
.sheet__fields input:focus, .sheet__fields textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: transparent; }
.sheet__note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sheet .btn-wa { width: 100%; margin-top: 14px; }
