:root {
    --bg: #F3EEE3;
    --ink: #22201B;
    --ink-soft: #8A7F6E;
    --line: #D9CDB8;
    --accent: #6B2737;
    --accent-dark: #4E1C28;
    --gold: #9C7A3D;
    --surface-dark: #1E1B16;
    /* ---- iOS-vari derinlik/dokunma katmani - renk paleti AYNI,
           sadece fiziksellik ekleniyor: yumusak golge, surekli
           (continuous) kose yuvarlakligi, tutarli gecis egrisi. ---- */
    --surface: #FBF8F2;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-xs: 0 1px 2px rgba(34, 32, 27, 0.07);
    --shadow-sm: 0 2px 6px rgba(34, 32, 27, 0.08), 0 1px 2px rgba(34, 32, 27, 0.05);
    --shadow-md: 0 8px 20px rgba(34, 32, 27, 0.12), 0 2px 5px rgba(34, 32, 27, 0.06);
    --shadow-lg: 0 20px 48px rgba(34, 32, 27, 0.18), 0 6px 14px rgba(34, 32, 27, 0.08);
    --shadow-accent: 0 10px 24px rgba(107, 39, 55, 0.28);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-size: 17px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .serif {
    font-family: 'Fraunces', serif;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: 'Work Sans', sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 140ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease), opacity 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

    button:disabled {
        opacity: 0.5;
        cursor: default;
    }

    /* Dokunma geri bildirimi - her tiklanabilir butonda tek, tutarli bir
       "bastirma" hissi. Bu TEK kural, sayfadaki her butona native-app
       hissi veren en onemli degisiklik. */
    button:active:not(:disabled) {
        transform: scale(0.95);
    }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---- shell ---- */

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px clamp(24px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
}

.topbar-title {
    font-size: 22px;
    font-style: italic;
}

.topbar-sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 2px;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--ink-soft);
    background: none;
    border: none;
}

/* ---- category row ---- */

.category-row {
    flex-shrink: 0;
    display: flex;
    gap: 36px;
    justify-content: center;
    padding: 22px clamp(24px, 4vw, 48px) 20px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.category-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: 'Fraunces', serif;
    font-size: 22px;
    background: var(--tone);
    opacity: 0.55;
    overflow: hidden;
    position: relative;
    transition: opacity 200ms var(--ease), transform 220ms var(--ease-spring), box-shadow 220ms var(--ease);
}

    .category-circle.selected {
        opacity: 1;
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 0 0 3px var(--bg), 0 10px 20px -4px color-mix(in srgb, var(--tone) 65%, transparent), var(--shadow-sm);
    }

.category-btn:active .category-circle {
    transform: scale(0.93);
}

.category-label {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--ink-soft);
    transition: color 200ms var(--ease);
}

    .category-label.selected {
        color: var(--ink);
        font-weight: 600;
    }

/* ---- menu ---- */

.menu-layout {
    flex: 1;
    display: flex;
    min-height: 0;
}

.menu-scroll {
    flex: 1;
    padding: 8px clamp(24px, 4vw, 48px) 32px;
    overflow-y: auto;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.product-row {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 17px 10px;
    margin: 0 -10px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: background-color 180ms var(--ease);
}

    .product-row:active {
        background: rgba(34, 32, 27, 0.04);
    }

.product-tone-box {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--tone);
    box-shadow: var(--shadow-sm);
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-row-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-name {
    font-size: 19px;
    white-space: nowrap;
}

.dot-leader {
    flex: 1;
    border-bottom: 1px dotted var(--line);
    transform: translateY(-5px);
}

.product-price {
    font-size: 15px;
    white-space: nowrap;
}

.product-row-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 12px;
}

.product-desc {
    font-size: 13px;
    color: var(--ink-soft);
}

/* "Ekle" - artik ince alt-cizgili bir metin degil, kucuk, dolgulu,
   yuvarlak bir "hizli ekle" dugmesi - parmakla dokunulacagi aciktir. */
