/* ============================================================
   QR Menu - Customer Frontend Styles
   Mobile-First Design
   ============================================================ */

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

:root {
    --primary:    #e74c3c;
    --secondary:  #2c3e50;
    --accent:     #f39c12;
    --bg:         #f8f9fa;
    --surface:    #ffffff;
    --text:       #212529;
    --text-muted: #6c757d;
    --border:     #dee2e6;
    --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:  0 8px 40px rgba(0,0,0,.16);
    --radius:     16px;
    --radius-sm:  10px;
    --transition: .25s ease;
    --font:       'Inter', system-ui, sans-serif;
    --font-head:  'Playfair Display', Georgia, serif;

    /* ── Tema özelleştirme değişkenleri (admin panelinden yönetilir) ── */
    --cat-nav-bg:          rgba(255,255,255,.95);
    --cat-pill-bg:         #ffffff;
    --cat-pill-text:       #6c757d;
    --cat-pill-border:     #dee2e6;
    --kat-baslik-rengi:    #2c3e50;
    --kat-aciklama-rengi:  #6c757d;
    --kart-bg:             #ffffff;
    --urun-baslik-rengi:   #212529;
    --urun-aciklama-rengi: #6c757d;
    --fiyat-rengi:         #e74c3c;
    --sepet-btn-bg:        #e74c3c;
    --sepet-btn-text:      #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    gap: .75rem;
}
.header-logo { flex: 1; min-width: 0; }
.logo-img { height: 42px; object-fit: contain; }
.logo-text {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Table badge */
.table-badge {
    background: var(--primary);
    color: #fff;
    padding: .35rem .7rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* Language selector */
.lang-selector { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}
.lang-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-btn .fa-chevron-down { font-size: .6rem; transition: transform .2s; }
.lang-selector.open .lang-btn .fa-chevron-down { transform: rotate(180deg); }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 140px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 200;
}
.lang-selector.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    font-size: .85rem;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition);
}
.lang-item:hover, .lang-item.active { background: rgba(0,0,0,.05); color: var(--primary); }

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 2.5rem 1rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero-hours { font-size: .9rem; opacity: .9; display: flex; align-items: center; justify-content: center; gap: .4rem; }

/* ── SEARCH ──────────────────────────────────────────────── */
.search-wrap {
    padding: 1rem 1rem 0;
    max-width: 900px;
    margin: 0 auto;
}
.search-inner {
    position: relative;
    background: var(--surface);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.search-inner:focus-within { box-shadow: var(--shadow-md); border-color: var(--primary); }
.search-icon { padding: 0 .75rem 0 1rem; color: var(--text-muted); font-size: .9rem; flex-shrink: 0; }
.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: .8rem .5rem;
    font-size: .9rem;
    font-family: var(--font);
    background: transparent;
    color: var(--text);
}
.search-clear {
    background: none;
    border: none;
    padding: 0 1rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .9rem;
}

/* ── CATEGORY NAV ────────────────────────────────────────── */
.cat-nav {
    position: sticky;
    top: 57px;
    z-index: 90;
    background: var(--cat-nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: .65rem 0;
    /* taşmayı viewport ile sınırla */
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

/* Sağ kenarda "daha fazla var" fade göstergesi */
.cat-nav-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.cat-nav-inner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--cat-nav-bg));
    pointer-events: none;
    z-index: 1;
}

.cat-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: .45rem;
    /* 1rem sol + 3rem sağ (fade alanı boş olsun) */
    padding: 0 3rem 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;     /* iOS yumuşak scroll */
    scroll-snap-type: x proximity;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
    padding: .42rem .9rem;
    border-radius: 50px;
    border: 2px solid var(--cat-pill-border);
    background: var(--cat-pill-bg);
    color: var(--cat-pill-text);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 0 0 auto;               /* shrink etmesin, grow etmesin */
    scroll-snap-align: start;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.cat-pill img.cat-thumb { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ── PRODUCTS ────────────────────────────────────────────── */
.products-wrap { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem 2rem; }

.cat-section { margin-bottom: 2.5rem; }

.section-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--border);
}
.section-cat-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.section-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--kat-baslik-rengi);
}
.section-desc { font-size: .82rem; color: var(--kat-aciklama-rengi); margin-top: .2rem; }

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1rem;
}

