/* ÇAKIL PUB - müşteri menüsü
   Koyu tema sabit: bar ortamı loş, telefon ekranı göz yakmasın. */

:root {
  --vurgu:      #e8493a;
  --zemin:      #12100e;
  --zemin-2:    #1b1815;
  --zemin-3:    #241f1b;
  --cizgi:      #332c26;
  --metin:      #f2ece4;
  --metin-2:    #a89d90;
  --metin-3:    #6f665c;
  --happy:      #f0b429;
  --yaricap:    14px;
  --en:         640px;
}

* { box-sizing: border-box; }

/* Sınıfların display kuralı tarayıcının [hidden] kuralını ezmesin.
   Bu olmazsa hidden verilen .yukari / .happy-rozet gibi ögeler görünür kalır. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Çapa gezinmesinde başlık yapışkan üst çubuğun altında kalmasın.
     Sekmeler bu değere güveniyor - üst çubuğun yüksekliğinden büyük olmalı. */
  scroll-padding-top: 122px;
}

body {
  margin: 0;
  background: var(--zemin);
  color: var(--metin);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- üst ---------- */

.ust {
  max-width: var(--en);
  margin: 0 auto;
  padding: 28px 20px 16px;
  text-align: center;
}

.ust h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.ust p {
  margin: 8px 0 0;
  color: var(--metin-2);
  font-size: 13px;
  letter-spacing: .04em;
}

.happy-rozet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--happy) 45%, transparent);
  background: color-mix(in srgb, var(--happy) 12%, transparent);
  color: var(--happy);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.happy-rozet::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--happy);
  animation: nabiz 2s ease-in-out infinite;
}

@keyframes nabiz { 50% { opacity: .35; } }

/* ---------- arama + sekmeler ---------- */

.arac-cubugu {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--zemin) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cizgi);
}

.ara-kutu {
  position: relative;
  max-width: var(--en);
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  align-items: center;
}

.ara-kutu svg {
  position: absolute;
  left: 32px;
  width: 17px; height: 17px;
  fill: var(--metin-3);
  pointer-events: none;
}

.ara-kutu input {
  width: 100%;
  padding: 11px 38px 11px 40px;
  background: var(--zemin-2);
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  color: var(--metin);
  font-size: 16px; /* 16px altı iOS'ta sayfayı zoomluyor */
  font-family: inherit;
  outline: none;
}

.ara-kutu input:focus { border-color: var(--vurgu); }
.ara-kutu input::placeholder { color: var(--metin-3); }
.ara-kutu input::-webkit-search-cancel-button { display: none; }

#araTemizle {
  position: absolute;
  right: 30px;
  width: 26px; height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--zemin-3);
  color: var(--metin-2);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.sekmeler {
  max-width: var(--en);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sekmeler::-webkit-scrollbar { display: none; }

.sekmeler a {
  flex: 0 0 auto;
  padding: 7px 15px;
  background: var(--zemin-2);
  border: 1px solid var(--cizgi);
  border-radius: 999px;
  color: var(--metin-2);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}

.sekmeler a.etkin {
  background: var(--vurgu);
  border-color: var(--vurgu);
  color: #fff;
}

/* ---------- içerik ---------- */

main {
  max-width: var(--en);
  margin: 0 auto;
  padding: 8px 20px 40px;
}

.kategori { padding-top: 26px; }

.kategori h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vurgu);
}

.kategori .basliklar {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cizgi);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--metin-3);
}

.kategori .basliklar span:last-child { width: 62px; text-align: right; }
.kategori .basliklar span:first-child { width: 62px; text-align: right; }

/* ürün satırı */

.urun {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cizgi) 55%, transparent);
}

.urun:last-child { border-bottom: 0; }

.urun .gorsel {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--zemin-2);
}

.urun .bilgi { flex: 1 1 auto; min-width: 0; }

.urun .ad {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

.urun .alt {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--metin-2);
}

.etiket {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--vurgu) 18%, transparent);
  color: var(--vurgu);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.urun .fiyatlar {
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

.urun .fiyat {
  width: 62px;
  text-align: right;
  font-size: 15.5px;
  font-weight: 700;
}

.urun .fiyat-happy {
  width: 62px;
  text-align: right;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--happy);
}

.urun .fiyat-happy.bos { color: var(--metin-3); font-weight: 400; }

/* happy hour aktifken normal fiyatı geri plana at */
body.happy-aktif .urun .fiyat.indirimli {
  color: var(--metin-3);
  font-weight: 400;
  font-size: 14px;
  text-decoration: line-through;
  text-decoration-color: var(--metin-3);
}

/* kalmadı */

.urun.yok { opacity: .38; }
.urun.yok .fiyatlar { text-decoration: line-through; }

.yok-rozet {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--zemin-3);
  color: var(--metin-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ---------- durumlar ---------- */

.iskelet { padding-top: 24px; display: grid; gap: 14px; }

.iskelet span {
  display: block;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--zemin-2) 25%, var(--zemin-3) 50%, var(--zemin-2) 75%);
  background-size: 300% 100%;
  animation: parla 1.4s linear infinite;
}

@keyframes parla { to { background-position: -300% 0; } }

.bos-durum {
  padding: 60px 20px;
  text-align: center;
  color: var(--metin-2);
}

.bos-durum strong { display: block; margin-bottom: 6px; color: var(--metin); }

.yeniden {
  margin-top: 16px;
  padding: 10px 22px;
  background: var(--vurgu);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- dip ---------- */

.dip {
  max-width: var(--en);
  margin: 0 auto;
  padding: 24px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--cizgi);
  color: var(--metin-3);
  font-size: 12px;
}

.dip p { margin: 4px 0; }
.dip .kucuk { font-size: 11px; }

.yukari {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 44px; height: 44px;
  z-index: 30;
  border: 1px solid var(--cizgi);
  border-radius: 50%;
  background: var(--zemin-3);
  color: var(--metin);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.yukari svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- erişilebilirlik ---------- */

:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .arac-cubugu, .yukari { display: none; }
  body { background: #fff; color: #000; }
}
