/* ===== v2: sol menü, gel-al/paket girişi, indirim, seçim listeleri ===== */

.top { position: relative; }
.top-change { margin-left: auto; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; }
.menu { padding: 0 14px 120px 10px; min-width: 0; }

/* Sol bölüm menüsü: bölümü temsil eden ürün fotoğrafı + ad; kaydırdıkça anlık işaretlenir */
.layout { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: start; }
.layout.searching { grid-template-columns: minmax(0, 1fr); }
.layout.searching .rail { display: none; }
.layout.searching .menu { padding-left: 16px; }
.rail {
  position: sticky; top: var(--fh, 112px);
  max-height: calc(100svh - var(--fh, 112px)); overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 4px; padding: 12px 4px 120px 8px;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item { display: grid; justify-items: center; gap: 4px; padding: 6px 2px 8px; border: 0; background: none; border-radius: 14px; text-align: center; }
.rail-pic { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; overflow: hidden; transition: background 0.2s, transform 0.2s; }
.rail-pic img { width: 46px; height: 46px; object-fit: contain; }
.rail-label { font-size: 11.5px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.rail-item[aria-current='true'] .rail-pic { background: var(--bull); transform: scale(1.06); box-shadow: 2px 2px 0 var(--ink); }
.rail-item[aria-current='true'] .rail-label { color: var(--bull); }
.cat-section { scroll-margin-top: calc(var(--fh, 112px) + 8px); }
.cat-heading { margin-top: 18px; }
.sub-heading { font: 800 15px/1.2 var(--body); color: var(--muted); margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px dashed rgba(29, 22, 22, 0.25); }

.quick { display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 0; }
.quick::-webkit-scrollbar { display: none; }
.filters:focus-within .quick, .filters.searching .quick { display: flex; }
.filters.searching .quick { padding-bottom: 10px; }
.quick-chip { flex: none; border: 1.5px dashed var(--ink); border-radius: 999px; background: #fff; padding: 5px 12px; font-weight: 700; font-size: 13px; }
.tags { padding-top: 8px; }

/* Satır ürünler */
.row { align-items: flex-start; }
.row-thumb { width: 64px; height: 64px; }
.row-thumb-empty { display: block; width: 64px; height: 64px; flex: none; border-radius: 12px; border: 2px dashed rgba(29, 22, 22, 0.25); }
.row-main { display: flex; flex-direction: column; gap: 2px; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-3d { flex: none; align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font: 400 13px/1 var(--display); }
.add-round { align-self: center; }
.card-noimg .card-body { padding-top: 16px; }
.card .sizes { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }

.swap-note { margin: 2px 0 6px; padding: 6px 9px; background: #ffe58a; border-radius: 8px; font-size: 12px; line-height: 1.3; font-weight: 700; color: #4a3a00; }
.swap-note[hidden] { display: none; }
.chk em.free { color: var(--ok); }
.chk input:disabled + span { opacity: 0.45; }
.remove .count { color: var(--bull); }
.line-later { display: block; color: var(--horn); font-size: 14px; font-weight: 700; }

/* Kampanya seçimleri */
.slot-title small { font: 700 14px var(--body); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: block; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 14px; background: #fff; }
.chip input:checked ~ span { background: var(--bull); color: #fff; }
.chip input:focus-visible ~ span { outline: 3px solid var(--ink); outline-offset: 2px; }
.counts { display: grid; gap: 6px; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; min-height: 40px; }
.stepper button:disabled { opacity: 0.3; cursor: default; }
#combo-3d { margin-top: 8px; }

/* Bölünmüş seçim (şube, ödeme, saat) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--stroke); border-radius: 999px; overflow: hidden; background: #fff; }
.seg-btn, .seg label span { display: block; text-align: center; padding: 10px 8px; font-weight: 800; border: 0; background: none; }
.seg-btn + .seg-btn, .seg label + label span { border-left: 2px solid var(--ink); }
.seg-btn[aria-pressed='true'], .seg input:checked + span { background: var(--ink); color: #fff; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg input:focus-visible + span { outline: 3px solid var(--bull); outline-offset: -5px; }
.seg-sm { border-width: 2px; }
.seg-sm label span { padding: 8px 6px; font-size: 14px; }

/* Seçim listesi */
.pick-rows { list-style: none; margin: 12px 0 16px; padding: 0; border-top: 2px dashed var(--ink); max-height: 56svh; overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1.5px dashed rgba(29, 22, 22, 0.25); }
.pick-row img, .pick-row .row-thumb-empty { width: 44px; height: 44px; object-fit: contain; flex: none; }
.pick-row .pick-name { flex: 1; display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; min-width: 0; }
.pick-row .pick-name small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pick-price { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ask-btns { display: grid; gap: 10px; margin-top: 14px; }

.suggest-item { width: 112px; }

/* Teslimat formu */
.contact { border-top: 2px dashed var(--ink); padding-top: 14px; margin-bottom: 8px; display: grid; gap: 12px; }
.contact[hidden] { display: none; }
.contact-title { margin: 0; font: 400 20px/1.1 var(--display); }
.field { display: grid; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 800; font-size: 14px; padding: 0; margin-bottom: 5px; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input:not([type='radio']), .field textarea { width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 11px 12px; font: 600 16px/1.3 var(--body); background: var(--flour); color: var(--ink); }
.field input[type='time'] { margin-top: 8px; }
.chk-sm { min-height: 32px; font-size: 14px; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.fine .btn-link { font-size: 13px; padding: 0; }

.discount-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #e9f6ec; border: 2px solid var(--ok); font-weight: 800; color: #1c5a2b; }
.discount-line small { font-weight: 600; opacity: 0.8; }

/* İndirim şeridi ve penceresi */
.promo-strip {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: calc(100% - 32px); margin: 12px 16px 0;
  border: var(--stroke); border-radius: 14px; background: #fff3c4; padding: 10px 14px; text-align: left; box-shadow: 2px 2px 0 var(--ink);
}
.promo-strip b { font: 400 18px/1 var(--display); color: var(--bull); }
.promo-strip span { font-size: 13px; font-weight: 700; }
.promo-strip.ready { background: #e9f6ec; }
.promo-strip.ready b { color: var(--ok); }
.promo { text-align: center; padding-top: 30px; }
.promo-close { position: absolute; top: 10px; right: 8px; }
.promo-badge {
  width: 132px; height: 132px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--bull); color: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  display: grid; place-content: center; transform: rotate(-8deg);
  animation: badge-in 0.6s cubic-bezier(.3, 1.6, .5, 1) both;
}
.promo-badge b { font: 400 50px/0.9 var(--display); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.promo-badge span { font: 400 18px/1 var(--display); }
@keyframes badge-in { from { transform: scale(0.2) rotate(-90deg); opacity: 0; } }
.promo h2 { font: 400 26px/1.1 var(--display); margin: 4px 0 8px; }
.promo-text { margin: 0 auto 14px; max-width: 34ch; color: var(--muted); font-weight: 600; }
.promo-chk { text-align: left; align-items: flex-start; padding: 10px 12px; border: 2px dashed var(--ink); border-radius: 12px; }
.promo-chk span { font-size: 14px; }
.promo .fine { margin: 8px 0 14px; }
.btn-wa { background: #25d366; color: var(--ink); }
.promo-state { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--flour); font-weight: 700; font-size: 14px; }
.promo-later { color: var(--muted); }
.kvkk-body { max-height: 62svh; overflow-y: auto; font-size: 14px; }
.kvkk-body p { margin: 10px 0; }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40;
  margin: 0 auto; max-width: 480px; padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--pop);
}
.toast.in { animation: toast-in 0.25s ease-out; }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } }

/* ===== Gel-al / paket girişi: tabak düşer, pizza döner, adisyon yükselir ===== */
.home { min-height: 100svh; background: var(--bull); display: flex; flex-direction: column; overflow: hidden; }
.home-hero { position: relative; display: grid; justify-items: center; padding: 22px 16px 0; color: #fff; }
.home-logo { width: 96px; height: auto; animation: fade-down 0.5s ease-out both; }
.home-plate {
  position: relative; width: min(74vw, 330px); aspect-ratio: 1; margin-top: 4px; border-radius: 50%;
  background: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  animation: plate-drop 0.8s 0.15s cubic-bezier(.3, 1.4, .5, 1) both;
}
.home-pizza { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; animation: pizza-in 0.9s 0.35s cubic-bezier(.2, 1.2, .4, 1) both; }
.home-title {
  margin: -30px 0 0; position: relative; text-align: center;
  font: 400 clamp(46px, 14vw, 76px)/0.92 var(--display); color: #fff;
  -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; transform: rotate(-4deg);
  animation: title-up 0.6s 0.7s cubic-bezier(.3, 1.5, .5, 1) both;
}
.home-card {
  margin: 22px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 5px 5px 0 var(--ink);
  display: grid; gap: 10px; animation: card-up 0.6s 0.9s cubic-bezier(.2, 1, .3, 1) both;
}
.home-q { margin: 6px 0 0; font-weight: 800; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode {
  display: grid; justify-items: start; gap: 2px; text-align: left; padding: 14px 12px;
  border: var(--stroke); border-radius: 16px; background: #fff; box-shadow: var(--pop);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
.mode svg { width: 40px; height: 40px; color: var(--bull); margin-bottom: 6px; }
.mode b { font: 400 19px/1.1 var(--display); }
.mode span { font-size: 13px; color: var(--muted); font-weight: 600; }
.mode:hover { background: #fff3c4; }
.mode:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.home-fine { margin: 4px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@keyframes fade-down { from { transform: translateY(-14px); opacity: 0; } }
@keyframes plate-drop { from { transform: translateY(-60px) scale(0.7); opacity: 0; } }
@keyframes pizza-in { from { transform: rotate(-120deg) scale(0.4); opacity: 0; } }
@keyframes pizza-spin { to { transform: rotate(360deg); } }
@keyframes title-up { from { transform: translateY(30px) rotate(-4deg) scale(0.8); opacity: 0; } }
@keyframes card-up { from { transform: translateY(40px); opacity: 0; } }

@media (min-width: 640px) {
  .home { align-items: center; }
  .home-card { width: 100%; max-width: 480px; }
  .layout { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .app, .cart-bar { max-width: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.top-masa { white-space: nowrap; }
.top.remote .top-masa { font-size: 24px; -webkit-text-stroke-width: 4px; }


/* ===== 3. tur ===== */
@keyframes logo-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.size small { display: block; font-size: 11px; font-weight: 600; opacity: 0.75; }
.note-yellow { margin: 8px 0 4px; padding: 7px 10px; background: #ffe58a; border: 2px solid #e0b400; border-radius: 10px; font-size: 13px; font-weight: 700; color: #4a3a00; }
.note-chips { display: flex; gap: 6px; margin-top: 6px; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 9px 16px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font: inherit; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.back-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.pill-hot { background: var(--bull); color: #fff; border-color: var(--bull); }
.chk-img img, .kenar-none { width: 48px; height: 48px; object-fit: contain; flex: none; }
.kenar-none { display: block; border-radius: 50%; background: radial-gradient(circle, #f6d48a 0 52%, #d9a24e 54% 70%, #b9782f 72% 100%); transform: scale(0.82); }
.chk-img { min-height: 56px; }
.line-sauce { display: block; font-size: 12px; font-weight: 700; color: var(--ok); }
.line-gift-tag { padding: 4px 10px; border-radius: 999px; background: #ffe58a; font-weight: 800; font-size: 13px; }
.promo-badge { background: #fff; overflow: hidden; align-content: center; justify-items: center; gap: 0; padding-top: 6px; }
.promo-badge img { width: 92px; height: 92px; object-fit: contain; margin-top: 2px; }
.promo-badge span { color: var(--bull); font-size: 16px; margin-top: -4px; }

/* 5 saniyelik gönderim onayı */
.send-bar { position: sticky; bottom: 0; margin: 14px -4px -4px; padding: 14px; background: var(--ink); color: #fff; border-radius: 14px; display: grid; gap: 10px; }
.send-bar[hidden] { display: none; }
.send-text { margin: 0; display: grid; gap: 2px; }
.send-text span { font-size: 13px; opacity: 0.8; }
.send-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.send-fill { height: 100%; width: 0; background: #ffd23f; border-radius: 99px; }
.send-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ticket.sending .lines, .ticket.sending .contact, .ticket.sending .suggest { opacity: 0.55; pointer-events: none; }
.chk-img { gap: 8px; }
.chk-img img, .kenar-none { width: 40px; height: 40px; }
.chk-img > span:not(.kenar-none) { flex: 1; min-width: 0; font-size: 14px; line-height: 1.2; }
.chk-img em { font-size: 13px; }
.steps { flex-wrap: wrap; gap: 6px; }
.steps li { padding: 4px 10px; font-size: 13px; }
.line-gift-tag { justify-self: end; align-self: center; }

/* İçecek seçeneklerinde görsel */
.chips-img { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips-img .chip { display: flex; align-items: center; }
.chips-img .chip img { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; object-fit: contain; pointer-events: none; z-index: 1; }
.chips-img .chip span { flex: 1; border-radius: 14px; padding: 8px 8px 8px 48px; font-size: 13px; min-height: 48px; display: flex; align-items: center; }
.count-row img { width: 36px; height: 36px; object-fit: contain; }
.count-row span:first-of-type { flex: 1; }

/* Menü: ürün kartları 2'şerli */
.cat-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.cat-section > .cat-heading, .cat-section > .sub-heading, .cat-section > .row { grid-column: 1 / -1; }
.cat-section > .card { margin-bottom: 0; height: 100%; }
.cat-section .card .card-body { padding: 2px 10px 12px; }
.cat-section .card .item-name { font-size: 17px; }
.cat-section .card .item-desc { font-size: 12.5px; -webkit-line-clamp: 2; line-clamp: 2; }
.cat-section .card .sizes { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 5px; }
.cat-section .card .size { padding: 5px 2px; }
.cat-section .card .size b { font-size: 12px; }
.cat-section .card .size span { font-size: 11.5px; }
.cat-section .card .btn { font-size: 14px; padding-left: 8px; padding-right: 8px; }
@media (min-width: 760px) { .cat-section { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* kartlarda alttaki butonlar hep aynı hizada */
.card .card-body { display: flex; flex-direction: column; }
.card .card-actions { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; }
#pizza-body .card { margin: 0; box-shadow: none; border: 0; }
#pizza-body .card-body { padding: 4px 4px 8px; }
#pizza-body .item-desc { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
#pizza-sheet .ticket-head { justify-content: space-between; }
.card { display: flex; flex-direction: column; }
.card .card-body { flex: 1; }

.pills { flex-wrap: wrap; gap: 4px; }
.cat-section .card .pill { font-size: 10.5px; padding: 1px 7px; white-space: nowrap; }

/* İndirim: rozet, çıta, sepet özeti */
.card { position: relative; }
.disc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--bull); color: #fff; font: 400 13px/1 var(--display); padding: 5px 9px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.row-price .was, .ticket-disc s { color: #8a7d7d; font-weight: 600; text-decoration: line-through; }
.row-price .disc-tag { font-style: normal; font-size: 11px; font-weight: 800; color: var(--bull); }
.ticket-disc { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.ticket-disc b { color: var(--ok); text-align: right; }
.ticket-disc s { text-align: right; }
.loy { width: calc(100% - 32px); margin: 12px 16px 0; border: var(--stroke); border-radius: 14px; background: #fff3c4; padding: 10px 14px; box-shadow: 2px 2px 0 var(--ink); display: grid; gap: 4px; }
.loy b { font: 400 18px/1.1 var(--display); color: var(--bull); }
.loy span { font-size: 13px; font-weight: 700; }
.loy-bar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; margin-top: 4px; }
.loy-bar i { display: block; height: 100%; background: var(--bull); border-radius: 999px; transition: width 0.6s; }
.loy.ready { background: #e9f6ec; }
.loy.ready b { color: var(--ok); }
.loy.ready .loy-bar i { background: var(--ok); }
.price-line { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 4px 0; font: 400 15px/1.2 var(--display); }
.price-line s { color: #8a8a8a; font-size: 14px; }
.price-line b { color: var(--bull); font-size: 18px; }

.pick-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 2px solid var(--ink); border-radius: 12px; padding: 11px 14px; font: 600 16px/1.3 var(--body); background: var(--flour); color: var(--muted); text-align: left; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.pick-btn.has { color: var(--ink); }
.pick-btn i { font-style: normal; color: var(--bull); }
.pick-btn[aria-expanded='true'] i { transform: rotate(180deg); }
.pick-panel { border: 2px solid var(--ink); border-radius: 12px; background: var(--flour); padding: 8px; box-shadow: 2px 2px 0 var(--ink); display: grid; gap: 8px; }
.pick-panel[hidden], .pick-list[hidden] { display: none; }
.pick-panel input { width: 100%; border: 2px solid var(--ink); border-radius: 10px; padding: 9px 11px; font: 600 16px/1.3 var(--body); background: #fff; color: var(--ink); }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow-y: auto; }
.pick-list button { border: 2px solid var(--ink); border-radius: 999px; padding: 7px 13px; font: 700 14px/1 var(--body); background: #fff; color: var(--ink); cursor: pointer; }
.pick-list button[aria-selected='true'], .pick-list button:hover { background: var(--bull); color: #fff; }
.pick-empty { margin: 4px; color: var(--muted); font-size: 14px; }
.pick-wrap { position: relative; }
.pick-list.sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; background: var(--flour); border: 2px solid var(--ink); border-radius: 12px; padding: 8px; box-shadow: 2px 2px 0 var(--ink); }
