/* Sipariş Market — mobil öncelikli, modern yemek uygulaması tasarımı */
.sm-app {
    --sm-primary: #ff6b1a;
    --sm-soft: color-mix(in srgb, var(--sm-primary) 12%, #fff);
    --sm-ink: #1c1c1e;
    --sm-muted: #8e8e93;
    --sm-line: #efeff2;
    --sm-bg: #f7f7f9;
    --sm-card: #fff;
    --sm-r: 20px;
    --sm-shadow: 0 6px 22px rgba(28, 28, 40, .07);
    --sm-nav-h: 68px;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--sm-ink);
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    background: var(--sm-bg);
    padding-bottom: calc(var(--sm-nav-h) + 16px + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}
.sm-app *, .sm-app *::before, .sm-app *::after { box-sizing: border-box; }
.sm-app button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; margin: 0; padding: 0; line-height: 1.2; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; border-radius: 0; }
.sm-app img { max-width: 100%; display: block; }
.sm-app h2, .sm-app h3 { margin: 0; line-height: 1.2; color: var(--sm-ink); font-family: inherit; letter-spacing: -.01em; }
.sm-app p { margin: 0; }
.sm-app a { color: inherit; text-decoration: none; }
.sm-app input, .sm-app textarea { font: inherit; font-size: 16px; color: var(--sm-ink); } /* 16px: iOS zoom engeli */
.sm-i { width: 22px; height: 22px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
html.sm-lock, html.sm-lock body { overflow: hidden; overscroll-behavior: none; }
.sm-app.sm-has-cart { padding-bottom: calc(var(--sm-nav-h) + 90px + env(safe-area-inset-bottom)); }

.sm-page { max-width: 1180px; margin: 0 auto; }
.sm-loading { padding: 40px 16px; display: flex; justify-content: center; color: var(--sm-muted); }
.sm-empty { padding: 36px 20px; text-align: center; color: var(--sm-muted); background: var(--sm-card); border-radius: var(--sm-r); margin: 12px 16px; }
.sm-empty span { display: block; font-size: 42px; margin-bottom: 8px; }
.sm-spin { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--sm-line); border-top-color: var(--sm-primary); border-radius: 50%; animation: sm-spin .8s linear infinite; }
.sm-spin-w { width: 18px; height: 18px; border-color: rgba(255,255,255,.35); border-top-color: #fff; margin-right: 8px; }
@keyframes sm-spin { to { transform: rotate(360deg); } }

.sm-app .sm-round { width: 44px; height: 44px; border-radius: 50%; background: var(--sm-card); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--sm-shadow); position: relative; flex: 0 0 auto; }
.sm-badge-n { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--sm-primary); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ---------- Üst bölüm ---------- */
.sm-hd { padding: calc(18px + env(safe-area-inset-top)) 16px 6px; }
.sm-hd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sm-hd-hi { display: flex; flex-direction: column; min-width: 0; }
.sm-hd-hi small { color: var(--sm-muted); font-size: 14px; }
.sm-hd-hi strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

.sm-search { display: flex; align-items: center; gap: 10px; background: var(--sm-card); border-radius: 16px; padding: 0 16px; height: 54px; box-shadow: var(--sm-shadow); color: var(--sm-muted); cursor: text; margin: 0; }
.sm-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; height: 100%; padding: 0 !important; margin: 0; box-shadow: none !important; -webkit-appearance: none; appearance: none; }
.sm-search:focus-within { box-shadow: 0 0 0 2px var(--sm-primary), var(--sm-shadow); }
.sm-search-sm { height: 46px; box-shadow: none; background: var(--sm-bg); border-radius: 14px; }

