/* ===================================================
   Muppy Koyu Tema (theme_type = 1)
   Mermer başlık bandı, siyah zemin, turuncu vurgu.
   Tüm sınıflar t1-* ön ekiyle izole edilmiştir.
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --t1-bg: #0b0b0b;
    --t1-surface: #141414;
    --t1-surface-2: #1b1b1b;
    --t1-border: rgba(255, 255, 255, 0.10);
    --t1-border-strong: rgba(255, 255, 255, 0.20);
    --t1-text: #f7f5f2;
    --t1-muted: #a6a6a6;
    --t1-accent: #ff6818;
    --t1-accent-dark: #e2560c;
    --t1-band-ink: #201a15;
    --t1-radius: 16px;
    --t1-pad: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--t1-bg);
    color: var(--t1-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.menu-container { background: var(--t1-bg); }

.t1-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--t1-bg);
    padding-bottom: 90px;
}

/* --- Üst bant: mermer zemin, ortada logo --- */
.t1-head {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--t1-bg);
}

.t1-topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px var(--t1-pad);
    overflow: hidden;
    /* Mermer dokusu: sıcak krem zemin üzerine yumuşak damarlar */
    background:
        radial-gradient(120% 180% at 12% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 55%),
        radial-gradient(90% 160% at 88% 100%, rgba(214, 197, 176, 0.55) 0%, rgba(214, 197, 176, 0) 60%),
        repeating-linear-gradient(112deg, rgba(160, 140, 118, 0.10) 0 2px, rgba(160, 140, 118, 0) 2px 26px),
        repeating-linear-gradient(68deg, rgba(160, 140, 118, 0.07) 0 1px, rgba(160, 140, 118, 0) 1px 38px),
        linear-gradient(180deg, #f7f2ea 0%, #efe6d9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.t1-pill-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.t1-topbar-brand {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.t1-topbar-logo {
    max-height: calc(42px * var(--logo-scale, 1));
    width: auto;
    object-fit: contain;
}

.t1-topbar-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--t1-band-ink);
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.t1-topbar-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(32, 26, 21, 0.55);
    margin-top: 3px;
}

/* --- Açılır seçim kutuları: para birimi / dil --- */
.t1-dd { position: relative; }

.t1-dd-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 20px;
    border: 1px solid rgba(32, 26, 21, 0.12);
    background: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 700;
    color: var(--t1-band-ink);
    cursor: pointer;
    user-select: none;
    list-style: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.t1-dd-summary::-webkit-details-marker { display: none; }
.t1-dd-summary::marker { content: ""; }

.t1-dd-summary--static { cursor: default; }

.t1-dd[open] > .t1-dd-summary {
    background: var(--t1-accent);
    border-color: var(--t1-accent);
    color: #fff;
}

.t1-dd-caret { font-size: 9px; transition: transform 0.15s; }
.t1-dd[open] .t1-dd-caret { transform: rotate(180deg); }

.t1-dd-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 132px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--t1-surface);
    border: 1px solid var(--t1-border);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    padding: 6px;
    z-index: 120;
}

.t1-dd-menu--right { left: auto; right: 0; }

.t1-dd-item {
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1-text);
    text-decoration: none;
    white-space: nowrap;
}

.t1-dd-item:hover { background: rgba(255, 255, 255, 0.07); }

.t1-dd-item--active,
.t1-dd-item--active:hover {
    background: var(--t1-accent);
    color: #fff;
}

/* --- Arama --- */
.t1-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--t1-band-ink);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.t1-search-toggle:hover,
.t1-search-toggle[aria-expanded="true"] {
    background: var(--t1-accent);
    color: #fff;
}

.t1-searchbar { display: none; padding: 12px var(--t1-pad) 0; }
.t1-searchbar.is-open { display: block; }

.t1-searchbar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 30px;
    background: var(--t1-surface);
    border: 1px solid var(--t1-border);
}

.t1-searchbar-inner i { color: var(--t1-muted); font-size: 14px; }

