:root {
  --accent: #c2410c;
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e1d8;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161412; --card: #211e1b; --ink: #f5f1ea; --muted: #a8a29e; --line: #34302b; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
#app { max-width: 640px; margin: 0 auto; padding-bottom: 104px; }

/* yükleniyor */
.skeleton { padding: 32px 20px; display: grid; gap: 12px; justify-items: center; }
.sk { background: var(--line); border-radius: 10px; animation: pulse 1.2s ease-in-out infinite; }
.sk--logo { width: 72px; height: 72px; border-radius: 50%; }
.sk--line { width: 60%; height: 18px; } .sk--line.short { width: 35%; }
@keyframes pulse { 50% { opacity: .5; } }

/* üst kısım */
.hero { padding: 24px 20px 12px; text-align: center; position: relative; }
.hero__logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; background: var(--card); border: 1px solid var(--line); }
.hero__initial { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 30px; font-weight: 700; }
.hero h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.hero p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.hero__table { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; font-size: 13px; }
.lang { position: absolute; top: 16px; right: 16px; display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--card); }
.lang button { border: 0; background: none; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* kategori çubuğu */
.cats { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cats__row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.cats__row::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cats a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ürünler */
.section { padding: 18px 16px 4px; }
.section h2 { margin: 0 0 10px 4px; font-size: 19px; letter-spacing: -.01em; }
.item { width: 100%; display: flex; gap: 12px; align-items: stretch; text-align: left; padding: 12px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item__name { font-weight: 600; font-size: 16px; }
.item__desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; }
.price { font-weight: 700; font-size: 16px; }
.item__img { flex: none; width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--line); }
.item.is-out { opacity: .55; }
.badge-out { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.qty-pill { margin-left: auto; min-width: 26px; height: 26px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; padding: 0 8px; }

.note { margin: 18px 20px 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.powered { display: block; margin: 10px auto 0; text-align: center; color: var(--muted); font-size: 12px; text-decoration: none; }

/* alt çubuk */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bar__in { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn:disabled { opacity: .5; }
.btn svg { width: 20px; height: 20px; flex: none; }
.count { background: rgba(255,255,255,.25); border-radius: 99px; padding: 0 8px; font-size: 13px; white-space: nowrap; }

/* alt sayfa (sheet) */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: fade .2s; }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; max-height: 90vh; overflow-y: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
.sheet__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); font-size: 22px; line-height: 1; z-index: 1; }
.sheet h3 { margin: 0 0 4px; font-size: 21px; padding-right: 40px; }
.sheet__img { width: calc(100% + 36px); margin: -20px -18px 14px; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px 20px 0 0; }
.sheet p { color: var(--muted); margin: 0 0 14px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.stepper button { width: 40px; height: 44px; border: 0; background: none; font-size: 20px; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; }
.row { display: flex; gap: 10px; align-items: center; }
.cart-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line__name { flex: 1; min-width: 0; font-weight: 500; }
.cart-line__name small { display: block; color: var(--muted); font-weight: 400; }
.cart-line .stepper button { width: 34px; height: 36px; font-size: 18px; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin: 14px 0; }
textarea, input[type=text] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; text-align: center; }
.choice { display: grid; gap: 10px; margin-top: 14px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 30; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 500; transition: .25s; max-width: 90vw; text-align: center; }
.toast.is-on { opacity: 1; transform: translateX(-50%); }

.empty { padding: 60px 24px; text-align: center; color: var(--muted); }
.empty h1 { color: var(--ink); font-size: 22px; }