/* Product Card */
.product-card {
    background: var(--kart-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.product-card.sold-out { opacity: .72; }
.product-card[style*="display: none"] { display: none !important; }

/* Card image */
.card-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .card-img { transform: scale(1.06); }
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--border);
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

/* Badges */
.badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}
.badge {
    font-size: .6rem;
    font-weight: 700;
    padding: .2rem .45rem;
    border-radius: 4px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.badge-new         { background: #3498db; color: #fff; }
.badge-popular     { background: #e74c3c; color: #fff; }
.badge-recommended { background: #f39c12; color: #fff; }
.badge-discounted  { background: #27ae60; color: #fff; }

/* Sold out overlay */
.sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sold-out-overlay span {
    background: #fff;
    color: var(--text);
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .8rem;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Card body */
.card-body { padding: .75rem; }
.card-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--urun-baslik-rengi);
    margin-bottom: .3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-desc {
    font-size: .75rem;
    color: var(--urun-aciklama-rengi);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .5rem;
    line-height: 1.4;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fiyat-rengi);
}
.stock-badge.out {
    font-size: .65rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    padding: .15rem .4rem;
    border-radius: 4px;
}

/* ── EMPTY / NO RESULTS ──────────────────────────────────── */
.empty-state, .no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.empty-state i, .no-results i { margin-bottom: 1rem; opacity: .4; }
.empty-state p, .no-results p { font-size: .95rem; margin-top: .75rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section {
    background: var(--secondary);
    color: #fff;
    padding: 3rem 1rem;
    margin-top: 2rem;
}
.contact-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-title {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
}
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-decoration: none;
    color: #fff;
    transition: background var(--transition);
}
a.contact-card:hover { background: rgba(255,255,255,.18); }
a.contact-card.whatsapp:hover { background: rgba(37,211,102,.3); }
.contact-card i { font-size: 1.2rem; margin-top: .1rem; flex-shrink: 0; opacity: .85; }
.contact-label { display: block; font-size: .7rem; opacity: .7; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .2rem; }
.contact-value { font-size: .9rem; font-weight: 500; }

.maps-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: .75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .9rem;
    margin: .5rem 0 1.5rem;
    transition: opacity var(--transition);
}
.maps-btn:hover { opacity: .85; }

/* Social */
.social-label { font-size: .8rem; opacity: .7; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.social-icons { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}
.social-icon:hover { background: var(--primary); transform: translateY(-2px); }
.social-icon.instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-icon.facebook:hover  { background: #1877f2; }
.social-icon.twitter:hover   { background: #1da1f2; }
.social-icon.tiktok:hover    { background: #000; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: #111;
    color: rgba(255,255,255,.6);
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: .8rem;
}
.footer-sub { margin-top: .3rem; font-size: .72rem; opacity: .7; }

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 150;
    transition: transform var(--transition);
}
.back-top.show { display: flex; }
.back-top:hover { transform: scale(1.1); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cat-section { animation: fadeInUp .4s ease both; }
.cat-section:nth-child(1) { animation-delay: .05s; }
.cat-section:nth-child(2) { animation-delay: .1s; }
.cat-section:nth-child(3) { animation-delay: .15s; }
.cat-section:nth-child(4) { animation-delay: .2s; }
.cat-section:nth-child(5) { animation-delay: .25s; }

/* ── MOBİL: Kategori 3-sütun grid düzen ─────────────────── */
@media (max-width: 599px) {
    /* overflow:hidden grid satırlarını kesiyor — kaldır, padding ile sınırla */
    .cat-nav {
        overflow: visible;
        padding: .5rem 0;
    }

    /* Sağ taraftaki fade gradyanı kaldır (grid'de gerek yok) */
    .cat-nav-inner::after { display: none; }

    /* Flex → CSS Grid, 3 sütun */
    .cat-scroll {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        flex-wrap: wrap;
        overflow: visible !important;
        overflow-x: visible !important;
        padding: .45rem .75rem;
        gap: .38rem;
        scroll-snap-type: none;
        width: 100%;
        box-sizing: border-box;
    }

    /* "Tümü" pill'i tam genişlikte (3 sütun boyunca) */
    .cat-pill[data-cat="all"] {
        grid-column: 1 / -1;
        justify-content: center;
    }

    /* Tüm pill'ler merkezlenmiş */
    .cat-pill {
        flex: none;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: .72rem;
        padding: .5rem .25rem;
        scroll-snap-align: none;
        min-width: 0;
    }

    /* Küçük thumbnail ve "utensils" ikonunu gizle — daha okunaklı */
    .cat-pill:not([data-cat="all"]) img.cat-thumb,
    .cat-pill:not([data-cat="all"]) i {
        display: none;
    }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (min-width: 480px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
    .hero-section { padding: 3rem 1rem 4rem; }
}
@media (min-width: 768px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .header-inner, .cat-scroll, .products-wrap, .contact-inner { max-width: 900px; }
}

/* ════════════════════════════════════════════════════════════
   SEPET SİSTEMİ
   ════════════════════════════════════════════════════════════ */

/* Masa Banner */
.masa-banner {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--primary), #c0392b);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    padding: .5rem 1.25rem;
    justify-content: center;
    letter-spacing: .02em;
}
.masa-banner-sep { opacity: .5; }

/* ── Ürün Kart — Sepet Butonları ─────────────────────────── */
.btn-sepet-ekle {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--sepet-btn-bg);
    color: var(--sepet-btn-text);
    border: none;
    border-radius: 50px;
    padding: .38rem .85rem;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-sepet-ekle:hover { filter: brightness(.88); transform: scale(1.04); }

.sepet-ctrl {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: 50px;
    overflow: hidden;
}
.btn-urun-minus, .btn-urun-plus {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.btn-urun-minus:hover { background: rgba(231,76,60,.08); }
.btn-urun-plus  { background: var(--primary); color: #fff; }
.btn-urun-plus:hover  { background: #c0392b; }
.urun-qty {
    min-width: 22px;
    text-align: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--primary);
}

/* ── Floating Sepet FAB ─────────────────────────────────── */
.sepet-fab {
    position: fixed;
    bottom: 5rem;
    right: 1.25rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(231,76,60,.45);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: transform .2s, box-shadow .2s;
}
.sepet-fab:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(231,76,60,.55); }
.sepet-fab.pulse {
    animation: sepetPulse .45s ease;
}
@keyframes sepetPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    70%  { transform: scale(.95); }
    100% { transform: scale(1); }
}

/* Sepet badge */
.sepet-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #2ecc71;
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: .72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

/* ── Overlay ─────────────────────────────────────────────── */
.sepet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 290;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s;
    backdrop-filter: blur(2px);
}
.sepet-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Drawer ──────────────────────────────────────────────── */
.sepet-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--surface);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.2);
    z-index: 300;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.sepet-drawer.open { transform: translateY(0); }

@media (min-width: 600px) {
    .sepet-drawer {
        left: auto;
        right: 1.5rem;
        width: 420px;
        border-radius: 22px 22px 0 0;
    }
}

/* Drawer başlık */
.sepet-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem .75rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sepet-drawer-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.sepet-masa-tag {
    background: rgba(231,76,60,.1);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.sepet-kapat-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.sepet-kapat-btn:hover { background: #fee2e2; color: var(--primary); }

/* Boş sepet */
.sepet-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 3rem 1rem;
    color: var(--text-muted);
    text-align: center;
}
.sepet-empty i { opacity: .25; }
.sepet-empty p { font-weight: 600; font-size: 1rem; margin: 0; }
.sepet-empty span { font-size: .82rem; }

/* Ürün listesi */
.sepet-list {
    overflow-y: auto;
    flex: 1;
    padding: .75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.sepet-item {
    display: grid;
    grid-template-columns: 52px 1fr auto auto auto;
    align-items: center;
    gap: .6rem;
    background: var(--bg);
    border-radius: 12px;
    padding: .65rem .75rem;
    animation: fadeInUp .2s ease;
}
.sepet-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.sepet-item-img img { width: 100%; height: 100%; object-fit: cover; }
.sepet-item-img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(231,76,60,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: .85rem;
}
.sepet-item-info { min-width: 0; }
.sepet-item-name  { font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sepet-item-price { font-size: .75rem; color: var(--text-muted); }
.sepet-item-qty {
    display: flex;
    align-items: center;
    gap: .25rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: .15rem .1rem;
}
.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    font-size: .65rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.qty-btn:hover { background: rgba(231,76,60,.1); }
.qty-val { min-width: 18px; text-align: center; font-weight: 700; font-size: .82rem; }
.sepet-item-line-total { font-weight: 700; font-size: .82rem; color: var(--primary); white-space: nowrap; }
.sepet-item-remove {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #ccc;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.sepet-item-remove:hover { color: var(--primary); background: #fee2e2; }

/* Footer */
.sepet-footer {
    border-top: 1px solid var(--border);
    padding: .85rem 1.25rem 1.25rem;
    flex-shrink: 0;
}
.sepet-not textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .55rem .75rem;
    font-size: .8rem;
    resize: none;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    margin-bottom: .75rem;
}
.sepet-not textarea:focus { outline: none; border-color: var(--primary); }
.sepet-toplam-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
    font-size: .95rem;
}
.sepet-toplam-row strong { font-size: 1.15rem; color: var(--primary); }
.siparis-gonder-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .85rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: var(--transition);
    margin-bottom: .5rem;
}
.siparis-gonder-btn:hover:not(:disabled) { background: #c0392b; transform: translateY(-1px); }
.siparis-gonder-btn:disabled { opacity: .7; cursor: not-allowed; }
.sepet-temizle-btn {
    width: 100%;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .55rem;
    font-size: .78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: var(--transition);
}
.sepet-temizle-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Sipariş Alındı Modal ─────────────────────────────────── */
.siparis-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    backdrop-filter: blur(4px);
}
.siparis-modal-overlay.open { opacity: 1; pointer-events: auto; }
.siparis-modal {
    background: #fff;
    border-radius: 22px;
    padding: 2.25rem 2rem 2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: modalBounce .45s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes modalBounce {
    from { transform: scale(.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.siparis-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(46,204,113,.35);
}
.siparis-modal h2 { font-size: 1.35rem; margin-bottom: .5rem; color: var(--text); }
.siparis-modal p  { color: var(--text-muted); font-size: .9rem; line-height: 1.5; margin-bottom: 1.25rem; }
.siparis-modal-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.siparis-meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg);
    border-radius: 10px;
    padding: .6rem 1rem;
    flex: 1;
}
.siparis-meta-item i { color: var(--primary); font-size: 1rem; }
.siparis-meta-item div { text-align: left; }
.siparis-meta-item span { display: block; font-size: .72rem; color: var(--text-muted); }
.siparis-meta-item strong { font-size: .9rem; }
.siparis-durum-wrap { margin-bottom: 1.25rem; min-height: 28px; }
.btn-modal-kapat {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .85rem;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: var(--transition);
}
.btn-modal-kapat:hover { background: #c0392b; }

/* ── Sipariş Durum Badge ─────────────────────────────────── */
.durum-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem 1rem;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 700;
    gap: .35rem;
}
.durum-alindir       { background: #fee2e2; color: #dc2626; }
.durum-hazirlaniyor  { background: #fef3c7; color: #d97706; }
.durum-hazir         { background: #d1fae5; color: #059669; }
.durum-servis_edildi { background: #dbeafe; color: #2563eb; }
.durum-hesap_istendi { background: #ede9fe; color: #7c3aed; }
.durum-tamamlandi    { background: #f3f4f6; color: #6b7280; }

/* ── Toast Bildirimleri ───────────────────────────────────── */
#toastContainer {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}
@media (min-width: 480px) {
    #toastContainer { left: auto; width: 340px; }
}
.toast {
    background: var(--text);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s, transform .25s;
    pointer-events: auto;
}
.toast.show       { opacity: 1; transform: translateY(0); }
.toast-error      { background: #dc2626; }
.toast-warn       { background: #d97706; }
.toast-info       { background: #2563eb; }

/* ═══════════════════════════════════════════════════════════
   MASA SEÇİCİ MODAL
   ═══════════════════════════════════════════════════════════ */
.masa-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn .25s ease;
}
.masa-modal {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.5rem 1.5rem;
    width: 100%; max-width: 480px;
    max-height: 85vh; overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: slideUp .3s ease;
}
.masa-modal-head {
    text-align: center; margin-bottom: 1.5rem;
}
.masa-modal-head i {
    font-size: 2.5rem; color: var(--primary); margin-bottom: .5rem; display: block;
}
.masa-modal-head h2 { font-size: 1.4rem; margin: 0 0 .3rem; }
.masa-modal-head p  { color: var(--text-muted); font-size: .85rem; margin: 0; }
.masa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.masa-grid-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .3rem;
    padding: 1rem .5rem;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}
.masa-grid-btn i          { font-size: 1.5rem; color: var(--text-muted); transition: color .2s; }
.masa-grid-btn .masa-btn-adi { font-size: .82rem; font-weight: 700; color: var(--text); }
.masa-grid-btn .masa-btn-no  { font-size: .7rem;  color: var(--text-muted); }
.masa-grid-btn:hover,
.masa-grid-btn:focus {
    border-color: var(--primary);
    background: rgba(231,76,60,.06);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.masa-grid-btn:hover i { color: var(--primary); }
.masa-modal-skip {
    display: block; width: 100%;
    background: transparent; border: none;
    color: var(--text-muted); font-size: .8rem;
    padding: .5rem; cursor: pointer;
    text-align: center;
    text-decoration: underline;
    font-family: var(--font);
}

/* ═══════════════════════════════════════════════════════════
   SOL ALT FAB GRUP (Garson + Geri Bildirim + Siparişlerim)
   ═══════════════════════════════════════════════════════════ */
.fab-left {
    position: fixed;
    bottom: 1.5rem;
    left: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-start;
}
.fab-left-btn {
    display: flex; align-items: center; gap: .5rem;
    padding: .6rem 1rem .6rem .8rem;
    background: var(--secondary);
    color: #fff;
    border: none; border-radius: 50px;
    font-family: var(--font); font-size: .78rem; font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transition: var(--transition);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.fab-left-btn i { font-size: .9rem; }
.fab-left-btn:hover { transform: translateX(3px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.fab-siparislerim { background: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   SİPARİŞLERİM DRAWER (sol kenardan)
   ═══════════════════════════════════════════════════════════ */
.siparislerim-drawer {
    position: fixed;
    bottom: 0; left: 0;
    width: min(340px, 100vw);
    max-height: 70vh;
    background: #fff;
    border-radius: 0 20px 0 0;
    box-shadow: 4px 0 30px rgba(0,0,0,.15);
    z-index: 310;
    display: flex; flex-direction: column;
    transform: translateX(-110%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.siparislerim-drawer.open { transform: translateX(0); }
.siparislerim-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem .75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700; font-size: .95rem;
    flex-shrink: 0;
}
.siparislerim-head button {
    background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--text-muted);
}
.siparislerim-body {
    overflow-y: auto; flex: 1; padding: .75rem 1rem;
    display: flex; flex-direction: column; gap: .75rem;
}
.siparislerim-loading {
    text-align: center; color: var(--text-muted);
    padding: 2rem; font-size: .85rem;
}
.sip-card {
    background: var(--bg);
    border-radius: 12px;
    padding: .85rem 1rem;
    border-left: 4px solid var(--border);
}
.sip-card.durum-alindir       { border-color: #e74c3c; }
.sip-card.durum-hazirlaniyor  { border-color: #f39c12; }
.sip-card.durum-hazir         { border-color: #27ae60; }
.sip-card.durum-servis_edildi { border-color: #3498db; }
.sip-card.durum-hesap_istendi { border-color: #9b59b6; }
.sip-card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .4rem;
}
.sip-card-id   { font-weight: 700; font-size: .82rem; color: var(--text-muted); }
.sip-card-saat { font-size: .75rem; color: var(--text-muted); }
.sip-durum-pill {
    display: inline-flex; align-items: center;
    font-size: .72rem; font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 20px; margin-bottom: .4rem;
    background: rgba(231,76,60,.12); color: #e74c3c;
}
.sip-card.durum-hazirlaniyor  .sip-durum-pill { background: rgba(243,156,18,.15); color: #d68910; }
.sip-card.durum-hazir         .sip-durum-pill { background: rgba(39,174,96,.15);  color: #1e8449; }
.sip-card.durum-servis_edildi .sip-durum-pill { background: rgba(52,152,219,.15); color: #2471a3; }
.sip-card.durum-hesap_istendi .sip-durum-pill { background: rgba(155,89,182,.15); color: #7d3c98; }
.sip-card-urunler { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.sip-card-toplam  { font-weight: 700; font-size: .85rem; color: var(--primary); margin-top: .4rem; }
.sip-empty {
    text-align: center; padding: 2rem 1rem;
    color: var(--text-muted); font-size: .85rem;
}
.sip-empty i { font-size: 2rem; opacity: .3; display: block; margin-bottom: .5rem; }

/* ═══════════════════════════════════════════════════════════
   MİNİ MODAL (Garson + Geri Bildirim)
   ═══════════════════════════════════════════════════════════ */
.mini-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    z-index: 450;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
}
.mini-modal-overlay.open { opacity: 1; pointer-events: auto; }
.mini-modal {
    background: #fff; border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem;
    width: 100%; max-width: 340px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    transform: scale(.95); transition: transform .25s;
    position: relative;
}
.mini-modal-overlay.open .mini-modal { transform: scale(1); }
.mini-modal-lg { max-width: 400px; }
.mini-modal-close {
    position: absolute; top: .85rem; right: .85rem;
    background: var(--bg); border: none; border-radius: 50%;
    width: 32px; height: 32px; cursor: pointer;
    color: var(--text-muted); font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
}
.mini-modal-icon { margin-bottom: .75rem; }
.mini-modal h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.mini-modal p  { color: var(--text-muted); font-size: .85rem; margin: 0 0 1rem; }
.mini-modal-actions {
    display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem;
}
.btn-mini-confirm {
    background: var(--primary); color: #fff;
    border: none; border-radius: 12px;
    padding: .8rem; font-size: .9rem; font-weight: 700;
    cursor: pointer; font-family: var(--font);
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    transition: var(--transition);
}
.btn-mini-confirm:hover { background: #c0392b; }
.btn-mini-cancel {
    background: transparent; border: 1.5px solid var(--border);
    border-radius: 10px; padding: .65rem; font-size: .85rem;
    cursor: pointer; color: var(--text-muted); font-family: var(--font);
    transition: var(--transition);
}
.btn-mini-cancel:hover { border-color: var(--primary); color: var(--primary); }

/* Yıldız Puanlama */
.star-rating {
    display: flex; flex-direction: row-reverse;
    justify-content: center; gap: .25rem;
    margin: .75rem 0 1rem;
}
.star-rating input { display: none; }
.star-rating label {
    font-size: 2rem; color: #ddd; cursor: pointer;
    transition: color .15s; line-height: 1;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f1c40f; }
#feedbackMesaj {
    width: 100%; box-sizing: border-box;
    border: 1.5px solid var(--border); border-radius: 10px;
    padding: .65rem .85rem; font-family: var(--font);
    font-size: .85rem; resize: none;
    color: var(--text); background: var(--bg);
}
#feedbackMesaj:focus { outline: none; border-color: var(--primary); }

/* Animasyonlar */
@keyframes fadeIn   { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp  { from { transform: translateY(30px); opacity:0 } to { transform: translateY(0); opacity:1 } }
