/* Müşteri menüsü: açılış animasyonu, kategori kartları ve gezinme */

/* ---------- AÇILIŞ (QR okutunca) ---------- */
body.splashing { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--cover); color: var(--cover-ink, #fff); overflow: hidden; transition: transform .8s cubic-bezier(.7,0,.2,1), opacity .5s .3s; }
.splash::before { content: ''; position: absolute; width: 140vmax; height: 140vmax; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 55%); animation: spPulse 2.4s ease-in-out infinite; }
.splash.out { transform: translateY(-100%); opacity: .0; }
.sp-in { position: relative; z-index: 1; text-align: center; padding: 0 28px; display: grid; justify-items: center; gap: 12px; }
.sp-logo, .sp-mono { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid rgba(255,255,255,.85); animation: spPop .9s cubic-bezier(.2,1.2,.3,1) both; }
.sp-mono { display: grid; place-items: center; font: 700 2.4rem var(--head); color: var(--accent); }
.sp-in h1 { margin: 6px 0 0; font-family: var(--head); font-size: clamp(1.7rem, 7vw, 2.6rem); letter-spacing: -.01em; animation: spUp .8s .25s cubic-bezier(.2,.9,.3,1) both; }
.sp-in small { opacity: .8; letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; animation: spUp .8s .5s both; }
.sp-scan { position: relative; width: 74px; height: 74px; margin: 10px 0 4px; animation: spUp .8s .4s both; }
.sp-scan i { position: absolute; width: 20px; height: 20px; border: 3px solid currentColor; opacity: .9; }
.sp-scan i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.sp-scan i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.sp-scan i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.sp-scan i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.sp-scan b { position: absolute; left: 8px; right: 8px; top: 10px; height: 3px; border-radius: 3px; background: currentColor; box-shadow: 0 0 14px 2px currentColor; animation: spLine 1.1s ease-in-out infinite alternate; }
@keyframes spLine { to { top: calc(100% - 13px); } }
@keyframes spPulse { 0%,100% { scale: .8; opacity: .6; } 50% { scale: 1; opacity: 1; } }
@keyframes spPop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@keyframes spUp { from { opacity: 0; transform: translateY(18px); } }

/* ---------- ÜST ALAN ---------- */
.wrap[data-view="cat"] .cover { padding: 18px 20px 16px; transition: padding .4s; }
.wrap[data-view="cat"] .cover .logo { width: 44px; height: 44px; margin-bottom: 6px; border-width: 2px; }
.wrap[data-view="cat"] .cover p, .wrap[data-view="cat"] .cover .rule { display: none; }
.wrap[data-view="cat"] .cover h1 { font-size: 1.15rem; margin: 0; }
.wrap[data-view="home"] .cats { display: none; }
.wrap[data-view="home"] .toolbar { position: static; border-bottom: 0; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s, transform .25s; }
.cat-chip:active { transform: scale(.96); }
.cat-chip.home .ico-home { width: 14px; height: 14px; background: currentColor; clip-path: polygon(50% 8%, 96% 48%, 82% 48%, 82% 92%, 58% 92%, 58% 64%, 42% 64%, 42% 92%, 18% 92%, 18% 48%, 4% 48%); }
.cats { scroll-behavior: smooth; mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); }

