/* ==========================================================================
   VİTRİN — DM Menü amiral teması (dm-tema F3)
   Lobi: koyu grafit + kapak görseli + cam kapı kartları (Aurora esinli, özgün).
   Menü: açık zemin, marka renkli üst bar, chip nav, kategori kapak bandı,
   kcal + alerjen rozetli yatay ürün kartları.
   Marka rengi --theme-color-* merdiveninden (layout inline üretir).
   Sipariş paneli stilleri shared/css/order.css'ten gelir.
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #F6F5F2;
    color: #17181c;
    -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
img { max-width: 100%; }

/* --- Overlay (motor kullanır) --- */
.overlay {
    position: fixed; inset: 0;
    background: rgba(10, 10, 12, .55);
    opacity: 0; pointer-events: none;
    transition: opacity .25s; z-index: 1000;
}
.overlay.active { opacity: 1; pointer-events: auto; }
body.noscroll { overflow: hidden; }

/* ============ LOBİ ============ */
/* .vt-lobby'nin display:flex kuralı UA'nın [hidden]{display:none}'ını ezer —
   ekran geçişi hidden özniteliğiyle yapıldığından burada geri kazanılır */
.vt-lobby[hidden], .vt-menu[hidden] { display: none !important; }
.vt-lobby {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #101014 var(--vt-cover, none) center/cover no-repeat;
    color: #F2F1EC;
}
.vt-lobby-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(16,16,20,.55) 0%, rgba(16,16,20,.82) 55%, #101014 100%),
        radial-gradient(circle at 75% 12%, var(--theme-color-0_35, rgba(225,29,72,.35)), transparent 55%);
}
.vt-lobby-inner {
    position: relative;
    display: flex; flex-direction: column;
    flex: 1 1 auto;
    width: 100%; max-width: 520px;
    margin: 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 18px max(14px, env(safe-area-inset-bottom));
}
.vt-logo {
    width: 76px; height: 76px;
    border-radius: 50%;
    object-fit: cover;
    margin: 6px auto 10px;
    border: 2px solid rgba(255,255,255,.35);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.vt-name {
    margin: 0; text-align: center;
    font-size: 26px; font-weight: 800; letter-spacing: -.01em;
}
.vt-sub {
    margin: 4px 0 0; text-align: center;
    font-size: 12.5px; color: rgba(242,241,236,.72);
}
.vt-doors {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-top: 26px;
}
.vt-door {
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px 8px 13px;
    color: #F2F1EC;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s, transform .12s;
}
.vt-door:active { transform: scale(.97); background: rgba(255,255,255,.13); }
.vt-door i { display: block; font-style: normal; font-size: 26px; margin-bottom: 7px; }
.vt-door b {
    display: block; font-size: 11.5px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vt-menu-all {
    margin: 14px auto 0;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--theme-color-1, #E11D48);
    color: var(--theme-on-accent, #fff); border: 0; border-radius: 999px;
    padding: 13px 26px; font-size: 14.5px; font-weight: 800; cursor: pointer;
    box-shadow: 0 12px 30px var(--theme-color-0_35, rgba(225,29,72,.35));
}
.vt-lobby-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 22px; }
.vt-servis {
    align-self: flex-end;
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 999px; padding: 11px 18px;
    color: #F2F1EC; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.vt-search-fake {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 999px; padding: 13px 18px;
    color: rgba(242,241,236,.75); font-size: 13px; cursor: pointer;
}
.vt-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2px 8px 0;
    font-size: 11.5px; font-weight: 700; color: rgba(242,241,236,.7);
}
.vt-nav button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px; }
.vt-nav-menu { letter-spacing: .22em; text-transform: uppercase; font-size: 11px; }
.vt-lang { position: relative; }
.vt-lang-btn {
    background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
    color: inherit; font: inherit; font-weight: 800; padding: 5px 10px; cursor: pointer;
}
.vt-lang-menu {
    top: auto; /* bootstrap top:100% ezilir — menü yukarı açılır */
    position: absolute; right: 0; bottom: calc(100% + 8px);
    display: none; min-width: 140px;
    background: #1b1b21; border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px; padding: 6px; z-index: 1200;
}
.vt-lang-menu.show { display: block; }
.vt-lang-menu .dropdown-item {
    display: block; padding: 9px 12px; border-radius: 8px;
    color: #F2F1EC; font-size: 13px; text-decoration: none;
}
.vt-lang-menu .dropdown-item:active { background: rgba(255,255,255,.10); }