.t1-searchbar input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--t1-text);
    font-size: 15px;
    font-family: inherit;
}

.t1-searchbar input::placeholder { color: var(--t1-muted); }

/* --- Kategori çipleri --- */
.t1-chips {
    display: flex;
    gap: 9px;
    padding: 14px var(--t1-pad);
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--t1-bg);
    border-bottom: 1px solid var(--t1-border);
}

.t1-chips::-webkit-scrollbar { display: none; }

.t1-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 22px;
    border: 1px solid var(--t1-border-strong);
    background: transparent;
    color: var(--t1-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.t1-chip i { font-size: 13px; opacity: 0.85; }

.t1-chip--active {
    background: var(--t1-accent);
    border-color: var(--t1-accent);
    color: #fff;
}

.t1-chip--active i { opacity: 1; }

/* --- Bölüm başlıkları --- */
.t1-section { padding: 26px var(--t1-pad) 0; }

.t1-section-head {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 16px;
}

.t1-section-titles {
    flex: 1;
    min-width: 0;
    border-left: 3px solid var(--t1-accent);
    padding-left: 12px;
}

.t1-section-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    font-weight: 600;
    color: var(--t1-text);
    line-height: 1.2;
}

.t1-section-title--sm {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.t1-section-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--t1-muted);
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.18s;
}

.t1-section-more:hover { color: var(--t1-accent); }

/* --- Ürün ızgarası --- */
.t1-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Kart: mobilde satır (görsel solda), geniş ekranda dikey kart */
.t1-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    /* Metin satırı boşluğu yutar, fiyat şeridi her kartta kartın dibine oturur;
       "auto auto" iken kısa açıklamalı kartlarda fiyat yukarıda asılı kalıyordu. */
    grid-template-rows: 1fr auto;
    column-gap: 12px;
    background: var(--t1-surface);
    border: 1px solid var(--t1-border);
    border-radius: var(--t1-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* Sütun/satır AÇIKÇA yazılır. Yalnızca grid-row verilip sütun "auto" bırakılınca
   tarayıcı fiyat şeridini görselin altına, 96px'lik dar sütuna yerleştiriyordu —
   fiyat kimi üründe metnin karşısında, kimi üründe görselin altında çıkıyordu. */
.t1-card-img,
.t1-card .menu-gorsel-yok {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 96px;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
    display: block;
}

.t1-card .menu-gorsel-yok {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t1-surface-2);
    color: var(--t1-accent);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
}

.t1-card-body { grid-column: 2; grid-row: 1; padding: 12px 12px 0 0; min-width: 0; }

.t1-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1-text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.t1-card-desc {
    font-size: 12.5px;
    color: var(--t1-muted);
    line-height: 1.45;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t1-card-foot {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px 12px 0;
}

.t1-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--t1-text);
    letter-spacing: 0.01em;
}

.t1-add-circle {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--t1-accent);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: background 0.18s, transform 0.18s;
}

/* --- Öne çıkan kart: mobilde görsel üstünde metin --- */
.t1-card--hero {
    position: relative;
    display: block;
    grid-template-columns: none;
    border-color: rgba(255, 255, 255, 0.14);
}

.t1-card--hero .t1-card-img,
.t1-card--hero .menu-gorsel-yok {
    width: 100%;
    height: 210px;
    min-height: 0;
}

.t1-card--hero .t1-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 38px;
    padding: 0 14px;
}

.t1-card--hero .t1-card-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    padding: 0 14px;
}

.t1-card--hero::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Açık renkli fotoğraflarda da beyaz metin okunsun diye geçiş erken başlar */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.62) 55%, rgba(0, 0, 0, 0.93) 100%);
    pointer-events: none;
}

.t1-card--hero .t1-card-name,
.t1-card--hero .t1-card-price { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }
.t1-card--hero .t1-card-desc { color: rgba(255, 255, 255, 0.82); }

.t1-card--hero .t1-card-body,
.t1-card--hero .t1-card-foot,
.t1-card--hero .t1-hero-badge { z-index: 2; }

