/* Nahem interactive menu (site/menu.js). Everything is scoped under #menu.im-on or an im- class, so the page without scripts keeps its own look. */
.im-live{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.im-ico{font-size:15px;line-height:1}

/* ---- toolbar ---- */
.im-bar{position:sticky;top:var(--im-top,64px);z-index:30;margin:0 -20px 6px;padding:10px 20px 8px;background:rgba(255,253,248,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid #efe3d4}
.im-row{display:flex;align-items:center;gap:8px}
.im-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:0 12px;height:44px}
.im-search:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,107,26,.16)}
.im-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:var(--ink);height:100%}
.im-search input::-webkit-search-cancel-button{display:none}
.im-x{border:0;background:#f1e8db;color:#5a5249;width:26px;height:26px;border-radius:50%;font-size:18px;line-height:1;display:grid;place-items:center;padding:0}
.im-x.big{width:36px;height:36px;font-size:22px;background:#fff}
.im-sort{height:44px;border:1.5px solid var(--line);border-radius:14px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:var(--ink);padding:0 8px;max-width:120px}
.im-pill{height:44px;display:flex;align-items:center;gap:6px;border:1.5px solid var(--line);border-radius:14px;background:#fff;padding:0 12px;font-weight:800;color:var(--ink);white-space:nowrap}
.im-pill.has{background:var(--orange-dark,#c2410c);border-color:var(--orange);color:#fff;box-shadow:0 8px 18px rgba(233,80,8,.28)}
.im-pill-n{min-width:20px;text-align:center}
.im-tabs{margin-top:8px}
.im-bar .menu-tabs{margin:0;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding-bottom:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.im-bar .menu-tabs::-webkit-scrollbar{display:none}
.im-bar .menu-tab{flex:none;padding:8px 14px;min-height:44px}
.im-chips{display:flex;gap:7px;overflow-x:auto;margin-top:7px;padding-bottom:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.im-chips::-webkit-scrollbar{display:none}
.im-chip{flex:none;display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);background:#fff;color:#5a5249;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:800;transition:.15s;min-height:44px}
.im-chip:hover{border-color:#e6a27c}
.im-chip.on{background:#fff1e8;border-color:var(--orange);color:var(--orange-dark)}
.im-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;font-size:12px;color:var(--muted);font-weight:700;min-height:22px}
.im-reset{border:0;background:transparent;color:var(--orange-dark);font-weight:900;font-size:12px;text-decoration:underline;padding:2px 4px}

/* ---- cards ---- */
#menu.im-on .menu-grid{grid-template-columns:repeat(4,1fr)}
#menu.im-on .item-card{min-height:0;padding:10px 10px 12px;cursor:pointer}
#menu.im-on .item-card[data-im-hide]{display:none}
#menu.im-on .item-card.in-cart{border-color:var(--orange);box-shadow:0 10px 22px rgba(233,80,8,.14)}
.im-media{position:relative;display:block;aspect-ratio:1/1;border-radius:13px;overflow:hidden;background:#fff4e6;margin-bottom:8px;isolation:isolate}
.im-media::before{content:"";position:absolute;inset:-14%;background:var(--bg,none) center/cover;filter:blur(16px) saturate(1.15);opacity:.62;z-index:-1}
#menu.im-on .im-media .item-image{position:relative;display:block;width:100%;height:100%;aspect-ratio:auto;padding:0;margin:0;background:transparent;border-radius:0;object-fit:contain;object-position:center}
/* a small or odd picture is shown at about its own size, centred on the soft backdrop, never stretched or cropped */
#menu.im-on .im-media.im-small .item-image{position:absolute;inset:0;width:auto;height:auto;max-width:56%;max-height:56%;margin:auto;mix-blend-mode:multiply}
.im-filters{margin:0 0 12px}
.im-badge{position:absolute;top:7px;inset-inline-start:7px;background:#fff;color:var(--orange-dark);font-size:12px;font-weight:900;padding:3px 8px;border-radius:999px;box-shadow:0 4px 10px rgba(0,0,0,.12)}
#menu.im-on .item-card h3{font-size:16px}
#menu.im-on .item-card p{font-size:12px}
#menu.im-on .item-footer{gap:6px;flex-wrap:wrap}
#menu.im-on .item-order.im-old{display:none}
.im-ctl{display:inline-flex}
.im-add{display:inline-flex;align-items:center;gap:5px;border:0;background:var(--orange-dark,#c2410c);color:#fff;border-radius:11px;padding:7px 12px;font-size:12.5px;font-weight:900;box-shadow:0 6px 14px rgba(233,80,8,.28);min-height:34px}
.im-add:hover{background:var(--orange-dark)}
.im-plusico{font-size:16px;line-height:1}
.im-step{display:inline-flex;align-items:center;gap:2px;background:#fff1e8;border-radius:12px;padding:2px}
.im-step.big{padding:3px}
.im-qb{width:34px;height:34px;border:0;border-radius:10px;background:#fff;color:var(--orange-dark);font-size:20px;font-weight:900;line-height:1;display:grid;place-items:center;padding:0;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.im-qb:hover{background:var(--orange-dark,#c2410c);color:#fff}
.im-q{min-width:26px;text-align:center;font-weight:900;font-size:15px;color:var(--ink)}
.im-q.fixed{color:var(--muted);font-size:13px}

/* ---- buttons, empty state, printed menu ---- */
.im-btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--orange-dark,#c2410c);color:#fff;border-radius:13px;padding:11px 18px;font-weight:900;font-size:14px;box-shadow:0 8px 18px rgba(233,80,8,.25)}
.im-btn.big{width:100%;padding:14px 18px;font-size:16px;border-radius:15px}
.im-btn.ghost{background:#fff;color:var(--orange-dark);border:1.5px solid var(--orange);box-shadow:none}
.im-link{border:0;background:transparent;color:var(--muted);font-size:12px;text-decoration:underline;margin:10px auto 0;display:block}
.im-empty{text-align:center;padding:26px 14px;background:#fff8ef;border:1px dashed #ead7bf;border-radius:18px;margin-top:12px}
.im-empty p{margin:0 0 12px;color:var(--muted)}
.im-empty .im-btn{margin:4px}
.im-print{margin-top:28px;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}
.im-print>summary{cursor:pointer;padding:15px 18px;font-weight:900;color:var(--ink);list-style:none}
.im-print>summary::-webkit-details-marker{display:none}
.im-print[open]>summary{border-bottom:1px solid var(--line)}
.im-print .menu-full-card{margin:14px}

/* ---- the basket sheet ---- */
.im-sheet{position:fixed;inset:0;z-index:130;background:rgba(23,21,18,.55);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s}
.im-sheet.open{opacity:1;pointer-events:auto}
.im-sheet-card{width:min(560px,100%);max-height:92vh;display:flex;flex-direction:column;background:var(--paper);border-radius:24px 24px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.3);transform:translateY(30px);transition:transform .25s}
.im-sheet.open .im-sheet-card{transform:none}
.im-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px;border-bottom:1px solid var(--line)}
.im-sheet-head h3{margin:0;font-size:20px}
.im-sheet-body{overflow:auto;padding:12px 18px calc(18px + env(safe-area-inset-bottom,0px))}
.im-sheet-empty{color:var(--muted);text-align:center;margin:18px 0}
.im-lines{display:flex;flex-direction:column;gap:10px}
.im-line{display:flex;align-items:center;gap:10px}
.im-thumb{position:relative;flex:none;width:52px;height:52px;border-radius:12px;overflow:hidden;background:#fff4e6;isolation:isolate}
.im-thumb::before{content:"";position:absolute;inset:-14%;background:var(--bg,none) center/cover;filter:blur(10px);opacity:.6;z-index:-1}
.im-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:3px}
.im-line-n{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.im-line-n b{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.im-line-n small{color:var(--muted);font-size:12px}
.im-line-n .im-note{color:var(--orange-dark);font-weight:700}
.im-line-t{flex:none;min-width:36px;text-align:end;font-weight:900;color:var(--orange-dark)}
.im-sug{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:14px 0 4px;padding:11px;background:#fff8ef;border:1px solid #ead7bf;border-radius:15px}
.im-sug-t{font-size:12.5px;font-weight:900;color:var(--ink);width:100%}
.im-sum{margin:14px 0 12px;padding-top:12px;border-top:1px dashed var(--line)}
.im-sum-r{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:15px}
.im-sum-r b{font-size:18px}
.im-sum-r.save{color:var(--green);font-size:13px;font-weight:700}
.im-sum-r.save b{font-size:14px}
.im-hint{color:var(--muted);font-size:12px;margin:10px 2px 0;text-align:center}
.im-modal-ctl{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 12px}
.im-modal-ctl .im-btn.big{box-shadow:none}
/* the details window: a small picture stays at its own size instead of being stretched */
.item-modal-image.im-small-modal{padding:46px;image-rendering:auto}

@media (max-width:1040px){#menu.im-on .menu-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){
  .im-bar{margin:0 -14px 6px;padding:8px 14px 6px}
  .im-sort{display:none}
  #menu.im-on .menu-grid{grid-template-columns:1fr 1fr;gap:9px}
  #menu.im-on .item-card{padding:8px 8px 10px;border-radius:15px}
  #menu.im-on .item-card h3{font-size:14.5px}
  #menu.im-on .item-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px}
  .im-add{padding:7px 10px}
  .im-add-t{display:none}
  .im-add{width:44px;height:44px;justify-content:center;padding:0;border-radius:12px}
  .im-qb{width:32px;height:32px}
  .im-sheet-card{border-radius:22px 22px 0 0}
}
@media (min-width:761px){.im-sheet{align-items:center}.im-sheet-card{border-radius:24px;max-height:86vh}}
@media (prefers-reduced-motion:reduce){.im-sheet,.im-sheet-card,.im-chip{transition:none}}

/* while the basket sheet is open the floating helpers step aside, so they never cover its buttons */
html.im-sheet-open #nahem-chat-lite,html.im-sheet-open #nahem-chat,html.im-sheet-open #nahem-a11y{display:none!important}

/* the suggestions: a row per extra, with the reason; and the short strip under the toolbar after an item is added */
.im-sug-row{display:flex;align-items:center;gap:8px;width:100%}
.im-sug-row .im-chip{flex:none}
.im-sug-why{color:var(--muted);font-size:12px;line-height:1.4}
.im-pair{position:absolute;inset-inline:20px;top:calc(100% + 6px);z-index:31;box-shadow:0 10px 24px rgba(0,0,0,.14);display:flex;align-items:center;gap:6px;overflow-x:auto;margin-top:0;padding:6px 8px;background:#fff8ef;border:1px solid #ead7bf;border-radius:12px;scrollbar-width:none}
.im-pair::-webkit-scrollbar{display:none}
.im-pair[hidden]{display:none}
.im-pair-t{flex:none;font-size:12px;font-weight:900;color:var(--ink)}
.im-pair .im-chip{padding:5px 10px;font-size:12.5px}

/* the best-sellers shelf */
.im-shelf{margin:0 0 16px}
.im-shelf[hidden]{display:none}
.im-shelf-h{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}
.im-shelf-h b{font-size:18px}
.im-shelf-h small{color:var(--muted);font-size:12px}
.im-shelf-row{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.im-shelf-row::-webkit-scrollbar{display:none}
.im-sc{position:relative;flex:none;width:152px;scroll-snap-align:start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:6px;cursor:pointer}
.im-sc:hover{border-color:#e6a27c}
.im-sc .im-media{margin-bottom:0}
.im-rank{position:absolute;top:12px;inset-inline-end:12px;z-index:2;width:28px;height:28px;border-radius:50%;background:var(--orange-dark,#c2410c);color:#fff;font-weight:900;font-size:14px;display:grid;place-items:center;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.im-newtag{position:absolute;top:12px;inset-inline-end:12px;z-index:2;padding:3px 9px;border-radius:999px;background:var(--orange-dark,#c2410c);color:#fff;font-weight:900;font-size:12px;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.im-new{background:linear-gradient(180deg,#fff3e8,#fff);border:1px solid #f3c9a8;border-radius:18px;padding:12px 12px 4px}
.im-new .im-shelf-h b{color:var(--orange-dark,#c2410c)}
.im-more{margin-inline-start:auto;border:0;background:none;color:var(--orange-dark,#c2410c);font:inherit;font-weight:800;font-size:13px;cursor:pointer;padding:2px 4px}
.im-more:hover{text-decoration:underline}
.im-sc:nth-child(1) .im-rank{background:#e0a21b}
.im-sc:nth-child(2) .im-rank{background:#8f979e}
.im-sc:nth-child(3) .im-rank{background:#b87333}
.im-sc>b{font-size:13.5px;line-height:1.3;min-height:35px}
.im-sc-f{display:flex;align-items:center;justify-content:space-between;gap:6px}
.im-sc-p{font-weight:900;color:var(--orange-dark);font-size:15px;white-space:nowrap}
@media (min-width:761px){.im-sc{width:178px}}
