:root{ --brand:#16a34a; }
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;background:#f7f7f8;color:#1f2937;padding-bottom:90px}

.cover{height:250px;background-size:cover;background-position:center;background-color:var(--brand);position:relative}
.cover-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.55))}

.profile{max-width:640px;margin:0 auto;padding:0 16px;position:relative}
.logo-circle{width:84px;height:84px;border-radius:50%;background:#fff;border:4px solid #fff;margin-top:-42px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700;color:var(--brand)}
.logo-circle img{width:100%;height:100%;object-fit:cover}

.company-name{font-size:22px;font-weight:800;margin:10px 0 2px}
.company-meta{font-size:13px;color:#6b7280;line-height:1.7}
.company-meta div{display:flex;align-items:center;gap:6px}
.social-row{display:flex;gap:10px;margin:10px 0 4px}
.social-row a{width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid #e5e7eb;display:flex;align-items:center;justify-content:center;font-size:15px;box-shadow:0 1px 3px rgba(0,0,0,.06);color:#374151}

.wifi-card{background:#f9fafb;border-radius:14px;padding:16px;text-align:left;max-width:320px;margin:0 auto}
.wifi-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eee}
.wifi-row:last-child{border-bottom:none}
.wifi-label{font-size:12px;color:#9ca3af;width:60px;flex-shrink:0}
.wifi-value{flex:1;font-weight:700;font-size:15px;word-break:break-all}
.copy-btn{width:32px;height:32px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.copy-btn:hover{background:#f3f4f6}

.cat-tabs{position:sticky;top:0;background:#f7f7f8;z-index:5;display:flex;gap:8px;overflow-x:auto;padding:14px 16px;border-bottom:1px solid #eee;max-width:640px;margin:0 auto}
.cat-tabs::-webkit-scrollbar{display:none}
.cat-tab{
  flex-shrink:0;
  padding:8px 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid #e5e7eb;
  font-size:13px;
  font-weight:600;
  color:#374151;
  cursor:pointer;
  white-space:nowrap;

  /* Yazý seçimini ve mobil dokunma efektini engeller */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.cat-tab.active{background:var(--brand);color:#fff;border-color:var(--brand)}

.menu-wrap{max-width:640px;margin:0 auto;padding:6px 16px 20px}
.cat-section{margin-top:22px}
.cat-title{font-size:17px;font-weight:800;margin-bottom:10px}

.item{display:flex;gap:12px;background:#fff;border-radius:var(--radius-card,14px);padding:12px;margin-bottom:10px;box-shadow:0 1px 3px rgba(0,0,0,.05);align-items:center}
.item-img{width:76px;height:76px;border-radius:10px;background:#f3f4f6;object-fit:cover;flex-shrink:0}
.item-img.placeholder{display:flex;align-items:center;justify-content:center;font-size:22px;color:#c7c9cf}
.item-body{flex:1;min-width:0}
.item-name{font-weight:700;font-size:15px}
.item-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}
.tag-pill{display:inline-flex;align-items:center;gap:4px;background:color-mix(in srgb, var(--accent,#f97316) 15%, white);color:var(--accent,#f97316);font-size:10.5px;font-weight:600;padding:2px 8px;border-radius:999px}
.item-desc{font-size:12.5px;color:#6b7280;margin:3px 0 6px;line-height:1.4}
.item-price{font-weight:800;color:var(--brand);font-size:14px}
.item-add{flex-shrink:0}
.add-btn{width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;border:none;font-size:20px;cursor:pointer;line-height:1}
.qty-box{display:flex;align-items:center;gap:8px;background:#f3f4f6;border-radius:20px;padding:4px 8px}
.qty-box button{width:26px;height:26px;border-radius:50%;border:none;background:#fff;font-size:16px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.1)}
.qty-box span{font-weight:700;min-width:16px;text-align:center;font-size:13px}
.item.unavailable{opacity:.5}
.item.unavailable .item-add{display:none}
.soldout-tag{font-size:11px;color:#dc2626;font-weight:700}

/* Alt gezinme Ã§ubuÄŸu ve eski sepet Ã§ubuÄŸu/servis butonlarÄ± buraya taÅŸÄ±ndÄ±,
   bkz. ".bottom-nav" kurallarÄ± dosyanÄ±n sonunda. */

.sheet-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;z-index:20}
.sheet-overlay.show{display:block}
.sheet{position:fixed;left:0;right:0;bottom:0;background:#fff;border-radius:calc(var(--radius-card,14px) + 4px) calc(var(--radius-card,14px) + 4px) 0 0;max-height:85vh;overflow-y:auto;z-index:21;transform:translateY(100%);transition:transform .25s ease;max-width:640px;margin:0 auto}
.sheet.show{transform:translateY(0)}
.sheet-header{padding:16px 18px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}
.sheet-header h3{margin:0;font-size:16px}
.sheet-header .close{cursor:pointer;font-size:22px;color:#9ca3af;background:none;border:none}
.sheet-body{padding:16px 18px}

.cart-line{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #f1f1f1}
.cart-line .cl-name{font-weight:600;font-size:14px}
.cart-line .cl-price{font-size:12.5px;color:#6b7280}
.cart-total-row{display:flex;justify-content:space-between;font-weight:800;font-size:16px;padding:14px 0;border-top:2px solid #f1f1f1;margin-top:6px}

.field{margin-bottom:12px}
.field label{display:block;font-size:12.5px;font-weight:700;color:#374151;margin-bottom:5px}
.field input, .field textarea{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:9px;font-size:14px;font-family:inherit}

.submit-btn{width:100%;padding:14px;background:var(--brand);color:#fff;border:none;border-radius:var(--radius-btn,12px);font-weight:700;font-size:15px;cursor:pointer;margin-top:6px}
.submit-btn:disabled{opacity:.6}

.order-success{text-align:center;padding:30px 10px}
.order-success .ok-icon{font-size:50px}
.order-success h3{margin:10px 0 6px}
.order-success p{color:#6b7280;font-size:14px}

.footer-powered{text-align:center;font-size:11.5px;color:#9ca3af;padding:16px}

/* ---- Servis tipi sekmeleri ---- */
.service-tabs{display:flex;gap:8px;margin-bottom:16px;background:#f3f4f6;border-radius:12px;padding:4px}
.service-tab{flex:1;border:none;background:transparent;padding:10px 6px;border-radius:9px;font-size:13px;font-weight:700;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}
.service-tab.active{background:#fff;color:var(--brand);box-shadow:0 1px 3px rgba(0,0,0,.1)}

.table-selected-box{display:flex;align-items:center;gap:10px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;border-radius:12px;padding:12px 14px;margin-bottom:14px;font-size:13px}
.table-selected-box i{font-size:20px;color:var(--brand)}
.table-selected-box > div{flex:1}
.table-clear-btn{flex-shrink:0;width:28px;height:28px;border-radius:50%;border:none;background:#fff;color:#6b7280;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px}
.table-clear-btn:hover{background:#fee2e2;color:#dc2626}

.payment-info-box{display:flex;align-items:center;gap:8px;background:#f3f4f6;color:#374151;border-radius:10px;padding:10px 14px;font-size:13px;margin-top:6px}
.payment-info-box i{color:var(--brand);font-size:16px}

.qr-scan-btn{flex-shrink:0;background:#111827;color:#fff;border:none;border-radius:9px;padding:11px 18px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;white-space:nowrap}
.field-hint{font-size:11px;color:#9ca3af;margin-top:5px}

/* ---- QR TarayÄ±cÄ± ---- */
.scanner-wrap{position:relative;width:100%;max-width:320px;aspect-ratio:1/1;margin:10px auto 0;border-radius:16px;overflow:hidden;background:#000}
.scanner-wrap video{width:100%;height:100%;object-fit:cover}
.scanner-frame{position:absolute;inset:14%;border:3px solid rgba(255,255,255,.85);border-radius:16px;box-shadow:0 0 0 999px rgba(0,0,0,.25)}
.btn-secondary-pill{margin-top:14px;background:#f3f4f6;color:#374151;border:none;border-radius:999px;padding:9px 22px;font-size:13px;font-weight:600;cursor:pointer}

/* ---- KaranlÄ±k Mod ---- */
body.theme-dark{background:#111827;color:#e5e7eb}
body.theme-dark .profile,
body.theme-dark .cat-tabs,
body.theme-dark .menu-wrap{background:#111827}
body.theme-dark .cat-tabs{border-bottom-color:#1f2937}
body.theme-dark .cat-tab{background:#1f2937;border-color:#374151;color:#d1d5db}
body.theme-dark .cat-tab.active{background:var(--brand);border-color:var(--brand);color:#fff}
body.theme-dark .cat-title{color:#f9fafb}
body.theme-dark .item{background:#1f2937;box-shadow:none}
body.theme-dark .item-name{color:#f9fafb}
body.theme-dark .item-desc{color:#9ca3af}
body.theme-dark .item-img.placeholder{background:#374151;color:#6b7280}
body.theme-dark .company-name{color:#f9fafb}
body.theme-dark .company-meta{color:#9ca3af}
body.theme-dark .social-row a{background:#1f2937;border-color:#374151;color:#e5e7eb}
body.theme-dark .logo-circle{background:#1f2937;border-color:#111827}
body.theme-dark .sheet,
body.theme-dark .wifi-card,
body.theme-dark .cart-line,
body.theme-dark .field input,
body.theme-dark .field textarea{background:#1f2937;color:#e5e7eb;border-color:#374151}
body.theme-dark .sheet-header{border-bottom-color:#374151}
body.theme-dark .cart-line{border-bottom-color:#374151}
body.theme-dark .payment-info-box{background:#1f2937;color:#d1d5db}
body.theme-dark .footer-powered{color:#4b5563}
body.theme-dark .service-tabs{background:#1f2937}
body.theme-dark .service-tab{color:#9ca3af}
body.theme-dark .service-tab.active{background:#111827;color:var(--brand)}
body.theme-dark .qty-box{background:#374151}
body.theme-dark .qty-box button{background:#1f2937;color:#e5e7eb}

/* ---- MenÃ¼ DÃ¼zeni: Izgara (2 sÃ¼tunlu kart) ---- */
body.layout-grid .cat-section{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}
body.layout-grid .cat-section .cat-title{
  grid-column:1 / -1;
}
body.layout-grid .cat-section .item{
  flex-direction:column;
  align-items:stretch;
  text-align:left;
  margin-bottom:0;
  padding:8px;
}
body.layout-grid .cat-section .item-img,
body.layout-grid .cat-section .item-img.placeholder{
  width:100%;
  height:100px;
  font-size:26px;
}
body.layout-grid .cat-section .item-tags{ margin-top:6px }
body.layout-grid .cat-section .item-add{
  align-self:flex-end;
  margin-top:6px;
}

/* ---- MenÃ¼ DÃ¼zeni: Kompakt ---- */
body.layout-compact .item{padding:8px;gap:8px;margin-bottom:6px}
body.layout-compact .item-img{width:52px;height:52px}
body.layout-compact .item-name{font-size:13.5px}
body.layout-compact .item-desc{display:none}
body.layout-compact .cat-title{font-size:15px;margin-bottom:6px}

/* ---- MenÃ¼ DÃ¼zeni: FotoÄŸrafsÄ±z ---- */
body.layout-no_photo .item-img{display:none}

/* ---- Ä°stek / Ã–neri / Åžikayet kartÄ± + modalÄ± ---- */
.feedback-card{display:flex;align-items:center;gap:12px;background:#fff;border-radius:var(--radius-card,14px);padding:14px 16px;margin-top:16px;box-shadow:0 1px 3px rgba(0,0,0,.05);cursor:pointer}
.feedback-icon{width:40px;height:40px;border-radius:10px;background:color-mix(in srgb, var(--accent,#f97316) 15%, white);color:var(--accent,#f97316);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.feedback-text{flex:1}
.feedback-title{font-weight:700;font-size:14px}
.feedback-sub{font-size:12px;color:#6b7280}
.feedback-arrow{color:#c7c9cf}
body.theme-dark .feedback-card{background:#1f2937}
body.theme-dark .feedback-sub{color:#9ca3af}

.feedback-tabs{display:flex;gap:8px;margin-bottom:16px}
.fb-tab{flex:1;border:1px solid #e5e7eb;background:#fff;padding:10px 6px;border-radius:10px;font-size:13px;font-weight:700;color:#6b7280;cursor:pointer}
.fb-tab.active{background:var(--brand);border-color:var(--brand);color:#fff}
body.theme-dark .fb-tab{background:#1f2937;border-color:#374151;color:#d1d5db}

/* ---- Masadan garson Ã§aÄŸÄ±rma / hesap isteme ---- */
/* ---- Alt gezinme Ã§ubuÄŸu (MenÃ¼ / Garson / Sepet / Hesap / WiFi) ---- */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;max-width:640px;margin:0 auto;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -6px 20px rgba(0,0,0,.12);padding:8px 6px 6px;z-index:19;border-top:3px solid var(--brand)}
.bottom-nav-row{display:flex;align-items:flex-end;justify-content:space-around}
.bn-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;background:none;border:none;color:#9ca3af;font-size:10.5px;font-weight:700;cursor:pointer;padding:6px 2px 2px;min-width:0}
.bn-item i{font-size:19px;line-height:1}
.bn-item .bn-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bn-item.active{color:var(--brand)}
.bn-item:disabled{opacity:.5;cursor:default}
.bn-item.bn-disabled{color:#c7cad1;cursor:pointer}
.bn-item.bn-disabled i{opacity:.55}
.bn-item.bn-center.bn-disabled .bn-circle{border-color:#d9dbe0}
.bn-item.bn-center.bn-disabled .bn-circle i{color:#c7cad1}
.bn-item.bn-done{color:#16a34a}
.bn-item.bn-center{flex:0 0 auto;margin-top:-30px}
.bn-center .bn-circle{position:relative;width:54px;height:54px;border-radius:50%;background:#fff;border:2px solid var(--brand);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.bn-center .bn-circle i{color:var(--brand);font-size:22px}
.bn-badge{position:absolute;top:-4px;right:-4px;z-index:2;background:#ef4444;color:#fff;border-radius:50%;min-width:18px;height:18px;padding:0 4px;font-size:10px;font-weight:700;display:none;align-items:center;justify-content:center}
.bn-badge.show{display:flex}
.bn-handle{width:56px;height:4px;background:#e5e7eb;border-radius:99px;margin:8px auto 2px}
body.theme-dark .bottom-nav{background:#1f2937;box-shadow:0 -6px 20px rgba(0,0,0,.35)}
body.theme-dark .bn-center .bn-circle{background:#1f2937}
body.theme-dark .bn-handle{background:#374151}
body.theme-dark .bn-item.bn-disabled{color:#4b5563}
body.theme-dark .bn-item.bn-center.bn-disabled .bn-circle{border-color:#374151}
body.theme-dark .bn-item.bn-center.bn-disabled .bn-circle i{color:#4b5563}

/* ---- KÄ±sa bilgi balonu (garson/hesap Ã§aÄŸrÄ±sÄ± onayÄ±) ---- */
.menu-toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,10px);background:#111827;color:#fff;padding:10px 18px;border-radius:999px;font-size:12.5px;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:30;max-width:80%;text-align:center}
.menu-toast.show{opacity:1;transform:translate(-50%,0)}
