/* Chill Coffee — müşteri QR menüsü */
:root {
  --ink: #0b0b0c;
  --ink-2: #2a2a2e;
  --muted: #6e6e76;
  --faint: #a3a3ab;
  --paper: #ffffff;
  --soft: #f5f5f3;
  --soft-2: #eeeeeb;
  --line: #ebebe8;
  --green: #0a8f5b;
  --green-ink: #066b43;
  --green-soft: #e7f6ef;
  /* Kafenin duvar ve koltuk rengi (bordo) — siyahla birlikte vurgu rengi */
  --wine: #55031d;
  --wine-2: #7d1233;
  --wine-3: #a3183f;
  --wine-soft: #f8ecef;
  --wine-tint: #f0a9b9;
  --gold: #f5b400;
  --red: #d93a2b;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 10px 30px rgba(11, 11, 12, .10), 0 2px 6px rgba(11, 11, 12, .05);
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--wine); color: #fff; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.app { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.app.has-cart { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 96px); }

/* ---------- Üst alan ---------- */
.hero {
  position: relative;
  /* Alt 3 piksel beyaz: dalga ile sayfa arasında ince çizgi kalmasın */
  background: linear-gradient(to bottom, var(--ink) calc(100% - 3px), #fff calc(100% - 3px));
  color: #fff;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-bottom: 40px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 3px 0; pointer-events: none;
  background: radial-gradient(70% 90% at 88% 38%, rgba(125, 18, 51, .62), rgba(85, 3, 29, .22) 55%, transparent 78%);
}
.hero .wrap { position: relative; }
.hero-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.hero-logo { height: 40px; width: auto; filter: invert(1); mix-blend-mode: screen; justify-self: start; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink);
  height: 40px; padding: 0 14px; border-radius: 999px;
  font-weight: 700; font-size: 14.500px; letter-spacing: -.01em;
  max-width: 46vw; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.pill span { overflow: hidden; text-overflow: ellipsis; }
.pill svg { flex: none; }
.pill.is-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #19c37d; flex: none;
  box-shadow: 0 0 0 0 rgba(25, 195, 125, .6); animation: pulse 2s infinite;
}
.pill.is-live > svg:first-of-type { display: none; }
.hero-gift {
  justify-self: end; position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  display: grid; place-items: center;
}
.hero-gift i, .tabbar i {
  position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--wine-3); border: 2px solid var(--ink);
}

.banners {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 14px -16px 0; scrollbar-width: none;
}
.banners::-webkit-scrollbar { display: none; }
.banner {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
  padding: 6px 16px 0; min-height: 168px;
}
.banner-tag {
  display: inline-block; font-size: 11.500px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wine-tint); margin-bottom: 8px;
}
.banner h2 { font-size: clamp(24px, 6.600vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.banner p { margin-top: 10px; color: rgba(255, 255, 255, .72); font-size: 14px; max-width: 30ch; }
.banner-art { justify-self: end; width: min(100%, 220px); aspect-ratio: 1; margin-right: -8px; }
.banner-art svg { width: 100%; height: 100%; overflow: visible; }
.float-a { animation: floaty 5s ease-in-out infinite; transform-origin: center; }
.float-b { animation: floaty 6s ease-in-out -2s infinite; transform-origin: center; }
.tw { animation: twinkle 2.400s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.tw2 { animation-delay: -.8s; } .tw3 { animation-delay: -1.600s; }
.dots { display: flex; gap: 6px; margin-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .32); transition: all .3s; }
.dots i.on { width: 18px; background: #fff; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 34px; display: block; }

@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) } 50% { opacity: .35; transform: scale(.7) } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 195, 125, .55) } 70% { box-shadow: 0 0 0 8px rgba(25, 195, 125, 0) } 100% { box-shadow: 0 0 0 0 rgba(25, 195, 125, 0) } }

