:root{
  --bg:#0b1220;
  --card:#121a2b;
  --muted:#8ea0c2;
  --accent:#1f6feb;
  --accent-2:#00d4ff;
  --text:#eaf1ff;
  --ok:#16a34a;
  --bad:#ef4444;
  --header-h: clamp(64px,6vw,88px);
  --shadow:0 8px 32px rgba(0,0,0,.35);
  --radius:18px;
  --border:rgba(255,255,255,.12);
  --glass:rgba(255,255,255,.06);
}

*{box-sizing:border-box}
html{
  scroll-padding-top: calc(var(--header-h) + 10px);
  scroll-behavior: smooth;
}
html,body{
  margin:0;padding:0; height:100%;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Sans",sans-serif;
  background:linear-gradient(180deg,#0b1220 0%,#0d1425 40%,#0f162a 100%);
  color:var(--text);
  font-size:clamp(14px,0.8vw + 10px,18px);
  line-height:1.45;
}
body.no-scroll{overflow:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit}
img{max-width:100%;height:auto;display:block}
.wrap{width:min(96vw,1280px);max-width:1280px;margin:0 auto;padding:0 14px}

/* --------- Header ---------- */
.header{
  position: static;
  background: rgba(11,18,32,.75);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center;
  width:100%; padding:14px 0; min-height:var(--header-h);
  gap:10px;
}
#openMenu{position:static}
.brand{grid-column:2; justify-self:center; display:flex; flex-direction:column; align-items:center; gap:8px}
.header-logo{width:clamp(150px,22vw,260px);height:auto;filter:drop-shadow(0 10px 28px rgba(0,0,0,.45))}
.actions{grid-column:3; justify-self:end; display:flex; align-items:center; gap:8px; flex-wrap:nowrap;}

.tbtn,.icon-btn,.admin-link,.login-link{
  display:inline-flex;align-items:center;gap:10px;justify-content:center;
  height:44px;padding:0 14px;border-radius:14px;
  background:linear-gradient(180deg,#15223e,#111b33);
  border:1px solid var(--border);
  box-shadow:0 8px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  cursor:pointer; transition:transform .08s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  color:#eaf1ff;
  white-space:nowrap;
}
.tbtn:hover,.icon-btn:hover,.admin-link:hover,.login-link:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.22);
  box-shadow:0 12px 28px rgba(16,44,100,.45);
}
.tbtn .ico,.login-link .ico,.admin-link .ico{width:18px;height:18px;opacity:.95;flex:0 0 18px}

.cart-btn{position:relative;display:inline-flex;align-items:center}
.badge{
  position:absolute; top:-6px; right:-6px; transform:none;
  background:#22c55e;color:#051025;border-radius:999px;
  min-width:18px;height:18px;padding:0 6px;font-size:11px;font-weight:800;
  border:2px solid #0c1426; display:flex; align-items:center; justify-content:center; line-height:1
}

