@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
:root{--primary:#ffbd00;--secondary:#fff6cf;--bg:#faf9f5;--text:#211f19;--card:#fff;--muted:#8c887e;--line:#ede9df;--danger:#ec564a;--green:#1ca66a;--shadow:0 12px 36px rgba(59,45,10,.08);--shadow-lg:0 24px 70px rgba(42,32,9,.14);--r:20px;--app-safe-top:max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));--app-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px))}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Vazirmatn,sans-serif;color:var(--text);background:#efede7;-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}input,textarea,select{width:100%;border:1px solid var(--line);background:#fbfaf7;border-radius:13px;padding:12px;outline:none;color:var(--text);transition:.2s}input:focus,textarea:focus,select:focus{border-color:var(--primary);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--primary),transparent 82%)}textarea{min-height:90px;resize:vertical}label{display:flex;flex-direction:column;gap:6px;margin:11px 0;font-size:11px;color:#625e54}.two,.colors{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary{width:100%;min-height:50px;border:0;border-radius:15px;padding:12px 17px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary),white 18%),var(--primary));color:#29230f;font-weight:800;box-shadow:0 10px 28px color-mix(in srgb,var(--primary),transparent 65%);transition:.2s}.primary:active{transform:scale(.98)}
/* Mini app */
#app{width:min(520px,100%);min-height:100dvh;margin:auto;background:var(--bg);padding-bottom:90px;box-shadow:0 0 80px rgba(31,25,11,.13);overflow:hidden}.splash,.error-screen{min-height:100dvh;display:grid;place-content:center;text-align:center;padding:24px}.splash b,.logo{width:74px;height:74px;margin:auto;display:grid;place-items:center;border-radius:23px;background:var(--primary);font-size:27px;font-weight:900;box-shadow:0 18px 45px color-mix(in srgb,var(--primary),transparent 62%)}.splash span{margin-top:13px;color:var(--muted);font-size:11px}.hero{position:relative;min-height:290px;padding:31px 23px 65px;display:flex;justify-content:space-between;overflow:hidden;border-radius:0 0 38px 38px;background:radial-gradient(circle at 12% 10%,rgba(255,255,255,.62),transparent 31%),linear-gradient(145deg,color-mix(in srgb,var(--primary),white 24%),var(--primary));box-shadow:0 20px 48px color-mix(in srgb,var(--primary),transparent 72%)}.hero:after{content:'';position:absolute;width:210px;height:210px;left:-105px;bottom:-145px;border-radius:50%;background:#fff5}.hero>div:first-child{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start}.hero>div>span{background:#fff;color:#27794b;border-radius:99px;padding:5px 9px;font-size:9px;font-weight:700;box-shadow:0 6px 18px #75550012}.hero small{margin-top:17px;color:#695411}.hero h1{font-size:34px;line-height:1.24;letter-spacing:-1.4px;margin:7px 0;font-weight:800}.hero em{font-style:normal;color:#fff;text-shadow:0 5px 18px #7958002b}.hero p{margin:0;color:#695411;font-size:10px}.hero-logo{position:relative;z-index:1;width:64px;height:64px;display:grid;place-items:center;border-radius:21px;background:#fff;font-weight:900;font-size:22px;box-shadow:0 15px 36px #6e510025;transform:rotate(-4deg)}.hero-logo img,.logo img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.search{position:relative;z-index:2;height:58px;margin:-29px 18px 16px;display:flex;align-items:center;gap:10px;padding:0 16px;border:1px solid #fff;background:#fff;border-radius:18px;box-shadow:var(--shadow-lg)}.search svg{width:22px;color:#837d71}.search input{padding:0;border:0;background:transparent;box-shadow:none}.cats{display:flex;gap:7px;overflow:auto;padding:2px 18px 17px;scrollbar-width:none}.cats::-webkit-scrollbar{display:none}.cats button{border:1px solid var(--line);background:#fff;border-radius:99px;padding:8px 16px;color:#746e62;white-space:nowrap;font-size:10px;transition:.2s}.cats button.active{background:var(--primary);border-color:var(--primary);color:#32290e;font-weight:700;box-shadow:0 7px 18px color-mix(in srgb,var(--primary),transparent 65%)}.products,.page{padding:0 18px}.products h2,.page h1{font-size:22px;letter-spacing:-.7px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.product{overflow:hidden;background:var(--card);border:1px solid #f1ede5;border-radius:21px;padding-bottom:11px;box-shadow:0 8px 28px rgba(48,38,12,.055);transition:.2s}.product:active{transform:scale(.98)}.product>div{height:145px;background-position:center;background-size:cover}.product>small,.product>h3,.product>p,.product>footer{margin-right:11px;margin-left:11px}.product>small{display:inline-block;margin-top:9px;padding:3px 7px;border-radius:99px;background:var(--secondary);color:#966c00;font-size:8px}.product h3{margin-top:6px;margin-bottom:2px;font-size:14px}.product p{height:27px;overflow:hidden;margin-top:3px;color:var(--muted);font-size:9px}.product footer{display:flex;align-items:center;justify-content:space-between}.product footer b{font-size:10px}.product footer button{width:31px;height:31px;border:0;border-radius:50%;background:var(--primary);font-size:19px;box-shadow:0 7px 17px color-mix(in srgb,var(--primary),transparent 62%)}nav{position:fixed;z-index:50;bottom:9px;left:50%;width:min(492px,calc(100% - 20px));height:70px;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-around;padding:6px;border:1px solid #ffffffd1;background:#fffffff0;border-radius:22px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 18px 52px rgba(40,31,8,.23)}nav button{position:relative;width:24%;height:55px;border:0;border-radius:15px;background:transparent;color:#9b968d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:.23s}nav button.active{background:var(--secondary);color:#9b7000;transform:translateY(-3px)}nav svg,nav img{width:21px;height:21px;object-fit:contain}nav span{font-size:8px;font-weight:600}nav button.active span{font-weight:800}nav i{position:absolute;top:0;right:15px;padding:1px 5px;border-radius:99px;background:var(--danger);color:#fff;font-size:8px;font-style:normal}.closed{position:sticky;z-index:30;top:7px;margin:7px 13px -1px;display:flex;gap:8px;padding:10px 12px;background:#fff1e5;border:1px solid #ffd3ab;border-radius:15px;color:#8c4b10;box-shadow:0 8px 25px #743b0810}.closed span{display:flex;flex-direction:column}.closed small{font-size:8px}.page{padding-top:22px}.page-head{display:flex;align-items:center;justify-content:space-between}.page-head small{color:#a17600}.page-head h1{margin:1px 0 17px}.page-head>span{padding:6px 10px;background:var(--secondary);border-radius:99px;font-size:9px}.cart-list{display:grid;gap:10px}.cart-row{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;background:#fff;border-radius:18px;box-shadow:var(--shadow)}.cart-row img{width:72px;height:72px;object-fit:cover;border-radius:14px}.cart-copy b{font-size:13px}.cart-copy small{display:block;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:8px}.cart-copy strong{display:block;margin-top:6px;font-size:10px}.cart-row .remove{position:absolute;top:-5px;right:-5px;width:23px;height:23px;padding:0;border:0;border-radius:50%;background:#fff0ee;color:#b83930}.summary,.panel,.order{margin-top:14px;padding:18px;border:1px solid var(--line);background:#fff;border-radius:21px;box-shadow:var(--shadow)}.summary p{display:flex;justify-content:space-between;font-size:11px}.summary .grand{margin-top:12px;padding-top:12px;border-top:1px dashed #d9d2c3}.summary .grand strong{font-size:16px}.empty-state,.empty{min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-state>span{font-size:55px}.empty-state h2{margin:5px 0}.empty-state p{margin-top:0;color:var(--muted);font-size:11px}.empty-state button{border:0;background:var(--primary);border-radius:13px;padding:10px 17px}.order header{display:flex;justify-content:space-between}.order header span{padding:4px 8px;background:var(--secondary);border-radius:99px;font-size:9px}.order p{color:var(--muted);font-size:10px}
/* Sheets, counters, checkout */
.modal{position:fixed;z-index:100;inset:0;display:grid;place-items:end center;background:rgba(18,15,9,.52);animation:fade .18s ease}.modal>div,.modal>form{position:relative;width:min(520px,100%);max-height:94dvh;overflow:auto;padding:20px;background:#fff;border-radius:28px 28px 0 0;animation:up .3s cubic-bezier(.2,.8,.2,1)}@keyframes fade{from{background:transparent}}@keyframes up{from{opacity:.2;transform:translateY(45px)}}.close{position:absolute;z-index:4;top:14px;left:15px;width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 6px 20px #0002;font-size:22px}.product-sheet>div{overflow:hidden;padding-top:0}.modal-image{height:280px;margin:0 -20px;background-position:center;background-size:cover}.sheet-title{padding:16px 1px 5px}.sheet-title>small{padding:4px 8px;background:var(--secondary);border-radius:99px;color:#976c00;font-size:9px}.sheet-title h2{margin:8px 0 3px;font-size:25px}.sheet-title p{margin-top:3px;color:var(--muted);font-size:11px}.product-sheet h3,.checkout-section h3{font-size:13px}.addon-list{overflow:hidden;border:1px solid var(--line);border-radius:17px}.counter-row,.product-quantity{display:flex;align-items:center;justify-content:space-between;padding:13px;background:#fff;border-bottom:1px solid var(--line)}.counter-row:last-child{border:0}.counter-row>span,.product-quantity>span{display:flex;flex-direction:column}.counter-row small,.product-quantity small{color:var(--muted);font-size:9px}.product-quantity{margin:12px 0;border:1px solid var(--line);border-radius:17px}.counter{display:flex;align-items:center;gap:10px;padding:4px;background:#f6f3eb;border-radius:13px}.counter button{width:31px;height:31px;border:0;border-radius:10px;background:#fff;font-size:18px;box-shadow:0 3px 10px #3024000c}.counter button:last-child{background:var(--primary)}.counter>b{min-width:16px;text-align:center}.cart-row .counter{gap:4px}.cart-row .counter button{width:26px;height:26px}.sticky-action{display:flex;align-items:center;justify-content:space-between}.checkout>div{padding-top:20px}.checkout-head small{color:#a47700}.checkout-head h2{margin:2px 0 13px;font-size:24px}.checkout-section{margin-top:10px;padding:13px;background:#fcfbf8;border:1px solid var(--line);border-radius:18px}.address{position:relative;display:flex;flex-direction:row;align-items:center;gap:10px;padding:12px;margin:7px 0;background:#fff;border:1px solid var(--line);border-radius:15px}.address input{width:auto}.address span{display:flex;flex:1;flex-direction:column}.address small{color:var(--muted);font-size:9px}.address>i{display:none;width:23px;height:23px;border-radius:50%;background:var(--primary);font-style:normal;place-items:center}.address.selected{background:var(--secondary);border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary),transparent 84%)}.address.selected>i{display:grid}.new-address-box{margin-top:8px;padding:10px;border:1px dashed #d8d0bf;border-radius:14px}.new-address-box summary{cursor:pointer;color:#936900;font-size:10px}.new-address-box button{border:0;border-radius:10px;padding:8px 11px;background:var(--secondary)}.payment-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.payment-options label{margin:0}.payment-options input{display:none}.payment-options span{height:82px;display:flex;flex-direction:column;justify-content:center;padding:11px;background:#fff;border:1px solid var(--line);border-radius:15px}.payment-options input:checked+span{background:var(--secondary);border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary),transparent 84%)}.payment-options b{font-size:11px}.payment-options small{color:var(--muted);font-size:8px}.bank{margin:12px 0;padding:20px;display:flex;flex-direction:column;color:#fff;border-radius:18px;background:radial-gradient(circle at 10% 0,#66562b,transparent 40%),linear-gradient(145deg,#1b1914,#332e23);box-shadow:0 17px 40px #17140d24}.bank>b{font-size:18px;letter-spacing:2px;direction:ltr;text-align:right}.receipt-upload{min-height:88px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:11px;padding:12px;background:#fff;border:2px dashed #d8d0bf;border-radius:16px;cursor:pointer}.receipt-upload input{display:none}.upload-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--secondary);border-radius:12px;color:#966c00;font-size:21px}.upload-copy{display:flex;flex-direction:column}.upload-copy b{font-size:10px}.upload-copy small{color:var(--muted);font-size:8px}.receipt-file{margin-top:7px;padding:9px;display:flex;align-items:center;gap:9px;background:#eaf8f0;border-radius:12px;color:#187c50}.receipt-file>span{width:25px;height:25px;display:grid;place-items:center;background:#ccefdc;border-radius:8px}.receipt-file>div{display:flex;flex-direction:column}.receipt-file small{font-size:8px}.no-address{color:var(--muted);font-size:10px}.toast{position:fixed;z-index:300;top:17px;left:50%;transform:translate(-50%,-25px);opacity:0;display:flex;align-items:center;gap:8px;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-lg);font-size:10px;transition:.24s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast>span{width:25px;height:25px;display:grid;place-items:center;background:#dff7e9;color:#168050;border-radius:8px}.toast.error>span{background:#fee8e6;color:#b23d34}
/* Onboarding and installer */
.onboarding{min-height:100dvh;display:grid;place-items:center;padding:23px;background:radial-gradient(circle at 5% 5%,#fff4,transparent 25%),linear-gradient(160deg,#fff 58%,var(--secondary))}.onboarding section{width:min(430px,100%)}.onboarding h1{font-size:32px;line-height:1.3;letter-spacing:-1px}.onboarding p{color:var(--muted);font-size:11px}.onboarding form,.install-card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:25px;box-shadow:var(--shadow-lg)}.onboarding button,.install-card button,.admin-login button{width:100%;min-height:49px;border:0;border-radius:14px;background:var(--primary);font-weight:800}.installer,.admin-body{background:#f5f3ed}.installer main{min-height:100dvh;display:grid;place-items:center;padding:20px}.install-card{width:min(660px,100%)}.install-logo{width:64px;height:64px;display:grid;place-items:center;background:#ffbd00;border-radius:20px;font-size:23px;font-weight:900;box-shadow:0 13px 32px #a2760027}.install-card>small{color:#a07400}.install-card h1{margin:5px 0}.install-card h2{margin-top:23px;padding-bottom:8px;border-bottom:1px solid var(--line);font-size:14px}.install-card a{display:block;padding:12px;background:#ffbd00;border-radius:13px;text-align:center;color:#222;text-decoration:none}.error{padding:9px;background:#ffebe9;color:#a83a31;border-radius:10px}.webhook-result{padding:10px;background:#e5f8ed;color:#17774c;border-radius:11px}
/* Admin */
.admin-shell{min-height:100dvh;padding-bottom:88px;background:linear-gradient(145deg,#faf9f5,#f1eee7)}.admin-shell aside{position:fixed;z-index:60;right:8px;bottom:8px;left:8px;height:69px;display:flex;align-items:center;padding:5px;overflow:auto;background:#fffffff0;border:1px solid #fff;border-radius:22px;backdrop-filter:blur(18px);box-shadow:0 18px 52px #362a0a2a}.admin-brand{display:none}.admin-shell aside button{min-width:65px;height:56px;border:0;border-radius:15px;background:transparent;color:#99948a;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:.22s}.admin-shell aside button i{width:21px;height:21px;display:grid;place-items:center}.admin-shell aside svg{width:20px;height:20px}.admin-shell aside span{font-size:8px}.admin-shell aside button.active{background:#fff1b8;color:#805b00;transform:translateY(-3px);box-shadow:inset 0 0 0 1px #f4d25b}.admin-shell main{padding:14px 13px 95px;animation:pageIn .22s ease}@keyframes pageIn{from{opacity:0;transform:translateY(5px)}}.admin-head{margin-bottom:12px;padding:18px 20px;background:linear-gradient(135deg,#ffda4f,#ffb900);border-radius:23px;box-shadow:0 16px 42px #ad7f0020}.admin-head small{color:#765500}.admin-head h1{margin:2px 0 0;font-size:23px}.welcome-admin{min-height:150px;margin-bottom:12px;padding:22px;display:flex;align-items:center;justify-content:space-between;background:radial-gradient(circle at 10% 0,#fff8,transparent 34%),linear-gradient(135deg,#ffda4f,#ffb900);border-radius:24px;box-shadow:0 18px 46px #a77a0020}.welcome-admin small{color:#755500}.welcome-admin h2{margin:5px 0;font-size:18px}.welcome-admin p{color:#70520b;font-size:9px}.welcome-admin>b{font-size:43px;color:#fff9;transform:rotate(-8deg)}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.stat-grid article,.admin-card{padding:15px;background:#fff;border:1px solid #f0ece3;border-radius:19px;box-shadow:0 8px 28px #392d0d0a}.stat-grid article{min-height:108px;display:flex;flex-direction:column}.stat-grid article>i{width:35px;height:35px;display:grid;place-items:center;background:#fff5ce;color:#a67500;border-radius:11px}.stat-grid article svg{width:18px}.stat-grid article>span{margin-top:7px;color:var(--muted);font-size:9px}.stat-grid article>b{margin-top:auto;font-size:16px}.order-list,.product-list,.user-list{padding:8px 14px}.order-list article,.product-list article,.user-list article{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 4px;border-bottom:1px solid #f0ece3}.order-list article:last-child,.product-list article:last-child,.user-list article:last-child{border:0}.order-list article>div,.product-list article>span,.user-list article>span{display:flex;flex-direction:column}.order-list small,.product-list small,.user-list small{color:var(--muted);font-size:8px}.order-list select{max-width:105px;padding:7px;font-size:8px}.product-list img{width:58px;height:58px;object-fit:cover;border-radius:13px}.product-list article>button,.new-btn{border:0;border-radius:11px;padding:8px 10px;background:#fff3c3;color:#876000}.new-btn{margin-bottom:10px;background:#ffbd00;color:#28200d;font-weight:700}.info{display:grid;grid-template-columns:1fr 1fr;gap:7px}.info p{margin:0;padding:10px;display:flex;flex-direction:column;background:#faf8f3;border-radius:12px}.info p:last-child{grid-column:1/-1}.info small{color:var(--muted)}.detail-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.detail-row span{display:flex;flex-direction:column}.detail-row small{color:var(--muted);font-size:8px}.totals{margin:10px 0;padding:10px;background:#faf8f3;border-radius:13px}.totals p{display:flex;justify-content:space-between}.settings-form{max-width:760px;margin:auto}.settings-form h2{margin-top:24px;padding-bottom:8px;border-bottom:1px solid var(--line);color:#795700;font-size:15px}.admin-login{min-height:100dvh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#ffdb55,#ffb900)}.admin-login form{width:min(390px,100%);padding:25px;background:#fff;border-radius:25px;box-shadow:0 30px 90px #76560028}.admin-login form>b{width:60px;height:60px;margin:auto;display:grid;place-items:center;background:#ffbd00;border-radius:18px}.loading{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.loading i{width:34px;height:34px;border:3px solid #ebe6db;border-top-color:#ffbd00;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:850px){.admin-shell{padding:12px 12px 12px 238px}.admin-shell aside{top:12px;right:12px;bottom:12px;left:auto;width:210px;height:auto;flex-direction:column;align-items:stretch;padding:18px;border-radius:24px}.admin-brand{display:flex;align-items:center;gap:10px;margin-bottom:28px}.admin-brand b{padding:10px;background:#ffbd00;border-radius:12px}.admin-shell aside button{width:100%;min-height:47px;flex:0 0 auto;flex-direction:row;justify-content:flex-start;gap:10px;padding:10px}.admin-shell aside span{font-size:11px}.admin-shell aside button.active{transform:none}.admin-shell main{max-width:1200px;padding:15px 24px 30px}.welcome-admin{min-height:175px}.welcome-admin h2{font-size:24px}.stat-grid{grid-template-columns:repeat(4,1fr)}.modal{place-items:center}.modal>div,.modal>form{max-width:650px;border-radius:26px}.product-sheet>div{max-width:520px}.checkout>div{max-width:540px}}
@media(max-width:390px){.grid{gap:9px}.product>div{height:128px}.cart-row{grid-template-columns:62px 1fr}.cart-row img{width:62px;height:62px}.cart-row .counter{grid-column:2}.payment-options,.two,.colors{grid-template-columns:1fr}.hero h1{font-size:30px}.admin-shell aside button{min-width:57px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Full-screen premium product and checkout */
.no-scroll{overflow:hidden}.product-page{position:fixed;z-index:90;inset:0;margin:auto;width:min(520px,100%);height:100dvh;overflow:auto;background:var(--bg);animation:productEnter .32s cubic-bezier(.2,.8,.2,1);padding-bottom:92px;box-shadow:0 0 80px #241b091c}@keyframes productEnter{from{opacity:.5;transform:translateX(-25px)}to{opacity:1;transform:none}}.product-cover{position:relative;height:42dvh;min-height:310px;max-height:430px;background-position:center;background-size:cover}.cover-shade{position:absolute;inset:auto 0 0;height:48%;background:linear-gradient(transparent,rgba(0,0,0,.28))}.product-back{position:absolute;z-index:3;top:max(16px,env(safe-area-inset-top));right:17px;width:43px;height:43px;border:0;border-radius:50%;background:#fffffff2;box-shadow:0 8px 25px #0002;font-size:22px;display:grid;place-items:center}.product-body{position:relative;margin-top:-26px;padding:24px 19px 20px;background:var(--bg);border-radius:28px 28px 0 0;min-height:52dvh}.product-heading>small{padding:4px 9px;background:var(--secondary);color:#946a00;border-radius:99px;font-size:9px}.product-heading h1{margin:8px 0 4px;font-size:27px;letter-spacing:-1px}.product-heading p{margin:0 0 20px;color:var(--muted);font-size:11px;line-height:2}.option-title{display:flex;align-items:end;justify-content:space-between;margin:4px 0 9px}.option-title small{color:#a17600;font-size:8px}.option-title h3{margin:1px 0;font-size:16px}.option-title>span{padding:4px 8px;background:#f1eee6;color:#898277;border-radius:99px;font-size:8px}.product-page .addon-list{background:#fff;border:0;box-shadow:0 8px 30px #3327000b}.product-page .counter-row{padding:15px 14px}.product-page .product-quantity{margin-top:13px;background:#fff;border:0;box-shadow:0 8px 30px #3327000b;padding:15px}.product-footer{position:fixed;z-index:4;bottom:0;left:50%;width:min(520px,100%);transform:translateX(-50%);padding:11px 18px calc(11px + env(safe-area-inset-bottom));background:#fffffff2;border-top:1px solid #eee9dc;backdrop-filter:blur(18px);box-shadow:0 -12px 40px #35290015}.product-footer .primary{display:flex;align-items:center;justify-content:space-between;padding-inline:18px}.product-footer .primary b{font-size:11px}
.checkout{place-items:stretch center;background:var(--bg)}.checkout>div{width:min(520px,100%);height:100dvh;max-height:none;border-radius:0;padding:20px 17px 105px;background:var(--bg)}.checkout .close{position:fixed;top:max(14px,env(safe-area-inset-top));left:max(16px,calc((100vw - 520px)/2 + 16px));z-index:5}.checkout-head{padding-top:8px}.checkout-head small{font-size:9px}.checkout-head h2{font-size:27px;letter-spacing:-1px;margin:2px 0 22px}.checkout-section{padding:16px;background:#fff;border:0;box-shadow:0 8px 30px #3327000b;border-radius:21px}.checkout-section+.checkout-section{margin-top:12px}.checkout-section>h3{margin-top:0;font-size:14px}.address{padding:14px 12px;border-radius:16px;background:#faf9f5}.address input{appearance:none;width:19px;height:19px;padding:0;border:2px solid #cfc8b8;border-radius:50%;background:#fff}.address input:checked{border:5px solid var(--primary)}.address.selected{background:#fff9df;box-shadow:inset 0 0 0 1px var(--primary)}.address>i{display:none!important}.new-address-box{background:#faf9f5;border-style:solid}.new-address-box summary{font-weight:700}.new-address-box textarea{background:#fff}.payment-options span{height:88px;border-radius:16px}.checkout .sticky-action{position:fixed;z-index:6;bottom:0;left:50%;width:min(484px,calc(100% - 36px));transform:translateX(-50%);margin:0 0 calc(12px + env(safe-area-inset-bottom));box-shadow:0 14px 38px color-mix(in srgb,var(--primary),transparent 55%)}.receipt-upload{border:1.5px dashed #cfc7b5;background:#faf9f5;transition:.2s}.receipt-upload:active{background:var(--secondary);border-color:var(--primary)}.receipt-file.uploading{background:#fff7dd;color:#8a6500}.receipt-file.uploading>span{background:#ffe49a}.receipt-file.success{background:#e9f8ef;color:#17784d}.receipt-file.failed{background:#ffebe9;color:#a93b32}.receipt-file.failed>span{background:#ffd4cf}.receipt-file small{max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:700px){.checkout .close{left:calc(50% - 244px)}.product-page{border-radius:0}.product-cover{height:390px}}

/* Diagnostics and desktop admin correction */
.receipt-file.with-image{display:grid;grid-template-columns:52px 1fr 28px;background:#eaf8f0}.receipt-file.with-image>img{width:52px;height:52px;object-fit:cover;border-radius:10px}.receipt-file.with-image>div{min-width:0}.receipt-file.with-image>span{width:28px;height:28px}.diagnostic-link{display:block;margin:0 0 12px;padding:11px 14px;background:#fff7d7;color:#815c00;border:1px solid #f0d978;border-radius:13px;text-decoration:none;font-size:10px}.diagnostics{background:#f3f0e8}.diagnostics main{width:min(760px,100%);margin:auto;padding:25px 15px}.back-link{display:inline-block;margin-bottom:12px;color:#765500;text-decoration:none}.diagnostic-card{margin-bottom:13px;padding:20px;background:#fff;border-radius:23px;box-shadow:var(--shadow)}.diagnostic-card>span{color:#a27400;font-size:9px}.diagnostic-card h1{margin:3px 0}.diagnostic-card>p{color:var(--muted);font-size:10px}.diag-upload{min-height:90px;align-items:center;justify-content:center;border:2px dashed #d8d0be;border-radius:16px;background:#faf9f5;cursor:pointer}.diag-upload input{display:none}.diag-upload span{font-weight:700}.diag-success,.diag-error{padding:12px;border-radius:14px;margin:10px 0;display:flex;flex-direction:column;gap:5px}.diag-success{background:#e8f8ef;color:#17784d}.diag-error{background:#ffebe9;color:#a83c33}.diag-success img{width:100px;height:100px;object-fit:cover;border-radius:12px}.check-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.check-list>div{display:flex;justify-content:space-between;padding:10px;background:#faf9f5;border-radius:11px;font-size:10px}.check-list b{color:#19784e}.check-list b.bad{color:#b33b32}.diag-help{margin-top:12px;padding:12px;background:#fff7d8;border-radius:13px}.diag-help code{display:block;direction:ltr;text-align:left;margin:8px 0}.diag-help p{font-size:9px;color:#756d5e}
@media(min-width:850px){.admin-shell{padding:12px 238px 12px 12px}.admin-shell main{width:100%;max-width:1400px;margin:auto}.admin-shell aside{right:12px;left:auto}.order-list article{display:grid;grid-template-columns:minmax(180px,1fr) 150px 150px}.product-list article{display:grid;grid-template-columns:68px minmax(220px,1fr) 90px}.settings-form{max-width:900px}.diagnostic-link{max-width:900px;margin-inline:auto}}
@media(max-width:600px){.check-list{grid-template-columns:1fr}}

/* Checkout form and cart delete state */
.checkout>form{width:min(520px,100%);height:100dvh;max-height:none;overflow:auto;border-radius:0;padding:20px 17px 118px;background:var(--bg);animation:none}.counter .delete-mode{background:#fff0ee!important;color:#bc3f35!important}.counter .delete-mode svg{width:15px;height:15px}.checkout-status{position:fixed;z-index:8;right:50%;bottom:82px;width:min(484px,calc(100% - 36px));transform:translateX(50%);padding:10px 13px;border-radius:13px;text-align:center;font-size:9px;box-shadow:0 9px 25px #261c0820}.checkout-status.working{background:#fff7d8;color:#7d5a00}.checkout-status.success{background:#e6f8ed;color:#17784c}.checkout-status.failed{background:#ffebe9;color:#a73b32}.checkout form .checkout-section{position:relative}.checkout form .sticky-action{border:0}.receipt-file[hidden],.checkout-status[hidden]{display:none!important}
@media(min-width:850px){.checkout>form{max-width:540px;border-radius:0}}

/* Telegram contact onboarding and uploaded receipt state */
.contact-share{width:100%;display:flex;align-items:center;gap:12px;margin:4px 0 10px;padding:13px;border:1px solid color-mix(in srgb,var(--primary),#d6c99c 58%);border-radius:16px;background:linear-gradient(135deg,var(--secondary),#fff);color:var(--text);text-align:right;box-shadow:0 8px 22px color-mix(in srgb,var(--primary),transparent 88%)}
.contact-share>span{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:13px;background:var(--primary);font-size:18px}
.contact-share>div{display:flex;min-width:0;flex-direction:column}.contact-share b{font-size:11px}.contact-share small{margin-top:2px;color:var(--muted);font-size:8px}.contact-share:disabled{opacity:.65}
.contact-status{margin:-2px 0 11px;padding:10px 12px;border-radius:12px;font-size:9px}.contact-status.waiting{background:#fff6d3;color:#7d5b00}.contact-status.success{background:#e5f8ed;color:#17784c}.contact-status.failed{background:#ffebe9;color:#a73b32}
.or{display:flex;align-items:center;gap:9px;margin:8px 0;color:var(--muted);font-size:8px}.or:before,.or:after{height:1px;flex:1;background:var(--line);content:""}
.receipt-upload[hidden]{display:none!important}.receipt-file.with-image{grid-template-columns:58px minmax(0,1fr) auto}.receipt-file.with-image>img{width:58px;height:58px}.receipt-file.with-image button{border:0;padding:7px 9px;border-radius:10px;background:#d6f1e1;color:#176c48;font:inherit;font-size:9px;cursor:pointer}

/* Telegram fullscreen safe areas */
.hero{padding-top:calc(31px + var(--app-safe-top))}.page{padding-top:calc(12px + var(--app-safe-top))}.onboarding{padding-top:var(--app-safe-top)}
.product-back{top:calc(14px + var(--app-safe-top))}.checkout>form{padding-top:calc(20px + var(--app-safe-top))}.checkout .close{top:calc(14px + var(--app-safe-top))}
nav{padding-bottom:calc(8px + var(--app-safe-bottom))}.product-footer{padding-bottom:calc(11px + var(--app-safe-bottom))}.checkout .sticky-action{margin-bottom:calc(12px + var(--app-safe-bottom))}
