@font-face{font-family:Mont;src:url(assets/montserrat.woff?v=2) format("woff");font-weight:100 900;font-display:swap}
:root{--orange:#F04807;--ink:#050505;--cream:#FDF3E9;--soft:#FFE6D2;--green:#5C7205;--red:#C60E05;--muted:#76695f;--card:#fff;--field:#fffaf6;--line:#eadbce;--pic:#f4e6da;--off:#e7ddd5;--hero:linear-gradient(100deg,#ffe3c8,#fff3e6);--shadow:0 4px 16px rgba(120,60,10,.09);--top:calc(76px + env(safe-area-inset-top,0px))}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html[data-theme=dark]{--ink:#FDF3E9;--cream:#15100C;--soft:#47230F;--muted:#B8A89A;--card:#231B15;--field:#1A130F;--line:#43342A;--pic:#2E231C;--off:#3A2F28;--hero:linear-gradient(100deg,#3a2113,#251a13);--shadow:0 4px 14px rgba(0,0,0,.4);--green:#9BBF2A}
html[data-theme=dark] body{color-scheme:dark}
html{background:var(--cream)}
body{margin:0;background:var(--cream);color:var(--ink);font:500 14px/1.35 Mont,system-ui,sans-serif;color-scheme:light}
body.locked{overflow:hidden}
button,input,textarea{font:inherit;color:inherit}
button{border:0;background:none;padding:0;cursor:pointer}
button:disabled{cursor:default}
[hidden]{display:none!important}
h1,h2,h3,h4,p{margin:0}
.app{max-width:560px;margin:auto;min-height:100dvh;padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

.top{position:sticky;top:0;z-index:5;height:var(--top);padding:env(safe-area-inset-top,0px) 12px 0;background:var(--cream);display:flex;align-items:center;gap:8px}
.top .logo{width:58px;height:58px;border-radius:50%;box-shadow:var(--shadow)}
.brand{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center}
.brand img{width:100%;max-width:190px;height:auto}
.brand span{font-size:12px;font-weight:700;display:flex;align-items:center;gap:6px;white-space:nowrap}
.brand span:before,.brand span:after{content:"";width:14px;height:3px;border-radius:3px;background:var(--orange)}
.top h1{flex:1;font-size:20px;font-weight:800;padding-left:4px}
.top-actions{display:flex;gap:6px}
.round{position:relative;width:42px;height:42px;border-radius:50%;background:var(--card);box-shadow:var(--shadow);display:grid;place-items:center;flex:none}
.round i{position:absolute;top:-3px;right:-3px;min-width:19px;height:19px;padding:0 4px;border-radius:10px;background:var(--orange);color:#fff;font:700 11px/19px Mont,sans-serif}

main{padding:4px 12px 16px}
.hero{color:#050505;position:relative;height:166px;border-radius:20px;overflow:hidden;background:linear-gradient(110deg,#fff8f0 30%,#ffe3c8);box-shadow:var(--shadow)}
.hero>img{position:absolute;right:-14px;bottom:2px;width:54%;max-height:160px;object-fit:contain;pointer-events:none}
.slide{position:absolute;inset:0;padding:18px 16px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;opacity:0;visibility:hidden;transition:opacity .5s}
.slide.show{opacity:1;visibility:visible}
.slide h2{width:56%;font-size:clamp(15px,4.6vw,21px);line-height:1.22;font-weight:800}
.slide .more{margin-top:10px;padding:7px 12px;border-radius:20px;background:var(--orange);color:#fff;font-size:12px;font-weight:700}
.dots{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;gap:7px;padding:4px 8px;border-radius:20px;background:rgba(255,255,255,.85)}
.dots span{width:8px;height:8px;border-radius:50%;background:#cfc7c0}
.dots span.on{background:var(--orange)}
.status{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:10px;font-size:12px;font-weight:600;color:var(--muted)}
.status b{width:8px;height:8px;border-radius:50%;background:var(--green)}

.search-row{display:flex;gap:8px;margin:10px 0}
.search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:48px;padding:0 14px;border-radius:24px;background:var(--card);box-shadow:var(--shadow)}
.search input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:14px;text-overflow:ellipsis}
.filter{flex:none;width:48px;height:48px;border-radius:16px;background:var(--card);box-shadow:var(--shadow);display:grid;place-items:center}
.filter.on{background:var(--orange);color:#fff}

.pic{display:block;position:relative;aspect-ratio:4/3;background:var(--pic);overflow:hidden}
.pic img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s}
.pic:not(.ready):after{content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-11px;border-radius:50%;border:3px solid rgba(240,72,7,.25);border-top-color:var(--orange);animation:turn .8s linear infinite}
.pic.ready img{opacity:1}

.tiles{display:flex;gap:8px;overflow-x:auto;margin:0 -12px;padding:2px 12px 10px;scrollbar-width:none}
.tiles::-webkit-scrollbar,.chips::-webkit-scrollbar{display:none}
.tiles button{flex:0 0 86px;display:flex;flex-direction:column;background:var(--card);border:2px solid var(--card);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.tiles button.first{background:var(--soft);border-color:var(--orange)}
.tiles .pic{aspect-ratio:1;width:100%}
.tiles button>span:last-child{flex:1;display:grid;place-items:center;min-height:40px;padding:4px 3px;font-size:10.5px;font-weight:700;line-height:1.2}

.head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 10px}
.head h2,.section>h2{font-size:18px;font-weight:800}
.head button{white-space:nowrap;display:flex;align-items:center;gap:4px;color:var(--orange);font-size:12px;font-weight:700}
.head button .ico{width:17px;height:17px}
.section{margin-bottom:20px}
.section>h2{margin:8px 0 10px}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.card{position:relative;display:flex;flex-direction:column;background:var(--card);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.card .open{display:block;width:100%}
.card.gone .pic,.card.gone .price{opacity:.45}
.badge{position:absolute;left:8px;top:8px;padding:4px 9px;border-radius:20px;background:var(--orange);color:#fff;font-size:10.5px;font-weight:800;pointer-events:none}
.fav{color:#050505;position:absolute;right:7px;top:7px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.94);display:grid;place-items:center}
.fav .ico{width:19px;height:19px}
.fav.on .ico{fill:var(--orange);stroke:var(--orange)}
.info{flex:1;padding:8px 10px 4px;cursor:pointer}
.info h3{font-size:13.5px;font-weight:700;line-height:1.25}
.info p{margin-top:3px;font-size:11px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.buy{padding:4px 8px 9px;display:flex;flex-direction:column;gap:6px}
.price{display:flex;flex-direction:column;justify-content:flex-end;min-height:34px;padding:0 2px}
.price s{font-size:11px;color:var(--muted)}
.price b{font-size:15px;font-weight:800}
.add,.buy .stepper{width:100%;height:36px}
.add{display:flex;align-items:center;justify-content:center;gap:6px;border-radius:18px;background:var(--orange);color:#fff;font-size:12.5px;font-weight:700}
.add i{font-style:normal;font-size:17px;line-height:1}
.add.off{background:var(--off);color:var(--muted)}
.stepper{display:flex;align-items:center;justify-content:space-between;gap:6px;border-radius:20px;background:var(--soft);padding:0 3px}
.stepper button{width:32px;height:30px;border-radius:16px;background:var(--orange);color:#fff;font-size:20px;font-weight:700;line-height:1}
.stepper b{min-width:22px;text-align:center;font-weight:800}
.stepper>.spin{margin:8px auto;color:var(--orange)}

.promo{display:flex;align-items:center;gap:12px;width:100%;margin:14px 0 6px;padding:14px 12px;border-radius:18px;background:var(--hero);text-align:left;box-shadow:var(--shadow)}
.promo>span:nth-child(2){flex:1;display:flex;flex-direction:column}
.promo b{font-size:14px;font-weight:800}
.promo small{font-size:11.5px;color:var(--muted)}
.gift,.circle{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--orange);color:#fff;font-size:21px;font-weight:800}
.gift{border-radius:12px;transform:rotate(-8deg)}
.circle{width:36px;height:36px}

.chips{position:sticky;top:var(--top);z-index:4;display:flex;gap:7px;overflow-x:auto;margin:0 -12px 4px;padding:8px 12px;background:var(--cream);scrollbar-width:none}
.chips button{flex:none;padding:9px 14px;border-radius:20px;background:var(--card);box-shadow:var(--shadow);font-size:12.5px;font-weight:700}
.chips button.on{background:var(--orange);color:#fff}

.nav{position:fixed;z-index:6;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:560px;display:grid;grid-template-columns:repeat(4,1fr);padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px));background:var(--card);border-radius:20px 20px 0 0;box-shadow:0 -4px 18px rgba(120,60,10,.1)}
.nav button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;font-weight:600}
.nav button.active{color:var(--orange);font-weight:800}
.nav button.active .ico{fill:var(--soft)}
.nav button:after{content:"";width:28px;height:3px;border-radius:3px}
.nav button.active:after{background:var(--orange)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 18px;border-radius:24px;background:var(--orange);color:#fff;font-weight:800}
.btn:disabled{opacity:.7}
.btn.wide{display:flex;width:100%}
.btn.ghost{background:var(--soft);color:var(--ink)}
.box{background:var(--card);border-radius:18px;padding:14px;margin:10px 0;box-shadow:var(--shadow)}
.box h3{font-size:14px;font-weight:800;margin-bottom:8px}
.box small,.note{display:block;font-size:11.5px;color:var(--muted)}
.note{text-align:center;margin-top:10px}
.total{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px}
.total b{font-size:19px;font-weight:800}
.total small{width:100%}
.line{display:grid;grid-template-columns:72px 1fr 100px;gap:10px;align-items:center;background:var(--card);border-radius:16px;padding:8px;margin-bottom:8px;box-shadow:var(--shadow)}
.line .pic{border-radius:12px;aspect-ratio:1}
.line h3{font-size:13px;font-weight:700}
.line small{display:block;font-size:11px;color:var(--muted)}
.line b{display:block;margin-top:3px;font-weight:800}
.line .stepper{height:36px}
.line .stepper b{margin:0}
.form input:not([type=radio]),.form textarea{display:block;width:100%;margin-bottom:8px;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--field);font-size:16px;outline:0}
.form input:focus,.form textarea:focus{border-color:var(--orange)}
.form .btn.ghost{margin-bottom:8px}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.choices+input{margin-top:8px}
.choice input{position:absolute;opacity:0}
.choice span{display:grid;place-items:center;text-align:center;height:100%;min-height:44px;padding:6px;border:1.5px solid var(--line);border-radius:14px;font-size:12.5px;font-weight:700}
.choice input:checked+span{border-color:var(--orange);background:var(--soft)}
.steps{margin:0;padding-left:20px}
.steps li{padding:5px 0;color:var(--muted);font-size:12.5px}
.steps li::marker{color:var(--orange);font-weight:800}
.steps b{display:block;color:var(--ink);font-size:13.5px}
.about{text-align:center}
.about img{width:130px;height:130px;margin-bottom:6px}
.rows>*{display:flex;align-items:center;gap:10px;width:100%;padding:11px 0;text-align:left;font-weight:600}
.rows>*+*{border-top:1px solid var(--line)}
.rows .ico{color:var(--orange)}
.empty{text-align:center;padding:34px 20px;display:flex;flex-direction:column;align-items:center;gap:10px}
.empty img{width:112px;height:112px}
.empty h2{font-size:18px;font-weight:800}
.empty p{color:var(--muted);max-width:280px}

.sheet{display:none}
.sheet.open{display:block}
.shade{position:fixed;inset:0;z-index:8;background:rgba(20,8,0,.48)}
.panel{position:fixed;z-index:9;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:560px;max-height:92dvh;overflow-y:auto;border-radius:24px 24px 0 0;background:var(--cream);animation:up .25s ease-out}
.panel .close{position:absolute;z-index:2;right:12px;top:12px;width:36px;height:36px;border-radius:50%;background:#fff;box-shadow:var(--shadow);font-size:24px;line-height:1}
.panel>.pic{max-height:42dvh;width:100%}
.detail{padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px}
.detail h2{font-size:21px;font-weight:800;padding-right:40px}
.detail small{color:var(--muted);font-weight:700}
.detail h4{font-size:12px;color:var(--muted);margin-top:4px}
.variants{display:grid;gap:8px}
.variants button{display:flex;justify-content:space-between;padding:13px 14px;border-radius:14px;background:var(--card);border:2px solid var(--card);font-weight:700}
.variants button.on{border-color:var(--orange);background:var(--soft)}
.detail-buy{display:flex;gap:10px;margin-top:4px}
.stepper.big{height:48px;border-radius:24px;padding:0 6px}
.stepper.big button{width:36px;height:36px;border-radius:50%}
.detail-buy .btn{flex:1;padding:10px;font-size:13.5px}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pills button{padding:10px 14px;border-radius:20px;background:var(--card);font-size:12.5px;font-weight:700}
.pills button.on{background:var(--orange);color:#fff}
.done{align-items:center;text-align:center}
.done img{width:110px;height:110px}
.done h2{padding:0}

.spin{display:inline-block;width:20px;height:20px;border-radius:50%;border:3px solid currentColor;border-right-color:transparent;animation:turn .7s linear infinite}
.loading{display:flex;flex-direction:column;align-items:center;gap:14px;padding:80px 20px;color:var(--muted)}
.loading .spin{width:38px;height:38px;color:var(--orange)}
.toast{position:fixed;z-index:12;left:50%;bottom:92px;transform:translate(-50%,10px);max-width:90%;padding:11px 16px;border-radius:14px;background:#201712;color:#fff;font-size:13px;opacity:0;pointer-events:none;transition:.25s;text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes turn{to{transform:rotate(360deg)}}
@keyframes up{from{translate:0 40px;opacity:.4}}
@media (max-width:359px){.head h2{font-size:16px}.top .logo{width:46px;height:46px}.round{width:36px;height:36px}.line{grid-template-columns:56px 1fr 94px}}
html[data-theme=dark] .panel .close{border:1px solid var(--line)}
.panel .close{background:#fff;color:#050505}
.nav-ico{position:relative;display:block;height:22px}
.nav-ico i{position:absolute;top:-6px;right:-12px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--orange);color:#fff;font:800 10.5px/18px Mont,sans-serif;font-style:normal}
.top-actions{gap:5px}
.top .round{width:39px;height:39px}
.side .panel{left:auto;right:0;top:0;transform:none;width:min(82%,320px);max-height:none;height:100%;border-radius:22px 0 0 22px;padding-top:env(safe-area-inset-top,0px);animation:slide .25s ease-out}
@keyframes slide{from{translate:40px 0;opacity:.4}}
.rows span{flex:1}
@media (max-width:359px){.top{gap:5px;padding-left:8px;padding-right:8px}.top .logo{width:42px;height:42px}.top .round{width:33px;height:33px}.top-actions{gap:4px}.top h1{font-size:16px}.brand span{font-size:10px}.brand span:before,.brand span:after{display:none}}