.add-link {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    background: color-mix(in srgb, var(--accent) 7%, var(--surface));
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

    .add-link:active {
        background: var(--accent);
        color: #FFFFFF;
    }

.empty-hint {
    color: var(--ink-soft);
    font-size: 15px;
    padding: 40px 0;
    text-align: center;
}

/* ---- cart panel ---- */

.cart-panel {
    width: 360px;
    flex-shrink: 0;
    border-left: 1px solid var(--line);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--surface);
}

.cart-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.cart-title {
    font-size: 20px;
    font-style: italic;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    padding: 36px 0;
    text-align: center;
    font-size: 14px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    animation: cart-item-in 220ms var(--ease-spring);
}

@keyframes cart-item-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-name {
    font-size: 16px;
}

.cart-item-size {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 2px;
}

.cart-item-spec {
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-top: 2px;
    line-height: 1.4;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Stepper dugmeleri: duz, 1px cizgili kareden -> dolgulu, yuvarlak,
   hafif golgeli "native stepper" hissine. */
.stepper-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line);
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-qty {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-weight: 600;
}

.cart-line-total {
    font-size: 14px;
    width: 66px;
    text-align: right;
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 20px 0 16px;
}

.cart-total-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.cart-total-value {
    font-size: 26px;
}

/* Ana eylem butonu - artik bos cerceve degil, dolgulu, yuvarlatilmis,
   golgeli bir "primary CTA" - uygulamanin en onemli dugmesi gibi gorunur. */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    color: #FFFFFF;
    background: var(--accent);
    padding: 17px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-accent);
}

    .submit-btn:active:not(:disabled) {
        background: var(--accent-dark);
    }

.divider {
    height: 1px;
    background: var(--line);
    margin: 22px 0;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 15px 4px;
    font-size: 14px;
    color: var(--ink);
    text-align: left;
    border-radius: var(--radius-sm);
}

    .service-row:active {
        background: rgba(34, 32, 27, 0.04);
    }

/* Garson/hesap cagrisi onay mesaji - simdi bir "toast" gibi kendi
   karti var, hafif golgeyle yukseltilmis ve iceri sudgu bir giris
   animasyonuyla beliriyor (tek, orkestrali bir hareket). */
.banner-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 14px;
    margin-top: 14px;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    animation: toast-in 260ms var(--ease-spring);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.last-orders-title {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin: 20px 0 8px;
}

.last-order-row {
    font-size: 13px;
    color: var(--ink-soft);
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

/* ---- states ---- */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 140px 24px;
    color: var(--ink-soft);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 18px;
    text-align: center;
}

.retry-btn {
    border: none;
    color: #FFFFFF;
    background: var(--ink);
    padding: 14px 36px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: none;
    font-family: 'Work Sans', sans-serif;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
}

/* ---- staff screen ---- */

.request-list {
    padding: 8px clamp(24px, 4vw, 48px) 40px;
}

.request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 12px;
    margin: 6px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    gap: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.request-kind {
    font-size: 18px;
}

.request-sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 3px;
}

.complete-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    color: #FFFFFF;
    background: var(--accent);
    padding: 12px 22px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: none;
    font-weight: 600;
    flex-shrink: 0;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

/* ---- welcome screen ---- */

.welcome-shell {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 64px clamp(32px, 8vw, 110px);
    animation: welcome-in 420ms var(--ease);
}

@keyframes welcome-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.welcome-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.welcome-topbar-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.welcome-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 56px;
}

.welcome-brand-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.restaurant-name {
    font-size: 34px;
    font-style: italic;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 0.5px;
}

.table-label-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.table-label-caption {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.table-number {
    font-size: 120px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    font-family: 'Fraunces', serif;
}

.table-divider {
    width: 56px;
    height: 1px;
    background: var(--gold);
    margin: 12px 0 10px;
}

.table-area-name {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 56px;
}

/* Basla butonu - sayfanin en onemli, tek vurgusu. Bos cerceveden
   dolgulu+golgeli, hafifce "yukselmis" bir primary CTA'ya donustu. */
.start-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: none;
    color: #FFFFFF;
    background: var(--accent);
    padding: 30px 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-accent);
}

    .start-btn:active {
        background: var(--accent-dark);
    }

    .start-btn svg {
        color: #FFFFFF;
        stroke: #FFFFFF;
    }