/* ---------- Sabit kategori çubuğu ---------- */
.stickybar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateY(-110%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.stickybar.show { transform: none; }
.stickybar-in { padding: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--soft); font-weight: 700; font-size: 13.500px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.chip.on { background: var(--ink); color: #fff; }

/* ---------- Kategori ikonları ---------- */
.cats {
  display: flex; gap: 6px; overflow-x: auto; margin: 6px -16px 0; padding: 4px 12px 6px;
  scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 12px;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; width: 78px; display: grid; justify-items: center; gap: 6px;
  padding: 6px 2px; border-radius: 16px; scroll-snap-align: start;
  transition: transform .15s;
}
.cat:active { transform: scale(.94); }
.cat-ico { width: 62px; height: 62px; display: grid; place-items: center; }
.cat-ico img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); }
.cat:hover .cat-ico img { transform: translateY(-3px) scale(1.06); }
.cat span { font-size: 12.500px; font-weight: 700; text-align: center; line-height: 1.15; letter-spacing: -.01em; }

/* ---------- Uyarı şeridi ---------- */
.notice {
  display: flex; gap: 12px; align-items: center;
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--soft); font-size: 13.500px; color: var(--ink-2); font-weight: 500;
}
.notice b { font-weight: 800; color: var(--ink); }
.notice svg { flex: none; }
.notice.warn { background: #fff4e5; color: #7a4a00; }

/* ---------- Şans kartı ---------- */
.luck {
  margin-top: 14px; padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #f8e9ed 0%, #fbf2f1 55%, #fff6e2 100%);
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  position: relative; overflow: hidden;
}
.luck h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.luck p { color: #6a3f4a; font-size: 13.500px; margin-top: 2px; }
.luck-ico { grid-row: span 2; width: 64px; height: 64px; }
.luck-ico img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.luck-meter { grid-column: 1 / -1; margin-top: 12px; }
.luck-bar { height: 10px; border-radius: 999px; background: rgba(85, 3, 29, .12); overflow: hidden; }
.luck-bar i {
  display: block; height: 100%; width: 8%; border-radius: 999px;
  background: linear-gradient(90deg, var(--wine), var(--wine-3) 62%, #f5b400);
  transition: width 1.200s cubic-bezier(.2, .8, .2, 1);
  position: relative;
}
.luck-bar i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 2.800s infinite;
}
@keyframes shine { to { transform: translateX(100%) } }
.luck-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.500px; font-weight: 700; color: var(--wine); }
.luck-meta span:last-child { color: #7a6200; }
.luck-big { margin-top: 0; }

/* ---------- Bölümler ---------- */
.sec { margin-top: 28px; scroll-margin-top: 70px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.sec-head span { color: var(--muted); font-size: 13px; font-weight: 600; }
.sec-head h2::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); margin-left: 6px; vertical-align: baseline; }

.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 150px; scroll-snap-align: start; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }

