/* ============================================================
   Route85 — aplicația client. Mobile-first, tema „meniu de hârtie”:
   crem cald, cerneală, roșu diner, turcoaz. O singură temă — aplicația
   operațională a echipei e separată, la /ops/.
   ============================================================ */

:root {
  --rosu: #C43E2C;
  --rosu-adanc: #94291C;
  --rosu-viu: #E05540;
  --teal: #1E6B66;
  --teal-adanc: #14484A;
  --crem: #F4E9D3;
  --crem-deschis: #FBF4E4;
  --pergament: #EADFC6;
  --ink: #16262B;
  --neon-teal: #7FE8D8;
  --neon-rosu: #FF7A5C;
  --alama: #B07C2E;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'DejaVu Sans', sans-serif;
  --serif: Georgia, 'DejaVu Serif', serif;

  --fundal: var(--crem);
  --fundal-card: var(--crem-deschis);
  --text: var(--ink);
  --text-secundar: #4E5A56;
  --linie: rgba(22, 38, 43, 0.55);
  --ok: #1F7A43;
  --atentie: #8A5B12;
  --alerta: #A62B1B;
}

*, *::before, *::after { box-sizing: border-box; }

/* atributul hidden bate ORICE display setat pe clasă — regulă globală,
   altfel .camp/.badge-cos etc. rămân vizibile deși sunt marcate ascunse */
[hidden] { display: none !important; }

html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  background: var(--fundal); color: var(--text);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
  color-scheme: light;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.45em; }
p { margin: 0 0 0.8em; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
::placeholder { color: #5D6B66; opacity: 1; }

:focus-visible { outline: 3px solid var(--rosu); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 60;
  background: var(--ink); color: var(--crem); font-weight: 700;
  padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; text-decoration: none;
}
.skip:focus-visible { left: 0; }

/* ---------------- bara de sus ---------------- */
.bara {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.6rem;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.9rem 0.55rem;
  background: var(--teal-adanc); color: var(--crem);
  border-bottom: 3px solid var(--ink);
}
.bara-brand { display: inline-flex; align-items: center; }
.bara-brand img {
  width: clamp(104px, 34vw, 176px); height: auto;
  background: var(--crem); border-radius: 7px; padding: 0.28rem 0.5rem;
}
.bara-actiuni { display: flex; align-items: center; gap: 0.5rem; }

.chip-net {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--crem); background: rgba(244, 233, 211, 0.14);
  border-radius: 999px; padding: 0.3rem 0.65rem;
}
.chip-punct { width: 9px; height: 9px; border-radius: 50%; background: var(--neon-teal); }
.chip-net.offline .chip-punct { background: var(--neon-rosu); }
.chip-net.offline { background: rgba(255, 122, 92, 0.18); }
@media (max-width: 374px) {
  #chip-net-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .chip-net { gap: 0; }
}

.banner {
  margin: 0; padding: 0.6rem 1rem; font-size: 0.86rem; font-weight: 600;
  border-bottom: 2px solid var(--ink);
}
.banner a { color: inherit; }
.banner-offline { background: var(--rosu); color: var(--crem-deschis); }

/* ---------------- conținut ---------------- */
.continut { max-width: 760px; margin-inline: auto; padding: 1.1rem 1rem 2rem; }
.vedere-titlu { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.5rem; }
.vedere-sub { color: var(--text-secundar); font-size: 0.92rem; margin-top: -0.3rem; }
.sub-titlu { font-size: 1.05rem; margin-top: 1.6rem; font-family: var(--serif); }

.badge-18-mic {
  font-family: var(--sans); font-size: 0.62em; font-weight: 800; letter-spacing: 0.06em;
  background: #2A161C; color: #E8B863; border: 2px solid #E8B863;
  border-radius: 8px; padding: 0.2em 0.5em;
}

.gol {
  border: 2px dashed var(--linie); border-radius: 14px;
  color: var(--text-secundar); padding: 1.6rem 1.1rem; text-align: center; margin: 1rem 0;
}
.nota-plata { color: var(--text-secundar); font-size: 0.85rem; }
.auth-eroare { color: var(--alerta); font-weight: 600; font-size: 0.92rem; }

/* ---------------- butoane ---------------- */
.buton-primar, .buton-plat {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; border-radius: 999px; padding: 0.62rem 1.25rem;
  border: 2.5px solid var(--ink); cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.buton-primar { background: var(--rosu); color: var(--crem-deschis); border-color: var(--rosu-adanc); box-shadow: 0 3px 0 var(--rosu-adanc); }
.buton-primar:hover { background: var(--rosu-viu); }
.buton-primar:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rosu-adanc); }
.buton-primar:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.buton-plat { background: var(--fundal-card); color: var(--ink); }
.buton-plat:hover { background: var(--pergament); }
.buton-atentie { color: var(--alerta); border-color: var(--alerta); background: transparent; }