.drawer,.cart,.orders{position:fixed;inset:0;display:none;z-index:9999}
.drawer.open,.cart.open,.orders.open{display:block}
.dim{position:absolute;inset:0;background:rgba(0,0,0,.5);z-index:1}
.panel{position:absolute;top:0;bottom:0;width:82%;max-width:320px;background:var(--card);border-right:1px solid rgba(255,255,255,.06);box-shadow:var(--shadow);padding:18px;z-index:2}
.cart .panel{right:0;left:auto;width:92%;max-width:420px;border-left:1px solid rgba(255,255,255,.06);border-right:none}
.orders .panel{right:0;left:auto;width:92%;max-width:520px;border-left:1px solid rgba(255,255,255,.06);border-right:none}
.panel h3{margin:0 0 16px 0}
.cat a{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;border:1px solid rgba(255,255,255,.06);margin-bottom:10px;background:#0f1930;transition:border-color .2s ease, transform .06s ease}
.cat a:hover{border-color:rgba(255,255,255,.2);transform:translateX(2px)}
.cat a[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.chip{font-size:12px;color:#b6c4e6;background:rgba(31,111,235,.2);border:1px solid rgba(31,111,235,.35);padding:3px 8px;border-radius:999px;margin-left:auto}

.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:center;margin:18px 0}
.card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.hero h2{margin:0 0 8px 0;font-size:clamp(22px,2.2vw,34px)}
.hero p{margin:0;color:var(--muted);word-break:break-word}
.stamp{display:inline-flex;gap:8px;align-items:center;background:rgba(22,163,74,.15);border:1px solid rgba(22,163,74,.35);color:#c9ffd6;padding:6px 10px;border-radius:999px;font-size:12px;margin-top:12px;white-space:nowrap}
.illus{height:100%;min-height:160px;border-radius:var(--radius);background:radial-gradient(120px 120px at 20% 30%,rgba(0,212,255,.5),transparent 60%),radial-gradient(160px 160px at 80% 20%,rgba(31,111,235,.5),transparent 60%),linear-gradient(180deg,#0a1221,#0e1730);display:flex;align-items:center;justify-content:center}
.hero-img{max-width:100%;max-height:250px;object-fit:contain}

.section-title{display:flex;align-items:center;gap:10px;margin:22px 0 12px}
.section-title h3{margin:0}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:720px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.grid{grid-template-columns:repeat(4,1fr)}}
.product{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:16px;background:#0f1930;border:1px solid rgba(255,255,255,.06);transition:transform .06s ease, border-color .2s ease, box-shadow .2s ease}
.product:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.18);box-shadow:0 16px 36px rgba(0,0,0,.35)}
.thumb{height:220px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.thumb img{max-width:100%;max-height:100%;object-fit:contain;display:block;border-radius:10px}
.p-name{font-weight:600}
.muted{color:var(--muted)}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:linear-gradient(180deg,#1b2a49,#172339);color:#eaf1ff;cursor:pointer;transition:transform .05s ease, box-shadow .2s ease, border-color .2s ease}
.btn:hover{border-color:rgba(255,255,255,.25);box-shadow:0 10px 24px rgba(0,0,0,.35)}
.btn.primary{background:linear-gradient(180deg,#1f6feb,#1a58c8);border-color:#2a6be6;box-shadow:0 10px 25px rgba(31,111,235,.35)}

.cart-items{display:flex;flex-direction:column;gap:10px;max-height:50vh;overflow:auto;padding-right:6px}
.ci{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:10px;background:#0f1930}
.qty{display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.1);border-radius:999px}
.qty button{width:30px;height:30px;background:transparent;border:none;color:var(--text);cursor:pointer}
.qty input{width:42px;text-align:center;background:transparent;border:none;color:var(--text);font-weight:600}
.total{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.form{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field input,.field textarea,.field select{background:#0e1730;border:1px solid rgba(255,255,255,.12);color:var(--text);padding:10px 12px;border-radius:12px}
.hl{height:1px;background:linear-gradient(90deg,transparent,#28406f,transparent);margin:8px 0}
.fine{font-size:12px;color:#9fb2d8}
.note{font-size:12px;color:#cde1ff;background:rgba(0,212,255,.12);border:1px solid rgba(0,212,255,.35);padding:8px 10px;border-radius:12px}

.tag{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600}
.tag.new{background:rgba(59,130,246,.18);border:1px solid rgba(59,130,246,.45);color:#93c5fd}
.tag.prep{background:rgba(234,179,8,.18);border:1px solid rgba(234,179,8,.45);color:#fde047}
.tag.enroute{background:rgba(56,189,248,.18);border:1px solid rgba(56,189,248,.45);color:#7dd3fc}
.tag.done{background:rgba(34,197,94,.18);border:1px solid rgba(34,197,94,.45);color:#86efac}
.tag.cancel{background:rgba(239,68,68,.18);border:1px solid rgba(239,68,68,.45);color:#fca5a5}

@media (max-width: 720px){
  body { padding-bottom: 120px; }
  .hero{grid-template-columns:1fr}
  .illus{order:-1;min-height:220px}
  .btn{padding:9px 12px}
  
  /* === YENİ HEADER DÜZENLEMESİ === */
  .header-inner {
    /* Logoyu ortalamak için grid yapısını tek sütuna indiriyoruz */
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .header #openMenu,
  .header .actions {
    /* Header'daki eski butonları mobilde gizliyoruz */
    display: none;
  }
  .header-logo{ width:250px; }
}

@media (max-width: 380px){
  .header-logo{ width:140px; }
  .btn{padding:8px 10px}
}

.site-footer{
  background:#0a0f1a;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  padding:14px;
  font-size:12px;
  color:#8ea0c2;
}
.site-footer p{margin:0;}

#userBadge{ align-items:center; gap:8px; }
#userBadge .ico{ width:22px; height:22px; }
#userNameText{ display:inline !important; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:140px; }
@media (max-width: 480px){
  header .actions{ flex-wrap: wrap; row-gap:6px; }
  #userNameText{ max-width:110px; }
}

/* === MOBİL NAVİGASYON CSS KODLARI === */
.mobile-nav {
    position: fixed;
    bottom: 0; /* sabit en alta otursun */
    left: 0;
    right: 0;
    width: 100%; /* tam genişlik */
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 0; /* köşeleri düz yaptım, istersen 12px verebilirsin */
    z-index: 1000;
    background: rgba(18, 26, 43, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border); /* üstte çizgi */
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone çentik uyumu */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    position: relative;
}
.nav-item i {
    font-size: 26px;
    transition: all 0.3s ease;
}
.nav-item.active,
.nav-item:hover {
    color: var(--text);
}
.nav-item.active i,
.nav-item:hover i {
  transform: translateY(-2px);
}
.nav-item-special {
    width: 65px;
    height: 65px;
    background: linear-gradient(45deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    box-shadow: 0 5px 15px rgba(31,111,235, 0.4);
    cursor: pointer;
    border: 3px solid var(--bg);
    transition: transform 0.3s ease;
    position: relative;
}
.nav-item-special:hover {
    transform: scale(1.1) translateY(-2px);
}
.nav-item-special i {
    font-size: 32px;
}
.nav-item-special .badge {
  top: 0;
  right: 0;
  border-color: var(--accent);
}
@media(min-width: 721px){
  .mobile-nav {
    display: none;
  }
}

/* Logoyu mobilde ortalamak için eklendi */
@media (max-width: 720px) {
  .brand {
    /* Tek sütunlu yapıda tüm alanı kapla ve kendini ortala */
    grid-column: 1 / -1;
  }
}

/* Ürün kartlarını mobilde kare ve düzgün hizalı yap */
/* Ürün kartları modern tasarım */
.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* içeriği üst ve alt arasına yay */
  border-radius: 16px;
  padding: 12px;
  background: #121a2b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 250px; /* sabit yükseklik ver, eşit olsun */
}


.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.product .thumb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.product .thumb img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 12px;
}

.product .p-name {
  font-weight: 600;
  font-size: 15px;
  margin: 8px 0;
  min-height: 40px; /* kısa isimler de 2 satır boşluk kaplasın */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.product .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product .row strong {
  color: #4CAF50; /* fiyat rengi yeşil */
  font-size: 15px;
}

.product .btn {
  flex: 1;
  padding: 8px;
  border-radius: 12px;
  font-size: 14px;
  background: #4CAF50;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease;
}

.product .btn:hover {
  background: #45a049;
}


.cart .panel {
  right: 0;
  left: auto;
  transform: translateX(100%);
}
.cart.open .panel {
  transform: translateX(0);
}


.cart .form {
  position: sticky;
  bottom: 0;
  background: #0e1730;
  padding-top: 10px;
}

/* WhatsApp sabit balonu */
#whatsapp-float {
  position: fixed;
  bottom: 90px; /* mobil nav üstünde dursun */
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#whatsapp-float:hover {
  transform: scale(1.1);
}

.site-footer {
  background: #0e1730;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.site-footer .footer-links {
  margin: 10px 0;
}

.site-footer .footer-links a {
  color: #4CAF50;
  margin: 0 6px;
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

.site-footer .footer-social {
  margin-top: 12px;
}

.site-footer .footer-social a {
  color: #fff;
  font-size: 22px;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.site-footer .footer-social a:hover {
  color: #4CAF50;
}

#toast {
  visibility: hidden;
  min-width: 220px;
  background-color: #4CAF50;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 90px; /* mobile-nav üstünde */
  transform: translateX(-50%);
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 110px; /* hafif yukarı çıkma animasyonu */
}






