/* ViaMENU public header + ViaPOS-style menu · 2026-09-14 rev3 */
:root{
  --vm-head-ink:#24345f;
  --vm-head-ink-hover:#1e2c52;
  --vm-head-line:#dfe6ec;
  --vm-head-text:#173149;
  --vm-menu-surface:#102034;
}

.vm-public-shell-header{
  position:sticky;top:0;z-index:9900;
  padding:8px 10px 5px;
  background:linear-gradient(180deg,rgba(248,250,252,.98),rgba(248,250,252,.90));
  backdrop-filter:blur(14px);
}
.vm-public-header{
  max-width:1100px;margin:0 auto;min-height:68px;
  display:grid;grid-template-columns:minmax(0,1fr) 148px;
  align-items:center;gap:12px;padding:8px 10px;
  border:1px solid #e4e9ed;border-radius:19px;
  background:rgba(255,255,255,.97);
  box-shadow:0 4px 16px rgba(15,23,42,.045);
}
.vm-public-header-action{
  width:44px;height:44px;border:1px solid #e1e7eb;border-radius:14px;
  background:#f8fafb;color:#334a5f;display:grid;place-items:center;padding:0;box-shadow:none;cursor:pointer;
}
.vm-public-header-action:hover{background:#f1f5f8}
.vm-public-header-action svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vm-public-brand{
  min-width:0;display:flex;align-items:center;justify-content:flex-start;
  justify-self:stretch;text-decoration:none!important;color:var(--vm-head-text)!important;
}
.vm-public-brand--left{min-width:0}
.vm-public-brand-logo{
  width:min(260px,100%);height:54px;border:0;border-radius:0;background:transparent;
  display:flex;align-items:center;justify-content:flex-start;padding:0;overflow:hidden;
}
.vm-public-brand-logo img{width:auto!important;max-width:100%!important;height:100%!important;object-fit:contain!important;object-position:left center!important;display:block!important;margin:0!important;padding:0!important}
.vm-public-brand-copy{display:none!important}

/* ViaPOS-style button: dark indigo, long double-line icon, spaced label. */
.vm-via-menu-button{
  width:148px;height:58px;padding:0 18px;border:1px solid rgba(255,255,255,.12);border-radius:18px;
  display:inline-flex;align-items:center;justify-content:center;gap:15px;
  background:var(--vm-menu-surface);color:#fff;border-color:transparent;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 18px rgba(15,32,52,.18);
  cursor:pointer;transition:background .15s ease,transform .15s ease,box-shadow .15s ease;
}
.vm-via-menu-button:hover{background:#142a44;filter:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 22px rgba(15,32,52,.22)}
.vm-via-menu-button:active{transform:translateY(1px)}
.vm-via-menu-lines{width:30px;display:grid;gap:8px;flex:0 0 30px}
.vm-via-menu-lines i{display:block;width:30px;height:2.5px;border-radius:999px;background:#fff}
.vm-via-menu-label{font-size:13px;font-weight:900;letter-spacing:.28em;line-height:1;white-space:nowrap}

.vm-public-menu-backdrop{position:fixed;inset:0;z-index:10040;background:rgba(15,23,42,.34);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.vm-public-menu-backdrop.is-open{opacity:1;visibility:visible}
.vm-public-menu-panel{
  position:absolute;top:0;right:0;width:min(430px,94vw);height:100%;
  display:flex;flex-direction:column;background:#f7f8fa;border-left:1px solid #dfe5ea;
  box-shadow:-20px 0 60px rgba(15,23,42,.18);transform:translateX(102%);transition:transform .22s ease;
}
.vm-public-menu-backdrop.is-open .vm-public-menu-panel{transform:translateX(0)}
.vm-public-menu-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px;background:#fff;border-bottom:1px solid #e2e8ee}
.vm-public-menu-head-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--vm-head-ink);color:#fff;font-size:13px;font-weight:950;flex:0 0 auto}
.vm-public-menu-head-copy{min-width:0;flex:1}.vm-public-menu-head-copy span{display:block;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#8a99a8}.vm-public-menu-head-copy strong{display:block;margin-top:3px;font-size:18px;font-weight:900;color:#173149;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vm-public-menu-close{width:42px;height:42px;border:1px solid #dce4ea;border-radius:12px;background:#f8fafb;color:#475d70;display:grid;place-items:center;cursor:pointer;position:relative;z-index:2}.vm-public-menu-close:hover{background:#eef2f5;color:#172f44}.vm-public-menu-close svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
.vm-public-menu-body{padding:14px;overflow:auto;flex:1}.vm-public-menu-label{margin:3px 4px 9px;font-size:10px;font-weight:950;letter-spacing:.085em;text-transform:uppercase;color:#8695a4}
.vm-public-menu-list{display:grid;gap:8px}.vm-public-menu-item{
  width:100%;min-height:66px;padding:10px 12px;border:1px solid #dfe6eb;border-radius:15px;background:#fff;color:#173149;
  display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;text-align:left;text-decoration:none!important;cursor:pointer;
  box-shadow:0 3px 12px rgba(15,23,42,.025);
}
.vm-public-menu-item:hover{background:#fbfcfd;border-color:#ccd8e1}.vm-public-menu-item--cart{border-color:#d8deed;background:#fbfcff}
.vm-public-menu-item--home{border-color:#d8deed;background:linear-gradient(180deg,#fff,#fbfcff)}
.vm-public-menu-item--home .vm-public-menu-icon{background:#eef1f9;color:var(--vm-head-ink)}
.vm-public-menu-item--whatsapp{border-color:#cfe9da;background:linear-gradient(180deg,#fff,#f8fffb)}
.vm-public-menu-item--whatsapp:hover{background:#f1fbf5;border-color:#b8ddc8}
.vm-public-menu-item--whatsapp .vm-public-menu-icon{background:#e7f8ee;color:#128c5b}
.vm-public-menu-item--legal{border-color:#f1d5d9;background:linear-gradient(180deg,#fff,#fffafa)}
.vm-public-menu-item--legal:hover{background:#fff6f7;border-color:#e7bdc3}.vm-public-menu-item--legal .vm-public-menu-icon{background:#fff0f2;color:#d73348}
.vm-public-menu-icon{width:42px;height:42px;border-radius:13px;background:#eef5f3;color:#0d7d61;display:grid;place-items:center}.vm-public-menu-item--cart .vm-public-menu-icon{background:#eef1f9;color:var(--vm-head-ink)}.vm-public-menu-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.vm-public-menu-item-copy{min-width:0}.vm-public-menu-item-copy strong{display:block;font-size:14px;line-height:1.15;font-weight:900;color:#173149}.vm-public-menu-item-copy small{display:block;margin-top:4px;font-size:11px;line-height:1.35;font-weight:650;color:#718395}
.vm-public-menu-arrow{font-size:18px;color:#a0adba}.vm-menu-cart-badge{min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:var(--vm-head-ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:950}
.vm-public-menu-section{margin-top:16px}.vm-public-menu-foot{padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e2e8ee;color:#7a8b99;font-size:10px;text-align:center;font-weight:700}
body.vm-public-menu-open{overflow:hidden}

/* MENÜ > Yasal Uyarılar */
.vm-legal-modal[hidden]{display:none!important}
.vm-legal-modal{position:fixed;inset:0;z-index:10080;display:grid;place-items:center;padding:20px}
.vm-legal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(9,19,33,.58);backdrop-filter:blur(6px);cursor:default}
.vm-legal-card{position:relative;width:min(600px,calc(100vw - 28px));max-height:min(760px,calc(100vh - 40px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #dfe5eb;border-radius:24px;background:#fff;box-shadow:0 32px 100px rgba(10,24,42,.28);animation:vmLegalIn .2s ease-out}
.vm-legal-head{display:flex;align-items:center;gap:13px;padding:18px 18px 16px;background:linear-gradient(180deg,#fff,#fff9fa);border-bottom:1px solid #f0dde0}
.vm-legal-head-icon{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:15px;background:#ffecef;color:#d73348}
.vm-legal-head-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vm-legal-head-copy{min-width:0;flex:1}.vm-legal-head-copy>span{display:block;margin-bottom:3px;color:#a35c67;font-size:10px;font-weight:950;letter-spacing:.1em;text-transform:uppercase}.vm-legal-head h2{margin:0;color:#8f2031;font-size:21px;line-height:1.2;font-weight:950;letter-spacing:-.015em}
.vm-legal-close{width:42px;height:42px;flex:0 0 42px;border:1px solid #eadde0;border-radius:13px;background:#fff;color:#6c7885;display:grid;place-items:center;cursor:pointer}.vm-legal-close:hover{background:#fff1f3;color:#c72b40}.vm-legal-close svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.vm-legal-list{list-style:none;margin:0;padding:17px 18px;overflow:auto;display:grid;gap:11px;background:#f8fafc}
.vm-legal-list li{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:12px;padding:14px;border:1px solid #e2e8ee;border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.025)}
.vm-legal-number{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#fff0f2;color:#c9293f;font-size:13px;font-weight:950}
.vm-legal-list p{margin:0;color:#354a5e;font-size:14px;line-height:1.62;font-weight:620}
.vm-legal-foot{padding:13px 18px calc(13px + env(safe-area-inset-bottom));border-top:1px solid #e2e8ee;background:#fff}
.vm-legal-action{width:100%;min-height:48px;border:0;border-radius:14px;background:#102034;color:#fff;font-size:14px;font-weight:900;cursor:pointer;box-shadow:0 8px 20px rgba(16,32,52,.16)}.vm-legal-action:hover{background:#182e49}
body.vm-legal-open{overflow:hidden}
@keyframes vmLegalIn{from{transform:translateY(12px) scale(.985);opacity:0}to{transform:none;opacity:1}}

@media(max-width:640px){
  .vm-public-shell-header{padding:6px 6px 4px}
  .vm-public-header{min-height:64px;grid-template-columns:minmax(0,1fr) 126px;padding:6px 7px;border-radius:17px;gap:9px}
  .vm-public-brand-logo{width:min(210px,100%);height:48px;padding:0}
  .vm-public-brand-mark{width:42px;height:42px;border-radius:13px;font-size:17px}
  .vm-via-menu-button{width:126px;height:52px;padding:0 13px;border-radius:17px;gap:12px}
  .vm-via-menu-lines{width:28px;gap:7px;flex-basis:28px}.vm-via-menu-lines i{width:28px;height:2.5px}
  .vm-via-menu-label{font-size:11px;letter-spacing:.26em}
  .vm-public-menu-panel{width:100vw;max-width:100vw}.vm-public-menu-head{padding:13px}.vm-public-menu-body{padding:11px}.vm-public-menu-item{min-height:64px;border-radius:14px}.vm-public-menu-head-copy strong{font-size:17px}
  .vm-legal-modal{padding:10px}.vm-legal-card{width:100%;max-height:calc(100vh - 20px);border-radius:20px}.vm-legal-head{padding:14px}.vm-legal-head-icon{width:42px;height:42px;flex-basis:42px;border-radius:13px}.vm-legal-head h2{font-size:19px}.vm-legal-list{padding:12px;gap:9px}.vm-legal-list li{grid-template-columns:31px minmax(0,1fr);gap:10px;padding:12px}.vm-legal-number{width:31px;height:31px;border-radius:10px}.vm-legal-list p{font-size:13px;line-height:1.55}.vm-legal-foot{padding:11px 12px calc(11px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){
  .vm-public-header{grid-template-columns:minmax(0,1fr) 118px;gap:7px}
  .vm-public-brand-logo{width:min(190px,100%);height:46px}
  .vm-via-menu-button{width:118px;height:50px;padding:0 10px;gap:10px}.vm-via-menu-lines{width:25px;flex-basis:25px}.vm-via-menu-lines i{width:25px}.vm-via-menu-label{font-size:10px;letter-spacing:.24em}
}

.vm-order-closed-banner{max-width:1100px;margin:8px auto 4px;padding:13px 15px;border:1px solid #fed7aa;border-radius:16px;background:#fff7ed;color:#9a3412;display:flex;align-items:flex-start;gap:11px;box-shadow:0 5px 18px rgba(154,52,18,.045)}
.vm-order-closed-banner svg{width:21px;height:21px;flex:0 0 21px;stroke:#ea580c;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.vm-order-closed-banner strong{display:block;font-size:13px;font-weight:950;color:#7c2d12}.vm-order-closed-banner span{display:block;margin-top:3px;font-size:12px;line-height:1.45;font-weight:700;color:#9a3412}
.vm-public-menu-item--closed{cursor:default;background:#fff7ed;border-color:#fed7aa}.vm-public-menu-item--closed:hover{background:#fff7ed;border-color:#fed7aa}.vm-public-menu-item--closed .vm-public-menu-icon{background:#ffedd5;color:#ea580c}
@media(max-width:640px){.vm-order-closed-banner{margin:6px 6px 4px;border-radius:14px;padding:12px}.vm-order-closed-banner strong{font-size:12px}.vm-order-closed-banner span{font-size:11px}}


/* Sipariş alımı kapalı popup */
.vm-order-closed-modal[hidden]{display:none!important}
.vm-order-closed-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px}
.vm-order-closed-backdrop{position:absolute;inset:0;background:rgba(10,24,42,.46);backdrop-filter:blur(4px)}
.vm-order-closed-card{position:relative;width:min(430px,calc(100vw - 28px));border:1px solid #dbe4ec;border-radius:22px;background:#fff;padding:24px;box-shadow:0 28px 90px rgba(15,23,42,.24);text-align:left;animation:vmOrderClosedIn .18s ease-out}
.vm-order-closed-x{position:absolute;top:14px;right:14px;width:38px;height:38px;border:1px solid #dbe4ec;border-radius:12px;background:#f8fafc;color:#516579;display:grid;place-items:center;cursor:pointer}
.vm-order-closed-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.vm-order-closed-icon{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#eef3f8;color:#14263c;margin-bottom:16px}
.vm-order-closed-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vm-order-closed-copy{padding-right:34px}
.vm-order-closed-kicker{display:block;margin-bottom:6px;color:#77899c;font-size:10px;font-weight:900;letter-spacing:.12em}
.vm-order-closed-card h2{margin:0;color:#14263c;font-size:22px;line-height:1.2;font-weight:900;letter-spacing:-.02em}
.vm-order-closed-card p{margin:10px 0 0;color:#5d7084;font-size:14px;line-height:1.55;font-weight:650}
.vm-order-closed-action{width:100%;min-height:48px;margin-top:20px;border:0;border-radius:14px;background:#14263c;color:#fff;font-size:14px;font-weight:900;cursor:pointer;box-shadow:0 7px 18px rgba(20,38,60,.14)}
.vm-order-closed-action:hover{background:#1d334d}
.vm-modal-open{overflow:hidden}
@keyframes vmOrderClosedIn{from{transform:translateY(12px) scale(.985);opacity:0}to{transform:none;opacity:1}}
@media(max-width:640px){.vm-order-closed-modal{padding:14px}.vm-order-closed-card{border-radius:20px;padding:20px}.vm-order-closed-card h2{font-size:20px}.vm-order-closed-card p{font-size:13px}.vm-order-closed-copy{padding-right:26px}}
