/* =========================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --primary: #2196F3;
    /* Ana Renk: Canlı Turuncu */
    --primary-dark: #1565C0;
    /* Koyu Turuncu (Hover için) */
    --dark: #1e1e24;
    /* Koyu Gri/Siyah */
    --light: #f4f4f9;
    /* Arka Plan Açık Gri */
    --white: #ffffff;
    /* Beyaz */
    --gray: #888888;
    /* Gri Metinler */
    --success: #2ecc71;
    /* Yeşil */
    --danger: #e74c3c;
    /* Kırmızı */
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* iOS Safari 300ms tap delay fix */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    margin: 0;
    padding: 0;
    color: var(--dark);
    overflow-x: hidden;
}

/* =========================================
   2. GİRİŞ EKRANI
   ========================================= */
#masa-secim-ekrani {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.giris-card {
    background-color: var(--white);
    width: 100%;
    max-width: 350px;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.logo-area {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
}

.giris-card h2 {
    margin: 0 0 10px 0;
    font-weight: 800;
    color: var(--dark);
}

.giris-card p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 14px;
}

.select-wrapper {
    position: relative;
    margin-bottom: 20px;
}

select {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    appearance: none;
    background-color: #fff;
    color: var(--dark);
    font-weight: 600;
}

.select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.98);
    background-color: var(--primary-dark);
}

/* =========================================
   3. HEADER VE TABLAR
   ========================================= */
.hidden {
    display: none !important;
}

header {
    background-color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    /* İçeriği (Sol tarafı) merkeze al */
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Başlık ve Masa Bilgisi */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Yazıları ortala */
}

header h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 800;
    color: var(--dark);
}

.badge {
    background-color: var(--dark);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    width: fit-content;
    margin-top: 4px;
}

/* Sağ Taraf (Hesap) - Bağımsız Konumlandırma */
.header-right {
    position: absolute;
    /* Akıştan çıkar */
    right: 20px;
    /* Sağa yapıştır */
    top: 50%;
    transform: translateY(-50%);
    /* Dikeyde tam ortala */
}

#siparis-durum-badge {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 107, 1, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
}

/* SEKMELER */
.tabs {
    display: flex;
    background: var(--white);
    padding: 0 10px;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: var(--gray);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

.tab i {
    margin-right: 5px;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* =========================================
   4. KATEGORİ ALANI (GÜNCELLENDİ - WRAP)
   ========================================= */
#kategori-slider-container {
    margin: -20px -20px 20px -20px;
    /* Kenarlara taşsın */
    padding: 20px 15px;
    background: var(--white);
    border-bottom: 1px solid #eee;
    /* Sticky özelliğini kaldırdık veya değiştirdik çünkü çok satır olunca ekranı kaplamasın */
    /* İstersen sticky kalsın ama çok kategori varsa ekranın yarısını kapatabilir */
    position: relative;
    z-index: 90;
}

.category-scroll {
    display: flex;
    flex-wrap: wrap;
    /* YAN YANA SIĞMAYINCA ALT SATIRA GEÇ */
    justify-content: center;
    /* Ortala */
    gap: 20px;
    /* Aralarındaki boşluk */
    padding-bottom: 10px;
}

/* Scrollbar gizleme kodlarını sildik çünkü artık scroll yok */

.cat-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    /* Sabit genişlik */
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.cat-bubble.active {
    opacity: 1;
    transform: scale(1.1);
}

.cat-bubble-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background-color: #eee;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cat-bubble.active .cat-bubble-img {
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(255, 107, 1, 0.3);
}

.cat-bubble span {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    line-height: 1.2;
}

.cat-bubble.active span {
    color: var(--primary);
}

/* =========================================
   5. MENÜ LİSTESİ VE GRUP BAŞLIKLARI (YENİ)
   ========================================= */
.menu-header h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    color: var(--dark);
}

/* Yeni: Liste içindeki Kategori Ayraç Başlıkları */
.list-category-header {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
}

.list-category-header i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 14px;
}

/* Ürün Kartı */
.menu-item {
    background: var(--white);
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.item-img {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    object-fit: cover;
    background-color: #eee;
}

.item-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-details {
    display: flex;
    flex-direction: column;
    max-width: 120px;
}

.item-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.item-desc {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 14px;
}

.item-actions {
    display: flex;
    align-items: center;
    background: #f4f4f9;
    border-radius: 8px;
    padding: 4px;
    gap: 8px;
}

.btn-minus,
.btn-plus {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-minus {
    background: #e0e0e0;
    color: var(--dark);
}

.btn-plus {
    background: var(--primary);
    color: var(--white);
}

.adet-sayi {
    width: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

/* =========================================
   6. BOTTOM SHEET (SEPET)
   ========================================= */
#sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

#sticky-cart.show {
    transform: translateY(0);
}

.cart-header {
    padding: 15px 20px;
    cursor: pointer;
    background: var(--dark);
    color: white;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    flex-shrink: 0;
}

.cart-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cart-summary-text {
    font-weight: 700;
    font-size: 16px;
}

.cart-preview-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 6px 12px;
    border-radius: 12px;
}

#sticky-cart.expanded {
    transform: translateY(0);
}