/* ---------------- meniul ---------------- */
.meniu-inchis {
  border: 2.5px dashed var(--linie); border-radius: 18px; text-align: center;
  padding: 2.4rem 1.4rem; margin: 1.4rem 0; color: var(--text-secundar);
  background: var(--fundal-card);
}
.meniu-inchis svg { width: 54px; height: 54px; margin: 0 auto 0.8rem; color: var(--teal); }
.meniu-inchis strong { color: var(--text); font-family: var(--serif); font-size: 1.15rem; }

.cauta {
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--fundal-card); border: 2.5px solid var(--linie); border-radius: 14px;
  padding: 0.15rem 0.9rem; margin: 0.9rem 0 0.7rem;
}
.cauta svg { width: 19px; height: 19px; color: var(--text-secundar); flex: none; }
.cauta input { flex: 1; min-width: 0; border: none; background: transparent; color: var(--text); font: inherit; padding: 0.6rem 0; }
.cauta input:focus { outline: none; }
.cauta:focus-within { border-color: var(--rosu); }

.filtre { margin-bottom: 0.8rem; }
.filtre summary {
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.9rem;
  background: var(--fundal-card); border: 2.5px solid var(--linie); border-radius: 999px;
  padding: 0.45rem 1rem; list-style: none; user-select: none;
}
.filtre summary::-webkit-details-marker { display: none; }
.filtre summary::after { content: '▾'; font-size: 0.8em; }
.filtre[open] summary::after { content: '▴'; }
.filtre-numar { background: var(--rosu); color: var(--crem-deschis); border-radius: 999px; font-size: 0.72rem; padding: 0.1rem 0.5rem; font-weight: 800; }
.filtre-corp { margin-top: 0.7rem; border: 2.5px solid var(--linie); border-radius: 14px; background: var(--fundal-card); padding: 0.9rem; }
.filtre-grup { border: none; margin: 0 0 0.8rem; padding: 0; }
.filtre-grup legend { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secundar); padding: 0; margin-bottom: 0.45rem; }
.filtre-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip-filtru { position: relative; display: inline-flex; align-items: center; }
.chip-filtru input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip-filtru span {
  display: inline-block; font-size: 0.84rem; font-weight: 600;
  border: 2px solid var(--linie); border-radius: 999px; padding: 0.32rem 0.8rem;
  background: var(--fundal); color: var(--text);
}
.chip-filtru input:checked + span { background: var(--ink); color: var(--crem-deschis); border-color: var(--ink); }
.chip-filtru input:focus-visible + span { outline: 3px solid var(--rosu); outline-offset: 2px; }
.chip-18 { margin: 0.5rem 0 0.9rem; }
.chip-18 span { border-color: #8a6d3b; }

.categorii { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem 0 0.7rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.categorii::-webkit-scrollbar { display: none; }
.categorie {
  flex: none; font-weight: 700; font-size: 0.9rem;
  background: var(--fundal-card); color: var(--text);
  border: 2.5px solid var(--linie); border-radius: 999px; padding: 0.45rem 1.05rem;
}
.categorie.activa { background: var(--teal-adanc); color: var(--crem-deschis); border-color: var(--teal-adanc); }

.rezumat-lista { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secundar); margin: 0.2rem 0 0.6rem; }

.lista-produse { display: flex; flex-direction: column; gap: 0.7rem; }
.produs {
  position: relative; display: flex; align-items: stretch;
  background: var(--fundal-card); border: 2.5px solid var(--linie); border-radius: 16px;
  box-shadow: 0 2px 0 rgba(22, 38, 43, 0.25);
}
.produs.indisponibil { opacity: 0.62; }
.produs-corp {
  flex: 1; display: flex; gap: 0.85rem; align-items: center; text-align: left;
  background: none; border: none; padding: 0.8rem 2.9rem 0.8rem 0.85rem; color: inherit;
  border-radius: 14px; min-width: 0;
}
.produs-corp:disabled { cursor: not-allowed; }
.produs-icon { flex: none; width: 52px; height: 52px; background: var(--crem); border: 2px solid var(--ink); border-radius: 12px; display: grid; place-items: center; }
.produs-icon svg { width: 40px; height: 40px; }
.produs-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.produs-text strong { font-family: var(--serif); font-size: 1.06rem; }
.produs-text small { color: var(--text-secundar); font-size: 0.83rem; }
.produs-jos { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.2rem; }
.produs-jos b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.produs-jos em { font-style: normal; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal); }
.chip-indisponibil { font-style: normal; font-size: 0.76rem; font-weight: 700; color: var(--alerta); text-transform: uppercase; letter-spacing: 0.04em; }