.t1-card--hero .t1-card-desc { -webkit-line-clamp: 1; }

.t1-hero-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(11, 11, 11, 0.82);
    border: 1px solid var(--t1-accent);
    color: var(--t1-accent);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* --- Boş durum --- */
.t1-empty {
    padding: 60px var(--t1-pad);
    text-align: center;
    color: var(--t1-muted);
    font-size: 15px;
}

/* --- Geri dön --- */
.t1-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px var(--t1-pad) 6px;
    color: var(--t1-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s;
}

.t1-back:hover { color: var(--t1-accent); }

/* --- Kategori sayfası başlığı --- */
.t1-cat-head { padding: 8px var(--t1-pad) 18px; }

.t1-cat-head-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 27px;
    font-weight: 600;
    color: var(--t1-text);
}

.t1-cat-head-sub {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t1-accent);
}

/* --- Detay sayfası --- */
.t1-detail { padding: 6px var(--t1-pad) 0; }

.t1-detail-card {
    background: var(--t1-surface);
    border: 1px solid var(--t1-border);
    border-radius: 20px;
    overflow: hidden;
}

.t1-detail-media img,
.t1-detail-media .menu-gorsel-yok {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.t1-detail-media .menu-gorsel-yok {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t1-surface-2);
    color: var(--t1-accent);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 64px;
}

.t1-detail-info { padding: 18px 16px 20px; }

.t1-detail-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--t1-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.t1-detail-title {
    margin: 0 0 14px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--t1-text);
}

/* Kalori / hazırlanma süresi barı tek çerçeveli kutuya dönüşür */
.t1-detail-info .nutrition-bar {
    border-top: none !important;
    border: 1px solid var(--t1-border-strong) !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin: 0 0 14px !important;
}

.t1-detail-info .nutrition-cell-left,
.t1-detail-info .nutrition-cell-right,
.t1-detail-info .nutrition-cell-full {
    justify-content: center !important;
    padding: 12px 14px !important;
}

.t1-detail-info .nutrition-cell-left {
    border-right: 1px solid var(--t1-border-strong) !important;
}

/* Süre hücresinde ikon metinden sonra basılıyor; iki hücre de ikon-önce olsun */
.t1-detail-info .nutrition-cell-right { flex-direction: row-reverse; }

.t1-detail-info .nutrition-bar i,
.t1-detail-info .nutrition-bar span { color: var(--t1-accent) !important; }

.t1-detail-info .diet-tags-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px !important;
}

.t1-detail-info .diet-tag-pill {
    background: transparent !important;
    border: 1px solid var(--t1-border-strong) !important;
    border-radius: 22px !important;
    color: var(--t1-text) !important;
    padding: 8px 14px !important;
}

.t1-detail-info .diet-pill-icon { color: var(--t1-accent); }

.t1-detail-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--t1-muted);
    margin: 0 0 16px;
}

.t1-detail-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--t1-text);
    margin: 0 0 16px;
}

.t1-detail-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(229, 62, 62, 0.12);
    border: 1px solid rgba(229, 62, 62, 0.4);
    color: #ff8080;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.t1-add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--t1-accent);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
}

/* --- Varyasyonlar --- */
.t1-variation-block {
    border: 1px solid var(--t1-border);
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 16px;
}

.t1-variation-title {
    padding: 11px 14px;
    background: var(--t1-surface-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t1-muted);
}

.t1-variation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--t1-border);
}

.t1-variation-name { font-size: 14px; font-weight: 600; color: var(--t1-text); }
.t1-variation-kcal { font-size: 11px; font-weight: 700; color: var(--t1-accent); }
.t1-variation-price { font-size: 15px; font-weight: 800; color: var(--t1-text); }

/* --- Sepet düğmesi ve altbilgi koyu zemine uyumlanır --- */
#cartToggleBtn { background: var(--t1-accent) !important; }

