/* SmartBox — müşteri menüsü (mobil öncelikli, restorana özel tema) */

:root {
  --accent: #9A6B3F;
  --on-accent: #FFFFFF;
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface-2: #EFEBE3;
  --ink: #161512;
  --ink-2: #625D55;
  --ink-3: #9A948A;
  --line: rgba(22, 21, 18, .08);
  --line-2: rgba(22, 21, 18, .14);
  --glass: rgba(247, 244, 238, .82);
  --dock-bg: #161512;
  --dock-ink: #F7F4EE;
  --success: #2E7A4E;
  --danger: #B23E2C;
  --warn: #B07419;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 20px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0F0E0D;
  --surface: #191816;
  --surface-2: #23211E;
  --ink: #F3EFE8;
  --ink-2: #ABA59B;
  --ink-3: #77726A;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --glass: rgba(15, 14, 13, .8);
  --dock-bg: #F3EFE8;
  --dock-ink: #0F0E0D;
  --success: #5DBB84;
  --danger: #E9715C;
  --warn: #E0A84A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--sans); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
@media (min-width: 600px) { body { background: var(--surface-2); } }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.hidden { display: none !important; }

.m-app { position: relative; max-width: 560px; margin: 0 auto; min-height: 100dvh; background: var(--bg); padding-bottom: calc(120px + var(--safe-bottom)); }
@media (min-width: 600px) { .m-app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, .25); } }

/* İskelet */
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-hero { height: 300px; border-radius: 0; }
.sk-pad { padding: 18px var(--gutter); }
.sk-chips { height: 36px; width: 75%; border-radius: 18px; margin-bottom: 30px; }
.sk-title { height: 30px; width: 45%; margin-bottom: 18px; }
.sk-row { display: grid; grid-template-columns: 1fr 104px; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sk-line { height: 13px; margin-bottom: 10px; }
.sk-thumb { width: 104px; height: 104px; border-radius: 18px; }
.w30 { width: 30%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

/* Kahraman alanı */
.hero { position: relative; min-height: 318px; height: 46svh; max-height: 440px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #222; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hero-in 1.4s var(--ease-out) forwards; }
@keyframes hero-in { to { transform: scale(1); } }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .74) 100%); }
.hero.is-plain { color: var(--ink); min-height: 0; height: auto; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--bg); }
.hero.is-plain .hero-content { padding-top: 18px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + var(--safe-top)) 16px 0; }
.hero-logo { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.hero-actions { display: flex; gap: 8px; margin-left: auto; }
.glass-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .22); transition: transform .2s var(--ease), background .2s; }
.glass-btn:active { transform: scale(.92); }
.glass-btn svg { width: 19px; height: 19px; }
.glass-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.hero.is-plain .glass-btn { background: var(--surface); color: var(--ink); border-color: var(--line); backdrop-filter: none; }
.hero-content { padding: 0 var(--gutter) 26px; }
.hero-table { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; letter-spacing: .01em; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin-bottom: 14px; }
.hero.is-plain .hero-table { background: var(--surface); border-color: var(--line); }
.hero-table svg { width: 14px; height: 14px; }
.hero-name { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 12vw, 54px); line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.hero-tagline { margin-top: 10px; font-size: 15px; opacity: .86; max-width: 34ch; text-wrap: pretty; }

.notice { display: flex; align-items: center; gap: 10px; margin: 16px var(--gutter) 0; font-size: 13.5px; color: var(--ink-2); }
.notice::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.mode-banner { display: flex; gap: 14px; align-items: center; margin: 16px var(--gutter) 0; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.mode-banner .mb-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); flex: none; }
.mode-banner .mb-icon svg { width: 19px; height: 19px; }
.mode-banner strong { display: block; font-size: 14px; font-weight: 600; }
.mode-banner span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* Kategori çubuğu */
.sticky-sentinel { height: 1px; margin-top: 12px; }
.cats { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); transition: box-shadow .3s; padding-top: var(--safe-top); }
.cats.is-stuck { box-shadow: 0 1px 0 var(--line); }
.cats-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 6px 10px var(--gutter); flex: 1; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cats-row::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .3s var(--ease), color .3s; }
.cat[aria-current="true"] { background: var(--ink); color: var(--bg); }
.cats-search { flex: none; width: 44px; height: 44px; margin-right: 8px; display: grid; place-items: center; color: var(--ink-2); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .25s; }
.cats.is-stuck .cats-search { opacity: 1; pointer-events: auto; }
.cats-search svg { width: 19px; height: 19px; }