.produs-favorit {
  position: absolute; top: 0.55rem; right: 0.55rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--fundal); border: 2px solid var(--linie);
  color: rgba(22, 38, 43, 0.35); font-size: 1.05rem; line-height: 1;
}
.produs-favorit.e-favorit { color: var(--rosu); border-color: var(--rosu); background: #FBEAE5; }

.lista-goala { border: 2px dashed var(--linie); border-radius: 14px; color: var(--text-secundar); padding: 1.4rem 1rem; text-align: center; }

/* ---------------- foaia de produs ---------------- */
.foaie {
  border: none; border-radius: 22px 22px 0 0; padding: 0;
  width: 100%; max-width: 560px; margin: auto auto 0;
  background: var(--crem-deschis); color: var(--text);
  max-height: calc(100dvh - 3rem);
}
.foaie::backdrop { background: rgba(16, 29, 33, 0.55); }
.foaie-centrata { border-radius: 22px; margin: auto; }
.foaie-maner { width: 52px; height: 5px; border-radius: 999px; background: var(--linie); margin: 0.7rem auto 0; }
.foaie-corp { padding: 0.9rem 1.2rem 0.4rem; overflow-y: auto; max-height: calc(100dvh - 12rem); }
.foaie-titlu { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 0.4rem; }
.foaie-desc { color: var(--text-secundar); }
.foaie-pret { font-weight: 700; }
.foaie-alergeni { font-size: 0.85rem; color: var(--atentie); }
.foaie-grup { border: 2px solid var(--linie); border-radius: 12px; margin: 0.8rem 0; padding: 0.5rem 0.9rem 0.7rem; }
.foaie-grup legend { font-weight: 800; font-size: 0.85rem; padding: 0 0.4rem; }
.opt-rand { display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0; border-bottom: 1px dashed rgba(22, 38, 43, 0.2); }
.opt-rand:last-child { border-bottom: none; }
.opt-rand input { width: 19px; height: 19px; accent-color: var(--rosu); flex: none; }
.opt-nume { flex: 1; }
.opt-delta { font-size: 0.85rem; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.foaie-actiuni {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; justify-content: flex-end;
  padding: 0.8rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--linie); background: var(--crem);
}
.foaie-actiuni-produs { justify-content: space-between; }
.cantitate { display: inline-flex; align-items: center; gap: 0.15rem; }
.cantitate .buton-plat { padding: 0.45rem 0.85rem; }
.cantitate-numar { min-width: 2ch; text-align: center; font-weight: 800; font-size: 1.05rem; }

/* ---------------- comanda ---------------- */
.cos-gol { text-align: center; padding: 2rem 1rem; color: var(--text-secundar); }
.cos-gol svg { width: 54px; height: 54px; margin: 0 auto 0.7rem; color: var(--teal); }
.cos-gol strong { color: var(--text); }

.cos-lista { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.9rem 0; }
.cos-linie {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'info scoate' 'cant pret';
  gap: 0.4rem 0.8rem; align-items: center;
  background: var(--fundal-card); border: 2.5px solid var(--linie); border-radius: 14px; padding: 0.75rem 0.9rem;
}
.cos-info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }
.cos-info strong { font-family: var(--serif); }
.cos-info small { color: var(--text-secundar); font-size: 0.82rem; }
.cos-cantitate { grid-area: cant; display: inline-flex; align-items: center; gap: 0.3rem; }
.cos-cantitate .buton-plat { padding: 0.3rem 0.75rem; }
.cos-cantitate b { min-width: 2ch; text-align: center; }
.cos-pret { grid-area: pret; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.cos-scoate {
  grid-area: scoate; justify-self: end;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--linie); background: var(--fundal); color: var(--text-secundar);
  font-size: 1rem; line-height: 1;
}
.cos-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2.5px dashed var(--linie); padding-top: 0.7rem; font-size: 1.05rem;
}
.cos-subtotal strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.intent { border: 2.5px solid var(--linie); border-radius: 16px; margin: 1rem 0; padding: 0.8rem 1rem 1rem; background: var(--fundal-card); }
.intent legend { font-weight: 800; padding: 0 0.5rem; }
.intent-optiuni { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.intent-card { position: relative; flex: 1; min-width: 130px; display: flex; }
.intent-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.intent-corp {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  border: 2.5px solid var(--linie); border-radius: 12px; padding: 0.7rem 0.6rem; text-align: center;
  background: var(--fundal);
}
.intent-corp em { font-style: normal; font-size: 0.78rem; color: var(--text-secundar); }
.intent-card input:checked + .intent-corp { border-color: var(--rosu); background: #FBEAE5; box-shadow: 0 0 0 1.5px var(--rosu); }
.intent-card input:focus-visible + .intent-corp { outline: 3px solid var(--rosu); outline-offset: 2px; }

.camp { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.7rem 0; flex: 1; }
.camp > span { font-size: 0.82rem; font-weight: 700; color: var(--text-secundar); }
.camp input, .camp select, .camp textarea {
  font: inherit; color: var(--text);
  background: var(--fundal); border: 2.5px solid var(--linie); border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
.camp input:focus-visible, .camp select:focus-visible { outline: 3px solid var(--rosu); outline-offset: 1px; }
.camp-rand { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.camp-ingust { max-width: 130px; }

.comanda-actiuni { display: flex; justify-content: space-between; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.1rem; }

.sumar-lista { border: 2.5px solid var(--linie); border-radius: 14px; background: var(--fundal-card); padding: 0.4rem 1rem; margin-bottom: 0.9rem; }
.sumar-linie { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px dashed rgba(22, 38, 43, 0.25); }
.sumar-linie:last-child { border-bottom: none; }
.sumar-opt { display: block; color: var(--text-secundar); font-size: 0.8rem; }
.sumar-total { margin: 0.8rem 0; }
.sumar-total div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.sumar-total dt { color: var(--text-secundar); font-weight: 700; }
.sumar-total dd { margin: 0; font-weight: 800; }

/* bonul de confirmare — momentul semnătură al aplicației */
.bon-confirmare {
  background: #FFFDF6; color: var(--ink);
  border: 1px solid rgba(22, 38, 43, 0.3);
  border-radius: 4px; padding: 1.3rem 1.2rem 1.5rem; margin: 0.6rem 0 1rem;
  box-shadow: 0 6px 18px rgba(22, 38, 43, 0.18);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.bon-confirmare::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 12px;
  background:
    linear-gradient(-45deg, transparent 8px, #FFFDF6 0) 0 0 / 16px 100%,
    linear-gradient(45deg, transparent 8px, #FFFDF6 0) 8px 0 / 16px 100%;
  background-repeat: repeat-x;
  transform: translateY(100%);
}
.bon-brand { text-align: center; font-weight: 800; letter-spacing: 0.22em; font-size: 0.78rem; margin-bottom: 0.4rem; }
.bon-numar { text-align: center; font-family: var(--serif); font-size: 2rem; letter-spacing: 0.06em; margin: 0 0 0.3rem; }
.bon-stare { text-align: center; margin-bottom: 0.7rem; }
.bon-linii { border-top: 2px dashed rgba(22, 38, 43, 0.35); border-bottom: 2px dashed rgba(22, 38, 43, 0.35); padding: 0.6rem 0; margin-bottom: 0.7rem; }
.bon-linie { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.25rem 0; font-size: 0.95rem; }
.bon-meta { margin: 0 0 0.7rem; }
.bon-meta div { display: flex; justify-content: space-between; padding: 0.15rem 0; font-size: 0.9rem; }
.bon-meta dt { color: var(--text-secundar); }
.bon-meta dd { margin: 0; font-weight: 700; }
.bon-disclaimer { font-size: 0.84rem; color: var(--text-secundar); text-align: center; margin: 0; }

.stare-chip {
  display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 0.24rem 0.75rem;
  background: var(--pergament); color: var(--text-secundar); border: 2px solid var(--linie);
}
.stare-chip[data-stare="noua"] { background: #FDF3DC; color: var(--atentie); border-color: var(--atentie); }
.stare-chip[data-stare="in_pregatire"] { background: #FBEAE5; color: var(--rosu-adanc); border-color: var(--rosu-adanc); }
.stare-chip[data-stare="gata"], .stare-chip[data-stare="confirmata"] { background: #E4F3E8; color: var(--ok); border-color: var(--ok); }
.stare-chip[data-stare="anulata"], .stare-chip[data-stare="refuzata"] { background: #F9E4E0; color: var(--alerta); border-color: var(--alerta); }
.stare-chip[data-stare="sosita"] { background: #E2F2F0; color: var(--teal); border-color: var(--teal); }

/* urmărirea comenzilor / rezervărilor mele */
.comenzile-mele, .rezervarile-mele { margin-bottom: 1.4rem; }
.urmarire-lista { display: flex; flex-direction: column; gap: 0.55rem; }
.urmarire-rand {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  background: var(--fundal-card); border: 2.5px solid var(--linie); border-radius: 14px; padding: 0.7rem 0.9rem;
}
.urmarire-cod { font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.urmarire-detalii { flex: 1; min-width: 150px; display: flex; flex-direction: column; }
.urmarire-detalii strong { font-size: 0.92rem; }
.urmarire-detalii small { color: var(--text-secundar); font-size: 0.8rem; }

/* ---------------- rezervări ---------------- */
.form-rezervare { border: 2.5px solid var(--linie); border-radius: 16px; background: var(--fundal-card); padding: 0.9rem 1.1rem 1.2rem; }
.form-rezervare .sub-titlu { margin-top: 0.2rem; }

/* ---------------- info ---------------- */
.info-tabel { margin: 0.8rem 0; border: 2.5px solid var(--linie); border-radius: 14px; background: var(--fundal-card); padding: 0.3rem 1rem; }
.info-tabel > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed rgba(22, 38, 43, 0.25); }
.info-tabel > div:last-child { border-bottom: none; }
.info-tabel dt { font-weight: 700; color: var(--text-secundar); }
.info-tabel dd { margin: 0; text-align: right; }
.info-pasi { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.info-pasi li { margin-bottom: 0.35rem; }
.info-actiuni { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.2rem 0 0.5rem; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink); color: var(--crem-deschis);
  font-weight: 700; font-size: 0.92rem;
  border-radius: 999px; padding: 0.65rem 1.3rem;
  box-shadow: 0 8px 22px rgba(22, 38, 43, 0.4);
  z-index: 70; max-width: calc(100vw - 32px); text-align: center;
}
.toast.toast-eroare { background: var(--rosu-adanc); }

/* ---------------- taburi ---------------- */
.taburi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--teal-adanc);
  border-top: 3px solid var(--ink);
  padding: 0.3rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
}
.taburi-grup { display: flex; justify-content: space-around; max-width: 760px; margin-inline: auto; }
.tab {
  position: relative; flex: 1; max-width: 160px;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  background: none; border: none; color: #9FBDB6;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.45rem 0.3rem 0.35rem; border-radius: 12px;
}
.tab svg { width: 23px; height: 23px; }
.tab[aria-current="true"] { color: var(--crem-deschis); }
.tab[aria-current="true"]::before {
  content: ''; position: absolute; top: -0.35rem; left: 20%; right: 20%; height: 3px;
  background: var(--neon-rosu); border-radius: 0 0 3px 3px;
}
.badge-cos {
  position: absolute; top: 0.1rem; right: calc(50% - 22px);
  background: var(--rosu); color: var(--crem-deschis);
  font-size: 0.66rem; font-weight: 800; border-radius: 999px;
  min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px;
  border: 2px solid var(--teal-adanc);
}

/* ---------------- reduced motion & desktop ---------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 900px) {
  .continut { padding-top: 1.6rem; }
  .lista-produse { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .foaie { margin: auto; border-radius: 22px; }
}