#sticky-cart.expanded .cart-arrow {
    transform: rotate(180deg);
}

.hidden-content {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

#sticky-cart.expanded .hidden-content {
    max-height: 60vh;
}

#mini-sepet-listesi {
    list-style: none;
    padding: 0 20px;
    margin: 0;
}

.mini-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f3f3f3;
}

.mini-item-info {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.mini-item-price {
    color: var(--primary);
    font-size: 13px;
    margin-top: 2px;
}

.mini-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.btn-mini {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-footer-action {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.btn-confirm {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 1, 0.3);
}

.btn-confirm:active {
    transform: scale(0.98);
}

/* =========================================
   7. HESAP EKRANI
   ========================================= */
.bill-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.bill-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#onaylanmis-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.empty-msg {
    text-align: center;
    color: var(--gray);
    padding: 20px 0;
    font-style: italic;
}

.order-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.order-info {
    flex: 1;
}

.order-items {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

.order-status {
    font-size: 12px;
    margin-top: 4px;
    display: inline-block;
}

.order-actions {
    margin-left: 10px;
}

.btn-small-cancel {
    background: #ffebee;
    color: var(--danger);
    border: 1px solid #ffcdd2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.bill-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 800;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    color: var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- DÜZENLEME BUTONU STİLİ (MODERN) --- */
.btn-small-edit {
    background: #e3f2fd;
    /* Yumuşak mavi arka plan */
    color: #1565c0;
    /* Daha koyu ve net mavi ikon rengi */
    border: none;
    /* Kenarlık kaldırıldı, daha temiz */
    width: 40px;
    /* Biraz daha büyük ve rahat tıklama alanı */
    height: 40px;
    border-radius: 50%;
    /* Tam yuvarlak */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    /* İkon boyutu arttı */
    margin-right: 12px;
    /* Yanındaki iptal butonuyla mesafe açıldı */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Yumuşak geçiş efekti */
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.15);
    /* Hafif, modern bir gölge */
}

.btn-small-edit:hover {
    background: #bbdefb;
    /* Hoverda arka plan koyulaşır */
    color: #0d47a1;
    /* İkon rengi koyulaşır */
    transform: translateY(-3px);
    /* Buton hafifçe yukarı kalkar */
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.25);
    /* Gölge belirginleşir */
}

.btn-small-edit:active {
    transform: translateY(-1px);
    /* Tıklanınca hafifçe içe göçer */
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.2);
}

/* İptal butonuyla hizalama için kapsayıcıya ufak bir ayar */
.order-actions div[style="display:flex;"] {
    align-items: center;
}

/* SİPARİŞ NOTU ALANI */
#note-preview-area {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f9fafb;
    border: 1px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

#note-preview-area:hover {
    background-color: #f0fdf4;
    border-color: var(--primary);
    color: var(--primary);
}

.note-placeholder {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

.active-note {
    font-size: 13px;
    color: var(--dark);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Not Modalı Textarea */
#siparis-notu-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    resize: none;
    /* Boyutlandırmayı kapat */
}

#siparis-notu-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* SEPET İÇİ NOT ALANI */
.cart-note-section {
    padding: 15px 20px;
    border-top: 1px solid #f3f3f3;
    background: #fff;
}

.cart-note-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 8px;
}

#siparis-notu-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    resize: none;
    transition: 0.3s;
    background-color: #f9fafb;
}

#siparis-notu-input:focus {
    border-color: var(--primary);
    background-color: #fff;
    outline: none;
}

/* SİPARİŞ ÖZETİNDEKİ NOT GÖRÜNÜMÜ */
.order-note-display {
    background: #fff3cd;
    color: #856404;
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
    border: 1px solid #ffeeba;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.order-note-display i {
    margin-top: 2px;
    /* İkonu hizala */
}

/* İndirimli Fiyat Stilleri */
.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.new-price {
    color: #e74c3c;
    /* Kırmızımsı dikkat çekici renk */
    font-weight: 800;
    font-size: 16px;
}

/* Ürün Resmi üzerindeki indirim etiketi */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Menü item'ın pozisyonunu relative yapalım ki etiket düzgün dursun */
.menu-item {
    position: relative;
    /* Diğer stillerin aynen kalsın */
}

/* SERVİS BUTONLARI (Alt Bar) */
.service-buttons {
    display: none;
    /* <--- Varsayılan olarak gizledik */
    position: fixed;
    bottom: 80px;
    left: 0;
    width: 100%;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
    z-index: 99;
    pointer-events: none;
}