/* ============ MENÜ EKRANI ============ */
.vt-menu { min-height: 100vh; min-height: 100dvh; padding-bottom: 110px; }
.vt-menu-head {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 10px;
    background: var(--theme-color-1, #E11D48);
    color: var(--theme-on-accent, #fff);
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
}
.vt-back, .vt-head-search {
    width: 38px; height: 38px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.16); border: 0; border-radius: 11px;
    color: #fff; font-size: 17px; cursor: pointer;
}
.vt-menu-title { flex: 1 1 auto; min-width: 0; line-height: 1.15; }
.vt-menu-title b { display: block; font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-menu-title span { font-size: 11px; opacity: .8; }
.vt-search-row { padding: 10px 14px 0; }
.vt-search-row input {
    width: 100%; height: 44px;
    border: 1px solid #E5E2DB; border-radius: 12px;
    padding: 0 14px; font-size: 14px; background: #fff;
    -webkit-appearance: none; appearance: none;
}
.vt-search-row input:focus { outline: none; border-color: var(--theme-color-1, #E11D48); }
.vt-chips {
    display: flex; gap: 8px;
    padding: 12px 14px 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* F13: sürekli kaydırmada şerit başlığın altında yapışkan kalır */
    position: sticky; top: var(--vt-head-h, 58px); z-index: 49;
    background: #F6F5F2;
}
.vt-chips::-webkit-scrollbar { display: none; }
.vt-chip {
    flex: 0 0 auto;
    background: #fff; border: 1px solid #E5E2DB; border-radius: 999px;
    padding: 9px 15px; font-size: 12.5px; font-weight: 700; color: #6a675f;
    cursor: pointer; white-space: nowrap;
}
.vt-chip.active {
    background: var(--theme-color-1, #E11D48);
    border-color: var(--theme-color-1, #E11D48);
    color: var(--theme-on-accent, #fff);
}
.vt-body { padding: 4px 14px 0; }
.vt-cat-hero {
    position: relative; overflow: hidden;
    height: 116px; border-radius: 16px;
    margin: 10px 0 4px;
    background: linear-gradient(135deg, var(--theme-color-0_85, #C2255C), var(--theme-color-0_45, #F08C88)) center/cover no-repeat;
    background-image: linear-gradient(180deg, rgba(10,10,12,.10), rgba(10,10,12,.62)), var(--vt-cat-img, none);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 12px 15px; color: #fff;
}
.vt-cat-hero b { font-size: 20px; font-weight: 800; }
.vt-cat-hero span { font-size: 11.5px; opacity: .85; }
.vt-subhead {
    margin: 16px 2px 2px;
    font-size: 12px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: #8a867c;
}

/* --- Ürün kartı --- */
.vt-item {
    display: flex; gap: 12px; align-items: flex-start;
    background: #fff; border: 1px solid #ECE9E2; border-radius: 16px;
    padding: 11px; margin-top: 10px;
    box-shadow: 0 3px 10px rgba(20, 18, 14, .05);
}
.vt-item-media {
    position: relative; flex: 0 0 76px;
    width: 76px; height: 76px;
    border-radius: 13px; overflow: hidden; background: #f3f1ec;
}
.vt-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-item-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #c9c3b2; font-size: 26px;
}
.vt-item-type {
    position: absolute; left: 5px; top: 5px;
    width: 16px; height: 16px; border-radius: 5px;
    background: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 7px;
}
.vt-item-type.veg { color: #2F9E44; }
.vt-item-type.nonveg { color: #C92A2A; }
.vt-item-body { flex: 1 1 auto; min-width: 0; }
.vt-item-body h4 { margin: 1px 0 2px; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.vt-item-desc {
    margin: 0; font-size: 12px; color: #8a867c; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vt-item-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; min-height: 18px; }
.vt-kcal {
    font-size: 10px; font-weight: 800; color: #1F7A4D;
    background: rgba(31, 122, 77, .10); border-radius: 999px; padding: 3px 8px;
}
.vt-algs { display: inline-flex; gap: 4px; }
.vt-algs i {
    width: 18px; height: 18px; border-radius: 50%;
    background: #F1EEE7; display: inline-flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 9.5px; cursor: help;
}
.vt-item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.vt-item-price { font-size: 14.5px; font-weight: 800; color: var(--theme-color-1, #E11D48); }
.vt-add {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--theme-color-0_08, rgba(225,29,72,.08));
    border: 1px solid var(--theme-color-0_25, rgba(225,29,72,.25));
    color: var(--theme-color-1, #E11D48);
    border-radius: 999px; padding: 7px 13px;
    font-size: 12px; font-weight: 800; cursor: pointer;
    transition: background-color .15s, color .15s;
}
.vt-add:active { background: var(--theme-color-1, #E11D48); color: var(--theme-on-accent, #fff); }
.vt-no-result { text-align: center; color: #8a867c; font-size: 13.5px; padding: 26px 0; }
.vt-brand { text-align: center; color: #b5b0a4; font-size: 11px; padding: 18px 0 0; }

/* --- Sepet çubuğu --- */
.vt-cartbar {
    position: fixed; left: 12px; right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 900;
}
.vt-cartbar.none { display: none; }
.vt-cartbar-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: 52px;
    background: var(--theme-color-1, #E11D48); color: var(--theme-on-accent, #fff);
    border: 0; border-radius: 15px; padding: 0 18px;
    font-size: 14px; font-weight: 800; cursor: pointer;
    box-shadow: 0 12px 30px var(--theme-color-0_35, rgba(225,29,72,.35));
}
.vt-cartbar-count { opacity: .9; font-size: 12.5px; }
.vt-cartbar-price { font-variant-numeric: tabular-nums; }

/* --- Yüzen servis (menü ekranı) --- */
.vt-servis-float {
    position: fixed; right: 14px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 66px);
    z-index: 890;
    background: #17181c; color: #fff;
    border: 0; border-radius: 999px; padding: 12px 17px;
    font-size: 12.5px; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 26px rgba(10, 10, 12, .35);
    display: none;
}
.vt-menu-open .vt-servis-float { display: inline-flex; }

/* --- Bilgi paneli --- */
.vt-info .vt-info-desc { font-size: 13.5px; color: #5a564c; line-height: 1.6; margin: 0 0 12px; }
.vt-info-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 9px; }
.vt-info-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.vt-info-list i { color: var(--theme-color-1, #E11D48); margin-top: 2px; }
.vt-info-list a { color: inherit; }
#vt-info.sidenav.bottom {
    width: 100%; left: 0; bottom: -110vh; position: fixed;
    max-height: 84vh; overflow: auto; z-index: 1001;
    background: #fff; border-radius: 18px 18px 0 0; transition: bottom .3s ease;
}
#vt-info.sidenav.bottom.active { bottom: 0 !important; }
#vt-info .sidebar-header { display: flex; align-items: center; min-height: 56px; padding: 0 20px; border-bottom: 1px solid #ececf1; }
#vt-info .sidebar-header .btn { margin-left: auto; background: none; border: 0; font-size: 18px; cursor: pointer; }
#vt-info .sidebar-wrapper { padding: 14px 18px 20px; }

/* call-waiter-box da aynı taban mekaniği */
#call-waiter-box.sidenav.bottom {
    width: 100%; left: 0; bottom: -110vh; position: fixed;
    max-height: 70vh; overflow: auto; z-index: 1001;
    background: #fff; border-radius: 18px 18px 0 0; transition: bottom .3s ease;
}
#call-waiter-box.sidenav.bottom.active { bottom: 0 !important; }
#call-waiter-box .sidebar-header { display: flex; align-items: center; min-height: 56px; padding: 0 20px; border-bottom: 1px solid #ececf1; }
#call-waiter-box .sidebar-header .btn { margin-left: auto; background: none; border: 0; font-size: 18px; cursor: pointer; }
#call-waiter-box .sidebar-wrapper { padding: 8px 18px; }
#call-waiter-box .form-control {
    width: 100%; min-height: 44px; border: 1px solid #e1e3ea; border-radius: 11px;
    padding: 10px 14px; font-size: 14.5px; -webkit-appearance: none; appearance: none;
}
#call-waiter-box .footer.footer-extras { padding: 10px 18px max(12px, env(safe-area-inset-bottom)); }
#call-waiter-box .btn-primary {
    width: 100%; min-height: 48px; border: 0; border-radius: 12px;
    background: var(--theme-color-1, #E11D48); color: var(--theme-on-accent, #fff);
    font-size: 15px; font-weight: 800; cursor: pointer;
}
#call-waiter-box .form-error { display: none; color: #C92A2A; font-size: 12.5px; padding-bottom: 6px; }

/* --- Kampanya popup --- */
/* display:flex UA'nın [hidden]{display:none}'ını ezer — kapatma hidden ile yapılır */
.vt-campaign[hidden] { display: none !important; }
.vt-campaign {
    position: fixed; inset: 0; z-index: 1300;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 10, 12, .6); padding: 22px;
}
.vt-campaign-card {
    position: relative; width: 100%; max-width: 380px;
    background: linear-gradient(160deg, var(--theme-color-1, #E11D48), var(--theme-color-0_65, #9d1436));
    color: var(--theme-on-accent, #fff); border-radius: 20px; padding: 26px 22px 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.vt-campaign-close {
    position: absolute; right: 12px; top: 12px;
    width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.18); color: #fff; font-size: 15px; cursor: pointer;
}
.vt-campaign-tag {
    display: inline-block; font-size: 10.5px; font-weight: 800;
    letter-spacing: .18em; text-transform: uppercase;
    background: rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px;
}
.vt-campaign-card h3 { margin: 12px 0 6px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.vt-campaign-card p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.9); }
.vt-campaign-ok {
    width: 100%; min-height: 46px; border: 0; border-radius: 12px;
    background: #fff; color: #17181c; font-size: 14px; font-weight: 800; cursor: pointer;
}

/* --- Önizleme barıyla çakışma --- */
.dm-preview-bar { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 62px) !important; }

@media (min-width: 640px) {
    .vt-menu-head, .vt-search-row, .vt-chips, .vt-body { max-width: 640px; margin-left: auto; margin-right: auto; }
    .vt-cartbar { left: 50%; right: auto; width: min(616px, calc(100vw - 24px)); transform: translateX(-50%); }
    /* masaüstünde kategori çipleri kaydırma yerine alt satıra sarar */
    .vt-chips { flex-wrap: wrap; overflow-x: visible; }
}
