/* ═══════════════════════════════════════════════════════════
   PASTIRMA ADASI — Ortak Menü Teması
   Kafkas Mutfak stili • 2 sütun grid • Zoom-in hero
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:wght@600;700&display=swap');

/* ── CSS DEĞİŞKENLERİ ── */
:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;

  --bg-gradient: linear-gradient(160deg, #edfaf6 0%, #d4f5ec 50%, #bbeee3 100%);
  --bg-page: #f2fbf8;

  --header-bg: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --header-text: #ffffff;

  --card-bg: #ffffff;
  --card-border: rgba(13, 148, 136, 0.12);
  --card-shadow: 0 2px 12px rgba(13, 148, 136, 0.10), 0 1px 3px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 6px 24px rgba(13, 148, 136, 0.18), 0 2px 8px rgba(0,0,0,0.08);
  --card-radius: 14px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', -apple-system, sans-serif;

  --text-primary:   #0f2e2b;
  --text-secondary: #2d6b65;
  --text-muted:     #5a8a84;
  --text-light:     #8eb5b0;

  --price-color: #0d9488;
  --price-bg:    #e6faf7;

  --badge-premium-bg:   #fef9e7;
  --badge-premium-text: #92650a;
  --badge-premium-border: #fde68a;

  --cat-header-bg: linear-gradient(90deg, #e0f7f4 0%, #f0fdfb 100%);
  --cat-header-border: rgba(13,148,136,0.15);

  --divider: rgba(13, 148, 136, 0.1);
}

/* ══════════════════════════════════════════
   MENÜ ANA SAYFA — Marka Hero Başlık
   ══════════════════════════════════════════ */

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.menu-hero {
  background: var(--header-bg);
  padding: 36px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dekoratif daireler */
.menu-hero::before,
.menu-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.menu-hero::before {
  width: 180px; height: 180px;
  top: -60px; right: -40px;
}
.menu-hero::after {
  width: 120px; height: 120px;
  bottom: -50px; left: -30px;
}

.menu-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
  animation: fadeSlideDown 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.05s;
  backdrop-filter: blur(4px);
}

.menu-hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  animation: fadeSlideDown 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.1s;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.menu-hero-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeSlideDown 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.17s;
}

.menu-hero-divider {
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  margin: 14px auto 0;
  animation: fadeIn 0.8s ease both;
  animation-delay: 0.25s;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg-gradient);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
}

/* ── SAYFA WRAPPER ── */
.page {
  max-width: 695px;
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

@media (min-width: 720px) {
  html, body { background: var(--bg-gradient); }
  .page {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1),
                0 16px 56px rgba(0,0,0,0.25);
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 24px;
    overflow: hidden;
    min-height: calc(100svh - 48px);
  }
}

/* ── HEADER ── */
.qr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(13,148,136,0.3);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.18s;
}
.back-btn:hover  { background: rgba(255,255,255,0.3); }
.back-btn:active { background: rgba(255,255,255,0.15); }

.header-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.header-spacer { width: 40px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   ÜRÜN LİSTESİ — Yatay kart (foto sol, metin sağ)
   ══════════════════════════════════════════ */
.product-list {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ── ÜRÜN KARTI ── */
.product-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--card-radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.product-item:hover  { box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }
.product-item:active { transform: translateY(0); box-shadow: var(--card-shadow); }

/* Foto — kare, sabit boyut */
.product-img,
.product-img-fallback {
  width: 152px;
  height: 152px;
  flex-shrink: 0;
}
.product-img {
  object-fit: cover;
  display: block;
}
.product-img-fallback {
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

/* Bilgi — sağ taraf */
.product-info {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.product-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.badge-premium {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--badge-premium-text);
  background: var(--badge-premium-bg);
  border: 1px solid var(--badge-premium-border);
  border-radius: 5px;
  padding: 2px 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.product-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 900;
  color: var(--price-color);
  background: var(--price-bg);
  border-radius: 8px;
  padding: 4px 10px;
  align-self: flex-start;
  margin-top: 2px;
}
.product-price-label,
.product-portion {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

/* Ok ikonu */
.product-arrow {
  display: flex;
  align-items: center;
  padding-right: 12px;
  color: var(--teal-400);
  flex-shrink: 0;
}

/* ── KATEGORİ BAŞLIĞI ── */
.category-section { margin-bottom: 4px; }

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--cat-header-bg);
  border-bottom: 1px solid var(--cat-header-border);
  border-top: 1px solid var(--cat-header-border);
  margin: 0 0 6px;
}
.category-icon { font-size: 20px; line-height: 1; }
.category-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.category-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

/* ── İÇECEK SATIRI ── */
.drink-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--card-radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  margin: 0 12px 10px;
  transition: box-shadow 0.2s;
}
.drink-item:active { box-shadow: none; }

@media (min-width: 520px) {
  .category-section .drink-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 4px;
  }
  .drink-item { margin: 0; }
}

