/* ATOM QR Menü — müşteri tarafı */
:root {
  --bg: #0d0f14; --bg2: #151821; --card: #1a1e29; --line: rgba(255,255,255,.08);
  --tx: #f4f5f8; --mu: #9aa1b2; --acc: #ff6a2b;
  --r: 20px; --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.light { --bg: #f6f6f4; --bg2: #ffffff; --card: #ffffff; --line: rgba(15,20,30,.08); --tx: #15181f; --mu: #6c7385; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body.qr { background: var(--bg); color: var(--tx); font-family: var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 720px; margin: 0 auto; }

/* ---------- Karşılama ---------- */
.hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--acc) 55%, transparent), transparent 60%), linear-gradient(160deg, #1b1f2c, #0d0f14); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: zoom 18s ease-in-out infinite alternate; }
@keyframes zoom { to { transform: scale(1.14); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 30%, rgba(13,15,20,.75) 70%, var(--bg) 100%); }
.light .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 75%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 2; width: 100%; padding: 28px 22px 26px; text-align: center; color: #fff; }
.logo { width: 92px; height: 92px; border-radius: 28px; margin: 0 auto 14px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.35); display: grid; place-items: center; font-weight: 800; font-size: 2rem; color: var(--acc); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.05; margin: 0 0 8px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero p { margin: 0; color: rgba(255,255,255,.85); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; margin-bottom: 14px; color: #fff; }

.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 44px); max-width: 520px; margin: 0 auto; padding: 18px; border-radius: 20px;
       background: var(--acc); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 14px 34px color-mix(in srgb, var(--acc) 45%, transparent); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.cta i { font-size: 1.15rem; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 22px 4px; }
.quick a, .quick button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
       color: var(--tx); font: 600 .78rem var(--font); cursor: pointer; }
.quick i { font-size: 1.25rem; color: var(--acc); }

.sec { padding: 22px 22px 0; }
.sec h2 { font-size: 1.15rem; margin: 0 0 12px; font-weight: 800; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card p { margin: 0; color: var(--mu); line-height: 1.6; white-space: pre-line; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }

.blocks { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 22px 4px; margin: 0 -22px; scrollbar-width: none; }
.blocks::-webkit-scrollbar { display: none; }
.block { flex: 0 0 82%; scroll-snap-align: center; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); position: relative; }
.block:only-child { flex-basis: 100%; }
.block .im { aspect-ratio: 16/10; background: var(--bg2); }
.block .im img { width: 100%; height: 100%; object-fit: cover; }
.block .tx { padding: 14px 16px 16px; }
.block b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.block span { color: var(--mu); font-size: .88rem; line-height: 1.45; }

.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row i { color: var(--acc); width: 20px; text-align: center; margin-top: 3px; }
.info-row div { flex: 1; }
.info-row small { display: block; color: var(--mu); font-size: .78rem; }
.foot { text-align: center; color: var(--mu); font-size: .78rem; padding: 34px 22px 40px; }

