/* Order basket (assets/comanda.js): add buttons on the menu, floating basket bar, product sheet, basket sheet, toast. */
.add { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(224,112,47,.12); border: 1px solid rgba(224,112,47,.45); color: var(--cream); font: 700 13px "Inter", sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
  transition: background .3s, border-color .3s, transform .4s var(--ease); }
.add .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .45s var(--ease); }
.add .plus .ico { width: 15px; height: 15px; }
.add:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.add:hover .plus { transform: rotate(90deg); background: rgba(20,9,4,.25); }
.dish-word { display: grid; place-items: center; background: radial-gradient(80% 90% at 70% 20%, rgba(224,112,47,.28), transparent 70%), linear-gradient(160deg, #2c140a, #120703); }
.dish-word > span:not(.soldout-tag) { font-family: var(--display); font-size: clamp(40px, 4.4vw, 60px); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.4px rgba(244,233,216,.5); }
.chips button { display: inline-flex; align-items: center; gap: 6px; font: 500 14px "Inter", sans-serif; color: var(--cream); background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 12px 6px 9px; cursor: pointer; transition: background .3s, border-color .3s; }
.chips button .ico { width: 14px; height: 14px; color: var(--accent-2); }
.chips button:hover { background: rgba(224,112,47,.15); border-color: var(--accent); }
.chips li { border: 0; padding: 0; }
.drinks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.drinks button { width: 100%; display: grid; grid-template-columns: 52px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; cursor: pointer;
  background: rgba(244,233,216,.03); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 8px 8px; color: var(--cream); font: inherit; transition: border-color .3s, background .3s; }
.drinks button:hover { border-color: rgba(224,112,47,.5); background: rgba(224,112,47,.08); }
.drinks img, .drink-ph { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #e9e6e2; }
.drink-ph { display: grid; place-items: center; font-family: var(--display); font-size: 24px; color: var(--bg); background: var(--gold); }
.drinks .dn { grid-column: 2; grid-row: 1; font-weight: 600; font-size: 14px; line-height: 1.3; align-self: end; }
.drinks .dp { grid-column: 2; grid-row: 2; font-size: 13px; color: var(--muted); align-self: start; }
.drinks .plus { grid-column: 3; grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(224,112,47,.16); color: var(--accent-2); transition: background .3s, color .3s; }
.drinks .plus .ico { width: 15px; height: 15px; }
.drinks button:hover .plus { background: var(--accent); color: #fff; }

/* floating basket bar */
.cart-bar { position: fixed; z-index: 41; left: 50%; bottom: 22px; width: min(520px, calc(100% - 140px)); transform: translate(-50%, 140%); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s; pointer-events: none; }
.cart-bar.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cart-bar button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; font: 700 15px "Inter", sans-serif; box-shadow: 0 18px 40px rgba(0,0,0,.5); transition: background .3s; }
.cart-bar button:hover { background: #ec7d3a; }
.cart-bar .cb-count { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; background: var(--bg); color: var(--cream); display: grid; place-items: center; font-size: 15px; }
.cart-bar .cb-label { flex: 1; text-align: left; letter-spacing: .3px; }
.cart-bar .cb-total { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .5px; padding-right: 8px; }
.cart-bar.bump .cb-count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* sheets (native <dialog>) */
html:has(dialog.sheet[open]) { overflow: hidden; }
dialog.sheet { margin: 0 0 0 auto; padding: 0; border: 0; height: 100%; max-height: 100%; width: min(500px, 100%); max-width: 100%; background: var(--bg-2); color: var(--cream);
  border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0,0,0,.5); transform: translateX(0); transition: transform .5s var(--ease), display .5s allow-discrete, overlay .5s allow-discrete; }
dialog.sheet::backdrop { background: rgba(8,3,1,.62); backdrop-filter: blur(4px); transition: opacity .4s, display .5s allow-discrete, overlay .5s allow-discrete; }
@starting-style { dialog.sheet[open] { transform: translateX(100%); } dialog.sheet[open]::backdrop { opacity: 0; } }
dialog.sheet:not([open]) { transform: translateX(100%); }
.sheet-in { display: flex; flex-direction: column; height: 100%; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 30px; }
.x { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; transition: background .3s, transform .4s var(--ease); }
.x:hover { background: rgba(244,233,216,.08); transform: rotate(90deg); }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; overscroll-behavior: contain; }
.sheet-foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); background: var(--bg); }