/* Öne çıkanlar */
.featured { padding: 22px 0 6px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.featured .eyebrow { padding: 0 var(--gutter); display: block; margin-bottom: 12px; }
.featured-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
.featured-row::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: 210px; scroll-snap-align: start; text-align: left; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease); }
.fcard:active { transform: scale(.98); }
.fcard-img { aspect-ratio: 5 / 4; background: var(--surface-2); overflow: hidden; }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; }
.fcard-body { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px 14px; }
.fcard-name { font-family: var(--serif); font-size: 19px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard-price { font-size: 13.5px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; flex: none; }

/* Bölümler ve ürünler */
.section { padding: 30px var(--gutter) 0; scroll-margin-top: 60px; }
.section-head { padding-bottom: 6px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -.015em; }
.section-head p { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity .3s; }
.items .item:last-child { border-bottom: 0; }
.item:active .item-name { opacity: .7; }
.item-body { min-width: 0; display: flex; flex-direction: column; }
.item-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.item-tags i { font-style: normal; color: var(--ink-3); opacity: .6; }
.item-name { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; transition: opacity .2s; }
.item-desc { margin-top: 5px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.item-price { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.item-side { position: relative; display: flex; align-items: center; }
.item-side.has-img { align-items: flex-start; }
.item-img { width: 108px; height: 108px; border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.item-img img, .fcard-img img, .isheet-media img { opacity: 0; transition: opacity .5s var(--ease); }
img.is-loaded { opacity: 1 !important; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item.is-out { cursor: default; }
.item.is-out .item-name, .item.is-out .item-desc, .item.is-out .item-price, .item.is-out .item-tags { opacity: .42; }
.item.is-out .item-img img { filter: grayscale(1); opacity: .5 !important; }

.add { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .14); transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s; }
.has-img .add { position: absolute; right: -6px; bottom: -8px; top: auto; border-color: transparent; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .35), 0 0 0 3px var(--bg); }
.add svg { width: 18px; height: 18px; }
.add b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.add.in-cart { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.add:active { transform: scale(.88); }
.add.pop { animation: pop .45s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.8); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
.soldout { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.has-img .soldout { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: var(--glass); backdrop-filter: blur(8px); }

.m-empty { text-align: center; padding: 70px 30px; color: var(--ink-2); }
.m-empty h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--ink); margin-bottom: 6px; }

.m-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px var(--gutter) 10px; font-size: 12px; color: var(--ink-3); text-align: center; }
.m-foot strong { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink-2); }
.m-foot a { display: inline-flex; align-items: center; gap: 6px; opacity: .8; }
.m-foot a svg { width: 12px; height: 12px; }

/* Alt bar: sepet + sipariş durumu */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 12px calc(12px + var(--safe-bottom)); display: grid; gap: 8px; max-width: 560px; margin: 0 auto; pointer-events: none; }
.dock > * { pointer-events: auto; }
.cartbar { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 10px 0 10px; border-radius: 22px; background: var(--dock-bg); color: var(--dock-ink); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55); transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease-out); text-align: left; }
.cartbar.is-visible { transform: none; }
.cartbar:not(.is-visible) { position: absolute; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); }
.cartbar.bump { animation: bump .4s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.025); } }
.cartbar-count { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.cartbar-label { flex: 1; font-weight: 500; font-size: 15px; }
.cartbar-total { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; padding-right: 8px; }

.orderpill { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line-2); color: var(--ink); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .4); text-align: left; animation: rise .5s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.orderpill .op-text { flex: 1; min-width: 0; }
.orderpill strong { display: block; font-size: 14px; font-weight: 600; }
.orderpill span { display: block; font-size: 12.5px; color: var(--ink-2); }
.orderpill svg { width: 18px; height: 18px; color: var(--ink-3); }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin: 0 4px; }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: var(--accent); opacity: .3; animation: ping 1.8s var(--ease-out) infinite; }
.pulse.is-ready { background: var(--success); }
.pulse.is-ready::after { background: var(--success); }
@keyframes ping { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(2.1); opacity: 0; } }

/* Çekmeceler */
.sheet-root { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.sheet-root.is-open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 8, .5); opacity: 0; transition: opacity .4s var(--ease); }
.sheet-root.is-open .sheet-backdrop { opacity: 1; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 18px - var(--safe-top)); background: var(--surface); border-radius: 30px 30px 0 0; display: flex; flex-direction: column; overflow: hidden; transform: translateY(100%); transition: transform .5s var(--ease-out); box-shadow: 0 -10px 60px -20px rgba(0, 0, 0, .4); }
.sheet-root.is-open .sheet { transform: none; }
.sheet-grip { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); z-index: 3; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 22px 6px; flex: none; }
.sheet-head h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; letter-spacing: -.015em; }
.sheet-body { padding: 8px 22px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--surface); flex: none; }
@media (min-width: 600px) {
  .sheet-root { align-items: center; padding: 24px; }
  .sheet { border-radius: 30px; max-height: calc(100dvh - 48px); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .4s var(--ease-out), opacity .3s; }
  .sheet-root.is-open .sheet { opacity: 1; }
  .sheet-grip { display: none; }
  .sheet-foot { padding-bottom: 14px; }
}
.close-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.close-btn svg { width: 17px; height: 17px; }
.close-float { position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 20, 18, .42); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.close-float svg { width: 17px; height: 17px; }
.close-float.on-plain { background: var(--surface-2); color: var(--ink-2); }