.btn-service {
    pointer-events: auto;
    /* Butona tıklamaya izin ver */
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-service:active {
    transform: scale(0.95);
}

.btn-waiter {
    background-color: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-bill {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

/* --- UPSELL (YANINDA İYİ GİDER) --- */
.upsell-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    animation: fadeIn 0.5s ease;
}

.upsell-section.hidden {
    display: none;
}

.upsell-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upsell-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Kaydırma çubuğunu gizle (opsiyonel) */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.upsell-scroll::-webkit-scrollbar {
    display: none;
}

.upsell-card {
    min-width: 110px;
    max-width: 110px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.upsell-img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

.upsell-name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 28px;
    /* Sabit yükseklik */
}

.upsell-price {
    font-size: 11px;
    color: #666;
    margin: 3px 0;
}

.btn-upsell-add {
    background: #fff0e6;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 4px;
    width: 100%;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-upsell-add:active {
    background: var(--primary);
    color: white;
}

/* =========================================
   8. MODAL VE DEĞERLENDİRME STİLLERİ (YENİ)
   ========================================= */

/* Modal Arka Planı (Siyah Perde) */
.modal {
    position: fixed;
    z-index: 10000;
    /* En üstte olsun */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    /* Hafif koyu arka plan */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    /* Arkadaki menüyü bulanıklaştır */
    opacity: 1;
    transition: opacity 0.3s;
}

/* Gizleme Sınıfı */
.modal.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* Modal Kutusu */
.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 24px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animasyon */
@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--dark);
    font-weight: 800;
}

.close-btn {
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--danger);
}

/* Yıldızlar */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 25px 0;
}

.rate-star {
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.rate-star:hover {
    transform: scale(1.2);
}

.rate-star:active {
    transform: scale(0.9);
}

/* Textarea Düzenlemesi */
#review-comment {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    resize: none;
    transition: 0.3s;
    background-color: #f9fafb;
    margin-bottom: 10px;
}

#review-comment:focus {
    border-color: var(--primary);
    background-color: #fff;
    outline: none;
}

/* Sepet açılınca butonlar yukarı kaysın veya gizlensin istersen burayı düzenleyebiliriz */

/* --- HEADER SABİTLEME VE BUTON AYARLARI --- */

/* 1. Header'ı sayfaya çiviliyoruz (Aşağı kaydıkça gelmez) */
header {
    position: relative !important;
    /* Sticky yerine relative yaptık */
    top: auto !important;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Header iç düzeni (Sağlı sollu yaslama) */
.header-content {
    display: flex;
    justify-content: space-between;
    /* İsim solda, butonlar sağda */
    align-items: center;
    width: 100%;
}

/* 2. Yeni Wi-Fi ve Telefon Butonlarının Stili */
.header-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    /* Yuvarlak buton */
    background: var(--light);
    /* Tema açık rengi */
    border: 1px solid #eee;
    color: var(--primary);
    /* Tema ana rengi */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Eğer logonun yanındaki ikon (çatal bıçak) JS ile resim gelince gizlenmiyorsa */
.logo-area img {
    display: block;
    max-height: 40px;
    width: auto;
}

/* --- HEADER VE BUTON DÜZELTMESİ --- */

/* 1. Header'ı Sabitle (Aşağı inmesini engelle) */
header,
#main-header {
    position: relative !important;
    /* Sticky/Fixed özelliğini ezer */
    top: auto !important;
    transform: none !important;
    width: 100%;
    background: white;
    padding: 15px 20px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Header İç Düzeni */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 2. Butonların Görünürlüğü İçin Stil */
#header-actions {
    display: flex !important;
    /* Görünmeye zorla */
    gap: 10px;
    z-index: 999;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    /* Açık gri zemin */
    border: 1px solid #e9ecef;
    color: var(--primary);
    /* Temanın rengi */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* --- KESİN ORTALANMIŞ HEADER (TEK SAYFA TEMASI) --- */

/* 1. Ana Header Kutusu */
header,
#main-header {
    position: relative !important;
    /* Sayfayla beraber kayması için relative */
    top: auto !important;
    width: 100% !important;
    height: 160px !important;
    /* Logoya yer açmak için yükseklik */
    background: var(--white) !important;
    padding: 0 !important;
    /* İç boşluğu sıfırladık, absolute kullanacağız */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05) !important;
    z-index: 100 !important;
    display: block !important;
    /* Flex yapısını bozduk */
}

/* 2. Orta Kısım (Logo ve İsim) - Tam Merkezleme */
.header-center-absolute {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    /* Sihirli ortalama kodu */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    z-index: 10 !important;
}

