/* Planet Pizza · Müştəri menyusu — dizayn: design/iOS · Müştəri — *.png */
:root {
  --bg-top: #F9ECE2;
  --bg-mid: #F6F1EA;
  --bg-bottom: #DDE8DF;
  --ink: #24201C;
  --ink-2: #5E5751;
  --ink-3: #8F8780;
  --primary: #A8401F;
  --primary-press: #8E3418;
  --primary-soft: #FBD9C8;
  --green: #44634A;
  --green-soft: #DCE8DC;
  --chip: #EEE9E2;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #FFFFFF;
  --line: rgba(36, 32, 28, 0.08);
  --note-bg: #FFF3D6;
  --note-ink: #7A5A16;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.04), 0 8px 24px rgba(60, 40, 20, 0.06);
  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 16px;
  --tab-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg-mid);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 38%, var(--bg-mid) 62%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

#app { max-width: 520px; margin: 0 auto; position: relative; min-height: 100dvh; }
#view { padding: 18px 20px calc(var(--tab-h) + 96px + var(--safe-b)); }
#view.no-tabs { padding-bottom: calc(110px + var(--safe-b)); }

/* ───── Başlıq ───── */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.topbar { display: flex; align-items: center; gap: 14px; min-height: 40px; margin-top: 6px; }
.back { width: 40px; height: 40px; margin-left: -8px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); }
.back:active { background: rgba(168, 64, 31, .08); }
.back svg { width: 24px; height: 24px; }
.topbar .kicker { font-size: 11.5px; }
h1 { font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; margin: 10px 0 6px; }
.sub { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
h2 { font-size: 22px; letter-spacing: -0.01em; font-weight: 700; margin: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 14px; }
.sec-head a { color: var(--primary); font-size: 13px; font-weight: 600; }

.loc { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 15px; font-weight: 500; }
.loc svg { width: 18px; height: 18px; color: var(--ink-2); }
.table-pill { margin-left: auto; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }

/* ───── Axtarış ───── */
.search { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); margin: 18px 0 16px; }
.search svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; min-width: 0; }
.search input::placeholder { color: var(--ink-3); }
.search .clear { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }

/* ───── Banner ───── */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--primary); color: #fff; min-height: 154px; padding: 22px 18px; display: flex; }
.hero .txt { position: relative; z-index: 1; max-width: 58%; }
.hero .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.hero .t { font-size: 26px; line-height: 1.12; font-weight: 800; margin: 8px 0 8px; letter-spacing: -0.01em; }
.hero .d { font-size: 12px; opacity: .88; }
.hero .img { position: absolute; right: -24px; top: -10px; bottom: -10px; width: 52%; border-radius: 50% 0 0 50%; background: #C8673F center/cover no-repeat; }
.hero .eta { position: absolute; right: 18px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: #FFF3E6; color: var(--primary); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.hero .eta svg { width: 14px; height: 14px; }

/* ───── Çiplər ───── */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.chip.on { background: var(--primary); color: #fff; font-weight: 600; }

/* ───── Məhsul kartları (2 sütun) ───── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.8); }
.pcard { padding: 8px 8px 12px; position: relative; }
.pcard .ph { aspect-ratio: 1.36; border-radius: 16px; }
.pcard .name { font-weight: 700; font-size: 16px; margin: 12px 4px 4px; }
.pcard .desc { color: var(--ink-2); font-size: 11.5px; margin: 0 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; margin: 10px 4px 0; }
.price { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.add { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.add:active { background: var(--primary-press); transform: scale(.94); }
.add svg { width: 18px; height: 18px; }
.fav { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.88); display: grid; place-items: center; color: var(--ink-2); }
.fav svg { width: 17px; height: 17px; }
.fav.on { color: var(--primary); }
.fav.on svg path { fill: currentColor; }

/* Şəkil yoxdursa: isti fon + ad hərfi */
.ph { background: #E9CDBB center/cover no-repeat; position: relative; overflow: hidden; }
.ph.empty { display: grid; place-items: center; background: linear-gradient(135deg, #F1D2BF, #E2B49A); }
.ph.empty span { font-size: 34px; font-weight: 800; color: rgba(255,255,255,.9); }

/* ───── Siyahı kartı (kateqoriya, sevimlilər, axtarış) ───── */
.list { display: flex; flex-direction: column; gap: 12px; }
.lcard { display: flex; flex-direction: row; gap: 14px; padding: 8px; align-items: stretch; position: relative; }
.lcard .ph { width: 100px; height: 100px; border-radius: 16px; flex: none; }
.lcard .body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 4px 2px 0 0; }
.lcard .name { font-weight: 700; font-size: 17px; }
.lcard .desc { color: var(--ink-2); font-size: 12px; margin-top: 6px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lcard .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }

/* ───── Məhsul detalları ───── */
.hero-img { border-radius: var(--r-xl); aspect-ratio: 1.62; margin-bottom: 22px; }
.pd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pd-head h1 { margin: 0; font-size: 30px; }
.pd-head .price { color: var(--primary); font-size: 22px; white-space: nowrap; }
.pd-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; margin: 10px 0 0; }
.block-t { font-size: 18px; font-weight: 700; margin: 24px 0 12px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.seg button { height: 44px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 600; padding: 0 10px; }
.seg button.on { background: var(--primary); color: #fff; }
.opt { display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 56px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); width: 100%; text-align: left; }
.opt + .opt { margin-top: 10px; }
.opt .n { flex: 1; font-size: 15px; font-weight: 500; }
.opt .p { color: var(--ink-2); font-size: 13px; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-2); display: grid; place-items: center; flex: none; }
.opt.on .radio { border-color: var(--primary); background: var(--primary); }
.opt.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.facts { margin-top: 18px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.stepper { display: inline-flex; align-items: center; background: var(--chip); border-radius: 999px; height: 46px; padding: 0 6px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.stepper button:active { background: rgba(0,0,0,.06); }
.stepper button svg { width: 18px; height: 18px; }
.stepper b { min-width: 30px; text-align: center; font-size: 17px; }
.stepper.sm { height: 36px; padding: 0 4px; }
.stepper.sm button { width: 30px; height: 30px; }
.stepper.sm button svg { width: 15px; height: 15px; }
.stepper.sm b { min-width: 22px; font-size: 15px; }

/* ───── Aşağı əsas düymə ───── */
.cta-wrap { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 20px calc(16px + var(--safe-b)); z-index: 20; pointer-events: none; }
.cta-wrap > * { pointer-events: auto; }
.cta { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 480px; margin: 0 auto; height: 54px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 10px 24px rgba(168, 64, 31, .28); }
.cta:active { background: var(--primary-press); }
.cta:disabled { background: #C9B9AE; box-shadow: none; cursor: not-allowed; }

/* ───── Səbət zolağı (ana ekranda) ───── */
#cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + 22px + var(--safe-b)); z-index: 15; padding: 0 20px; }
#cartbar a { display: flex; align-items: center; gap: 12px; max-width: 480px; margin: 0 auto; height: 50px; padding: 0 20px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 24px rgba(68, 99, 74, .3); }
#cartbar a svg { width: 20px; height: 20px; }
#cartbar a .sum { margin-left: auto; font-weight: 700; }

/* ───── Tab bar (Liquid Glass) ───── */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); width: calc(100% - 32px); max-width: 488px; height: var(--tab-h); display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px; border-radius: 32px; background: rgba(255, 255, 255, .62); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 10px 30px rgba(60, 40, 20, .12); z-index: 30; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.tabbar .ti { position: relative; width: 64px; height: 32px; border-radius: 999px; display: grid; place-items: center; }
.tabbar .ti svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--primary); font-weight: 700; }
.tabbar a.on .ti { background: var(--primary-soft); }
.badge { position: absolute; top: -2px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; display: grid; place-items: center; }

/* ───── Səbət ───── */
.citem { display: flex; flex-direction: row; gap: 14px; padding: 8px; }
.citem .ph { width: 100px; height: 100px; border-radius: 16px; flex: none; }
.citem .body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 6px 2px 0 0; }
.citem .name { font-weight: 700; font-size: 17px; }
.citem .var { color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }
.citem .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.citem.gone { opacity: .55; }
.summary { padding: 18px; margin-top: 18px; }
.summary .row { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 14px; padding: 6px 0; }
.summary .row b { color: var(--ink); font-weight: 600; }
.summary .tot { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; font-size: 22px; font-weight: 800; }
.tagline { text-align: center; color: var(--green); font-size: 14px; font-weight: 500; margin: 28px 0 0; }

/* ───── Sifarişi tamamla ───── */
.tabletile { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 18px; }
.tabletile .num { width: 54px; height: 54px; border-radius: 16px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.tabletile .t { font-weight: 700; font-size: 16px; }
.tabletile .s { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.seg2 button { height: 48px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 600; }
.seg2 button.on { background: var(--primary); color: #fff; }
.note { padding: 16px 18px; margin-top: 14px; }
.note label { display: block; font-weight: 600; font-size: 15px; }
.note .h { color: var(--ink-2); font-size: 12.5px; margin-top: 3px; }
.note textarea { width: 100%; margin-top: 12px; min-height: 76px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.7); outline: 0; font-size: 15px; }
.note textarea:focus { border-color: var(--primary); }
.note .cnt { text-align: right; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.paynote { color: var(--green); font-size: 12.5px; margin-top: 10px; }

/* ───── Təsdiq ───── */
.done-ic { width: 112px; height: 112px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 36px auto 26px; }
.done-ic svg { width: 54px; height: 54px; }
.done-t { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.done-s { text-align: center; color: var(--ink-2); font-size: 15px; margin: 10px 0 26px; }
.ticket { background: var(--primary-soft); border-radius: var(--r-lg); padding: 20px; }
.ticket .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.ticket .v { font-size: 38px; font-weight: 800; color: #7E2E14; margin-top: 6px; letter-spacing: -0.02em; }

/* ───── Boş / xəbərdarlıq ───── */
.empty { text-align: center; padding: 48px 12px; color: var(--ink-2); }
.empty .ic { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.75); display: grid; place-items: center; margin: 0 auto 16px; color: var(--primary); }
.empty .ic svg { width: 32px; height: 32px; }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty .btn { display: inline-flex; margin-top: 18px; height: 44px; align-items: center; padding: 0 22px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--note-bg); color: var(--note-ink); font-size: 13.5px; line-height: 1.4; margin: 0 0 16px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert.red { background: #FBE3DA; color: #8A2E12; }

/* ───── Yükləmə, toast ───── */
.boot { min-height: 70vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(168,64,31,.18); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.9), rgba(255,255,255,.5)); background-size: 200% 100%; animation: sk 1.2s ease infinite; border-radius: var(--r-lg); }
@keyframes sk { to { background-position: -200% 0; } }
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 86px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: calc(100% - 40px); text-align: center; animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { h1 { font-size: 28px; } .hero .t { font-size: 22px; } .grid { gap: 10px; } }

/* ───── Brend başlığı ───── */
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 6px 18px rgba(30,20,10,.25); flex: none; }
.brand-t { flex: 1; min-width: 0; }
.brand .loc { margin: 4px 0 0; font-size: 13px; }
.brand .loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price small.from { font-size: 11px; font-weight: 600; color: var(--ink-2); margin-left: 1px; }

/* ───── Bütün menyu (kateqoriya plitələri) ───── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1.35; box-shadow: var(--shadow); display: block; }
.cat-tile .ct-ph { position: absolute; inset: 0; border-radius: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(20,12,6,.72)); }
.cat-tile .ct-name { position: absolute; left: 12px; right: 40px; bottom: 10px; z-index: 1; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; }
.cat-tile .ct-n { position: absolute; right: 10px; bottom: 10px; z-index: 1; color: #fff; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.cat-tile:active .ct-ph { transform: scale(1.06); }

/* ───── Məlumat bloku ───── */
.info { margin-top: 28px; padding: 18px; }
.if-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; }
.if-head img { border-radius: 50%; }
.if-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
.if-row svg { width: 18px; height: 18px; flex: none; color: var(--primary); margin-top: 1px; }
.if-row a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.if-row b { color: var(--ink); }
.if-social { display: flex; gap: 8px; margin-top: 10px; }
.if-social a { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--chip); display: inline-flex; align-items: center; font-weight: 600; font-size: 13.5px; }

/* ═════════ ANİMASİYALAR ═════════ */
@keyframes ppFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ppFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ppPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes ppSpin { to { transform: rotate(360deg); } }
@keyframes ppFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ppSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ppZoom { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes ppDraw { to { stroke-dashoffset: 0; } }
@keyframes ppRing { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ppShine { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Səhifə keçidi */
#view.enter > * { animation: ppFadeUp .42s cubic-bezier(.2,.8,.2,1) both; }
#view.enter > *:nth-child(2) { animation-delay: .04s; } #view.enter > *:nth-child(3) { animation-delay: .08s; }
#view.enter > *:nth-child(4) { animation-delay: .12s; } #view.enter > *:nth-child(5) { animation-delay: .16s; }
#view.enter > *:nth-child(n+6) { animation-delay: .2s; }

/* Kartlar növbə ilə görünür */
#view.enter .grid > *, #view.enter .list > *, #view.enter .cat-grid > * { animation: ppFadeUp .45s cubic-bezier(.2,.8,.2,1) both; }
#view.enter .grid > *:nth-child(1), #view.enter .list > *:nth-child(1), #view.enter .cat-grid > *:nth-child(1) { animation-delay: .10s; }
#view.enter .grid > *:nth-child(2), #view.enter .list > *:nth-child(2), #view.enter .cat-grid > *:nth-child(2) { animation-delay: .15s; }
#view.enter .grid > *:nth-child(3), #view.enter .list > *:nth-child(3), #view.enter .cat-grid > *:nth-child(3) { animation-delay: .20s; }
#view.enter .grid > *:nth-child(4), #view.enter .list > *:nth-child(4), #view.enter .cat-grid > *:nth-child(4) { animation-delay: .25s; }
#view.enter .grid > *:nth-child(5), #view.enter .list > *:nth-child(5), #view.enter .cat-grid > *:nth-child(5) { animation-delay: .30s; }
#view.enter .grid > *:nth-child(n+6), #view.enter .list > *:nth-child(n+6), #view.enter .cat-grid > *:nth-child(n+6) { animation-delay: .34s; }

/* Banner: pizza-planet yavaş fırlanır və üzür */
.hero .img { animation: ppSpin 60s linear infinite; border-radius: 50%; right: -46px; top: 50%; bottom: auto; width: 190px; height: 190px; margin-top: -95px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero .eta { animation: ppFloat 3.2s ease-in-out infinite; }
.brand .logo { animation: ppRing .6s cubic-bezier(.2,.8,.2,1) both; }

/* Toxunma reaksiyası */
.card, .chip, .cta, .add, .fav, .tabbar a, .stepper button, .seg button, .seg2 button, .opt, .cat-tile { transition: transform .18s cubic-bezier(.2,.8,.2,1), background-color .2s, color .2s, box-shadow .2s; }
.card:active, .cat-tile:active { transform: scale(.98); }
.chip:active, .seg button:active, .seg2 button:active, .opt:active { transform: scale(.96); }
.cta:active { transform: scale(.98); }
.add:active { transform: scale(.88); }
.fav.on svg { animation: ppPop .35s ease; }
.pcard .ph { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.pcard:active .ph { transform: scale(1.04); }

/* Səbətə əlavə: düymə və nişan "atılır" */
.add.bump, #cartBadge.bump, .tabbar .ti.bump { animation: ppPop .45s cubic-bezier(.2,.8,.2,1); }
#cartbar:not([hidden]) a { animation: ppSlideUp .35s cubic-bezier(.2,.8,.2,1) both; }
.cta-wrap .cta { animation: ppSlideUp .4s .1s cubic-bezier(.2,.8,.2,1) both; }

/* Məhsul şəkli böyüyərək açılır */
#view.enter .hero-img { animation: ppZoom .55s cubic-bezier(.2,.8,.2,1) both; }

/* Təsdiq: dairə + işarə çəkilir */
.done-ic { animation: ppRing .6s cubic-bezier(.2,.8,.2,1) both; }
.done-ic svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ppDraw .5s .35s ease-out forwards; }
.ticket { animation: ppFadeUp .5s .5s both; }

/* Yüklənmə skeleti */
.skel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.45), rgba(255,255,255,.95), rgba(255,255,255,.45)); background-size: 200% 100%; animation: ppShine 1.3s linear infinite; border-radius: var(--r-lg); }

@media (prefers-reduced-motion: reduce) {
  #view.enter > *, #view.enter .grid > *, #view.enter .list > *, #view.enter .cat-grid > *, .hero .img, .hero .eta { animation: none !important; }
}