.drink-img,
.drink-img-fallback {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  flex-shrink: 0;
}
.drink-img { object-fit: cover; background: var(--teal-100); }
.drink-img-fallback {
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.drink-info { flex: 1; min-width: 0; }
.drink-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}
.drink-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drink-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--price-color);
  background: var(--price-bg);
  border-radius: 8px;
  padding: 4px 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── BOŞ DURUM ── */
.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
}
.empty-icon { font-size: 48px; margin-bottom: 14px; }

/* ── FOOTER ── */
.page-footer {
  padding: 28px 24px 36px;
  text-align: center;
  border-top: 1px solid var(--divider);
  margin-top: 8px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   DETAY SAYFASI — Zoom-in hero
   ══════════════════════════════════════════ */

/* Zoom animasyonu */
@keyframes heroZoom {
  from { transform: scale(1.13); opacity: 0.85; }
  to   { transform: scale(1.0);  opacity: 1; }
}

.hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--teal-700);
}

.hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: heroZoom 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    transparent 32%,
    rgba(13,72,66,0.80) 100%
  );
  pointer-events: none;
}

.hero-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero-no-img {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 100%);
  display: flex;
  align-items: flex-end;
  padding: 72px 20px 18px;
}
.hero-no-img .hero-title { position: static; }

.hero-back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  color: #fff;
  border-radius: 50%;
  transition: background 0.18s;
}
.hero-back-btn:active { background: rgba(0,0,0,0.55); }

.detail-body {
  padding: 22px 18px 0;
  background: var(--bg-page);
}
.detail-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--divider);
  flex-wrap: wrap;
}
.detail-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--price-color);
}
.detail-portion {
  font-size: 15px;
  color: var(--text-light);
}
.detail-footer {
  padding: 28px 18px 44px;
  text-align: center;
  background: var(--bg-page);
}
.detail-footer p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.detail-footer a { color: var(--teal-600); text-decoration: none; font-weight: 700; }

/* ── ANİMASYONLAR ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-item { animation: slideUp 0.35s ease both; }
.product-item:nth-child(1) { animation-delay: 0.03s; }
.product-item:nth-child(2) { animation-delay: 0.07s; }
.product-item:nth-child(3) { animation-delay: 0.11s; }
.product-item:nth-child(4) { animation-delay: 0.15s; }
.product-item:nth-child(5) { animation-delay: 0.19s; }
.product-item:nth-child(6) { animation-delay: 0.23s; }
.product-item:nth-child(7) { animation-delay: 0.27s; }
.product-item:nth-child(8) { animation-delay: 0.31s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.drink-item { animation: slideUp 0.35s ease both; }
.drink-item:nth-child(1) { animation-delay: 0.04s; }
.drink-item:nth-child(2) { animation-delay: 0.08s; }
.drink-item:nth-child(3) { animation-delay: 0.12s; }
.drink-item:nth-child(4) { animation-delay: 0.16s; }
.drink-item:nth-child(5) { animation-delay: 0.20s; }
.drink-item:nth-child(6) { animation-delay: 0.24s; }