/* ---------- Menü ---------- */
.mh { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.mh-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; }
.ib { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--tx); flex-shrink: 0; cursor: pointer; font-size: 1rem; }
.mh-title { flex: 1; min-width: 0; }
.mh-title b { display: block; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-title small { color: var(--mu); font-size: .76rem; }
.search { display: none; padding: 0 16px 10px; }
.search.on { display: block; }
.search input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--tx); font: 500 1rem var(--font); outline: none; }
.search input:focus { border-color: var(--acc); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex-shrink: 0; padding: 9px 15px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--mu); white-space: nowrap; transition: all .15s; }
.cats a.on { background: var(--acc); border-color: var(--acc); color: #fff; }

.cat-sec { padding: 22px 16px 4px; scroll-margin-top: 130px; }
.cat-sec h2 { font-size: 1.3rem; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; }
.cat-sec h2 small { color: var(--mu); font-size: .8rem; font-weight: 600; }

/* Öne çıkan (ilk) kategori: büyük kartlar */
.feat { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.feat::-webkit-scrollbar { display: none; }
.fcard { flex: 0 0 74%; max-width: 330px; scroll-snap-align: start; border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 4/5; background: var(--card); cursor: pointer; }
.fcard img { width: 100%; height: 100%; object-fit: cover; }
.fcard .ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.fcard .tx { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff; }
.fcard b { display: block; font-size: 1.08rem; line-height: 1.25; }
.fcard .pr { display: inline-block; margin-top: 8px; background: var(--acc); padding: 5px 11px; border-radius: 99px; font-weight: 800; font-size: .9rem; }

.items { display: grid; gap: 10px; }
.item { display: flex; gap: 14px; padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .1s; }
.item:active { transform: scale(.985); }
.item .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item b { font-size: .98rem; line-height: 1.3; }
.item .ds { color: var(--mu); font-size: .82rem; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .pr { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--acc); font-size: 1rem; }
.item .im { width: 104px; height: 104px; border-radius: 16px; overflow: hidden; flex-shrink: 0; background: var(--bg2); }
.item .im img { width: 100%; height: 100%; object-fit: cover; }
.item .tag { display: inline-block; font-size: .68rem; font-weight: 700; color: var(--mu); margin-top: 6px; }
.empty { text-align: center; color: var(--mu); padding: 50px 20px; }

/* Ürün detayı (alt sayfa) */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 720px; margin: 0 auto; max-height: 92vh; overflow-y: auto; background: var(--bg2);
         border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
.sheet.on { transform: none; } .sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet .im { aspect-ratio: 4/3; background: var(--card); position: relative; }
.sheet .im img { width: 100%; height: 100%; object-fit: cover; }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 14px; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(8px); }
.sheet .grab { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 42px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.6); }
.sheet .bd { padding: 20px 20px 28px; }
.sheet h3 { font-size: 1.4rem; margin: 0 0 6px; line-height: 1.2; }
.sheet .pr { font-size: 1.35rem; font-weight: 800; color: var(--acc); margin-bottom: 12px; }
.sheet .ds { color: var(--mu); line-height: 1.65; white-space: pre-line; }
.og { margin-top: 18px; }
.og b { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; }
.og b small { color: var(--mu); font-weight: 600; }
.og .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.og .opts span { padding: 7px 11px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
.og .opts span em { font-style: normal; color: var(--acc); margin-left: 4px; }

.totop { position: fixed; right: 16px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 16px; border: 0; background: var(--acc); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.3);
         opacity: 0; pointer-events: none; transition: opacity .2s; cursor: pointer; }
.totop.on { opacity: 1; pointer-events: auto; }

.fade-in { animation: up .45s both; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 720px) { .items { grid-template-columns: 1fr 1fr; } .item .im { width: 96px; height: 96px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Masadan sipariş ---------- */
.addrow { display: flex; gap: 10px; margin-top: 22px; position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(transparent, var(--bg2) 30%); }
.qty { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px; }
.qty button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--tx); font: 800 1.2rem var(--font); cursor: pointer; }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.qty.sm button { width: 34px; height: 34px; font-size: 1rem; }
.addbtn, .send { flex: 1; border: 0; border-radius: 16px; background: var(--acc); color: #fff; font: 800 1.02rem var(--font); padding: 15px; cursor: pointer;
                 box-shadow: 0 10px 24px color-mix(in srgb, var(--acc) 40%, transparent); display: flex; align-items: center; justify-content: center; gap: 8px; }
.send { width: 100%; margin-top: 16px; } .send:disabled { opacity: .6; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
.cartbar button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 18px; padding: 15px 18px; background: var(--acc); color: #fff; font: 800 1rem var(--font);
                  box-shadow: 0 14px 34px rgba(0,0,0,.35); cursor: pointer; }