/* ---------- KATEGORİ KARTLARI ---------- */
.cat-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 6px 0 8px; }
.cat-home::before { content: 'Kategoriler'; grid-column: 1 / -1; font: 700 1.25rem var(--head); text-transform: var(--title-transform); margin: 14px 0 4px; }
.wrap:not([data-view="home"]) .cat-home { display: none; }
.cat-card { position: relative; border: 0; padding: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1.08; background: var(--cover); cursor: pointer; text-align: left; color: #fff; isolation: isolate; box-shadow: 0 14px 30px -18px rgba(0,0,0,.45); animation: ccIn .6s calc(var(--i) * 60ms + .15s) cubic-bezier(.2,.9,.3,1) both; transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s; -webkit-tap-highlight-color: transparent; }
.cat-card:active { transform: scale(.97); }
@media (hover: hover) { .cat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(0,0,0,.55); } .cat-card:hover img { transform: scale(1.08); } }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); z-index: -2; }
.cc-ph { position: absolute; inset: 0; display: grid; place-items: center; font: 700 3rem var(--head); opacity: .5; z-index: -2; }
.cc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.72) 100%); }
.cc-txt { position: absolute; left: 14px; right: 14px; bottom: 13px; display: grid; gap: 1px; }
.cc-txt b { font: 700 1.02rem/1.2 var(--head); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.cc-txt small { opacity: .85; font-size: .76rem; }
.cc-go { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); }
.cc-go::after { content: ''; position: absolute; left: 10px; top: 9px; width: 8px; height: 8px; border: solid #222; border-width: 2px 2px 0 0; transform: rotate(45deg); }
@keyframes ccIn { from { opacity: 0; transform: translateY(26px) scale(.94); } }

/* ---------- KATEGORİ GÖRÜNÜMÜ ---------- */
.back-row { display: none; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); font: 600 .88rem var(--body); padding: 14px 2px 0; cursor: pointer; }
.back-row i { width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.wrap[data-view="cat"] .back-row { display: inline-flex; }
.section.enter .items > .item { animation: itIn .5s cubic-bezier(.2,.9,.3,1) both; }
.section.enter .items > .item:nth-child(2) { animation-delay: .05s; } .section.enter .items > .item:nth-child(3) { animation-delay: .1s; } .section.enter .items > .item:nth-child(4) { animation-delay: .15s; } .section.enter .items > .item:nth-child(n+5) { animation-delay: .2s; }
.section.enter h2 { animation: itIn .45s both; }
@keyframes itIn { from { opacity: 0; transform: translateY(18px); } }
.wrap[data-view="cat"] .section { padding-top: 10px; }
@media (min-width: 560px) { .cat-home { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cat-card, .section.enter .items > .item, .section.enter h2 { animation: none; } }

/* ---------- ÜST ÇUBUK (kategori içinde) ---------- */
.catbar { display: none; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.wrap[data-view="cat"] .catbar { display: flex; animation: cbIn .45s cubic-bezier(.2,.9,.3,1); }
@keyframes cbIn { from { transform: translateY(-100%); } }
.cb-back, .cb-menu { flex: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.cb-back:active, .cb-menu:active { transform: scale(.92); }
.cb-back i { width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: rotate(45deg); margin-left: 4px; }
.cb-menu { grid-auto-flow: row; align-content: center; gap: 4px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cb-menu i { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s; }
.cb-menu i:nth-child(2) { width: 12px; align-self: flex-end; margin-left: auto; margin-right: 12px; }
.cb-title { flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
.cb-title small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-title b { display: block; font: 700 1.08rem var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: var(--title-transform); }
/* eski kompakt başlık ve çipler kalkar (yalnızca klasik/önizleme görünümde kalır) */
.wrap:not([data-view="all"]) .cats { display: none; }
.wrap[data-view="cat"] .cover { display: none; }
.wrap[data-view="cat"] .search { display: none; }
.wrap[data-view="cat"] .toolbar { display: none; }
.back-row { display: none !important; }

/* ---------- KATEGORİ MENÜSÜ (tam ekran) ---------- */
body.sheeting { overflow: hidden; }
.csheet { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); opacity: 0; clip-path: circle(0% at calc(100% - 36px) 34px); transition: opacity .35s, clip-path .55s cubic-bezier(.7,0,.2,1); }
.csheet.in { opacity: 1; clip-path: circle(150% at calc(100% - 36px) 34px); }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top)) 18px 10px; }
.cs-head b { font: 800 1.5rem var(--head); text-transform: var(--title-transform); }
.cs-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; position: relative; }
.cs-x i::before, .cs-x i::after { content: ''; position: absolute; left: 13px; top: 20px; width: 18px; height: 2.5px; border-radius: 2px; background: var(--text); transform: rotate(45deg); }
.cs-x i::after { transform: rotate(-45deg); }
.cs-list { flex: 1; overflow-y: auto; padding: 6px 16px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 10px; align-content: start; max-width: 720px; width: 100%; margin: 0 auto; }
.cs-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; cursor: pointer; opacity: 0; transform: translateY(24px) scale(.97); transition: transform .25s, border-color .25s, background .25s; -webkit-tap-highlight-color: transparent; }
.csheet.in .cs-row { opacity: 1; transform: none; transition: opacity .5s calc(var(--i) * 45ms + .15s), transform .55s calc(var(--i) * 45ms + .15s) cubic-bezier(.2,.9,.3,1), border-color .25s, background .25s; }
.cs-row:active { transform: scale(.98) !important; }
.cs-row img, .cs-ph { flex: none; width: 58px; height: 58px; border-radius: 16px; object-fit: cover; background: var(--cover); color: #fff; display: grid; place-items: center; font: 700 1.5rem var(--head); }
.cs-t { flex: 1; min-width: 0; display: grid; }
.cs-t b { font: 700 1.02rem var(--head); }
.cs-t small { color: var(--muted); font-size: .78rem; }
.cs-row i { width: 9px; height: 9px; border: solid var(--muted); border-width: 2px 2px 0 0; transform: rotate(45deg); flex: none; }
.cs-row.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.cs-row.on .cs-t b { color: var(--accent); }
.cs-row.on i { border-color: var(--accent); }

/* ---------- SONRAKİ KATEGORİ KARTI ve kaydırma yönü ---------- */
.next-cat { display: flex; width: 100%; align-items: center; justify-content: space-between; margin: 22px 0 6px; padding: 16px 20px; border: 0; border-radius: 20px; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-align: left; box-shadow: 0 16px 30px -18px var(--accent); transition: transform .25s; -webkit-tap-highlight-color: transparent; }
.next-cat:active { transform: scale(.98); }
.next-cat span { display: grid; gap: 2px; } .next-cat small { opacity: .8; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; } .next-cat b { font: 700 1.1rem var(--head); }
.next-cat i { width: 12px; height: 12px; border: solid currentColor; border-width: 3px 3px 0 0; transform: rotate(45deg); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px) rotate(45deg); } }
.wrap[data-view="all"] .next-cat, .wrap[data-view="search"] .next-cat { display: none; }
.wrap[data-dir="next"] .section.enter .items > .item, .wrap[data-dir="next"] .section.enter h2, .wrap[data-dir="next"] .section.enter .next-cat { animation-name: slideNext; }
.wrap[data-dir="prev"] .section.enter .items > .item, .wrap[data-dir="prev"] .section.enter h2, .wrap[data-dir="prev"] .section.enter .next-cat { animation-name: slidePrev; }
@keyframes slideNext { from { opacity: 0; transform: translateX(46px); } }
@keyframes slidePrev { from { opacity: 0; transform: translateX(-46px); } }
.section.enter .next-cat { animation: itIn .5s .25s both; }