.start-btn-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.help-link-lg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    background: none;
    border: none;
}

.welcome-footer {
    flex-shrink: 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--line);
    text-transform: uppercase;
}

/* ---- customize screen (ozellestirme - tam ekran, modal degil) ----
       Bu ekran bir iOS "modal push" gibi hissetmeli: sagdan/alttan
       degil, hafif yukseliş + solma ile beliriyor - tek, orkestrali
       bir giris hareketi (skill'in onerdigi "tek sahne" prensibi). */

.customize-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: customize-in 280ms var(--ease-spring);
}

@keyframes customize-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.customize-topbar {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 clamp(24px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
}

.customize-back {
    font-size: 13px;
    color: var(--ink-soft);
    background: none;
    border: none;
}

.customize-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.customize-hero {
    height: 190px;
    background: var(--tone);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customize-hero-icon {
    opacity: 0.32;
}

.customize-header {
    padding: 24px clamp(24px, 4vw, 48px) 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customize-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.customize-name {
    font-size: 25px;
}

.customize-base-price {
    font-size: 16px;
    white-space: nowrap;
}

.customize-desc {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.customize-size-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.size-chip {
    padding: 10px 20px;
    font-size: 12.5px;
    letter-spacing: 0.5px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
}

    .size-chip.selected {
        background: var(--ink);
        border-color: var(--ink);
        color: var(--bg);
        box-shadow: var(--shadow-sm);
    }

.spec-section {
    padding: 20px clamp(24px, 4vw, 48px) 0;
}

.spec-section-title {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spec-section-hint {
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.spec-option-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 4px;
    text-align: left;
    gap: 14px;
    border-radius: var(--radius-sm);
}

    .spec-option-row:active {
        background: rgba(34, 32, 27, 0.04);
    }

.spec-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.spec-option-name {
    font-size: 14.5px;
}

.spec-option-cost {
    font-size: 12px;
    color: var(--ink-soft);
    flex-shrink: 0;
}

/* Secim isaretleri - artik aninda degil, dolgu+renk gecisiyle "yerine
   oturuyor" - dokunmanin bir sonucu oldugunu hissettiren tek detay. */
.spec-mark-box {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #FFFFFF;
    flex-shrink: 0;
    transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.spec-option-row:has(.spec-mark-box:not(:empty)) .spec-mark-box {
    background: var(--accent);
    border-color: var(--accent);
}

.spec-mark-circle {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 180ms var(--ease);
}

.spec-mark-circle-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    animation: dot-in 180ms var(--ease-spring);
}

@keyframes dot-in {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.customize-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    padding: 20px clamp(24px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    gap: 16px;
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.qty-stepper-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--surface);
    box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line);
    color: var(--ink);
    font-size: 17px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.qty-stepper-value {
    font-size: 19px;
    width: 20px;
    text-align: center;
    font-family: 'Fraunces', serif;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    color: #FFFFFF;
    background: var(--accent);
    padding: 16px 34px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-accent);
}

    .add-to-cart-btn:active {
        background: var(--accent-dark);
    }

/* ---- real images (kategori/urun/specification gorselleri) ---- */

.category-circle {
    overflow: hidden;
    position: relative;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.product-tone-box {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: block;
}

.customizable-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--bg), var(--shadow-xs);
}

.product-desc-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.product-customizable-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--gold);
    font-weight: 500;
}

.customize-hero {
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.customize-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spec-option-thumb {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

/* ---- language switcher (coklu dil, gercek zamanli) ---- */

.welcome-topbar-right,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 6px;
}

.language-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--radius-pill);
}

    .language-chip.selected {
        border-color: var(--ink);
        background: var(--ink);
        color: #FFFFFF;
        box-shadow: var(--shadow-xs);
    }

.language-flag {
    width: 16px;
    height: 11px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
}

/* ---- framework error banner (kept distinct on purpose) ---- */

#blazor-error-ui {
    background: #F1DED2;
    color: var(--accent);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 0.9rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 15px;
    font-weight: 600;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.9rem;
        top: 0.8rem;
    }