.card { display: block; text-align: left; position: relative; transition: transform .15s; width: 100%; }
.card:active { transform: scale(.97); }
.card-img {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--soft);
  display: grid; place-items: center; overflow: hidden;
}
.card-img img {
  width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.300);
}
.card:hover .card-img img { transform: scale(1.07) rotate(-2deg); }
.ph { width: 44%; height: 44%; color: #cfcfca; }
.card-add {
  position: absolute; right: 8px; bottom: 8px;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px;
  background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(11, 11, 12, .14);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.card-add.has { background: var(--wine); color: #fff; }
.card-badge {
  position: absolute; left: 8px; top: 8px; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--wine); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px;
}
.card h3 { margin-top: 9px; font-size: 14.500px; font-weight: 700; letter-spacing: -.015em; line-height: 1.22; }
.card .price { display: block; margin-top: 3px; color: var(--muted); font-weight: 600; font-size: 13.500px; }
.card.out .card-img img { opacity: .35; filter: grayscale(1); }
.card.out .card-add { display: none; }
.card.out .card-badge { background: var(--ink); }

.foot { margin: 44px 0 8px; display: grid; justify-items: center; gap: 6px; color: var(--faint); font-size: 12px; }
.foot img { height: 40px; width: auto; opacity: .9; }
.foot-link { color: var(--wine); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Diğer sekmeler ---------- */
.view-title { font-size: 30px; font-weight: 800; letter-spacing: -.035em; padding: calc(env(safe-area-inset-top, 0px) + 22px) 0 14px; }
.searchbox {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  background: var(--soft); border-radius: 999px; color: var(--muted);
}
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 600; }
.searchbox input::placeholder { color: var(--faint); font-weight: 500; }
#searchResults { margin-top: 18px; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 10px; mix-blend-mode: multiply; }
.empty h3 { color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.empty p { margin-top: 6px; font-size: 14px; }

/* Sipariş kartı */
.order {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; background: #fff;
}
.order.live { border-color: transparent; box-shadow: var(--shadow); }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-top h3 { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.order-top small { color: var(--muted); font-weight: 600; font-size: 12.500px; }
.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; background: var(--soft); color: var(--ink-2); white-space: nowrap;
}
.badge.new { background: #fff1d6; color: #7a4a00; }
.badge.open { background: #e4efff; color: #0b4aa8; }
.badge.done { background: var(--green-soft); color: var(--green-ink); }
.badge.cancelled { background: #fde8e6; color: #9b2319; }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 4px; }
.track i { height: 6px; border-radius: 999px; background: var(--soft-2); position: relative; overflow: hidden; }
.track i.on { background: var(--wine); }
.track i.cur::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: shine 1.400s infinite; transform: translateX(-100%);
}
.track-text { font-size: 13.500px; font-weight: 700; margin-top: 8px; }
.track-text small { display: block; color: var(--muted); font-weight: 500; margin-top: 1px; }
.order-items { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; }
.order-items div { display: flex; justify-content: space-between; gap: 12px; }
.order-items em { font-style: normal; color: var(--muted); font-size: 12.500px; display: block; }
.order-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-weight: 800; }
.linkbtn { font-weight: 800; font-size: 13.500px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); }

/* Hediye kartı */
.gift {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--r-lg); margin-top: 12px;
  background: linear-gradient(135deg, #0b0b0c 25%, var(--wine)); color: #fff; position: relative; overflow: hidden;
}
.gift::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 24, 63, .55), transparent 70%);
}
.gift-img { width: 76px; height: 76px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.gift-img img { width: 88%; height: 88%; object-fit: contain; }
.gift h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.gift p { color: rgba(255, 255, 255, .7); font-size: 13px; margin-top: 2px; }
.gift-code {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .12); font-weight: 800; letter-spacing: .14em; font-size: 14px;
  border: 1px dashed rgba(255, 255, 255, .35);
}
.gift-code small { letter-spacing: 0; font-weight: 600; color: rgba(255, 255, 255, .65); font-size: 11.500px; }
.gift.used { background: var(--soft); color: var(--muted); }
.gift.used::before { display: none; }
.gift.used h3 { color: var(--ink-2); }
.gift.used p { color: var(--muted); }
.gift.used .gift-code { background: #fff; border-color: var(--line); color: var(--muted); }
.gift.used .gift-code small { color: var(--faint); }
.gift.used .gift-img img { filter: grayscale(1); opacity: .6; }

/* ---------- Sepet çubuğu & alt menü ---------- */
.cartbar {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
  width: min(calc(100% - 32px), 460px); height: 58px; padding: 0 8px 0 8px;
  border-radius: 999px; background: var(--ink); color: #fff;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  box-shadow: 0 14px 34px rgba(11, 11, 12, .32);
  animation: rise .35s cubic-bezier(.2, .9, .3, 1.200);
}
.cartbar-count { min-width: 42px; height: 42px; border-radius: 999px; background: var(--wine-3); color: #fff; display: grid; place-items: center; font-weight: 800; }
.cartbar-label { font-weight: 800; font-size: 15.500px; text-align: left; }
.cartbar-total { font-weight: 800; padding-right: 14px; }
.cartbar.bump .cartbar-count { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.25) } }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0 } }

.tabbar {
  position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--faint); font-size: 11.500px; font-weight: 700; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.900; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tabbar button.on { color: var(--ink); }
