:root{--tg-bg: var(--tg-theme-bg-color, #ffffff);--tg-text: var(--tg-theme-text-color, #1c1c1e);--tg-hint: var(--tg-theme-hint-color, #8e8e93);--tg-link: var(--tg-theme-link-color, #1f7a3a);--tg-button: var(--tg-theme-button-color, #1f7a3a);--tg-button-text: var(--tg-theme-button-text-color, #ffffff);--tg-secondary-bg: var(--tg-theme-secondary-bg-color, #f2f2f7)}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--tg-bg);color:var(--tg-text)}.container{max-width:720px;margin:0 auto;padding:16px}.card{background:var(--tg-secondary-bg);border-radius:12px;padding:16px;margin-bottom:12px}.hint{color:var(--tg-hint);font-size:13px}button.primary{background:var(--tg-button);color:var(--tg-button-text);border:0;border-radius:10px;padding:12px 16px;font-size:16px;cursor:pointer;width:100%}.category-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;aspect-ratio:1 / 1;padding:10px;border:none;border-radius:14px;background-color:var(--tg-secondary-bg);background-position:center;background-size:cover;background-repeat:no-repeat;cursor:pointer;font-family:inherit;text-align:center;overflow:hidden;transition:transform .1s ease-out;-webkit-tap-highlight-color:transparent}.category-tile:active{transform:scale(.97)}.category-tile-icon{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:56px;line-height:1;opacity:.85}.category-tile-label{position:relative;z-index:1;display:inline-block;max-width:100%;background:#fff;color:#000;font-weight:700;font-size:13px;line-height:1.2;padding:6px 10px;border-radius:8px;box-shadow:0 2px 8px #0000002e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-tile--image:after{content:"";position:absolute;left:0;right:0;bottom:0;height:55%;background:linear-gradient(to top,rgba(0,0,0,.25),transparent);pointer-events:none}.product-card{display:flex;gap:12px;padding:12px;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:flex-start;transition:transform .1s ease-out;-webkit-tap-highlight-color:transparent}.product-card:active{transform:scale(.99)}.product-thumb{width:80px;height:80px;border-radius:10px;overflow:hidden;background:var(--tg-bg);flex-shrink:0;display:flex;align-items:center;justify-content:center}.product-thumb img{width:100%;height:100%;object-fit:cover;display:block}.product-thumb-placeholder{font-size:32px;opacity:.4}.product-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px;animation:fadeIn .15s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.product-modal{background:var(--tg-bg);border-radius:16px;max-width:420px;width:100%;max-height:calc(100vh - 32px);overflow-y:auto;position:relative;display:flex;flex-direction:column;box-shadow:0 12px 40px #00000059;animation:modalIn .2s ease-out}@keyframes modalIn{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.product-modal-close{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;border:none;background:#0000008c;color:#fff;font-size:14px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;font-family:inherit;-webkit-tap-highlight-color:transparent}.product-modal-close:hover{background:#000000bf}.product-modal-image{width:100%;aspect-ratio:1 / 1;background:var(--tg-secondary-bg);display:flex;align-items:center;justify-content:center;overflow:hidden;border-top-left-radius:16px;border-top-right-radius:16px;flex-shrink:0}.product-modal-image img{width:100%;height:100%;object-fit:cover;display:block}.product-modal-image-placeholder{font-size:80px;opacity:.35}.product-modal-body{padding:16px;display:flex;flex-direction:column}.product-modal-description{margin-top:12px;padding-top:12px;border-top:1px solid var(--tg-secondary-bg);font-size:14px;line-height:1.5;color:var(--tg-text);white-space:pre-wrap}