.cartbar .cnt { background: rgba(0,0,0,.22); border-radius: 10px; padding: 3px 10px; }
.cartbar span:nth-child(2) { flex: 1; text-align: left; }
body.has-cart .totop { bottom: 88px; }
body.has-cart .mybtn { bottom: 88px; }
.mybtn { position: fixed; left: 16px; bottom: 18px; z-index: 30; border: 1px solid var(--line); background: var(--card); color: var(--tx); border-radius: 16px; padding: 12px 16px; font: 700 .88rem var(--font); box-shadow: 0 10px 24px rgba(0,0,0,.25); cursor: pointer; }
.mybtn i { color: var(--acc); margin-right: 4px; }
.callbtn { position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; border: 0; background: var(--acc); color: #fff; border-radius: 16px; padding: 14px 18px; font: 800 .95rem var(--font); box-shadow: 0 10px 24px rgba(0,0,0,.3); cursor: pointer; max-width: calc(100vw - 96px); }
.callbtn.up { bottom: calc(84px + env(safe-area-inset-bottom)); }
.callbtn.done { background: #1f9d5c; }
.callbtn:disabled { cursor: default; }
#cartSheet .sh-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; position: sticky; top: 0; background: var(--bg2); z-index: 2; }
#cartSheet .sh-h b { font-size: 1.25rem; }
.x2 { width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--tx); font-size: 1.3rem; cursor: pointer; }
.cl { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl .t { flex: 1; min-width: 0; } .cl .t b { display: block; font-size: .95rem; }
.cl .t small { display: block; color: var(--mu); font-size: .78rem; margin-top: 2px; line-height: 1.4; }
.cl .t span { color: var(--acc); font-weight: 800; font-size: .9rem; }
.fl { display: block; margin-top: 14px; font-weight: 700; font-size: .85rem; } .fl small { color: var(--mu); font-weight: 600; }
.fl input, .fl textarea, .cp input { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--tx); font: 500 .95rem var(--font); outline: none; resize: none; }
.fl input:focus, .fl textarea:focus, .cp input:focus { border-color: var(--acc); }
.cp { display: flex; gap: 8px; margin-top: 14px; } .cp input { margin: 0; text-transform: uppercase; }
.cp button { border: 1px solid var(--acc); color: var(--acc); background: transparent; border-radius: 14px; padding: 0 18px; font: 800 .9rem var(--font); cursor: pointer; }
.tot { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.tot div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--mu); }
.tot .dc { color: #2fbf71; } .tot .g { color: var(--tx); font-weight: 800; font-size: 1.15rem; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.hint { color: var(--mu); font-size: .8rem; text-align: center; margin: 12px 0 0; }
.mo { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px; margin-top: 12px; }
.mo .mh2 { display: flex; justify-content: space-between; align-items: center; }
.badge2 { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(255,166,61,.18); color: #ffb35c; }
.st-onaylandi .badge2 { background: rgba(47,191,113,.16); color: #39cf80; }
.st-iptal .badge2, .st-reddedildi .badge2 { background: rgba(240,68,56,.15); color: #ff7a70; }
.light .badge2 { color: #b45f06; } .light .st-onaylandi .badge2 { color: #12864d; } .light .st-iptal .badge2, .light .st-reddedildi .badge2 { color: #c4321f; }
.mo ul { margin: 10px 0; padding-left: 18px; color: var(--mu); font-size: .88rem; line-height: 1.5; }
.mo .mf { display: flex; justify-content: space-between; align-items: center; }
.mo .mf button { border: 1px solid #ff7a70; color: #ff7a70; background: transparent; border-radius: 12px; padding: 8px 12px; font: 700 .82rem var(--font); cursor: pointer; }
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 2147483200; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: .9rem; max-width: 90vw; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.toast.ok { background: #1f9d5c; color: #fff; } .toast.err { background: #e5484d; color: #fff; }

/* Gel-al / adrese teslim seçimi */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.seg button { border: 1px solid var(--line); background: var(--card); color: var(--tx); border-radius: 14px; padding: 12px 8px; font: 700 .9rem var(--font); cursor: pointer; }
.seg button.on { border-color: var(--acc); color: var(--acc); }