/* Ürün detayı */
.isheet .sheet-body { padding: 0; }
.isheet-media { aspect-ratio: 5 / 4; background: var(--surface-2); overflow: hidden; }
.isheet-media img { width: 100%; height: 100%; object-fit: cover; }
.isheet-content { padding: 22px 22px 26px; }
.isheet-content.no-media { padding-top: 30px; padding-right: 64px; }
.isheet-name { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.02; letter-spacing: -.02em; margin-top: 2px; text-wrap: balance; }
.isheet-desc { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.isheet-price { margin-top: 14px; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.note-toggle { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.note-toggle svg { width: 16px; height: 16px; }
.m-input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); font-size: 16px; line-height: 1.4; outline: none; resize: none; transition: border-color .2s, box-shadow .2s; }
.m-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.m-input::placeholder { color: var(--ink-3); }
.note-field { margin-top: 18px; }
.note-field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.isheet-info { margin-top: 22px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); }
.isheet-info svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

.stepper { display: inline-flex; align-items: center; height: 54px; border-radius: 18px; background: var(--surface-2); flex: none; }
.stepper button { width: 48px; height: 54px; display: grid; place-items: center; color: var(--ink); }
.stepper button:disabled { opacity: .3; }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.sm { height: 36px; border-radius: 12px; }
.stepper.sm button { width: 34px; height: 36px; }
.stepper.sm button svg { width: 15px; height: 15px; }
.stepper.sm output { min-width: 16px; font-size: 14px; }

.btn-accent { flex: 1; height: 54px; border-radius: 18px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s var(--ease), opacity .2s; padding: 0 18px; }
.btn-accent:active { transform: scale(.98); }
.btn-accent:disabled { opacity: .5; }
.btn-accent .sep { opacity: .55; font-weight: 400; }
.btn-soft { flex: 1; height: 54px; border-radius: 18px; background: var(--surface-2); font-weight: 500; font-size: 15px; }
.soldout-full { flex: 1; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sepet */
.cart-table { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.cart-table svg { width: 14px; height: 14px; }
.cline { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cline-name { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.cline-note { grid-column: 1; font-size: 13px; color: var(--ink-2); font-style: italic; margin-top: -2px; }
.cline-price { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: 3px; }
.cline .stepper { grid-row: 1 / span 3; grid-column: 2; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; }
.cart-sum span { color: var(--ink-2); font-size: 14px; }
.cart-sum strong { font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.cart-pay { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.cart-pay svg { width: 15px; height: 15px; }

/* Sipariş durumu */
.ostatus { text-align: center; padding: 8px 0 4px; }
.ostatus-icon { width: 76px; height: 76px; margin: 6px auto 18px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ostatus-icon.is-ready, .ostatus-icon.is-served { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.ostatus-icon.is-cancelled { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.ostatus-icon svg { width: 34px; height: 34px; }
.ostatus-icon .draw path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .15s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ostatus h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; letter-spacing: -.02em; }
.ostatus p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.ostatus .ocode { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.steps li::before { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.current::before { background: var(--ink); }
.steps .sdot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); transition: all .4s var(--ease); }
.steps li.done .sdot { background: var(--ink); border-color: var(--ink); }
.steps li.current .sdot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.steps li.done, .steps li.current { color: var(--ink); font-weight: 500; }
.steps time { font-size: 11px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.osum { margin-top: 26px; border-top: 1px solid var(--line); text-align: left; }
.osum-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.osum-line em { display: block; font-size: 12.5px; color: var(--ink-3); }
.osum-line .q { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: 6px; }
.osum-total { display: flex; justify-content: space-between; padding: 14px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.olist-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.olist-item .ol-main { flex: 1; }
.olist-item strong { display: block; font-weight: 500; }
.olist-item span { font-size: 13px; color: var(--ink-2); }
.status-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); }
.status-tag.new, .status-tag.preparing { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.status-tag.ready { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.status-tag.cancelled { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }

/* Arama */
.ssheet .sheet { height: calc(100dvh - 18px - var(--safe-top)); }
.search-head { display: flex; gap: 10px; align-items: center; padding: 22px 16px 10px; flex: none; }
.search-box { position: relative; flex: 1; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search-box .m-input { padding-left: 42px; border-radius: 16px; background: var(--surface-2); border-color: transparent; }
.search-cancel { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 6px; }
.ssheet .sheet-body { padding-top: 0; }
.search-empty { text-align: center; color: var(--ink-3); padding: 50px 20px; font-size: 14px; }
.search-hint { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.search-hint button { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); }

/* Bildirim */
.toasts { position: fixed; left: 50%; top: calc(12px + var(--safe-top)); transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 18px; background: var(--dock-bg); color: var(--dock-ink); font-size: 14px; font-weight: 500; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5); animation: toast-in .5s var(--ease-out); }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast-success svg { color: #7BD3A0; }
.toast-error svg { color: #F09A88; }
[data-theme="dark"] .toast-success svg { color: var(--success); }
[data-theme="dark"] .toast-error svg { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(.97); } }

/* Hata sayfası */
.m-error { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 30px; }
.m-error h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 14px 0 8px; }
.m-error p { color: var(--ink-2); max-width: 30ch; margin: 0 auto 22px; }

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