/* product sheet */
.is-img { width: calc(100% + 48px); max-width: none; height: auto; margin: -20px -24px 18px; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.is-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.tog input:checked + span .hm { background: #fff; }
.upsell { margin: 18px 0 0; }
.upsell > span { display: block; font: 700 12px "Inter", sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.is-title { font-size: 40px; color: var(--gold); }
.sheet .ing { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.opt { border: 0; margin: 22px 0 0; padding: 0; display: block; }
.opt legend, .opt .legend { display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.opt legend small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.seg, .tog { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label, .tog label { position: relative; cursor: pointer; }
.seg input, .tog input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .tog span { display: inline-flex; align-items: baseline; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 15px; font-size: 14.5px; font-weight: 600;
  transition: background .25s, border-color .25s, color .25s; }
.seg span em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; }
.seg input:checked + span, .tog input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg input:checked + span em { color: rgba(255,255,255,.85); }
.seg input:focus-visible + span, .tog input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.field { display: block; margin: 14px 0 0; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--cream); font: 500 15px "Inter", sans-serif; transition: border-color .3s, box-shadow .3s; color-scheme: dark; }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(224,112,47,.18); }
.field.bad input, .field.bad textarea { border-color: #ff8f7a; }
.field .err { display: none; color: #ff9c8a; font-size: 13px; margin-top: 6px; }
.field.bad .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; gap: 10px; align-items: center; margin: 16px 0 0; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; color: var(--cream); font-size: 20px; cursor: pointer; border-radius: 50%; transition: background .25s; }
.qty button:hover { background: rgba(244,233,216,.08); }
.qty output, .qty span { min-width: 30px; text-align: center; font-weight: 700; }
.qty.sm button { width: 34px; height: 34px; font-size: 17px; }
.is-foot { display: flex; align-items: center; gap: 14px; }
.is-foot .btn { flex: 1; justify-content: center; border: 0; cursor: pointer; white-space: nowrap; }

/* basket sheet */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(244,233,216,.05); border: 1px solid var(--line); margin: 0 0 20px; }
.modes button { border: 0; background: none; color: var(--cream); font: 700 13px "Inter", sans-serif; letter-spacing: .4px; padding: 10px 6px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.modes button[aria-pressed="true"] { background: var(--cream); color: var(--bg); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.li-name { font-weight: 700; }
.li-opts { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.li-price { font-weight: 700; white-space: nowrap; text-align: right; }
.li-ctl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.li-rm { background: none; border: 0; color: var(--muted); font: 600 13px "Inter", sans-serif; cursor: pointer; padding: 6px 0; }
.li-rm:hover { color: #ff9c8a; }
.empty-cart { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty-cart b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; color: var(--cream); margin-bottom: 8px; }
.sum { margin: 18px 0 0; display: grid; gap: 6px; }
.sum div { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.sum .disc { color: #78DB9C; }
.sum .tot { color: var(--cream); font-size: 17px; font-weight: 700; padding-top: 8px; border-top: 1px dashed var(--line-2); margin-top: 4px; }
.sum .tot b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.hint { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.hint.good { color: #78DB9C; }
.details { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.details h4 { font: 700 12px "Inter", sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 16px 0 0; }
.details [data-modes]:not(.on), .details [data-event]:not(.on), .details .off { display: none; }
.min-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(233,184,114,.1); border: 1px solid rgba(233,184,114,.35); color: var(--gold); font-size: 14px; font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px; margin-top: 8px; }
.foot-links .clear-cart { margin: 0; }
.offer-link { color: var(--accent-2); font: 700 13px "Inter", sans-serif; border-bottom: 1px solid rgba(244,161,92,.4); padding: 6px 0 2px; }
.offer-link:hover { color: var(--cream); }
.min-note[hidden], .offer-link[hidden], .clear-cart[hidden] { display: none; }
.is-alg { margin: 10px 0 0; font-size: 13px; color: #8f7a64; }
.is-alg b { color: var(--muted); }
.closed-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(233,184,114,.1); border: 1px solid rgba(233,184,114,.3); color: var(--gold); font-size: 14px; }
.btn-send { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--wa); color: #fff; font: 700 15px "Inter", sans-serif; letter-spacing: .4px; transition: background .3s, transform .4s var(--ease); }
.btn-send:hover { background: #27b765; transform: translateY(-2px); }
.btn-send[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-send svg { width: 22px; height: 22px; }
.foot-note { margin: 10px 0 0; font-size: 12.5px; color: #8f7a64; text-align: center; }
.sent { display: none; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(34,163,90,.14); color: #8fe3ad; font-size: 14px; }
.sent.on { display: block; }
.clear-cart { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--muted); font: 600 13px "Inter", sans-serif; cursor: pointer; text-decoration: underline; }

/* toast */
.toast { position: fixed; z-index: 60; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 96px; transform: translateY(20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--cream); color: var(--bg); font-weight: 600; font-size: 14.5px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transition: transform .5s var(--ease), opacity .35s; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: none; pointer-events: auto; }
.toast button { border: 0; background: var(--bg); color: var(--cream); border-radius: 999px; padding: 8px 14px; font: 700 13px "Inter", sans-serif; cursor: pointer; white-space: nowrap; }

/* office calculator (Pentru firme) */
.calc { margin: 6px 0 0; padding: 22px; border-radius: 16px; background: rgba(20,9,4,.45); border: 1px solid var(--line); }
.calc-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.calc-row > :first-child { grid-column: 1 / -1; }
.calc .field { margin: 0; }
.calc-qty > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.calc-out { margin: 16px 0 0; font-size: 15px; color: #DCC6AB; min-height: 3em; }
.calc-out b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--cream); letter-spacing: .5px; }
.calc-out .good { color: #78DB9C; }
.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 14px; }
.calc-actions .btn { border: 0; cursor: pointer; }

@media (max-width: 760px) {
  dialog.sheet { margin: auto 0 0; width: 100%; height: 92%; max-height: 92%; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0; }
  @starting-style { dialog.sheet[open] { transform: translateY(100%); } }
  dialog.sheet:not([open]) { transform: translateY(100%); }
}
@media (max-width: 620px) {
  .cart-bar { left: 16px; right: 92px; width: auto; transform: translate(0, 140%); }
  .cart-bar.on { transform: none; }
  /* one bottom control: a filled basket replaces the floating WhatsApp button; in the hero it waits */
  .has-cart .cart-bar { right: 16px; }
  .has-cart .fab, .in-hero .fab { opacity: 0; visibility: hidden; transform: scale(.6); pointer-events: none; }
  .cart-bar .cb-label { font-size: 14px; }
  .cart-bar .cb-n { display: none; }
  .toast { bottom: 100px; }
  .sheet-head, .sheet-body, .sheet-foot { padding-left: 18px; padding-right: 18px; }
  .is-foot { gap: 10px; }
  .is-foot .btn { padding-left: 14px; padding-right: 14px; letter-spacing: .6px; }
  .is-img { width: calc(100% + 36px); margin: -20px -18px 18px; aspect-ratio: 2.2 / 1; }
  .field-row, .calc-row { grid-template-columns: 1fr; }
  /* menu rows: the "+" becomes a 40 px circle in the corner, its label stays for screen readers */
  #menu-grid .dish:not(.dish-text) .add { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; margin: 0; border-radius: 50%;
    background: var(--accent); border-color: var(--accent); justify-content: center; gap: 0; }
  #menu-grid .dish:not(.dish-text) .add .plus { width: 40px; height: 40px; background: transparent; }
  #menu-grid .dish:not(.dish-text) .add-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .drinks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .drinks button { grid-template-columns: 36px 1fr; padding: 6px 8px; column-gap: 10px; }
  .drinks img, .drink-ph { width: 36px; height: 36px; }
  .drinks .plus { display: none; }
  .drinks .dn { font-size: 13px; line-height: 1.2; }
  .chips button { font-size: 13px; padding: 5px 10px 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.sheet, .cart-bar, .toast { transition: none; }
}