.tabbar button.on svg { fill: var(--ink); stroke: var(--ink); transform: translateY(-1px); }
.tabbar button[data-tab="search"].on svg, .tabbar button[data-tab="orders"].on svg { fill: none; stroke-width: 2.600; }
.tabbar button[data-tab="gifts"].on svg { fill: none; stroke-width: 2.500; }
.tabbar i { top: 10px; right: calc(50% - 18px); border-color: #fff; }

/* ---------- Alt sayfa (sheet) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(11, 11, 12, .5); animation: fade .25s; }
@keyframes fade { from { opacity: 0 } }
.sheet {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
  max-height: 92dvh; display: flex; flex-direction: column;
  background: #fff; border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
  animation: sheetUp .34s cubic-bezier(.2, .9, .25, 1);
}
.sheet.closing { animation: sheetDown .22s ease-in forwards; }
.scrim.closing { animation: fadeOut .22s forwards; }
@keyframes sheetUp { from { transform: translateY(100%) } }
@keyframes sheetDown { to { transform: translateY(100%) } }
@keyframes fadeOut { to { opacity: 0 } }
.sheet-grip { width: 40px; height: 5px; border-radius: 999px; background: var(--soft-2); margin: 8px auto 0; flex: none; }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: grid; place-items: center;
}
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 18px calc(18px + var(--safe-b)); -webkit-overflow-scrolling: touch; }

.p-hero { position: relative; border-radius: var(--r-lg); background: var(--soft); aspect-ratio: 16 / 11; margin-top: 6px; overflow: hidden; }
.p-hero .ph { position: absolute; inset: 28%; width: 44%; height: 44%; }
.p-hero img { position: absolute; inset: 3%; width: 94%; height: 94%; object-fit: contain; mix-blend-mode: multiply; animation: pop .5s cubic-bezier(.2, .9, .3, 1.400); }
@keyframes pop { from { transform: scale(.7); opacity: 0 } }
.p-title { margin-top: 16px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.p-price { margin-top: 2px; font-size: 17px; font-weight: 800; color: var(--wine); }
.p-desc { margin-top: 8px; color: var(--muted); }
.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.field label small { font-weight: 600; color: var(--faint); }
.input {
  width: 100%; border: 1.500px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px;
  font-size: 16px; outline: 0; transition: border-color .2s, box-shadow .2s; resize: none;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 11, 12, .06); }
.input.err { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 58, 43, .1); }
.sheet-cta { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 18px; align-items: center; }
.sheet-cta.solo { grid-template-columns: 1fr; }
.stepper { display: inline-grid; grid-template-columns: 44px 30px 44px; align-items: center; height: 54px; border-radius: 999px; background: var(--soft); text-align: center; font-weight: 800; font-size: 16px; }
.stepper button { height: 100%; font-size: 22px; font-weight: 600; border-radius: 999px; }
.stepper button:active { background: var(--soft-2); }
.stepper.sm { grid-template-columns: 34px 24px 34px; height: 38px; font-size: 14px; }
.stepper.sm button { font-size: 18px; }
.btn {
  height: 54px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; width: 100%;
  transition: transform .15s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.green { background: var(--green); }
.btn .sep { opacity: .5; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.500px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg) } }

.sheet-title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 8px 44px 4px 0; }
.sheet-sub { color: var(--muted); font-size: 14px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 56px; height: 56px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.line-img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.line h4 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.line small { color: var(--muted); font-size: 12.500px; display: block; }
.line b { font-weight: 700; font-size: 13.500px; color: var(--ink-2); }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--muted); }
.sum strong { font-size: 24px; color: var(--ink); letter-spacing: -.03em; font-weight: 800; }
.hint { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--wine-soft); color: var(--wine); font-size: 13.500px; font-weight: 600; }
.hint img { width: 30px; height: 30px; mix-blend-mode: multiply; flex: none; }

/* Sipariş alındı ekranı */
.done { text-align: center; padding: 18px 4px 6px; }
.done-check { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; background: var(--green); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, .9, .3, 1.500); box-shadow: 0 0 0 12px var(--green-soft); }
.done-check svg { width: 46px; height: 46px; stroke: #fff; stroke-width: 3.400; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }
.done h2 { margin-top: 24px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.done p { margin-top: 6px; color: var(--muted); }
.done .luck { text-align: left; margin-top: 20px; }
.done .btn { margin-top: 16px; }

/* ---------- Hediye kazanma ekranı ---------- */
.win { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(11, 11, 12, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
.win canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.win-card { position: relative; width: min(100%, 380px); background: #fff; border-radius: 30px; padding: 26px 22px 22px; text-align: center; animation: winIn .6s cubic-bezier(.2, .9, .3, 1.350); }
@keyframes winIn { from { transform: scale(.6) rotate(-4deg); opacity: 0 } }
.win-img { width: 168px; height: 168px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff7d6, #f8e4e9 70%); display: grid; place-items: center; }
.win-img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; animation: floaty 3s ease-in-out infinite; }
.win-kicker { margin-top: 16px; font-size: 12.500px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wine-3); }
.win-card h2 { margin-top: 6px; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.win-card p { margin-top: 8px; color: var(--muted); }
.win-code { margin: 16px auto 0; display: inline-grid; gap: 2px; padding: 10px 22px; border-radius: 16px; border: 2px dashed var(--ink); }
.win-code small { font-size: 11.500px; font-weight: 700; color: var(--muted); }
.win-code b { font-size: 26px; letter-spacing: .2em; font-weight: 800; padding-left: .2em; }
.win-card .btn { margin-top: 18px; }
.win-card .btn.green { background: var(--wine); }
.win-code { border-color: var(--wine); }
.win-code b { color: var(--wine); }

/* ---------- Bildirim baloncukları ---------- */
.toasts { position: fixed; z-index: 90; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 12px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 440px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 18px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: toastIn .35s cubic-bezier(.2, .9, .3, 1.300); text-align: center; }
.toast.out { animation: toastOut .3s forwards; }
.toast.err { background: var(--red); }
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0 } }
@keyframes toastOut { to { transform: translateY(-20px); opacity: 0 } }

/* ---------- Geniş ekranlar ---------- */
@media (min-width: 600px) {
  .wrap { padding: 0 28px; }
  .banners { margin-left: 0; margin-right: 0; gap: 28px; }
  .banner { padding-left: 0; padding-right: 0; min-height: 220px; }
  .banner-art { width: 240px; margin-right: 12px; }
  .cats { margin: 10px 0 0; padding-left: 0; gap: 14px; }
  .cat { width: 92px; }
  .cat-ico { width: 72px; height: 72px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
  .rail { margin: 0; padding: 0 0 4px; scroll-padding: 0; }
  .rail .card { flex-basis: 176px; }
  .chips { padding-left: 28px; padding-right: 28px; }
  .luck { padding: 20px 22px; }
  .luck h2 { font-size: 20px; }
}
@media (min-width: 860px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding-bottom: 56px; }
  .hero-wave { height: 48px; }
  .banner h2 { font-size: 46px; }
  .banner p { font-size: 16px; }
  .banner-art { width: 280px; }
  .sec-head h2 { font-size: 26px; }
  /* Masaüstünde alt menü ortada yüzen bir hap olur */
  .tabbar {
    left: 50%; right: auto; transform: translateX(-50%); bottom: 18px; width: 420px; height: 64px; padding-bottom: 0;
    border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .cartbar { bottom: 96px; }
  .app { padding-bottom: 130px; }
  .app.has-cart { padding-bottom: 190px; }
  /* Alt sayfalar ortada pencere olarak açılır */
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 480px; max-height: 88vh; border-radius: 28px; transform: translate(-50%, -50%); animation: modalIn .3s cubic-bezier(.2, .9, .25, 1); }
  .sheet.closing { animation: modalOut .2s forwards; }
  .sheet-grip { visibility: hidden; }
  .view-title { font-size: 36px; }
  #ordersList, #giftsList, .luck-big, .searchbox { max-width: 640px; }
}
@keyframes modalIn { from { transform: translate(-50%, -46%); opacity: 0 } }
@keyframes modalOut { to { transform: translate(-50%, -46%); opacity: 0 } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