.blazor-error-boundary {
    background: var(--accent);
    padding: 1rem 1rem 1rem 1.25rem;
    color: white;
    border-radius: 4px;
}

    .blazor-error-boundary::after {
        content: "Bir hata olustu."
    }

/* =====================================================================
   Servis bildirimi (garson cagir / "Hilfe") - welcome ve urun ekraninda
   ortak kucuk toast. Eskiden "Hilfe" /staff sayfasina (ic kullanicilara
   ozel bir panel) gidiyordu - musteriye (ozellikle QR ile kendi telefonu
   uzerinden baglananlara) bu sayfanin gosterilmesi hem kafa karistirici
   hem de yetkisizdi (401). Artik "Hilfe" direkt garson cagirir, bu toast
   ile de geri bildirim verilir.
   ===================================================================== */
.service-toast {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

    .service-toast svg {
        color: var(--accent);
        flex-shrink: 0;
    }

/* Sepet "bottom sheet" kapatma carpisi - sadece mobilde gorunur (asagidaki
   media query icinde display:flex yapilir), genis ekranda yer kaplamasin
   diye varsayilan olarak gizli. */
.cart-sheet-close {
    display: none;
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(34, 32, 27, 0.06);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Sepeti acan yuzen buton - sadece dar (telefon) ekranlarda gorunur,
   genis tablet/kiosk kurulumunda sepet zaten her zaman acik yan panel
   oldugu icin varsayilan olarak gizli. */
.cart-toggle-btn {
    display: none;
}

.cart-backdrop {
    display: none;
}

/* =====================================================================
   Mobil / telefon duzeni (QR kod ile musterinin KENDI telefonundan
   siparis vermesi senaryosu icin). >860px'te (tablet/kiosk kurulumu)
   hicbir sey degismez - sepet eskisi gibi sabit, daima acik bir yan
   panel olarak kalir.

   <=860px'te:
     - .menu-layout tek sutuna doner (sepet artik yanda yer kaplamaz).
     - .cart-panel sabit konumlu, ekranin ALTINDAN acilan bir "bottom
       sheet" olur - varsayilan olarak ekran disinda (translateY(100%)),
       Masa.razor'daki _showCartSheet bayragi "open" class'ini
       ekleyince yukari kayar.
     - Altta, sepet kapaliyken urun/toplam gosteren kucuk yuzen bir
       "sepeti ac" butonu belirir (.cart-toggle-btn) - boylece musteri
       sepette ne oldugunu her an gorebilir, sepet ekrani kaplamaz.
     - Sepet acikken arkada yari saydam bir .cart-backdrop belirir;
       ona dokunmak da sepeti kapatir (modal/bottom-sheet standart
       davranisi).
   ===================================================================== */
@media (max-width: 860px) {
    .menu-layout {
        position: relative;
        flex-direction: column;
    }

    .menu-scroll {
        padding-bottom: 96px;
    }

    .cart-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 18, 14, 0.42);
        z-index: 590;
        animation: cart-backdrop-in 180ms var(--ease);
    }

    @keyframes cart-backdrop-in {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .cart-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: 82vh;
        border-left: none;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: var(--shadow-lg);
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
        transform: translateY(100%);
        transition: transform 260ms var(--ease-spring);
        z-index: 600;
    }

        .cart-panel::before {
            content: "";
            display: block;
            width: 40px;
            height: 4px;
            border-radius: 999px;
            background: var(--line);
            margin: -4px auto 14px;
        }

        .cart-panel.open {
            transform: translateY(0);
        }

    .cart-sheet-close {
        display: flex;
    }

    .cart-toggle-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        background: var(--accent);
        color: #FFFFFF;
        border: none;
        border-radius: var(--radius-pill);
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 600;
        box-shadow: var(--shadow-accent);
        z-index: 580;
        cursor: pointer;
    }

        .cart-toggle-btn:active {
            background: var(--accent-dark);
        }

    .cart-toggle-count {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        padding: 2px 9px;
        font-size: 13px;
        font-weight: 700;
    }

    .cart-toggle-total {
        margin-left: auto;
        font-weight: 700;
    }
}
