/* ==========================================================================
   NOSTALJİ — 70'ler retro kafe (dm-tema F14)
   Hardal-turuncu-kahve gökkuşağı kemeri, ofset gölgeli başlık, tüplü TV
   çerçeveli fotoğraflar, üç renk şerit bölüm başları (Shrikhand + Comfortaa).
   Şerit renkleri sabit (dönemin paleti); vurgu (--ns-acc) fiyat ve düğmelerde.
   Açık varsayılan; "Koyu" seçilirse kahve kahverengi gece.
   ========================================================================== */
:root {
    --ns-bg: #FFF4E2;
    --ns-card: #FFFFFF;
    --ns-ink: #3B2415;
    --ns-muted: #7A5C45;
    --ns-line: #F0DCC0;
    --ns-c1: #E8A317;
    --ns-c2: #D9581E;
    --ns-c3: #7A3E1D;
    --ns-acc: var(--theme-color-1, #C2501A);
    --ns-acc-soft: var(--theme-color-0_12, rgba(194, 80, 26, .12));
    --ns-acc-35: var(--theme-color-0_35, rgba(194, 80, 26, .35));
    --ns-on-acc: var(--theme-on-accent, #fff);
    --ns-shadow: rgba(59, 36, 21, .12);
    --ns-display: 'Shrikhand', 'Georgia', serif;
    --ns-text: 'Comfortaa', 'Segoe UI', sans-serif;
}
body[data-theme-mode="dark"] {
    --ns-bg: #2A1A10;
    --ns-card: #3A2516;
    --ns-ink: #F8E9D2;
    --ns-muted: #CDB597;
    --ns-line: rgba(248, 233, 210, .14);
    --ns-acc: var(--theme-accent-dark-1, #F08A4B);
    --ns-acc-soft: var(--theme-accent-dark-0_12, rgba(240, 138, 75, .12));
    --ns-acc-35: var(--theme-accent-dark-0_35, rgba(240, 138, 75, .35));
    --ns-on-acc: var(--theme-on-accent-dark, #111);
    --ns-shadow: rgba(0, 0, 0, .35);
}

body {
    margin: 0; color: var(--ns-ink);
    font-family: var(--ns-text);
    -webkit-font-smoothing: antialiased;
    background: var(--ns-bg);
}
body.noscroll { overflow: hidden; }

.overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(42, 26, 16, .55);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.active { opacity: 1; pointer-events: auto; }

/* --- Başlık: gökkuşağı kemeri --- */
.ns-head { position: relative; text-align: center; padding: 26px 18px 8px; overflow: hidden; }
.ns-rainbow {
    position: relative; z-index: 0; display: block;
    width: 250px; height: 125px; margin: 0 auto -64px;
    background: radial-gradient(circle at 50% 100%,
        transparent 0 58px,
        var(--ns-c3) 58px 80px,
        var(--ns-c2) 80px 102px,
        var(--ns-c1) 102px 124px,
        transparent 124.5px);
}
.ns-logo {
    position: relative; z-index: 1;
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto;
    background: var(--ns-card);
    box-shadow: 0 0 0 5px var(--ns-bg), 0 10px 22px var(--ns-shadow);
}
.ns-name {
    position: relative; z-index: 1;
    margin: 18px 0 0;
    font-family: var(--ns-display); font-weight: 400;
    font-size: clamp(32px, 10vw, 50px); line-height: 1.08;
    color: var(--ns-ink);
    text-shadow: 3px 3px 0 var(--ns-c1), 6px 6px 0 var(--ns-c2);
    text-wrap: balance;
}
.ns-sub { margin: 12px 0 0; font-size: 13.5px; font-weight: 700; color: var(--ns-muted); }
.ns-actions {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    flex-wrap: wrap; margin-top: 16px;
}
.ns-pill {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: var(--ns-card); color: var(--ns-ink);
    border: 2px solid var(--ns-ink); border-radius: 999px;
    padding: 8px 15px; font-family: var(--ns-text); font-size: 12.5px; font-weight: 700; line-height: 1;
}
.ns-pill i { color: var(--ns-acc); font-size: 14px; }
.ns-pill:focus-visible, .ns-chip:focus-visible, .ns-add:focus-visible, .ns-servis:focus-visible, .ns-cartbar-btn:focus-visible {
    outline: 3px solid var(--ns-c1); outline-offset: 2px;
}

/* dil menüsü */
.ns-lang { position: relative; }
.ns-lang-menu {
    display: none; position: absolute; inset-inline-end: 0; inset-inline-start: auto; text-align: start;
    top: calc(100% + 8px); z-index: 960;
    min-width: 150px; max-width: calc(100vw - 24px); padding: 6px;
    background: var(--ns-card); border: 2px solid var(--ns-ink); border-radius: 18px;
    box-shadow: 5px 5px 0 var(--ns-c1);
}
.ns-lang-menu.show { display: block; }
.ns-lang-menu .dropdown-item {
    display: block; padding: 9px 12px; border-radius: 12px; background: transparent;
    color: var(--ns-ink); font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.ns-lang-menu .dropdown-item:hover, .ns-lang-menu .dropdown-item:focus { background: var(--ns-acc-soft); color: var(--ns-ink); }

/* --- Arama --- */
.ns-search-row { padding: 12px 16px 0; max-width: 1000px; margin: 0 auto; box-sizing: border-box; }
.ns-search-row[hidden] { display: none !important; }
.ns-search-row input {
    width: 100%; box-sizing: border-box; outline: none;
    background: var(--ns-card); color: var(--ns-ink);
    border: 2px solid var(--ns-ink); border-radius: 999px;
    padding: 12px 18px; font-family: var(--ns-text); font-size: 15px; font-weight: 600;
}
.ns-search-row input::placeholder { color: var(--ns-muted); opacity: 1; }

/* --- Çipler --- */
.ns-chips {
    position: sticky; top: 0; z-index: 500;
    display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 14px 16px 12px;
    background: var(--ns-bg);
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(180deg, var(--ns-c1) 0 33%, var(--ns-c2) 33% 66%, var(--ns-c3) 66% 100%) 1;
}
.ns-chips::-webkit-scrollbar { display: none; }
.ns-chip {
    flex: 0 0 auto; cursor: pointer; white-space: nowrap;
    background: var(--ns-card); color: var(--ns-ink);
    border: 2px solid var(--ns-ink); border-radius: 999px;
    padding: 8px 15px; font-family: var(--ns-text); font-size: 13px; font-weight: 700; line-height: 1.1;
    transition: background .15s, color .15s, box-shadow .15s;
}
.ns-chip.active { background: var(--ns-acc); color: var(--ns-on-acc); box-shadow: 3px 3px 0 var(--ns-ink); }

/* --- Gövde --- */
.ns-body { max-width: 1000px; margin: 0 auto; padding: 0 16px 150px; box-sizing: border-box; }
.ns-cat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.ns-cat-title {
    margin: 0; min-width: 0;
    font-family: var(--ns-display); font-weight: 400;
    font-size: 27px; line-height: 1.1; color: var(--ns-ink);
}
.ns-stripes {
    flex: 1 1 60px; min-width: 60px; height: 15px; border-radius: 999px;
    background: linear-gradient(180deg, var(--ns-c1) 0 33.3%, var(--ns-c2) 33.3% 66.6%, var(--ns-c3) 66.6% 100%);
}
.ns-cat-count {
    flex: 0 0 100%;
    font-size: 12.5px; font-weight: 700; color: var(--ns-muted);
}
.ns-subhead {
    margin: 18px 2px 10px;
    font-family: var(--ns-display); font-weight: 400;
    font-size: 18px; color: var(--ns-c2);
}
body[data-theme-mode="dark"] .ns-subhead { color: var(--ns-c1); }
.ns-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* --- Ürün: tüplü TV --- */
.ns-item {
    display: flex; gap: 14px; align-items: stretch;
    background: var(--ns-card);
    border: 2px solid var(--ns-line); border-radius: 26px;
    padding: 12px;
    box-shadow: 0 10px 22px var(--ns-shadow);
}
.ns-tv {
    position: relative; flex: 0 0 104px; align-self: center; cursor: pointer;
    padding: 7px 7px 13px; box-sizing: border-box;
    background: var(--ns-c3);
    border-radius: 22px / 26px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.ns-tv::after { /* düğmeler */
    content: ''; position: absolute; left: 50%; bottom: 4px; width: 26px; height: 5px; margin-left: -13px;
    background: radial-gradient(circle, var(--ns-c1) 2px, transparent 2.5px) 0 0 / 9px 5px repeat-x;
}
.ns-tv img, .ns-item-noimg {
    width: 90px; height: 78px; object-fit: cover; display: block;
    border-radius: 16px / 20px; background: var(--ns-acc-soft);
}
.ns-item-noimg { display: flex; align-items: center; justify-content: center; color: var(--ns-c1); font-size: 26px; }
.ns-item-type {
    position: absolute; top: 10px; inset-inline-start: 10px;
    width: 16px; height: 16px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; font-size: 6px;
}
.ns-item-type.veg { color: #2F9E44; }
.ns-item-type.nonveg { color: #D9480F; }
.ns-item-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ns-item-name { margin: 2px 0 0; cursor: pointer; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ns-ink); }
.ns-item-desc {
    margin: 4px 0 0; cursor: pointer;
    font-size: 12.5px; font-weight: 500; line-height: 1.55; color: var(--ns-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ns-item-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.ns-kcal {
    background: var(--ns-c1); color: #3B2415;
    border-radius: 999px; padding: 3px 9px; font-size: 10.5px; font-weight: 700;
}
.ns-body .ns-algs { display: inline-flex; gap: 4px; }
.ns-body .ns-algs i {
    width: 21px; height: 21px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--ns-line); background: var(--ns-bg);
    font-style: normal; font-size: 9px; font-weight: 700; color: var(--ns-muted);
}
.ns-item-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: auto; padding-top: 10px;
}
.ns-item-price {
    font-family: var(--ns-display); font-weight: 400;
    font-size: 19px; line-height: 1; color: var(--ns-acc); font-variant-numeric: tabular-nums;
}
.ns-add {
    display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
    background: var(--ns-acc); color: var(--ns-on-acc);
    border: 2px solid var(--ns-ink); border-radius: 999px; padding: 7px 14px;
    font-family: var(--ns-text); font-size: 12.5px; font-weight: 700; line-height: 1;
    box-shadow: 3px 3px 0 var(--ns-ink);
    transition: transform .1s, box-shadow .1s;
}
.ns-add:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ns-ink); }
body[data-theme-mode="dark"] .ns-add, body[data-theme-mode="dark"] .ns-chip.active { border-color: #1A0F08; box-shadow: 3px 3px 0 #1A0F08; }

.ns-no-result[hidden] { display: none !important; }
.ns-no-result { text-align: center; padding: 28px 0; font-size: 14px; font-weight: 700; color: var(--ns-muted); }
.ns-brand { text-align: center; padding: 28px 0 0; font-size: 11.5px; font-weight: 700; color: var(--ns-muted); }
.ns-body .dm-empty-cat { color: var(--ns-muted); }

#menuDetail .ns-algs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
#menuDetail .ns-algs i {
    font-style: normal; font-size: 12px; font-weight: 700; color: #333;
    background: #F1F1F3; border-radius: 999px; padding: 3px 9px;
}

/* --- Sepet çubuğu --- */
.ns-cartbar {
    position: fixed; left: 14px; right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom)); z-index: 900;
}
.ns-cartbar.none { display: none; }
.ns-cartbar-btn {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: 56px; cursor: pointer;
    background: var(--ns-acc); color: var(--ns-on-acc);
    border: 2px solid var(--ns-ink); border-radius: 22px; padding: 6px 18px 0;
    font-family: var(--ns-text); font-size: 14px; font-weight: 700;
    box-shadow: 4px 4px 0 var(--ns-ink);
}
.ns-cartbar-btn::before { /* üç renk şerit */
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px;
    background: linear-gradient(180deg, var(--ns-c1) 0 33.3%, var(--ns-c2) 33.3% 66.6%, var(--ns-c3) 66.6% 100%);
}
.ns-cartbar-count { opacity: .9; font-size: 12.5px; }
.ns-cartbar-price { font-variant-numeric: tabular-nums; }

/* --- Servis --- */
.ns-servis {
    position: fixed; inset-inline-end: 14px; bottom: 88px; z-index: 890; cursor: pointer;
    background: var(--ns-card); color: var(--ns-ink);
    border: 2px solid var(--ns-ink); border-radius: 999px;
    padding: 10px 17px; font-family: var(--ns-text); font-size: 13px; font-weight: 700; line-height: 1;
    box-shadow: 3px 3px 0 var(--ns-c1);
}
.ns-servis i { color: var(--ns-acc); }

.dm-preview-bar { bottom: 144px !important; }

@media (min-width: 760px) {
    .ns-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .ns-chips { flex-wrap: wrap; overflow-x: visible; justify-content: center; }
    .ns-cartbar { left: 50%; right: auto; width: min(640px, calc(100vw - 28px)); transform: translateX(-50%); }
    .ns-servis { inset-inline-end: 24px; }
}
@media (max-width: 350px) {
    .ns-tv { flex-basis: 88px; }
    .ns-tv img, .ns-item-noimg { width: 74px; height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
    .ns-chip, .ns-add { transition: none; }
}