/* ---------- REKLAM TÜRLERİ ---------- */
.ad[style*="--ad-bg"] { background: var(--ad-bg); } .ad[style*="--ad-fg"] { color: var(--ad-fg); }
.ad em, .ads-slide em { font-style: normal; font-weight: 700; font-size: .78rem; padding: 7px 14px; border-radius: 999px; background: var(--ad-fg, var(--accent)); color: var(--ad-bg, var(--accent-ink)); white-space: nowrap; margin-left: auto; }
/* kaydırmalı şerit */
.ads-slider { position: relative; margin: 12px 0 4px; }
.wrap:not([data-view="home"]) .ads-slider { display: none; }
.ads-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.ads-track::-webkit-scrollbar { display: none; }
.ads-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; min-height: 150px; border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; color: var(--ad-fg, #fff); background: var(--ad-bg, linear-gradient(135deg, var(--accent), var(--cover))); }
.ads-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ads-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.55)); }
.ads-slide .as-t { position: relative; z-index: 1; display: grid; gap: 4px; padding: 16px 18px; width: 100%; }
.ads-slide .as-t small { opacity: .75; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.ads-slide .as-t b { font: 700 1.2rem var(--head); text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ads-slide .as-t > span { font-size: .85rem; opacity: .92; }
.ads-slide em { margin: 6px 0 0; justify-self: start; }
.ads-dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.ads-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: .3s; }
.ads-dots i.on { width: 20px; background: var(--accent); }
/* açılır pencere */
.ad-pop { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 24px; background: rgba(8,6,20,0); backdrop-filter: blur(0); transition: background .4s, backdrop-filter .4s; }
.ad-pop.in { background: rgba(8,6,20,.58); backdrop-filter: blur(6px); }
.ap-card { position: relative; width: min(360px, 100%); border-radius: 26px; overflow: hidden; background: var(--ad-bg, var(--card)); color: var(--ad-fg, var(--text)); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); transform: translateY(40px) scale(.9); opacity: 0; transition: transform .6s cubic-bezier(.2,1.2,.3,1), opacity .4s; }
.ad-pop.in .ap-card { transform: none; opacity: 1; }
.ap-card img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.ap-b { padding: 18px 20px 22px; display: grid; gap: 6px; }
.ap-b small { opacity: .6; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.ap-b b { font: 800 1.35rem/1.2 var(--head); }
.ap-b p { margin: 0; opacity: .85; font-size: .92rem; }
.ap-btn { margin-top: 10px; justify-self: stretch; text-align: center; padding: 13px 18px; border-radius: 14px; background: var(--ad-fg, var(--accent)); color: var(--ad-bg, var(--accent-ink)); font-weight: 700; text-decoration: none; }
.ap-x { position: absolute; z-index: 2; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer; }
.ap-x i::before, .ap-x i::after { content: ''; position: absolute; left: 10px; top: 17px; width: 16px; height: 2.5px; border-radius: 2px; background: #222; transform: rotate(45deg); }
.ap-x i::after { transform: rotate(-45deg); }
/* alt çubuk */
.ad-sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; max-width: 696px; margin: 0 auto; display: flex; align-items: center; gap: 6px; border-radius: 20px; background: var(--ad-bg, var(--accent)); color: var(--ad-fg, var(--accent-ink)); box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .6s cubic-bezier(.2,1.1,.3,1); }
.ad-sticky.in { transform: none; }
.ad-sticky a { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 14px; color: inherit; text-decoration: none; min-width: 0; }
.ad-sticky img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.ad-sticky b { display: block; font-size: .95rem; } .ad-sticky span { display: block; font-size: .78rem; opacity: .85; }
.ad-sticky em { font-style: normal; font-weight: 700; font-size: .76rem; padding: 7px 13px; border-radius: 99px; background: var(--ad-fg, var(--accent-ink)); color: var(--ad-bg, var(--accent)); margin-left: auto; white-space: nowrap; }
.ad-sticky button { flex: none; width: 34px; height: 34px; margin-right: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); cursor: pointer; position: relative; }
.ad-sticky button::before, .ad-sticky button::after { content: ''; position: absolute; left: 10px; top: 16px; width: 14px; height: 2px; background: currentColor; transform: rotate(45deg); }
.ad-sticky button::after { transform: rotate(-45deg); }

/* ---------- KAPAK: banner ve silik logo ---------- */
.cover { overflow: hidden; isolation: isolate; }
.cover > * { position: relative; z-index: 1; }
.cover.has-banner { background-image: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.58)), var(--cover-img); background-size: cover; background-position: center; min-height: 190px; display: grid; align-content: center; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.cover.has-wm::before { content: ''; position: absolute; inset: 0; z-index: 0; background: var(--wm-img) center / auto 88% no-repeat; opacity: .2; filter: grayscale(1) brightness(1.7); pointer-events: none; }
