@font-face{font-family:Vazirmatn;src:url(/miniapp/assets/Vazirmatn-BeciDpKm.woff2)format("woff2");font-weight:100 900;font-style:normal;font-display:swap}:root{color:var(--text,#0f172a);background:var(--app-bg,#f8fafc);--surface:#fff;--surface-muted:#f1f5f9;--text-muted:#64748b;--accent:#2d7ff9;--on-accent:#fff;--danger:#dc2626;font-family:Vazirmatn,Tahoma,system-ui,sans-serif}*{box-sizing:border-box}body{direction:rtl;min-width:280px;margin:0;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}.page{width:min(100%,640px);margin-inline:auto;padding:16px 16px 104px}.center-page{place-items:center;min-height:100vh;padding:24px;display:grid}.payment-processing{background:var(--surface);text-align:center;place-content:center;justify-items:center;gap:32px;min-height:100dvh;padding:24px;display:grid}.payment-processing img{width:80px;height:80px}.payment-processing div{gap:12px;display:grid}.payment-processing h1{color:var(--text);margin:0;font-size:18px}.payment-processing p{color:var(--text-muted);margin:0;font-size:14px;font-weight:500}.payment-success{background:var(--app-bg);flex-direction:column;justify-content:space-between;min-height:100dvh;display:flex}.payment-success section{justify-items:center;gap:24px;padding:32px 16px 20px;display:grid}.success-badge{background:#e6f4ea;border-radius:50%;place-items:center;width:64px;height:64px;display:grid}.success-badge img{width:28px;height:28px}.payment-success-copy{text-align:center;gap:8px;display:grid}.payment-success-copy h1{margin:0;font-size:20px}.payment-success-copy p{width:min(320px,100%);color:var(--text-muted);margin:0;font-size:13px;line-height:1.5}.payment-success dl{background:var(--surface);border-radius:16px;gap:14px;width:100%;margin:0;padding:20px;display:grid}.payment-success dl div{justify-content:space-between;gap:12px;display:flex}.payment-success dt{color:var(--text-muted);font-size:13px}.payment-success dd{color:var(--text);overflow-wrap:anywhere;margin:0;font-size:14px;font-weight:700}.payment-success .tracking-code{color:var(--accent)}.payment-success hr{border:0;border-top:1px solid #e2e8f0;width:100%;margin:0}.payment-success footer{padding:16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom));background:var(--surface);gap:12px;display:grid}.payment-success footer button{border-radius:12px;height:48px;font-weight:700}.receipt-button{color:#fff;background:#009654;border:0}.return-button{color:var(--text-muted);background:var(--surface);border:1px solid #e2e8f0}.payment-failure{background:var(--app-bg);flex-direction:column;justify-content:space-between;min-height:100dvh;display:flex}.payment-failure section{justify-items:center;gap:24px;padding:32px 16px 20px;display:grid}.failure-badge{background:#fee2e2;border-radius:50%;place-items:center;width:64px;height:64px;display:grid}.failure-badge img{width:24px;height:24px}.payment-failure-copy{text-align:center;gap:12px;display:grid}.payment-failure-copy h1{margin:0;font-size:20px}.payment-failure-copy p{width:min(300px,100%);color:var(--text-muted);margin:0;font-size:14px;line-height:1.6}.payment-failure footer{padding:16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom));background:var(--surface);gap:12px;display:grid}.payment-failure footer button{border-radius:12px;height:48px;font-weight:700}.retry-button{color:#fff;background:#009654;border:0}.empty-cart{background:var(--app-bg);flex-direction:column;justify-content:space-between;min-height:100dvh;display:flex}.empty-cart header{background:var(--surface);grid-template-columns:1fr auto 1fr;align-items:center;height:60px;padding:0 20px;display:grid}.empty-cart header h1{margin:0;font-size:18px}.empty-cart header button{color:var(--text-muted);background:0 0;border:0;justify-self:start;padding:0;font-size:14px;font-weight:500}.empty-cart section{text-align:center;justify-items:center;gap:24px;padding:80px 24px 40px;display:grid}.empty-cart-icon{background:#f1f5f9;border-radius:50%;place-items:center;width:120px;height:120px;display:grid}.empty-cart-icon img{width:44px;height:44px}.empty-cart section div:last-child{gap:8px;display:grid}.empty-cart h2{margin:0;font-size:18px}.empty-cart p{color:var(--text-muted);margin:0;font-size:13px}.empty-cart footer{padding:16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom));background:var(--surface)}.empty-cart footer button{color:#fff;background:#009654;border:0;border-radius:12px;width:100%;height:48px;font-weight:700}.topbar{z-index:5;padding:max(12px, env(safe-area-inset-top)) 20px 12px;background:color-mix(in srgb, var(--surface) 94%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid color-mix(in srgb, var(--text) 10%, transparent);align-items:center;gap:12px;display:flex;position:sticky;top:0}.shop-logo{object-fit:cover;border-radius:50%;width:40px;height:40px}.shop-logo.placeholder,.brand{color:var(--on-accent);background:var(--accent);place-items:center;font-weight:900;display:grid}.shop-copy{flex:1;display:grid}.shop-copy small{color:var(--text-muted);margin-top:2px}.cart-shortcut{width:40px;height:40px;color:var(--accent);background:#ebf3ff;border:0;border-radius:50%;flex:0 0 40px;place-items:center;padding:0;display:grid}.cart-shortcut svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;width:21px;height:21px}h1{margin:8px 0;font-size:1.5rem}h2{font-size:1.05rem}p{line-height:1.8}.hero p,.muted{color:var(--text-muted);margin-top:0}.search{background:var(--surface-muted);box-shadow:none;border-radius:12px;align-items:center;gap:10px;margin:0 0 16px;padding:4px 14px;display:flex}.search-icon{fill:none;width:22px;height:22px;stroke:var(--text-muted);stroke-linecap:round;stroke-width:2px;flex:0 0 22px}.search input{width:100%;color:var(--text);background:0 0;border:0;outline:0;padding:10px 0}.category-chips{scrollbar-width:none;direction:rtl;gap:8px;padding-block-end:18px;display:flex;overflow-x:auto}.category-chips button{background:var(--surface);color:var(--text);border:0;border-radius:999px;flex:none;padding:8px 14px;font-size:13px;font-weight:500}.category-chips button.active{background:var(--accent);color:var(--on-accent)}.category-chips button:disabled{color:var(--text-muted);cursor:not-allowed;opacity:.65}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.product-card{background:var(--surface);box-shadow:none;cursor:pointer;border-radius:16px;overflow:hidden}.product-image{aspect-ratio:1.2;color:var(--text-muted);background:var(--surface-muted);place-items:center;display:grid}.product-image img,.detail-image img{object-fit:cover;width:100%;height:100%}.product-card-body{justify-items:start;gap:4px;padding:12px;display:grid}.product-card h2{text-align:right;width:100%;min-height:2.5em;margin:0;font-size:14px}.product-card p{width:100%;color:var(--text-muted);text-align:right;margin:0 0 6px;font-size:13px;font-weight:500}.product-card button{width:100%;color:var(--accent);background:#ebf3ff;border:0;border-radius:10px;padding:8px;font-size:12px;font-weight:700}.product-card button:disabled{opacity:.5;cursor:not-allowed}.stock{color:var(--accent);background:#ebf3ff;border-radius:6px;padding:3px 8px;font-size:10px;font-weight:600}.stock.sold-out{color:#d97706;background:#fef3c7}.detail-image{aspect-ratio:4/3;color:var(--text-muted);background:var(--surface-muted);border-radius:22px;place-items:center;display:grid;overflow:hidden}.detail-copy{padding-top:12px}.price{color:var(--accent);font-size:1.25rem;font-weight:900}.quantity{align-items:center;gap:14px;display:flex}.quantity span{margin-left:auto}.quantity button{background:var(--surface-muted);width:36px;height:36px;color:var(--text);border:0;border-radius:10px}.primary,.secondary{border:0;border-radius:14px;width:100%;padding:14px 18px;font-weight:800}.primary{color:var(--on-accent);background:var(--accent)}.primary:disabled{opacity:.5}.secondary{color:var(--accent);background:0 0;margin-top:10px}.sticky{z-index:4;bottom:max(14px, env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:608px;box-shadow:0 10px 25px color-mix(in srgb, var(--accent) 25%, transparent);margin-inline:auto;position:fixed;left:16px;right:16px}.cart-action{z-index:4;padding:12px 16px max(12px, env(safe-area-inset-bottom));background:var(--surface);justify-content:space-between;align-items:center;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -6px 18px #0f172a0f}.cart-action div{text-align:right;gap:2px;display:grid}.cart-action small{color:var(--text-muted);font-size:11px}.cart-action strong{font-size:16px}.cart-action button{color:#fff;background:#009654;border:0;border-radius:12px;padding:12px 20px;font-weight:600}.cart-lines{gap:10px;display:grid}.cart-line{background:var(--surface);border-radius:16px;justify-content:space-between;align-items:center;gap:12px;padding:16px;display:flex}.cart-line div:first-child{display:grid}.cart-line small{color:var(--text-muted);margin-top:6px}.summary{background:var(--surface);border-radius:16px;justify-content:space-between;margin:18px 0;padding:16px;display:flex}.summary strong{color:var(--accent)}.checkout-form{gap:16px;display:grid}.checkout-form label{gap:8px;font-weight:700;display:grid}.checkout-form input{border:1px solid color-mix(in srgb, var(--text) 18%, transparent);width:100%;color:var(--text);background:var(--surface);border-radius:14px;outline:0;padding:13px}.checkout-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent)}.checkout-form input[aria-invalid=true]{border-color:var(--danger)}.field-error{color:var(--danger);font-size:.82rem;font-weight:600}.state-card,.review,.splash{text-align:center;background:var(--surface);border-radius:22px;width:min(100%,420px);margin:30px auto;padding:28px 20px;box-shadow:0 8px 30px #14233c14}.state-icon,.success-mark{width:58px;height:58px;color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, var(--surface));border-radius:20px;place-items:center;margin:auto;font-size:1.7rem;font-weight:900;display:grid}.error .state-icon{color:var(--danger)}.state-card p,.splash p{color:var(--text-muted)}.brand{border-radius:24px;width:70px;height:70px;margin:auto;font-size:2rem}.loader{background:var(--surface-muted);border-radius:4px;width:42px;height:4px;margin:24px auto 0;overflow:hidden}.loader:after{content:"";background:var(--accent);width:45%;height:100%;animation:1s ease-in-out infinite alternate loading;display:block}.notice{color:var(--text-muted);background:var(--surface-muted);border-radius:12px;padding:12px}@keyframes loading{to{transform:translate(-120%)}}@media (width>=540px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cart-action{left:max(0px,50vw - 320px);right:max(0px,50vw - 320px)}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}.product-card{border:1px solid color-mix(in srgb,var(--text) 5%,transparent);box-shadow:none}.store-footer{width:min(100%,640px);color:var(--text-muted);border-top:1px solid color-mix(in srgb,var(--text) 8%,transparent);justify-items:center;gap:16px;margin:0 auto;padding:24px 16px 96px;display:grid}.store-footer nav{flex-wrap:wrap;justify-content:center;gap:8px 20px;display:flex}.store-footer button{color:inherit;background:0 0;border:0;padding:0}.store-footer iframe{border:0;width:160px;height:120px}.content-page p{white-space:pre-wrap}.checkout-form fieldset .notice{font-weight:500}