/* ---------- Kampanya kartı ---------- */
.sm-banner { margin: 18px 16px 4px; border-radius: 24px; background: linear-gradient(135deg, var(--sm-primary), color-mix(in srgb, var(--sm-primary) 70%, #ffb347)); color: #fff; display: flex; align-items: center; overflow: hidden; min-height: 160px; position: relative; }
.sm-banner::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); right: -60px; top: -60px; }
.sm-banner-t { padding: 20px; flex: 1 1 60%; position: relative; z-index: 1; }
.sm-banner-t small { font-size: 12px; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.sm-banner-t strong { display: block; font-size: 22px; font-weight: 800; margin: 4px 0 6px; line-height: 1.15; }
.sm-banner-t p { font-size: 13px; opacity: .92; margin-bottom: 14px; }
.sm-app .sm-btn-w { background: #fff; color: var(--sm-primary); border-radius: 30px; padding: 10px 18px; font-weight: 700; font-size: 14px; }
.sm-banner img { width: 42%; max-width: 220px; align-self: stretch; object-fit: cover; position: relative; z-index: 1; }
.sm-banner-e { font-size: 86px; padding-right: 14px; position: relative; z-index: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); }

/* ---------- Bölüm başlıkları ---------- */
.sm-sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 16px 12px; }
.sm-sec-h h3 { font-size: 19px; font-weight: 800; }
.sm-sec-h small { color: var(--sm-muted); font-size: 13px; }
.sm-app .sm-link { color: var(--sm-primary); font-weight: 600; font-size: 14px; }
.sm-sub-h { padding: 8px 16px 10px; font-weight: 700; color: var(--sm-muted); font-size: 14px; }
.sm-sub-h b { background: var(--sm-soft); color: var(--sm-primary); border-radius: 10px; padding: 1px 8px; margin-left: 4px; font-size: 12px; }

/* ---------- Kategoriler ---------- */
.sm-cats { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.sm-cats::-webkit-scrollbar, .sm-tabs::-webkit-scrollbar, .sm-hscroll::-webkit-scrollbar { display: none; }
.sm-app .sm-cat-b { flex: 0 0 auto; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start; }
.sm-cat-b span { width: 64px; height: 64px; border-radius: 20px; background: var(--sm-card); box-shadow: var(--sm-shadow); display: flex; align-items: center; justify-content: center; font-size: 30px; transition: transform .15s, background .15s; }
.sm-cat-b:active span { transform: scale(.92); background: var(--sm-soft); }
.sm-cat-b small { font-size: 12px; text-align: center; line-height: 1.2; color: var(--sm-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Ürün kartları ---------- */
.sm-pgrid { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 16px; }
.sm-pgrid > * { flex: 0 0 calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
.sm-hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sm-hscroll .sm-pc { flex: 0 0 158px; scroll-snap-align: start; }
.sm-pc { background: var(--sm-card); border-radius: var(--sm-r); box-shadow: var(--sm-shadow); padding: 8px; cursor: pointer; display: flex; flex-direction: column; transition: transform .15s; min-width: 0; }
.sm-pc:active { transform: scale(.98); }
.sm-pc-img { position: relative; aspect-ratio: 1 / 1; border-radius: 15px; overflow: hidden; background: var(--sm-soft); }
.sm-pc-pic { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.sm-pph { display: flex !important; align-items: center; justify-content: center; font-size: 46px; background: var(--sm-soft); }
.sm-pc-body { padding: 10px 4px 2px; display: flex; flex-direction: column; flex: 1; gap: 2px; min-width: 0; }
.sm-pc-body strong { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.sm-pc-body small { color: var(--sm-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.sm-price { font-weight: 800; color: var(--sm-ink); font-size: 15px; white-space: nowrap; }
.sm-pc-foot .sm-price { color: var(--sm-primary); }

/* Adet butonları */
.sm-qty { display: flex; align-items: center; border-radius: 30px; flex: 0 0 auto; }
.sm-app .sm-qty button { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--sm-ink); }
.sm-app .sm-qty .sm-add, .sm-app .sm-qty.sm-has button:last-child { background: var(--sm-primary); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--sm-primary) 40%, transparent); }
.sm-qty.sm-has { background: var(--sm-bg); }
.sm-qty .sm-i { width: 16px; height: 16px; stroke-width: 2.6; }
.sm-qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }

/* ---------- İşletme kartları ---------- */
.sm-slist { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 16px; }
.sm-slist > * { flex: 0 0 100%; max-width: 100%; }
.sm-app .sm-sc { display: block; background: var(--sm-card); border-radius: 22px; overflow: hidden; box-shadow: var(--sm-shadow); transition: transform .15s; }
.sm-app .sm-sc:active { transform: scale(.985); }
.sm-sc-cover { height: 150px; background: var(--sm-soft) center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; }
.sm-sc-emoji { font-size: 64px; }
.sm-closed .sm-sc-cover { filter: grayscale(.85); }
.sm-tag-closed { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.72); color: #fff; padding: 5px 11px; border-radius: 20px; font-size: 12px; }
.sm-sc-time { position: absolute; right: 12px; bottom: 12px; background: #fff; border-radius: 20px; padding: 5px 10px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.sm-sc-time .sm-i, .sm-sc-fee .sm-i, .sm-chips-info .sm-i { width: 15px; height: 15px; color: var(--sm-primary); }
.sm-sc-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
.sm-sc-logo, .sm-s-logo { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; background: #fff; border: 1px solid var(--sm-line); }
.sm-ph { display: flex !important; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--sm-primary); background: var(--sm-soft); }
.sm-sc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sm-sc-text strong { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-sc-text small { color: var(--sm-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-sc-fee { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; background: var(--sm-bg); border-radius: 20px; padding: 5px 9px; white-space: nowrap; }

/* ---------- İşletme sayfası ---------- */
.sm-s-hero { height: 230px; background: linear-gradient(135deg, var(--sm-primary), color-mix(in srgb, var(--sm-primary) 65%, #ffb347)) center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; }
.sm-s-hero.sm-skel { background: #ececf0; }
.sm-s-hero-e { font-size: 96px; margin-top: -24px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.2)); }
.sm-app .sm-back, .sm-app .sm-ext { position: absolute; top: calc(14px + env(safe-area-inset-top)); }
.sm-app .sm-back { left: 14px; }
.sm-app .sm-ext { right: 14px; }
.sm-s-card { background: var(--sm-card); border-radius: 28px 28px 0 0; margin-top: -32px; position: relative; padding: 48px 16px 14px; text-align: center; }
.sm-s-logo { width: 74px; height: 74px; border-radius: 22px; border: 4px solid #fff; box-shadow: var(--sm-shadow); position: absolute; left: 50%; top: -37px; transform: translateX(-50%); }
.sm-s-card h2 { font-size: 22px; font-weight: 800; }
.sm-s-sub { color: var(--sm-muted); font-size: 13px; margin-top: 3px !important; }
.sm-s-desc { color: var(--sm-muted); font-size: 14px; margin-top: 10px !important; }
.sm-chips-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.sm-chips-info span { display: inline-flex; align-items: center; gap: 5px; background: var(--sm-bg); border-radius: 20px; padding: 6px 11px; font-size: 12px; font-weight: 600; }
.sm-chips-info .sm-ok { color: #15803d; background: #e8f8ee; }
.sm-chips-info .sm-no { color: #b91c1c; background: #fdecec; }

.sm-sticky { position: sticky; top: 0; z-index: 6; background: var(--sm-card); padding: 6px 0 0; box-shadow: 0 6px 12px -10px rgba(0,0,0,.18); }
.sm-sticky .sm-search { margin: 0 16px 10px; }
.sm-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sm-app .sm-tab { flex: 0 0 auto; padding: 9px 14px; border-radius: 30px; background: var(--sm-bg); font-size: 13px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
.sm-app .sm-tab.sm-on { background: var(--sm-primary); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--sm-primary) 35%, transparent); }
.sm-store { background: var(--sm-bg); }
.sm-store .sm-cat .sm-sec-h { padding-top: 20px; }

/* ---------- Alt menü ---------- */
.sm-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; height: calc(var(--sm-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--sm-line); display: flex; justify-content: space-around; align-items: center; box-shadow: 0 -6px 20px rgba(0,0,0,.04); }
.sm-app .sm-nav-b { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--sm-muted); font-size: 11px; font-weight: 600; position: relative; padding: 6px 0; }
.sm-app .sm-nav-b.sm-on { color: var(--sm-primary); }
.sm-nav-b .sm-badge-n { top: 0; right: calc(50% - 22px); }

/* Sepet çubuğu */
.sm-app .sm-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--sm-nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 9991; display: flex; align-items: center; gap: 12px; background: var(--sm-ink); color: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 26px rgba(0,0,0,.28); max-width: 560px; margin: 0 auto; cursor: pointer; animation: sm-up .25s ease; }
.sm-app .sm-cartbar[hidden] { display: none; }
@keyframes sm-up { from { transform: translateY(30px); opacity: 0; } }
.sm-cart-n { background: var(--sm-primary); border-radius: 10px; min-width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sm-cart-t { flex: 1; font-weight: 600; }

/* ---------- Alt pencere / modal ---------- */
.sm-sheet-wrap { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-end; justify-content: center; }
.sm-sheet-bg { position: absolute; inset: 0; background: rgba(15,15,25,.5); opacity: 0; transition: opacity .2s; }
.sm-sheet { position: relative; width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; border-radius: 28px 28px 0 0; padding: 22px 18px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.sm-open .sm-sheet-bg { opacity: 1; }
.sm-open .sm-sheet { transform: none; }
.sm-app .sm-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; z-index: 3; }
.sm-x .sm-i { width: 20px; height: 20px; }
.sm-tall .sm-sheet { min-height: 70vh; display: flex; flex-direction: column; }
.sm-sh-h { margin: 0 52px 16px 0; }
.sm-sh-h h3 { font-size: 22px; font-weight: 800; }
.sm-sh-h small { color: var(--sm-muted); font-size: 13px; }

/* Ürün detayı */
.sm-pd .sm-sheet { padding: 0 0 calc(14px + env(safe-area-inset-bottom)); }
.sm-pd-img { background: var(--sm-soft); aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; overflow: hidden; }
.sm-pd-pic { width: 100%; height: 100%; object-fit: cover; }
.sm-pd-img .sm-pph { height: 100%; font-size: 110px; }
.sm-pd-body { padding: 20px 18px 6px; margin-top: -24px; background: #fff; border-radius: 26px 26px 0 0; position: relative; }
.sm-pd-cat { display: inline-block; background: var(--sm-soft); color: var(--sm-primary); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 20px; }
.sm-pd-body h3 { font-size: 24px; font-weight: 800; margin: 10px 0 12px; }
.sm-pd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-pd-price { font-size: 26px; font-weight: 800; color: var(--sm-primary); }
.sm-pd-desc { margin-top: 18px; }
.sm-pd-desc b { font-size: 15px; }
.sm-pd-desc p { color: var(--sm-muted); font-size: 14px; margin-top: 4px; }
.sm-pd .sm-chips-info { justify-content: flex-start; }
.sm-pd .sm-sheet-foot { padding-left: 18px; padding-right: 18px; }

.sm-step { display: inline-flex; align-items: center; gap: 4px; background: var(--sm-bg); border-radius: 30px; padding: 4px; }
.sm-app .sm-step button { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.07); }
.sm-app .sm-step button:last-child { background: var(--sm-primary); color: #fff; }
.sm-step b { min-width: 30px; text-align: center; font-size: 16px; }
.sm-app .sm-step-sm button { width: 32px; height: 32px; }
.sm-step-sm .sm-i { width: 16px; height: 16px; }

/* Sepet */
.sm-cart-list { display: flex; flex-direction: column; gap: 10px; }
.sm-cart-row { display: flex; align-items: center; gap: 12px; background: var(--sm-bg); border-radius: 18px; padding: 8px 10px 8px 8px; }
.sm-cart-pic { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; font-size: 30px; }
.sm-cart-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sm-cart-txt strong { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-cart-txt .sm-price { color: var(--sm-primary); font-size: 14px; }
.sm-sum { margin: 16px 0 6px; padding: 14px 16px; border: 1px dashed #e2e2e8; border-radius: 18px; }
.sm-sum > div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--sm-muted); font-size: 14px; }
.sm-sum .sm-total { color: var(--sm-ink); font-weight: 800; font-size: 18px; border-top: 1px solid var(--sm-line); margin-top: 6px; padding-top: 10px; }
.sm-warn { background: #fff7e6; color: #92400e; border-radius: 14px; padding: 11px 14px; font-size: 14px; margin: 8px 0; }
.sm-err { background: #fdecec; color: #991b1b; border-radius: 14px; padding: 11px 14px; font-size: 14px; margin: 8px 0; }
.sm-err[hidden] { display: none; }

.sm-sheet-foot { display: flex; gap: 10px; position: sticky; bottom: calc(-14px - env(safe-area-inset-bottom)); background: #fff; padding: 14px 0 6px; margin-top: auto; z-index: 2; }
.sm-app .sm-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 18px; background: var(--sm-primary); color: #fff; font-weight: 700; font-size: 16px; text-align: center; }
.sm-app .sm-btn-dark { background: var(--sm-ink); justify-content: space-between; }
.sm-app .sm-btn-dark[type=submit], .sm-app #sm-ok { justify-content: center; }
.sm-btn span:not(.sm-spin) { background: rgba(255,255,255,.14); border-radius: 12px; padding: 6px 10px; font-size: 14px; }
.sm-app .sm-btn:disabled { opacity: .4; cursor: not-allowed; }
.sm-app .sm-btn-light { background: var(--sm-bg); color: var(--sm-ink); flex: 0 1 auto; font-size: 14px; }
.sm-app .sm-prev { box-shadow: none; background: var(--sm-bg); width: 56px; height: 56px; border-radius: 18px; }

/* Form */
.sm-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; color: var(--sm-ink); }
.sm-form label em { color: var(--sm-muted); font-weight: 400; font-style: normal; }
.sm-form input:not([type=radio]):not([type=checkbox]):not([type=file]):not(.sm-search input), .sm-form textarea { display: block; width: 100%; margin-top: 6px; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 14px; background: var(--sm-bg); outline: none; -webkit-appearance: none; appearance: none; box-shadow: none; }
.sm-form input:not([type=checkbox]):not(.sm-search input):focus, .sm-form textarea:focus { border-color: var(--sm-primary); background: #fff; }
.sm-pays > b { display: block; font-size: 15px; margin: 6px 0 10px; }
.sm-form .sm-pay { display: flex; align-items: center; gap: 12px; border: 2px solid var(--sm-line); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; }
.sm-form .sm-pay small { display: block; color: var(--sm-muted); font-size: 12px; font-weight: 400; }
.sm-form .sm-pay:has(input:checked) { border-color: var(--sm-primary); background: var(--sm-soft); }
.sm-pay input { accent-color: var(--sm-primary); width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.sm-pay-i { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; box-shadow: 0 2px 6px rgba(0,0,0,.06); }

/* Tam ekran ödeme */
.sm-full .sm-sheet { max-width: 640px; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.sm-pay-head { padding: calc(16px + env(safe-area-inset-top)) 64px 14px 18px; font-weight: 800; font-size: 17px; border-bottom: 1px solid var(--sm-line); display: flex; flex-direction: column; }
.sm-pay-head small { font-weight: 500; color: var(--sm-muted); font-size: 13px; margin-top: 2px; }
.sm-full .sm-x { top: calc(12px + env(safe-area-inset-top)); }
.sm-pay-frame { flex: 1; position: relative; min-height: 0; }
.sm-pay-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.sm-frame-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--sm-muted); background: #fff; pointer-events: none; }
.sm-full .sm-sheet-foot { position: static; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); margin: 0; border-top: 1px solid var(--sm-line); }

/* Sipariş tamam */
.sm-done { text-align: center; padding: 14px 0 0; display: flex; flex-direction: column; align-items: center; }
.sm-done-ico { width: 84px; height: 84px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 44px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #e8f8ee; margin: 6px 0 18px; animation: sm-pop .4s ease; }
@keyframes sm-pop { from { transform: scale(.4); opacity: 0; } }
.sm-done h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.sm-done p { margin: 6px 0; color: var(--sm-muted); }
.sm-done-no { color: var(--sm-ink); font-size: 18px; letter-spacing: .04em; }
.sm-done a { color: var(--sm-primary); }
.sm-done .sm-sheet-foot { width: 100%; }

/* Siparişlerim */
.sm-olist { display: flex; flex-direction: column; gap: 10px; }
.sm-orow { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--sm-bg); border-radius: 18px; padding: 14px; }
.sm-orow > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.sm-orow small { color: var(--sm-muted); font-size: 12px; }
.sm-orow-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sm-ost { font-size: 12px; font-weight: 700; border-radius: 20px; padding: 4px 10px; background: #fff; }
.sm-ost-new, .sm-ost-preparing { color: #b45309; background: #fff4e0; }
.sm-ost-on_way { color: #1d4ed8; background: #e5edff; }
.sm-ost-delivered { color: #15803d; background: #e8f8ee; }
.sm-ost-cancelled, .sm-ost-failed { color: #b91c1c; background: #fdecec; }

.sm-toast { position: fixed; left: 50%; bottom: calc(var(--sm-nav-h) + 90px); transform: translate(-50%, 20px); background: var(--sm-ink); color: #fff; padding: 12px 20px; border-radius: 30px; z-index: 100000; opacity: 0; transition: all .25s; font-size: 14px; font-weight: 600; max-width: 90vw; text-align: center; white-space: nowrap; }
.sm-toast.sm-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tam ekran şablon (tema header/footer yok) ---------- */
body.sm-fullscreen { margin: 0 !important; padding: 0 !important; background: #f7f7f9 !important; min-height: 100vh; overflow-x: hidden; }
body.sm-fullscreen .sm-app { min-height: 100vh; min-height: 100dvh; }
body.sm-fullscreen .sm-sticky { top: 0 !important; }
body.admin-bar:not(.sm-fullscreen) .sm-sticky { top: 46px; }
@media (min-width: 783px) { body.admin-bar:not(.sm-fullscreen) .sm-sticky { top: 32px; } }

/* ---------- Tablet / masaüstü ---------- */
@media (min-width: 640px) {
    .sm-hd, .sm-sec-h, .sm-sub-h, .sm-pgrid, .sm-slist, .sm-cats, .sm-hscroll, .sm-tabs { padding-left: 24px; padding-right: 24px; }
    .sm-banner { margin-left: 24px; margin-right: 24px; min-height: 200px; }
    .sm-banner-t { padding: 28px; }
    .sm-banner-t strong { font-size: 28px; }
    .sm-pgrid { gap: 16px; }
    .sm-pgrid > * { flex-basis: calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); }
    .sm-slist > * { flex-basis: calc((100% - 14px) / 2); max-width: calc((100% - 14px) / 2); }
    .sm-hscroll .sm-pc { flex-basis: 190px; }
    .sm-s-hero { height: 300px; }
    .sm-sheet-wrap { align-items: center; padding: 20px; }
    .sm-sheet { border-radius: 28px; max-height: 90vh; }
    .sm-sheet-foot { bottom: -14px; }
    .sm-full { padding: 0; }
    .sm-full .sm-sheet { height: 92vh; border-radius: 24px; }
    .sm-tall .sm-sheet { min-height: 0; }
}
@media (min-width: 1000px) {
    .sm-pgrid > * { flex-basis: calc((100% - 48px) / 4); max-width: calc((100% - 48px) / 4); }
    .sm-slist > * { flex-basis: calc((100% - 28px) / 3); max-width: calc((100% - 28px) / 3); }
    .sm-s-hero { border-radius: 0 0 32px 32px; }
    .sm-s-card { max-width: 720px; margin-left: auto; margin-right: auto; border-radius: 28px; box-shadow: var(--sm-shadow); }
    .sm-nav { left: 50%; right: auto; transform: translateX(-50%); width: 480px; bottom: 16px; border-radius: 24px; border: 1px solid var(--sm-line); height: var(--sm-nav-h); padding-bottom: 0; }
    .sm-app .sm-cartbar { bottom: calc(var(--sm-nav-h) + 28px); }
}
