*{box-sizing:border-box}
:root{font-family:Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light dark;--bg:#fff;--ink:#222;--muted:#909398;--line:#e9e9eb;--orange:#f8a917;--green:#31b545;background:var(--bg);color:var(--ink);font-synthesis:none}
body{margin:0;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid #248bd0;outline-offset:3px}button[hidden],[hidden]{display:none!important}
.icon{border:0;background:transparent;color:#248bd0;font-size:12px;font-weight:500;padding:10px;border-radius:8px;min-height:40px}main{max-width:480px;margin:auto;padding:4px 10px 100px}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 8px}.product{text-align:center;min-width:0}.art{position:relative;display:grid;place-items:center;height:88px;margin:0 0 6px}.art img{width:100%;height:100%;object-fit:contain}.emoji{font-size:64px;line-height:1;filter:drop-shadow(0 3px 2px #0001)}.badge{position:absolute;top:0;right:8px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:20px;background:var(--orange);color:#fff;font-size:13px;font-weight:700;animation:none}.caption{font-size:12px;line-height:18px;overflow-wrap:anywhere}.product h3{display:inline;font-size:inherit;margin:0;font-weight:400}.price{font-size:inherit;font-weight:700;white-space:nowrap}.separator{color:var(--muted)}.unit{font-size:10px;color:var(--muted);line-height:17px}.discount{font-size:9px;color:var(--green);min-height:22px;line-height:13px;padding:1px 0 4px}.stepper{display:flex;justify-content:center;gap:5px;height:30px}.stepper button{display:grid;place-items:center;border:0;border-radius:7px;background:var(--orange);color:#fff;width:38px;height:30px;font-weight:700;font-size:23px;transition:transform .12s,background .12s}.stepper button:active{transform:scale(.91)}.stepper .add{width:80px;font-size:13px}.stepper .remove{background:#ef5651}.checkout{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:16px;width:100%;border:0;border-radius:0;background:var(--green);color:#fff;margin:0;padding:17px 16px calc(17px + env(safe-area-inset-bottom));min-height:54px;font-size:14px;font-weight:650;z-index:2}.checkout b{background:#fff3;border-radius:4px;padding:2px 6px;margin-left:5px}.checkout #cart-total{font-size:12px;opacity:.85}#status{font-size:13px;color:var(--muted);text-align:center;line-height:1.6}#status:empty{display:none}
dialog{border:0;color:var(--ink);background:var(--bg);border-radius:16px 16px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));width:100%;max-width:480px;max-height:85dvh;margin:auto auto 0;box-shadow:0 -8px 40px #0002}dialog[open]{animation:sheet-in .2s ease-out}dialog::backdrop{background:#0006}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}h2{font-size:19px;margin:0;font-weight:650}.sheet-head .icon{font-size:27px;color:var(--muted);width:40px}dialog .checkout{position:static;margin-top:20px;padding:16px;border-radius:8px}dialog .checkout:disabled{opacity:.5}.cart-row{padding:14px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;line-height:1.6;font-size:14px}.cart-row span{color:var(--muted);font-size:12px}.cart-row strong{white-space:nowrap}#sheet-error{color:#e44747;font-size:13px}.total{font-size:19px;font-weight:700;border:0}.success{text-align:center;padding:25px 0}.success .tick{display:block;font-size:52px;color:var(--green);margin-bottom:14px}.success p{font-size:13px;color:var(--muted)}@keyframes pop{from{transform:scale(.65)}to{transform:scale(1)}}@keyframes sheet-in{from{transform:translateY(30px);opacity:.4}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media(max-width:350px){.grid{gap:20px 5px}.caption{font-size:11px}.emoji{font-size:56px}.art{height:78px}.badge{right:3px}}@media(prefers-color-scheme:dark){:root{--bg:#1c1c1e;--ink:#f3f3f4;--muted:#9a9a9f;--line:#343438}}
/* Durger King geometry: 120 x 159 cards, 74px artwork, 80 x 30 buttons. */
:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:13px;--orange:#f8a917;--green:#31b545}
main{padding:0 0 80px;max-width:480px}.grid{display:flex;flex-wrap:wrap;justify-content:space-around;align-content:flex-end;gap:0}.product{position:relative;width:120px;min-height:159px;padding:4px 5px 21px;box-sizing:border-box}.art{height:78px;margin:0;position:static}.art img{width:74px;height:74px;object-fit:contain;align-self:start}.emoji{font-size:70px;line-height:78px;filter:none}.caption{display:flex;justify-content:center;font-size:13px;line-height:16px}.product h3{font-weight:500}.separator{display:none}.price:before{display:inline-block;vertical-align:top;content:'';width:2px;height:2px;border-radius:2px;background:currentColor;margin:7px 4px}.badge{right:0;top:0;min-width:22px;height:22px;padding:2px 6px;margin:4px 6px;border-radius:11px;font-size:14px;line-height:18px;z-index:1}.stepper{position:relative;width:80px;height:30px;margin:10px auto 0;display:block}.stepper button{position:relative;display:inline-block;height:30px;border-radius:7px;padding:6px 16px;font-size:14px;line-height:18px}.stepper .add,.stepper .increase{position:absolute;right:0;top:0;width:80px;transition:width .15s ease}.stepper .increase{width:38px;font-size:0}.stepper .remove{position:absolute;left:0;top:0;width:38px;background:#e64d44;font-size:0}.stepper .increase:before,.stepper .increase:after,.stepper .remove:before{position:absolute;content:'';left:0;right:0;top:0;bottom:0;margin:auto;width:14px;height:3px;border-radius:1px;background:#fff}.stepper .increase:after{width:3px;height:14px}.unit{font-size:10px;line-height:14px}.discount{min-height:0;padding:0;font-size:9px;line-height:13px}body[data-demo]:after{content:'LOKALE DEMO';position:fixed;bottom:60px;right:10px;color:var(--muted);font-size:9px;letter-spacing:1px;pointer-events:none}


.art .product-motion{position:relative;display:block;width:74px;height:74px;min-width:74px;padding:0;margin:0 auto;border:0;border-radius:0;background:transparent;align-self:start;cursor:pointer}.product-motion>img{position:absolute;inset:0}.motion-stage{position:absolute;inset:0;display:block;width:74px;height:74px;pointer-events:none;visibility:hidden}.motion-stage canvas{display:block;width:74px!important;height:74px!important}.motion-ready .motion-stage{visibility:visible}.motion-ready>img{visibility:hidden}

.badge.badge-pop{animation:pop .18s ease-out}.caption{flex-wrap:wrap}.product h3{min-width:0;overflow-wrap:anywhere}

/* Adaptive shop: generous cards for a small assortment, a compact grid for more items. */
:root{color-scheme:light dark;background:var(--bg)}
html,body{background:var(--bg);color:var(--ink)}main{max-width:600px;padding:12px 12px 100px}
.grid{--art-size:80px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 8px;align-content:start}
.grid[data-layout=spacious]{--art-size:112px;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}
.grid[data-layout=single]{--art-size:148px;grid-template-columns:minmax(0,1fr);max-width:300px;margin:14px auto}
.product{width:100%;min-height:0;padding:4px 2px 10px}.art{height:calc(var(--art-size) + 4px)}
.art img{width:var(--art-size);height:var(--art-size)}.emoji{font-size:calc(var(--art-size) * .9);line-height:var(--art-size)}
.art .product-motion{width:var(--art-size);height:var(--art-size);min-width:var(--art-size)}.motion-stage{width:100%;height:100%}.motion-stage canvas{width:100%!important;height:100%!important}
.grid[data-layout=spacious] .caption,.grid[data-layout=single] .caption{font-size:15px;line-height:20px}.badge{right:3px}
@media(max-width:350px){.grid{--art-size:70px;gap:18px 4px}.grid[data-layout=spacious]{--art-size:100px}.grid[data-layout=single]{--art-size:136px}.caption{font-size:11px}}

html,body{touch-action:pan-x pan-y}input,textarea{font-size:16px}
.stepper{width:112px}.stepper .add{left:16px;right:auto;width:80px}.stepper .remove,.stepper .increase{width:32px}.stepper .quantity{position:absolute;left:35px;top:0;width:42px;height:30px;padding:0 2px;border:0;border-radius:6px;background:var(--field);color:var(--ink);text-align:center;font-size:16px;font-weight:650;appearance:textfield;-moz-appearance:textfield}.quantity::-webkit-inner-spin-button,.quantity::-webkit-outer-spin-button{appearance:none;margin:0}.quantity[aria-invalid=true]{outline:1px solid #ff6268}
.discount{display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:7px;margin:0 0 2px;color:var(--muted)}.tier-chip{display:inline-block;font-size:10px;line-height:16px;padding:3px 7px;border-radius:6px;border:1px solid var(--chip-border);background:var(--chip-bg);color:var(--muted)}.tier-active{border-color:var(--tier-accent);color:var(--tier-accent);background:#f8a91712}.caption .price{display:inline-block}
.caption{perspective:180px}.price-roll{transform-origin:center bottom;backface-visibility:hidden;animation:price-down .38s cubic-bezier(.16,.8,.2,1)}@keyframes price-down{0%{transform:translateY(-65%) rotateX(65deg);opacity:0}70%{transform:translateY(3%) rotateX(-5deg);opacity:1}100%{transform:translateY(0) rotateX(0);opacity:1}}
.stepper .quantity-wide{font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:350px){.grid[data-layout=compact] .stepper{width:96px}.grid[data-layout=compact] .stepper .add{left:8px}.grid[data-layout=compact] .stepper .remove,.grid[data-layout=compact] .stepper .increase{width:27px}.grid[data-layout=compact] .stepper .quantity{left:28px;width:40px}.grid[data-layout=compact] .tier-chip{font-size:9px;padding:2px 4px}}

main{padding-top:18px;padding-bottom:100px}

/* Explicit Telegram appearance wins over the OS; CSS-only fallback avoids a dark flash. */
:root{--field:#f1f1f1;--chip-bg:#f7f7f7;--chip-border:#e2e2e2;--tier-accent:#9b6000}
:root[data-theme=light]{color-scheme:light;--bg:#fff;--ink:#171717;--muted:#666;--line:#e5e5e5;--field:#f1f1f1;--chip-bg:#f7f7f7;--chip-border:#e2e2e2;--tier-accent:#9b6000}
:root[data-theme=dark]{color-scheme:dark;--bg:#000;--ink:#f5f5f5;--muted:#999;--line:#303030;--field:#151515;--chip-bg:#101010;--chip-border:#292929;--tier-accent:#f8a917}
@media(prefers-color-scheme:dark){:root:not([data-theme]){--bg:#000;--ink:#f5f5f5;--muted:#999;--line:#303030;--field:#151515;--chip-bg:#101010;--chip-border:#292929;--tier-accent:#f8a917}}

.product-motion>.emoji{display:grid;place-items:center;width:100%;height:100%;font-size:calc(var(--art-size)*.82);line-height:1}
