/* =====================================================
   KARAMEL QR MENÜ — Public (menü taslağına göre)
   ===================================================== */

:root {
  --espresso: #3a2415;
  --cocoa: #5a3a20;
  --text: #3b2a1c;
  --muted: #8a7158;
  --caramel: #d27d22;
  --caramel-deep: #b3651a;
  --caramel-soft: #f0e3d0;
  --cream: #fbf1e2;
  --paper: #fffdf9;
  --line: rgba(58, 36, 21, 0.10);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--cream); color: var(--text); min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Sayfa kabı — telefon genişliği, ortalanmış */
.app { max-width: 640px; margin: 0 auto; background: var(--paper); min-height: 100vh; box-shadow: 0 0 60px rgba(58,36,21,0.07); }

/* ===== HEADER ===== */
.m-header {
  position: relative;
  background: var(--cream);
  padding: 1.6rem 1.5rem 1.3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.m-logo { height: 76px; width: auto; margin: 0 auto 0.2rem; }
.m-tagline { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--caramel); }

/* Dil toggle */
.lang-toggle {
  position: absolute; top: 1.4rem; right: 1.3rem;
  display: flex; gap: 2px; background: #fff; border: 1px solid var(--line);
  border-radius: 100px; padding: 3px;
}
.lang-btn {
  border: 0; background: transparent; color: var(--muted);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem; border-radius: 100px; transition: all 0.25s var(--ease);
}
.lang-btn.active { background: var(--caramel); color: #fff; }

/* ===== KATEGORİ NAV (yatay dairesel) ===== */
.cat-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,249,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0 0.7rem;
}
.cat-scroll {
  display: flex; gap: 0.4rem; overflow-x: auto;
  padding: 0 1.1rem; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: none; border: 0; padding: 0.2rem 0.35rem; width: 78px;
  scroll-snap-align: start;
}
.cat-pill .circ {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--cream); border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; overflow: hidden; transition: all 0.3s var(--ease);
}
.cat-pill .circ img { width: 100%; height: 100%; object-fit: cover; }
.cat-pill .lbl {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--muted); text-transform: uppercase; line-height: 1.15;
  text-align: center; transition: color 0.3s var(--ease);
}
.cat-pill.active .circ { border-color: var(--caramel); background: #fff; box-shadow: 0 4px 14px rgba(210,125,34,0.22); }
.cat-pill.active .lbl { color: var(--espresso); }

/* ===== KATEGORİ BÖLÜMÜ ===== */
.cat-section { scroll-margin-top: 96px; }
.cat-band {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--caramel);
  color: #fff; padding: 0.85rem 1.4rem;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.01em;
}
.cat-band .band-ic { font-size: 1.15rem; }
.cat-band .band-en { margin-left: auto; font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }

/* ===== ÜRÜN SATIRI ===== */
.product-row {
  display: flex; gap: 1rem; align-items: stretch;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.product-row .p-img {
  width: 84px; height: 84px; border-radius: 12px; flex-shrink: 0;
  object-fit: cover; background: var(--cream);
}
.product-row .p-img-ph {
  width: 84px; height: 84px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cream), #f0e3d0);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.product-row .p-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product-row .p-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--espresso); line-height: 1.2; }
.product-row .p-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin-top: 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-row .p-foot { margin-top: auto; padding-top: 0.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.product-row .p-price { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--caramel); white-space: nowrap; }
.btn-detail {
  border: 1px solid var(--line); background: #fff; color: var(--cocoa);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem; border-radius: 100px; transition: all 0.25s var(--ease);
}
.btn-detail:hover { background: var(--caramel); border-color: var(--caramel); color: #fff; }

/* ===== MODAL (Detaylar) ===== */
.modal-ov {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(40,24,12,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal-ov.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--paper); width: 100%; max-width: 640px;
  border-radius: 24px 24px 0 0; overflow: hidden;
  transform: translateY(100%); transition: transform 0.4s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal-ov.active .modal { transform: none; }
.modal-img { width: 100%; height: 240px; object-fit: cover; background: var(--cream); }
.modal-img-ph { width: 100%; height: 180px; background: linear-gradient(135deg, var(--cream), #f0e3d0); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.modal-body { padding: 1.6rem 1.6rem 2.2rem; position: relative; }
.modal-cat { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--caramel); margin-bottom: 0.4rem; }
.modal h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--espresso); line-height: 1.15; margin-bottom: 0.7rem; }
.modal p { color: var(--muted); font-size: 0.96rem; line-height: 1.7; }
.modal-price { font-family: var(--serif); font-size: 1.5rem; color: var(--caramel); font-weight: 600; margin-top: 1.2rem; }
.modal-close {
  position: absolute; top: -3.4rem; right: 1.2rem;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: #fff; color: var(--espresso); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ===== DURUMLAR ===== */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; gap: 1rem; color: var(--muted); }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--caramel); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 4rem 1.5rem; color: var(--muted); }
.empty .ic { font-size: 3rem; margin-bottom: 0.8rem; }

/* ===== FOOTER ===== */
.m-footer { text-align: center; padding: 2rem 1.5rem 2.5rem; color: var(--muted); font-size: 0.8rem; background: var(--cream); border-top: 1px solid var(--line); }
.m-footer a { color: var(--caramel); font-weight: 700; }
.m-footer .ig { margin-top: 0.4rem; display: block; }

@media (min-width: 641px) {
  .cat-pill .circ { width: 64px; height: 64px; }
}
