:root{--background:#f8fafc;--surface:#fff;--surface-soft:#f1f5f9;--border:#d9e1ea;--border-strong:#b7c4d0;--text:#111827;--muted:#667085;--muted-strong:#475467;--primary:#0f172a;--primary-contrast:#fff;--focus:#2563eb;--accent:#0f766e;--shadow:0 12px 35px #0f172a14;color:var(--text);background:var(--background);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{border:0}button:not(:disabled){cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}img{max-width:100%}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.load-screen{text-align:center;background:var(--surface);place-content:center;gap:16px;min-height:100vh;padding:28px;display:grid}.load-screen h1,.load-screen p{margin:0}.load-screen h1{font-size:24px}.load-screen p{color:var(--muted)}.load-screen button{background:var(--primary);height:40px;color:var(--primary-contrast);border-radius:8px;justify-self:center;padding:0 16px}.spinner{border:3px solid var(--border);border-top-color:var(--primary);border-radius:999px;justify-self:center;width:38px;height:38px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.app-shell{background:var(--background);grid-template-rows:minmax(0,1fr) 60px;grid-template-columns:96px minmax(360px,500px) minmax(0,1fr);min-height:100vh;display:grid;overflow:hidden}.mobile-brand{display:none}.category-rail{border-right:1px solid var(--border);background:#ffffffd1;flex-direction:column;grid-row:1/3;min-height:0;display:flex}.brand{border-bottom:1px solid var(--border);place-items:center;min-height:92px;padding:16px 12px;display:grid}.brand img{object-fit:contain;width:58px;max-height:64px}.category-list{scrollbar-width:none;flex-direction:column;flex:1;gap:8px;min-height:0;padding:14px 8px 18px;display:flex;overflow-y:auto}.category-list::-webkit-scrollbar{width:0;height:0}.product-list::-webkit-scrollbar{width:0;height:0}.category-list button{min-height:78px;color:var(--muted);background:0 0;border-radius:8px;place-items:center;gap:7px;padding:10px 8px;transition:background .18s,color .18s,opacity .18s;display:grid;position:relative}.category-list button:hover,.category-list button.active{background:var(--surface-soft);color:var(--text)}.category-list button.complete:not(.active){color:var(--muted-strong)}.category-list .icon{display:inline-flex}.category-list .label{overflow-wrap:anywhere;text-align:center;max-width:78px;font-size:12px;font-weight:650;line-height:1.15}.category-list .check{background:var(--accent);color:#fff;border-radius:999px;place-items:center;width:18px;height:18px;display:inline-grid;position:absolute;top:7px;right:7px}.product-panel{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;min-height:0;display:flex}.product-panel-shell{display:contents}.picker-backdrop{display:none}.panel-header{justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 20px 14px;display:flex}.panel-header h1{letter-spacing:0;margin:2px 0 0;font-size:23px;line-height:1.1}.eyebrow{color:var(--muted);letter-spacing:0;text-transform:uppercase;margin:0;font-size:11px;font-weight:700}.count{border:1px solid var(--border);min-width:38px;height:30px;color:var(--muted-strong);border-radius:8px;place-items:center;font-size:13px;font-weight:700;display:grid}.panel-actions{align-items:center;gap:8px;display:flex}.panel-close{width:34px;height:34px;color:var(--muted);background:0 0;border-radius:8px;place-items:center;display:none}.panel-close:hover{background:var(--surface-soft);color:var(--text)}.search-field{color:var(--muted);align-items:center;margin:0 14px 12px;display:flex;position:relative}.search-field svg{pointer-events:none;position:absolute;left:13px}.search-field input{border:1px solid var(--border);background:var(--surface);width:100%;height:44px;color:var(--text);border-radius:8px;padding:0 14px 0 42px}.product-list{scrollbar-width:none;flex:1;min-height:0;padding:0 12px 18px;overflow-y:auto}.empty-state{border:1px solid var(--border);color:var(--muted);background:var(--surface-soft);border-radius:8px;padding:14px;font-size:14px}.product-group{gap:5px;padding-bottom:10px;display:grid}.product-row{width:100%;min-height:100px;color:var(--muted-strong);text-align:left;background:0 0;border-radius:8px;grid-template-columns:84px minmax(0,1fr) auto;align-items:stretch;gap:12px;padding:8px;transition:background .16s,color .16s;display:grid}.product-row:hover,.product-row.active{background:var(--surface-soft);color:var(--text)}.product-row.variant{grid-template-columns:62px minmax(0,1fr) auto;width:calc(100% - 28px);min-height:76px;margin-left:28px}.thumb{border:1px solid var(--border);background:#fff;border-radius:8px;width:84px;height:84px;display:block;overflow:hidden}.variant .thumb{width:62px;height:62px}.thumb img{object-fit:cover;width:100%;height:100%;display:block}.thumb.placeholder{background:var(--surface-soft)}.product-copy{flex-direction:column;gap:4px;min-width:0;padding-top:2px;display:flex}.product-title{color:inherit;overflow-wrap:anywhere;font-size:14px;font-weight:700;line-height:1.25}.product-description,.product-meta,.product-price{color:var(--muted);font-size:12px;line-height:1.35}.product-description{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.product-price{color:var(--text);font-weight:650}.row-actions{flex-direction:column;align-items:flex-end;gap:8px;min-width:24px;display:flex}.row-actions a{width:26px;height:26px;color:var(--muted);border-radius:7px;place-items:center;display:inline-grid}.row-actions a:hover{color:var(--text);background:#fff}.selected-dot{background:var(--primary);width:22px;height:22px;color:var(--primary-contrast);border-radius:999px;place-items:center;display:inline-grid}.preview-stage{background:#eef2f6;min-width:0;min-height:0;position:relative;overflow:hidden}.preview-stack{transform:scale(var(--zoom,1));transform-origin:50%;transition:transform .2s;position:absolute;inset:0;overflow:hidden}.preview-layer{opacity:1;transition:opacity .22s,transform .22s;position:absolute;inset:0;transform:translateY(0)scale(1)}.preview-layer img{object-fit:cover;width:100%;height:100%;display:block}.preview-layer.top-layer{transform:translateY(0)scale(1)}.preview-stack>img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.preview-empty{text-align:center;place-content:center;height:100%;padding:32px;display:grid}.preview-empty h2{margin:0 0 8px;font-size:24px}.preview-empty p{color:var(--muted);margin:0}.preview-tools{z-index:20;min-height:38px;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffffe0;border:1px solid #b9c4d0d9;border-radius:8px;align-items:center;gap:4px;padding:4px;display:flex;position:absolute;bottom:16px;right:16px}.preview-tools button{min-width:30px;height:30px;color:var(--muted-strong);background:0 0;border-radius:7px;justify-content:center;align-items:center;gap:6px;padding:0 8px;display:inline-flex}.preview-tools button:hover:not(:disabled){background:var(--surface-soft);color:var(--text)}.preview-tools button:disabled{opacity:.4}.preview-tools output{min-width:46px;color:var(--text);place-items:center;font-size:12px;font-weight:700;display:inline-grid}.footer-bar{border-top:1px solid var(--border);background:var(--surface);grid-column:2/4;justify-content:space-between;align-items:center;gap:16px;padding:10px 16px;display:flex}.footer-bar>div{color:var(--muted);align-items:baseline;gap:7px;font-size:14px;display:flex}.footer-bar strong{color:var(--text)}.footer-bar .source{color:var(--accent);margin-left:10px;font-size:12px;font-weight:700}.footer-bar button,.wishlist-modal footer button,.mobile-brand button{background:var(--primary);height:40px;color:var(--primary-contrast);border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:700;display:inline-flex}.footer-bar button:disabled,.mobile-brand button:disabled{opacity:.4}.modal-backdrop{z-index:100;background:#0f172a8a;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.backdrop-close{background:0 0;width:100%;height:100%;position:absolute;inset:0}.wishlist-modal{background:var(--surface);border-radius:8px;flex-direction:column;width:min(680px,100%);max-height:min(760px,92vh);display:flex;position:relative;overflow:hidden;box-shadow:0 24px 70px #0f172a47}.wishlist-modal header,.wishlist-modal footer{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;display:flex}.wishlist-modal footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.modal-title{align-items:center;gap:10px;display:flex}.modal-title h2{letter-spacing:0;margin:0;font-size:22px}.icon-button{width:34px;height:34px;color:var(--muted);background:0 0;border-radius:8px;place-items:center;display:inline-grid}.icon-button:hover{background:var(--surface-soft);color:var(--text)}.modal-body{min-height:0;padding:20px 22px;overflow-y:auto}.empty-modal{color:var(--muted);margin:0}.wishlist-lines{gap:12px;margin:0;padding:0;list-style:none;display:grid}.wishlist-lines li{grid-template-columns:54px minmax(0,1fr);align-items:start;gap:12px;display:grid}.wishlist-thumb{border:1px solid var(--border);background:var(--surface-soft);border-radius:8px;width:54px;height:54px;display:block;overflow:hidden}.wishlist-thumb img{object-fit:cover;width:100%;height:100%}.wishlist-copy{gap:2px;min-width:0;display:grid}.category-name{color:var(--muted);letter-spacing:0;text-transform:uppercase;font-size:11px;font-weight:750}.product-name{color:var(--text);font-size:14px;font-weight:700;line-height:1.35}.price{color:var(--muted-strong);font-size:13px}.wishlist-copy a{color:#1d4ed8;align-items:center;gap:4px;width:fit-content;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex}.wishlist-copy a:hover{text-decoration:underline}.wishlist-total{border-top:1px solid var(--border);justify-content:space-between;align-items:center;margin-top:18px;padding-top:14px;display:flex}.wishlist-total span{color:var(--muted);font-size:14px}.render-note{border:1px solid var(--border);background:var(--surface-soft);color:var(--muted-strong);border-radius:8px;margin:16px 0 0;padding:12px;font-size:12px;line-height:1.45}@media (width<=1100px){.app-shell{grid-template-columns:84px minmax(320px,430px) minmax(0,1fr)}.product-row{grid-template-columns:72px minmax(0,1fr) auto}.thumb{width:72px;height:72px}}@media (width<=820px){body{overflow:hidden}.app-shell{grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:1fr;height:100vh}.mobile-brand{padding:max(10px, env(safe-area-inset-top)) 12px 10px;border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;display:flex}.mobile-brand img{object-fit:contain;width:auto;max-width:128px;height:36px}.category-rail{border-right:0;border-bottom:1px solid var(--border);grid-row:auto;overflow:hidden}.brand{display:none}.category-list{flex-direction:row;gap:6px;padding:8px;overflow-x:auto}.category-list button{min-width:84px;min-height:68px}.product-panel{z-index:2;border:1px solid var(--border);border-radius:8px;max-height:min(72vh,640px);transition:transform .22s;position:absolute;bottom:10px;left:10px;right:10px;overflow:hidden;transform:translateY(calc(100% + 24px));box-shadow:0 20px 60px #0f172a38}.product-panel-shell{z-index:70;pointer-events:none;display:block;position:fixed;inset:0}.product-panel-shell.picker-open{pointer-events:auto}.product-panel-shell.picker-open .product-panel{transform:translateY(0)}.picker-backdrop{opacity:0;background:#0f172a47;width:100%;height:100%;transition:opacity .18s;display:block;position:absolute;inset:0}.product-panel-shell.picker-open .picker-backdrop{opacity:1}.panel-header{padding:14px 14px 8px}.panel-header h1{font-size:19px}.panel-close{display:inline-grid}.preview-stage{grid-row:3}.preview-layer img{object-fit:contain}.preview-tools{bottom:10px;right:10px}.footer-bar{display:none}}