.menu-container .menu-footer {
    background: #0b0b0b;
    border-top: 1px solid var(--t1-border);
    color: var(--t1-muted);
}

/* ===================== Duyarlı düzen ===================== */

@media (min-width: 600px) {
    .t1-wrap { max-width: 760px; }
    .t1-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* Geniş ekranda tüm kartlar dikey: görsel üstte, metin altta */
    .t1-card {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
    }
    .t1-card-img,
    .t1-card .menu-gorsel-yok {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: 0;
    }
    .t1-card-body { padding: 13px 14px 0; flex: 1; }
    .t1-card-foot { padding: 10px 14px 14px; }

    /* Öne çıkan kart geniş ekranda normal karta döner */
    .t1-card--hero { display: flex; }
    .t1-card--hero::after { display: none; }
    .t1-card--hero .t1-card-img,
    .t1-card--hero .menu-gorsel-yok { height: auto; }
    .t1-card--hero .t1-card-body,
    .t1-card--hero .t1-card-foot { position: static; padding-left: 14px; padding-right: 14px; }
    .t1-card--hero .t1-card-body { padding-top: 13px; }
    .t1-card--hero .t1-card-foot { padding-bottom: 14px; }
    .t1-card--hero .t1-card-desc { -webkit-line-clamp: 2; }
    .t1-hero-badge { display: none; }

    .t1-detail-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .t1-detail-media img,
    .t1-detail-media .menu-gorsel-yok { height: 100%; aspect-ratio: auto; min-height: 340px; }
    .t1-detail-info { padding: 24px; }
}

@media (min-width: 900px) {
    .t1-wrap { max-width: 1040px; }
    .t1-topbar { padding: 14px 28px; }
    .t1-searchbar { padding: 14px 28px 0; }
    .t1-chips { padding: 16px 28px; }
    .t1-section { padding: 30px 28px 0; }
    .t1-back { padding: 22px 28px 8px; }
    .t1-cat-head { padding: 8px 28px 22px; }
    .t1-detail { padding: 8px 28px 0; }
    .t1-grid { grid-template-columns: repeat(3, 1fr); }
    .t1-section-title { font-size: 27px; }
    .t1-cat-head-title { font-size: 31px; }
    .t1-detail-title { font-size: 38px; }
    .t1-detail-price { font-size: 38px; }
    .t1-topbar-logo { max-height: calc(50px * var(--logo-scale, 1)); }
}

@media (min-width: 1200px) {
    .t1-wrap { max-width: 1280px; }
    .t1-topbar { padding: 16px clamp(28px, 4vw, 56px); }
    .t1-searchbar { padding: 16px clamp(28px, 4vw, 56px) 0; }
    .t1-chips { padding: 18px clamp(28px, 4vw, 56px); }
    .t1-section { padding: 34px clamp(28px, 4vw, 56px) 0; }
    .t1-back { padding: 24px clamp(28px, 4vw, 56px) 8px; }
    .t1-cat-head { padding: 8px clamp(28px, 4vw, 56px) 24px; }
    .t1-detail { padding: 10px clamp(28px, 4vw, 56px) 0; }
    .t1-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .t1-detail-card { border-radius: 24px; }
    .t1-detail-info { padding: 34px 32px; }
}

/* --- Fare kullanan cihazlar --- */
@media (hover: hover) {
    .t1-card:hover {
        border-color: rgba(255, 104, 24, 0.55);
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    }
    .t1-chip:hover { border-color: var(--t1-accent); color: var(--t1-accent); }
    .t1-chip--active:hover { color: #fff; }
    .t1-add-circle:hover { background: var(--t1-accent-dark); transform: scale(1.06); }
    .t1-add-btn:hover { background: var(--t1-accent-dark); }
}

/* --- Diyet etiketi SVG ikonu --- */
.diet-tag-svg { vertical-align: -0.15em; flex-shrink: 0; }
.t1-card .diet-tags { display: inline-flex; gap: 6px; color: var(--t1-muted); font-size: 12px; }
