:root{color-scheme:light;--paper:#f4f0e4;--surface:#fffdf7;--ink:#173323;--muted:#697369;--green:#27533a;--matcha:#8eaf55;--foam:#dce9bb;--soft:#e2ead3;--line:rgba(25,62,40,.13);--shadow:rgba(34,54,36,.16);--danger:#9c3f35;--safe-bottom:max(14px,env(safe-area-inset-bottom));font-family:"Alexandria",sans-serif;font-synthesis:none}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink)}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(72,117,70,.3);outline-offset:2px}
body.sheet-open{overflow:hidden}
[hidden]{display:none!important}

#app{max-width:540px;margin:auto;min-height:100dvh;padding-bottom:92px;background:var(--paper);position:relative;overflow:hidden}
.topbar{height:72px;padding:12px 17px;display:flex;align-items:center;justify-content:space-between;position:absolute;top:0;left:0;right:0;z-index:20}
.brand{display:flex;align-items:center;gap:9px;color:inherit;text-decoration:none}
.brand img{width:43px;height:43px;border-radius:15px;object-fit:cover;box-shadow:0 5px 18px rgba(31,49,31,.12)}
.brand span{display:grid}
.brand b{font-size:.83rem;font-weight:600}
.brand small{color:var(--muted);font-size:.63rem;margin-top:2px}
.icon-button{width:46px;height:46px;border-radius:16px;border:1px solid var(--line);background:rgba(255,253,247,.78);backdrop-filter:blur(12px);color:var(--ink);display:grid;place-items:center;position:relative}
.icon-button svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.topbar-actions{display:flex;align-items:center;gap:8px}
.admin-shortcut{display:none}
.cart-count{position:absolute;top:-5px;left:-5px;min-width:20px;height:20px;padding:0 4px;border-radius:99px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:.64rem;border:2px solid var(--paper)}

.hero{margin:0 13px;padding:100px 18px 28px;min-height:750px;border-radius:0 0 34px 34px;background:radial-gradient(circle at 20% 13%,rgba(255,255,255,.85),transparent 30%),linear-gradient(155deg,#e6e8d2,#c8d5aa);position:relative;overflow:hidden;isolation:isolate}
.hero-copy{position:relative;z-index:8}
.eyebrow{display:block;color:var(--green);font-size:.7rem;margin-bottom:8px}
.hero h1{margin:0;font-size:2.35rem;line-height:1.2;letter-spacing:-.05em;font-weight:600}
.hero-copy p{max-width:300px;margin:13px 0 0;color:#536456;font-size:.82rem;line-height:1.8}
.hero-scene{position:absolute;inset:275px 0 86px}
.counter{position:absolute;left:-10%;right:-10%;bottom:45px;height:105px;background:linear-gradient(180deg,#d8cbb3,#bdad90);transform:rotate(-2deg);z-index:1}
.surface-shadow{position:absolute;width:194px;height:34px;left:50%;bottom:126px;translate:-50% 0;border-radius:50%;background:rgba(30,48,29,.2);filter:blur(8px);z-index:2}
.glass{position:absolute;width:158px;height:224px;left:50%;bottom:125px;translate:-50% 0;border-radius:15px 15px 40px 40px;background:linear-gradient(90deg,rgba(255,255,255,.48),rgba(255,255,255,.12) 45%,rgba(255,255,255,.32));border:1px solid rgba(255,255,255,.68);box-shadow:inset 10px 0 17px rgba(255,255,255,.28),inset -7px 0 12px rgba(44,65,40,.08),0 24px 36px var(--shadow);z-index:4;animation:cup-float 7s ease-in-out infinite}
.drink{position:absolute;inset:57px 6px 6px;border-radius:8px 8px 34px 34px;background:linear-gradient(180deg,var(--foam) 0 8%,var(--matcha) 15%,#73943f);overflow:hidden}
.drink:before{content:"";position:absolute;left:-9px;right:-9px;top:-6px;height:25px;border-radius:50%;background:var(--foam);animation:liquid 5s ease-in-out infinite}
.rim{position:absolute;left:-2px;right:-2px;top:-4px;height:17px;border:3px solid rgba(255,255,255,.68);border-radius:50%;z-index:8;background:rgba(255,255,255,.1)}
.straw{position:absolute;width:11px;height:250px;right:39px;top:-104px;border-radius:99px;background:linear-gradient(90deg,#a99676,#eadfc4,#88765a);transform:rotate(8deg);transform-origin:bottom;z-index:6;-webkit-mask-image:linear-gradient(to bottom,#000 0 62%,rgba(0,0,0,.8) 72%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0 62%,rgba(0,0,0,.8) 72%,transparent 100%);animation:straw 6s ease-in-out infinite}
.ice{position:absolute;border-radius:9px;background:linear-gradient(145deg,rgba(255,255,255,.66),rgba(225,238,214,.2));border:1px solid rgba(255,255,255,.65)}
.ice.i1{width:38px;height:29px;top:67px;left:18px;transform:rotate(16deg)}
.ice.i2{width:35px;height:31px;top:71px;right:18px;transform:rotate(-13deg)}
.ice.i3{width:32px;height:26px;top:105px;left:58px;transform:rotate(7deg)}
.leaf{position:absolute;width:52px;height:25px;background:#557b45;border-radius:100% 0 100% 0;z-index:3}
.leaf-one{left:24px;bottom:123px;transform:rotate(-25deg)}
.leaf-two{left:62px;bottom:107px;transform:rotate(30deg) scale(.72)}
.primary{border:0;background:var(--green);color:#fff;min-height:54px;border-radius:18px;padding:0 20px;font-weight:500;box-shadow:0 10px 26px var(--shadow)}
.hero-cta{position:absolute;right:20px;left:20px;bottom:28px;z-index:9;display:flex;align-items:center;justify-content:center;gap:9px}

.menu{padding:35px 18px 30px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:18px}
.section-heading h2,.admin-header h2{margin:0;font-size:1.5rem}
.store-state{font-size:.69rem;padding:7px 10px;border-radius:99px;background:var(--soft);color:var(--green)}
.store-state.closed{background:#f0ddd7;color:var(--danger)}
.categories{display:flex;gap:8px;overflow-x:auto;padding:1px 0 15px;scrollbar-width:none}
.categories button,.admin-tabs button{border:1px solid var(--line);background:var(--surface);color:var(--muted);height:43px;border-radius:14px;padding:0 16px;white-space:nowrap}
.categories button.active,.admin-tabs button.active{background:var(--green);color:#fff;border-color:var(--green)}
.products{display:grid;gap:12px}
.product-card{display:grid;grid-template-columns:105px 1fr;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:23px;padding:10px;min-height:126px;align-items:center}
.product-visual{height:104px;border-radius:17px;background:linear-gradient(145deg,#e7e1cf,#c7d5aa);display:grid;place-items:center;overflow:hidden;position:relative}
.mini-cup{width:48px;height:65px;border-radius:8px 8px 17px 17px;background:linear-gradient(90deg,rgba(255,255,255,.5),var(--matcha));border:1px solid rgba(255,255,255,.55);box-shadow:0 10px 18px var(--shadow);position:relative}
.mini-cup:before{content:"";position:absolute;width:5px;height:57px;border-radius:5px;background:#c5b492;right:9px;top:-29px;transform:rotate(8deg)}
.badge{position:absolute;top:7px;right:7px;border-radius:8px;background:rgba(255,253,247,.86);padding:4px 6px;font-size:.55rem;color:var(--green)}
.product-card h3{margin:0 0 5px;font-size:.94rem}
.product-card p{margin:0;color:var(--muted);font-size:.7rem;line-height:1.65}
.product-footer{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.price{font-weight:600;font-size:.85rem}
.add-button{width:43px;height:43px;border:0;border-radius:14px;background:var(--soft);color:var(--green);font-size:1.25rem}
.add-button:disabled{opacity:.45;cursor:not-allowed}

.bottom-nav{position:fixed;bottom:var(--safe-bottom);left:50%;translate:-50% 0;width:min(calc(100% - 24px),516px);height:70px;border-radius:23px;background:rgba(255,253,247,.95);border:1px solid var(--line);box-shadow:0 13px 34px var(--shadow);display:grid;grid-template-columns:repeat(4,1fr);z-index:30;padding:7px;backdrop-filter:blur(15px)}
.nav-item{border:0;background:transparent;color:var(--muted);border-radius:16px;display:grid;place-items:center;align-content:center;gap:3px}
.nav-item.active{background:#edf0e2;color:var(--green)}
.nav-item span{font-size:1.05rem}
.nav-item small{font-size:.61rem}

.sheet-backdrop{position:fixed;inset:0;background:rgba(17,29,20,.38);backdrop-filter:blur(3px);z-index:50}
.sheet{position:fixed;z-index:51;left:50%;translate:-50% 0;bottom:0;width:min(100%,540px);max-height:92dvh;overflow:auto;background:var(--surface);border-radius:30px 30px 0 0;padding:12px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -18px 45px rgba(21,34,24,.18)}
.sheet-handle{width:42px;height:5px;border-radius:99px;background:#d8d8ce;margin:0 auto 15px}
.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:15px}
.sheet-head h2{margin:0;font-size:1.25rem}
.close-sheet{width:44px;height:44px;border:0;border-radius:14px;background:var(--paper);color:var(--ink)}
.sheet-image{height:190px;border-radius:22px;background:linear-gradient(145deg,#e7e1cf,#c4d3a6);display:grid;place-items:center;margin:15px 0}
.sheet-image .mini-cup{transform:scale(1.65)}
.sheet-description{color:var(--muted);line-height:1.8;font-size:.82rem}
.quantity-row{display:flex;justify-content:space-between;align-items:center;margin:18px 0}
.stepper{display:flex;align-items:center;gap:13px}
.stepper button{width:44px;height:44px;border:0;border-radius:14px;background:var(--soft);color:var(--green);font-size:1.2rem}
.field{display:grid;gap:7px;margin:14px 0}
.field label{font-size:.76rem;color:var(--muted)}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:15px;padding:13px 14px;min-height:48px}
.field textarea{min-height:82px;resize:vertical}
.sheet .primary{width:100%;margin-top:10px}
.cart-item{display:grid;grid-template-columns:1fr auto;gap:10px;border-bottom:1px solid var(--line);padding:15px 0}
.cart-item h3{margin:0 0 5px;font-size:.85rem}
.cart-item p{margin:0;color:var(--muted);font-size:.7rem}
.cart-total{display:flex;justify-content:space-between;align-items:center;font-size:1.05rem;font-weight:600;margin:20px 0}
.empty{text-align:center;padding:45px 15px;color:var(--muted)}
.remember{display:flex;align-items:flex-start;gap:9px;color:var(--muted);font-size:.72rem;line-height:1.6}
.remember input{margin-top:3px}
.order-success{text-align:center;padding:20px 0}
.success-cup{width:82px;height:82px;margin:0 auto 20px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-size:2.2rem;animation:success 1s ease}
.order-success h2{margin:0 0 9px}
.order-success p{color:var(--muted);line-height:1.8}

.admin-view{max-width:900px;margin:auto;min-height:100dvh;background:var(--paper);padding:22px 18px 60px}
.admin-header{display:flex;justify-content:space-between;align-items:center}
.secondary{height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:0 15px}
.admin-tabs{display:flex;gap:8px;overflow:auto;margin:25px 0 18px}
.admin-content{display:grid;gap:12px}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:15px}
.stat small{display:block;color:var(--muted);font-size:.66rem}
.stat b{display:block;margin-top:8px;font-size:1.15rem}
.order-card,.admin-product,.settings-card{background:var(--surface);border:1px solid var(--line);border-radius:21px;padding:15px}
.order-top{display:flex;justify-content:space-between;gap:12px}
.order-card h3,.settings-card h3{margin:0;font-size:.9rem}
.order-card p{color:var(--muted);font-size:.72rem;line-height:1.7}
.order-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.order-actions select,.order-actions button{height:43px;border-radius:13px;border:1px solid var(--line);background:var(--paper);padding:0 10px;color:var(--ink)}
.order-actions button{background:var(--green);color:#fff;border-color:var(--green)}
.admin-product{display:flex;justify-content:space-between;align-items:center;gap:12px}
.admin-product h3{margin:0 0 4px;font-size:.86rem}
.admin-product small{color:var(--muted)}
.admin-add-product{width:100%;margin-bottom:4px}
.product-editor{display:grid;gap:2px}
.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.admin-product-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.admin-product-actions .secondary{height:38px;padding:0 11px}
.delete-product{height:38px;border:0;border-radius:12px;background:#f0ddd7;color:var(--danger);padding:0 11px}
.toggle{border:0;border-radius:99px;padding:8px 12px;background:var(--soft);color:var(--green)}
.toggle.off{background:#eee1dc;color:var(--danger)}
.settings-card .field{margin-bottom:0}
.toast{position:fixed;left:50%;bottom:100px;translate:-50% 15px;background:var(--ink);color:#fff;border-radius:15px;padding:11px 16px;opacity:0;pointer-events:none;transition:.2s;z-index:80;white-space:nowrap;font-size:.75rem}
.toast.show{opacity:1;translate:-50% 0}
.toast.error{background:var(--danger)}
.form-error{background:#f6e5df;color:#793a2b;border-radius:13px;padding:11px 13px;font-size:.75rem;line-height:1.6;margin:10px 0}
.form-error[hidden]{display:none}
.admin-login{max-width:430px;margin:50px auto}
.admin-login p{color:var(--muted);font-size:.8rem;line-height:1.7}
.status-label{display:inline-block;color:var(--green);background:var(--soft);border-radius:9px;padding:4px 8px;font-size:.62rem;margin-bottom:7px}
.mini-chart{height:190px;display:flex;align-items:end;gap:9px;padding-top:24px}
.mini-chart>div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}
.mini-chart span{display:block;width:min(26px,80%);min-height:4px;background:linear-gradient(180deg,var(--green),#a6bd72);border-radius:8px 8px 3px 3px}
.mini-chart small{font-size:.58rem;color:var(--muted);white-space:nowrap}
.settings-card details{margin:18px 0;border-top:1px solid var(--line);padding-top:16px}
.settings-card summary{cursor:pointer;color:var(--green);font-weight:600}
.settings-help{color:var(--muted);font-size:.72rem;line-height:1.7}
.unavailable{opacity:.66}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(91,125,48,.3);outline-offset:2px}
button:disabled{opacity:.45;cursor:not-allowed}
button{touch-action:manipulation;cursor:pointer}

@keyframes cup-float{50%{translate:-50% -6px}
}
@keyframes liquid{50%{transform:translateX(6px) rotate(1deg)}
}
@keyframes straw{35%{transform:rotate(9.5deg)}
70%{transform:rotate(7deg)}
}
@keyframes success{50%{transform:rotate(8deg) scale(1.08)}
}

@media(min-width:700px){#app{max-width:100%;padding-bottom:40px}
.admin-shortcut{display:inline-flex;align-items:center;justify-content:center}
.topbar{position:fixed;background:rgba(244,240,228,.86);backdrop-filter:blur(14px);padding-inline:max(24px,calc((100vw - 1120px)/2))}
.hero{max-width:1120px;margin:92px auto 0;min-height:660px;padding:80px 60px;border-radius:38px}
.hero-copy{max-width:480px}
.hero h1{font-size:4.2rem}
.hero-scene{inset:110px 0 60px 42%}
.hero-cta{right:60px;left:auto;width:230px}
.menu{max-width:1120px;margin:auto;padding:55px 0}
.products{grid-template-columns:repeat(2,1fr)}
.bottom-nav{display:none}
.admin-view{padding-top:40px}
}
@media(max-width:480px){.editor-grid{grid-template-columns:1fr}.admin-product{align-items:flex-start}.admin-product-actions{max-width:190px}}
@media(max-width:360px){.hero{margin-inline:8px;padding-inline:15px}
.hero h1{font-size:2rem}
.product-card{grid-template-columns:88px 1fr}
.product-visual{height:94px}
.stat-grid{grid-template-columns:1fr}
.order-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