/* Logo Düzenlemesi */
.logo-area {
    font-size: 30px;
    /* Varsayılan ikon boyutu */
    color: var(--primary);
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
}

/* JS ile gelen logonun boyut ayarı */
.logo-area img,
img.app-dynamic-logo {
    max-height: 100px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* İsim Alanı */
.header-info {
    text-align: center !important;
}

.header-info h1 {
    font-size: 18px !important;
    margin: 0 !important;
    color: var(--dark) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* 3. Sağ Taraf (Butonlar) - Sağa Yaslama */
.header-right-absolute {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* Dikey ortalama */
    display: flex !important;
    gap: 10px !important;
    z-index: 20 !important;
}

/* Buton Stilleri */
.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    border: 1px solid #eee;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: var(--primary);
    color: white;
}

/* --- YUKARI ÇIK BUTONU STİLİ --- */
#yukari-cik-btn {
    position: fixed;
    bottom: 170px;
    /* Servis butonlarının (Garson/Hesap) üstünde durması için */
    right: 25px;
    /* Sağdan hizalama */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark);
    /* Koyu renk olsun ki diğerlerinden ayrılsın */
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 900;
    /* Servis butonlarının altında kalsın istemeyiz */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Üzerine gelince veya tıklayınca efekt */
#yukari-cik-btn:hover {
    transform: translateY(-3px);
    background: var(--primary);
    /* Temanın ana rengine dönsün */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#yukari-cik-btn:active {
    transform: scale(0.95);
}

/* Gizleme Efekti */
#yukari-cik-btn.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

/* --- YUKARI ÇIK BUTONU (TURUNCU & EN ALTTA) --- */
#yukari-cik-btn {
    position: fixed;
    bottom: 25px;
    /* Artık en altta (170px'ten 25px'e indirdik) */
    right: 25px;
    width: 50px;
    /* Biraz daha belirgin olsun */
    height: 50px;
    border-radius: 50%;
    background: #FF6B35;
    /* Tam Turuncu Renk */
    color: white;
    border: 2px solid white;
    /* Etrafına beyaz şerit, şık durur */
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    /* Turuncu gölge */
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Üzerine gelince efekt */
#yukari-cik-btn:hover {
    transform: translateY(-3px) scale(1.1);
    background: #FF8C61;
    /* Açık turuncu */
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

#yukari-cik-btn:active {
    transform: scale(0.95);
}

/* Gizleme Efekti */
#yukari-cik-btn.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

/* --- YUKARI ÇIK BUTONU (YUMUŞAK GEÇİŞLİ) --- */
#yukari-cik-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FF6B35;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    z-index: 1000;

    /* İçerik ortalama */
    display: flex !important;
    /* display:none tarafından ezilmesin diye */
    align-items: center;
    justify-content: center;
    font-size: 20px;

    /* --- ANİMASYON SİHRİ BURADA --- */
    opacity: 1;
    /* Tam görünür */
    visibility: visible;
    /* Tıklanabilir */
    transform: translateY(0);
    /* Yerinde duruyor */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Yarım saniyelik yumuşak geçiş */
}

/* Üzerine gelince efekt */
#yukari-cik-btn:hover {
    background: #FF8C61;
    transform: translateY(-5px);
    /* Hafif yukarı kalkar */
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* GİZLENME DURUMU (YUMUŞAK) */
/* Not: !important kullanarak genel 'hidden' ayarını eziyoruz */
#yukari-cik-btn.hidden {
    opacity: 0 !important;
    /* Şeffaflaş */
    visibility: hidden !important;
    /* Tıklanamaz hale gel */
    transform: translateY(50px) !important;
    /* Aşağı doğru kayarak kaybol */
    pointer-events: none !important;
    /* Fare etkileşimini kapat */
    display: flex !important;
    /* display:none olmasın ki animasyon çalışsın */
}

/* --- SEPET AÇIKKEN BUTON HAREKETİ --- */
#yukari-cik-btn.sepet-modu {
    bottom: 190px !important;
    /* Sepet barının (yaklaşık 70px) üzerine çıkar */
}

/* =========================================
   GARSON DROPDOWN (HEADER SOL TARAF)
   ========================================= */
.header-left-absolute {
    position: absolute;
    left: 10px;
    top: 8px;
    z-index: 110;
}

#garson-dropdown-container {
    position: relative;
}

.garson-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.garson-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.garson-toggle-btn:active {
    transform: scale(0.95);
}

.garson-dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    min-width: 180px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.garson-dropdown.show {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
}

.garson-dropdown button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.garson-dropdown button:first-child {
    border-bottom: 1px solid #f0f0f0;
}

.garson-dropdown button:hover {
    background: #fff5eb;
    color: var(--primary);
}

.garson-dropdown button i {
    font-size: 16px;
    color: var(--primary);
}