/* Sipariş Market — üst menü ve tanıtım (karşılama) sayfası */

/* ---------- Üst menü ---------- */
.sm-nb { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--sm-line); padding-top: env(safe-area-inset-top); }
.sm-nb-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sm-app .sm-nb-brand { order: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sm-nb-brand img { max-height: 34px; width: auto; }
.sm-nb-brand b { font-size: 19px; font-weight: 800; color: var(--sm-primary); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.sm-nb-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--sm-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; flex: 0 0 auto; }
.sm-app .sm-nb-addr { order: 3; flex: 0 0 100%; display: flex; align-items: center; gap: 8px; background: var(--sm-bg); border-radius: 14px; padding: 8px 12px; text-align: left; min-width: 0; }
.sm-nb-addr > .sm-i:first-child { color: var(--sm-primary); }
.sm-nb-addr > .sm-i:last-child { width: 18px; color: var(--sm-muted); }
.sm-nb-addr span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sm-nb-addr small { font-size: 11px; color: var(--sm-muted); }
.sm-nb-addr b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-nb-r { order: 2; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.sm-app .sm-nb-btn { height: 40px; padding: 0 14px; border-radius: 12px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sm-app .sm-nb-out { border: 1.5px solid var(--sm-ink); color: var(--sm-ink); }
.sm-app .sm-nb-pri { background: var(--sm-primary); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--sm-primary) 35%, transparent); }
.sm-app .sm-nb-user { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 30px; background: var(--sm-bg); font-weight: 700; font-size: 14px; }
.sm-nb-user .sm-av { width: 32px; height: 32px; font-size: 13px; }
.sm-app .sm-nb-cart { width: 40px; height: 40px; box-shadow: none; background: var(--sm-bg); }
@media (max-width: 370px) { .sm-app .sm-nb-btn { padding: 0 10px; font-size: 13px; } .sm-nb-brand b { display: none; } }

/* ---------- Tanıtım (hero) ---------- */
.sm-hero2 { position: relative; overflow: hidden; margin: 12px 16px 0; border-radius: 28px; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--sm-primary) 30%, #fff) 0%, transparent 55%), linear-gradient(160deg, #fff7f1, #ffe8d9); padding: 26px 20px 22px; }
.sm-hero2-t { position: relative; z-index: 2; }
.sm-hero2-k { display: inline-block; background: #fff; color: var(--sm-primary); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 20px; box-shadow: var(--sm-shadow); position: relative; z-index: 2; }
.sm-app .sm-hero2 h1 { font-size: 30px; line-height: 1.12; font-weight: 900; letter-spacing: -.03em; margin: 14px 0 10px; color: var(--sm-ink); max-width: 560px; font-family: inherit; position: relative; z-index: 2; }
.sm-hero2 p { color: #5b5b62; font-size: 15px; max-width: 520px; position: relative; z-index: 2; }
.sm-hero2-box { margin-top: 18px; background: #fff; border-radius: 20px; padding: 6px; box-shadow: 0 12px 34px rgba(255,107,26,.16); display: flex; flex-direction: column; gap: 6px; max-width: 640px; position: relative; z-index: 2; }
.sm-app .sm-hero2-addr { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sm-bg); text-align: left; font-weight: 600; }
.sm-hero2-addr .sm-i { color: var(--sm-primary); }
.sm-hero2-addr span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-hero2 .sm-hero2-q { box-shadow: none; height: 50px; background: #fff; }
.sm-hero2-stats { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 2; }
.sm-hero2-stats span { display: flex; flex-direction: column; font-size: 12px; color: #6b6b72; }
.sm-hero2-stats b { font-size: 20px; font-weight: 900; color: var(--sm-ink); }
.sm-hero2-art { position: absolute; right: -24px; top: -18px; width: 170px; height: 170px; z-index: 1; opacity: .9; pointer-events: none; }
.sm-hero2-art span { position: absolute; font-size: 34px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.12)); animation: sm-float 6s ease-in-out infinite; }
.sm-hero2-art span:nth-child(1) { left: 20px; top: 40px; }
.sm-hero2-art span:nth-child(2) { left: 80px; top: 20px; font-size: 44px; animation-delay: -1s; }
.sm-hero2-art span:nth-child(3) { left: 110px; top: 86px; animation-delay: -2s; }
.sm-hero2-art span:nth-child(4) { left: 50px; top: 104px; font-size: 28px; animation-delay: -3s; }
.sm-hero2-art span:nth-child(5), .sm-hero2-art span:nth-child(6) { display: none; }
@keyframes sm-float { 50% { transform: translateY(-8px) rotate(-6deg); } }

/* ---------- Nasıl çalışır ---------- */
.sm-how { margin: 28px 16px 0; }
.sm-how h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.sm-how-g { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-how-g > * { flex: 0 0 calc((100% - 10px) / 2); max-width: calc((100% - 10px) / 2); }
.sm-how-i { position: relative; background: var(--sm-card); border-radius: 20px; padding: 16px 14px; box-shadow: var(--sm-shadow); display: flex; flex-direction: column; gap: 4px; }
.sm-how-n { position: absolute; right: 12px; top: 10px; font-weight: 900; font-size: 22px; color: color-mix(in srgb, var(--sm-primary) 25%, #fff); }
.sm-how-e { font-size: 30px; }
.sm-how-i strong { font-size: 15px; }
.sm-how-i small { color: var(--sm-muted); font-size: 12px; line-height: 1.35; }

/* ---------- İşletme bandı ---------- */
.sm-pband { margin: 28px 16px 0; border-radius: 28px; background: linear-gradient(150deg, #1c1c1e, #34343a); color: #fff; padding: 24px 20px; display: flex; gap: 12px; align-items: center; overflow: hidden; position: relative; }
.sm-pband > div { position: relative; z-index: 1; flex: 1; }
.sm-pband-k { font-size: 12px; font-weight: 700; color: #ffb37f; text-transform: uppercase; letter-spacing: .06em; }
.sm-app .sm-pband h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 6px 0 8px; }
.sm-pband p { opacity: .8; font-size: 14px; }
.sm-pband-b { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sm-app .sm-pband-b .sm-btn { flex: 0 1 auto; min-height: 48px; }
.sm-app .sm-btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.sm-pband-e { position: absolute; right: -10px; bottom: -14px; font-size: 110px; opacity: .18; }

/* ---------- Alt bilgi ---------- */
.sm-foot { margin: 30px 16px 0; padding: 22px 4px 8px; border-top: 1px solid var(--sm-line); display: flex; flex-direction: column; gap: 12px; color: var(--sm-muted); }
.sm-foot-brand { display: flex; align-items: center; gap: 8px; }
.sm-foot-brand img { max-height: 28px; }
.sm-foot-brand b { color: var(--sm-ink); font-size: 16px; }
.sm-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sm-app .sm-foot-links button { font-size: 14px; font-weight: 600; color: var(--sm-ink); }
.sm-foot small { font-size: 12px; }

/* ---------- Tablet / masaüstü ---------- */
@media (min-width: 640px) {
    .sm-hero2 { margin: 16px 24px 0; padding: 40px 36px 34px; }
    .sm-app .sm-hero2 h1 { font-size: 42px; }
    .sm-hero2-box { flex-direction: row; }
    .sm-app .sm-hero2-addr { flex: 0 0 42%; }
    .sm-hero2 .sm-hero2-q { flex: 1; }
    .sm-hero2-art { width: 300px; height: 300px; right: 0; top: 10px; }
    .sm-hero2-art span { font-size: 52px; }
    .sm-hero2-art span:nth-child(2) { font-size: 70px; left: 130px; }
    .sm-hero2-art span:nth-child(3) { left: 200px; top: 150px; }
    .sm-hero2-art span:nth-child(4) { left: 70px; top: 190px; font-size: 44px; }
    .sm-hero2-art span:nth-child(5) { display: block; left: 220px; top: 40px; font-size: 40px; animation-delay: -4s; }
    .sm-hero2-art span:nth-child(6) { display: block; left: 10px; top: 120px; font-size: 40px; animation-delay: -5s; }
    .sm-how, .sm-pband, .sm-foot { margin-left: 24px; margin-right: 24px; }
    .sm-how-g > * { flex-basis: calc((100% - 30px) / 4); max-width: calc((100% - 30px) / 4); }
    .sm-pband { padding: 34px 36px; }
}
@media (min-width: 900px) {
    .sm-nb-in { flex-wrap: nowrap; padding: 12px 24px; }
    .sm-app .sm-nb-addr { order: 2; flex: 0 1 420px; min-width: 260px; }
    .sm-nb-r { order: 3; }
    .sm-hero2-t { max-width: 62%; }
    .sm-app .sm-hero2 h1 { font-size: 50px; }
    .sm-hero2-art { width: 38%; height: 100%; top: 0; }
    .sm-hero2-art span:nth-child(1) { left: 10%; top: 18%; }
    .sm-hero2-art span:nth-child(2) { left: 40%; top: 8%; font-size: 96px; }
    .sm-hero2-art span:nth-child(3) { left: 66%; top: 46%; font-size: 64px; }
    .sm-hero2-art span:nth-child(4) { left: 22%; top: 62%; font-size: 58px; }
    .sm-hero2-art span:nth-child(5) { left: 70%; top: 12%; }
    .sm-hero2-art span:nth-child(6) { left: 46%; top: 72%; }
}
/* ---------- Vitrin, mesafe, sektör ---------- */
.sm-tag-feat { position: absolute; left: 12px; top: 12px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 20px; box-shadow: 0 4px 10px rgba(249,115,22,.35); }
.sm-tag-dist { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 20px; padding: 5px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.sm-tag-dist .sm-i { width: 14px; height: 14px; color: var(--sm-primary); }
.sm-sc-feat .sm-tag-closed { top: 46px; }
.sm-app .sm-sc.sm-sc-feat { box-shadow: 0 0 0 2px #f59e0b, var(--sm-shadow); }
.sm-app .sm-sc.sm-out { opacity: .6; }
.sm-app .sm-locate { display: inline-flex; align-items: center; gap: 4px; }
.sm-locate .sm-i { width: 16px; height: 16px; }
.sm-app .sm-locate-btn { margin-bottom: 4px; justify-content: center; }
.sm-cat-b span img { width: 38px; height: 38px; object-fit: contain; }
.sm-app .sm-cat-b.sm-cat-feat { width: 92px; }
.sm-cat-feat span { width: 80px; height: 80px; font-size: 40px; background: linear-gradient(135deg, #fff3e8, #ffe1c7); box-shadow: 0 0 0 2px var(--sm-primary), 0 8px 20px color-mix(in srgb, var(--sm-primary) 30%, transparent); position: relative; }
.sm-cat-feat span::after { content: "★"; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--sm-primary); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.sm-cat-feat small { font-weight: 800; color: var(--sm-primary); }
.sm-geo-f { background: var(--sm-bg); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sm-geo-f small { color: var(--sm-muted); font-size: 12px; }
.sm-geo-f label { width: 100%; margin: 0; }
/* ---------- Partner avantajları ---------- */
.sm-perks { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 16px; }
.sm-perk { display: flex; align-items: center; gap: 12px; background: var(--sm-soft); border-radius: 16px; padding: 12px 14px; }
.sm-perk-i { width: 42px; height: 42px; border-radius: 13px; background: var(--sm-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-shadow: 0 6px 14px color-mix(in srgb, var(--sm-primary) 35%, transparent); }
.sm-perk-i .sm-i { width: 22px; height: 22px; }
.sm-perk > div { display: flex; flex-direction: column; min-width: 0; }
.sm-perk strong { font-size: 15px; font-weight: 800; color: var(--sm-ink); }
.sm-perk small { font-size: 12px; color: #5b5b62; line-height: 1.35; }
.sm-perks-dark { margin: 14px 0 0; }
.sm-perks-dark .sm-perk { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.sm-perks-dark .sm-perk strong { color: #fff; }
.sm-perks-dark .sm-perk small { color: rgba(255,255,255,.72); }
@media (min-width: 640px) { .sm-perks-dark { flex-direction: row; } .sm-perks-dark .sm-perk { flex: 1 1 0; } }
/* ---------- Yatay şerit: otomatik akış + oklar ---------- */
.sm-slide { position: relative; }
.sm-auto > .sm-cats, .sm-auto > .sm-hscroll { scroll-snap-type: none; }
.sm-slide > .sm-cats, .sm-slide > .sm-hscroll { cursor: grab; }
.sm-slide > .sm-dragging { cursor: grabbing; user-select: none; }
.sm-slide > .sm-dragging * { pointer-events: none; }
.sm-slide::after { content: ""; position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 34px; background: linear-gradient(90deg, transparent, var(--sm-bg)); pointer-events: none; opacity: 0; transition: opacity .2s; }
.sm-slide.sm-can-next::after { opacity: 1; }
.sm-app .sm-slide-b { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--sm-ink); box-shadow: 0 6px 18px rgba(0,0,0,.14); align-items: center; justify-content: center; transition: opacity .2s; }
.sm-slide-b .sm-i { width: 20px; height: 20px; }
.sm-slide-prev { left: 6px; }
.sm-slide-next { right: 6px; }
@media (hover: hover) and (pointer: fine) {
  .sm-app .sm-slide-b { display: flex; opacity: 0; pointer-events: none; }
  .sm-app .sm-slide.sm-can-prev .sm-slide-prev, .sm-app .sm-slide.sm-can-next .sm-slide-next { opacity: 1; pointer-events: auto; }
}
.sm-sort-note { display: block; margin: -4px 16px 12px; font-size: 13px; color: var(--sm-muted); }
.sm-app .sm-sort-cta { color: var(--sm-primary); font-weight: 700; text-align: left; background: var(--sm-soft); border-radius: 12px; padding: 10px 12px; width: calc(100% - 32px); }
@media (min-width: 640px) { .sm-sort-note { margin-left: 24px; margin-right: 24px; } .sm-app .sm-sort-cta { width: calc(100% - 48px); } }
