/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f5f0e8;
  --bg-alt:    #ede8de;
  --text:      #2a2119;
  --text-muted:#7a6e62;
  --accent:    #c8a96e;
  --accent-dk: #a8874e;
  --divider:   #d9d2c6;
  --white:     #fff;
  --wa:        #25D366;
  --wa-hover:  #1da851;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --header-h:  72px;
  --nav-h:     48px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  height: var(--header-h);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* ── Language Toggle ────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1.5px solid var(--divider);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text); }

.lang-option { letter-spacing: .05em; transition: color .2s, font-weight .2s; }
.lang-option.active { color: var(--accent-dk); font-weight: 700; }

.lang-sep { color: var(--divider); }

/* ── Category Nav ───────────────────────────────── */
.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  height: var(--nav-h);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
  height: 100%;
  min-width: max-content;
  max-width: 900px;
  margin: 0 auto;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .03em;
  border-bottom: 2.5px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.cat-link:hover,
.cat-link.active { color: var(--text); border-bottom-color: var(--accent); }

/* ── Main ───────────────────────────────────────── */
main { max-width: 900px; margin: 0 auto; padding: 0 0 120px; }

/* ── Menu Section ───────────────────────────────── */
.menu-section {
  padding: 40px 20px 20px;
  border-bottom: 1px solid var(--divider);
}
.menu-section:last-child { border-bottom: none; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ── Subsection ─────────────────────────────────── */
.subsection { margin-bottom: 32px; }
.subsection:last-of-type { margin-bottom: 16px; }

.subsection-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

/* ── Item List ──────────────────────────────────── */
.item-list {
  list-style: none;
}

.item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--divider);
}
.item:last-child { border-bottom: none; }

.item-name {
  font-size: 15px;
  color: var(--text);
  flex: 1;
  line-height: 1.4;
}
.item-name small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 1px;
}

.item-price {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.item-price.market {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Two-column list ────────────────────────────── */
@media (min-width: 540px) {
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .two-col .item { border-bottom: 1px dashed var(--divider); }
}

/* ── Drink grid ─────────────────────────────────── */
@media (min-width: 640px) {
  .subsection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
  }
}

/* ── Fish section ───────────────────────────────── */
.fish-section { margin-top: 20px; }
.fish-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.fish-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Price Tables ───────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--divider);
  position: relative;
}

/* Sağ kenar gradient — kaydırılabilir içerik olduğunu gösterir */
.table-wrap.scrollable::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, var(--bg) 90%);
  pointer-events: none;
  border-radius: 0 8px 8px 0;
  transition: opacity .35s;
}
.table-wrap.scrollable.scrolled::after { opacity: 0; }

/* Kaydır ipucu metni */
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 7px;
  padding-left: 1px;
  opacity: 1;
  transition: opacity .35s;
  user-select: none;
}
.scroll-hint.scrolled { opacity: 0; pointer-events: none; }

.scroll-hint-icon {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table thead {
  background: var(--bg-alt);
}

.price-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}

.price-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
  white-space: nowrap;
}
.price-table tbody tr:last-child td { border-bottom: none; }

.price-table tbody tr:hover td { background: var(--bg-alt); }

.price-table td:first-child {
  font-weight: 500;
  white-space: normal;
  min-width: 140px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
  box-shadow: 3px 0 6px -2px rgba(42,33,25,.08);
}
.price-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-alt);
  box-shadow: 3px 0 6px -2px rgba(42,33,25,.08);
}
.price-table tbody tr:hover td:first-child { background: var(--bg-alt); }

.price-table td:not(:first-child) {
  font-family: var(--font-serif);
  font-weight: 600;
  text-align: right;
}
.price-table th:not(:first-child) { text-align: right; }

/* Wine category rows — colspan satırlar sticky dışında */
.wine-category td {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-alt) !important;
  padding: 6px 14px;
  font-weight: 400;
  position: static;
  box-shadow: none;
}

/* Raki table: smaller text on mobile */
.raki-table { font-size: 13px; }
.raki-table td { padding: 8px 10px; }
.raki-table th { padding: 8px 10px; }

/* ── Allergy note ───────────────────────────────── */
.allergy-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: var(--bg);
  text-align: center;
  padding: 40px 20px 48px;
}

.footer-logo {
  height: 65px;
  width: auto;
  margin-bottom: 16px;
  filter: invert(1) brightness(10);
  opacity: .9;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: rgba(245,240,232,.7);
  text-decoration: none;
  padding: 6px 2px;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.footer-link:visited { color: rgba(245,240,232,.7); }
.footer-link:hover   { color: rgba(245,240,232,1); }
.footer-link:active  { color: rgba(245,240,232,.7); }

.footer-dot {
  color: rgba(245,240,232,.35);
  font-size: 18px;
  line-height: 1;
  user-select: none;
}

.footer-allergy {
  font-size: 12px;
  color: rgba(245,240,232,.5);
  margin-top: 16px;
  font-style: italic;
}

/* ── WhatsApp FAB ───────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.whatsapp-fab:hover {
  background: var(--wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}
.whatsapp-fab:active { transform: translateY(0); }

.wa-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Scroll offset for sticky header+nav ───────── */
[id] { scroll-margin-top: calc(var(--header-h) + var(--nav-h) + 16px); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  .whatsapp-fab { padding: 12px 16px 12px 12px; font-size: 13px; bottom: 20px; right: 14px; }
  .menu-section { padding: 28px 16px 16px; }
  .section-title { font-size: 24px; }
  .subsection-title { font-size: 17px; }
  .cat-nav-inner { padding: 0 8px; }
  .cat-link { padding: 0 12px; font-size: 12px; }
}
