*{margin:0;padding:0;box-sizing:border-box}:root{--bg: #0a0a0a;--surface: #141414;--surface2: #1e1e1e;--border: #2a2a2a;--text: #e5e5e5;--text-dim: #888;--accent: #8b5cf6;--accent2: #6d28d9;--green: #22c55e;--red: #ef4444;--blue: #3b82f6}body{font-family:Inter,-apple-system,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}.app{max-width:1200px;margin:0 auto;padding:24px}header{display:flex;align-items:center;gap:12px;margin-bottom:32px}header h1{font-size:1.5rem;font-weight:700;background:linear-gradient(135deg,var(--accent),var(--green));-webkit-background-clip:text;-webkit-text-fill-color:transparent}header .badge{font-size:.7rem;background:var(--accent2);color:#fff;padding:2px 8px;border-radius:999px}.search-box{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px;margin-bottom:24px}.search-row{display:flex;gap:12px;margin-bottom:12px}.search-row input{flex:1;background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:12px 16px;color:var(--text);font-size:1rem;outline:none;transition:border-color .2s}.search-row input:focus{border-color:var(--accent)}.search-row input::placeholder{color:var(--text-dim)}button.primary{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;border:none;border-radius:10px;padding:12px 24px;font-size:.95rem;font-weight:600;cursor:pointer;transition:opacity .2s;white-space:nowrap}button.primary:hover{opacity:.9}button.primary:disabled{opacity:.5;cursor:not-allowed}.filters{display:flex;gap:12px;flex-wrap:wrap}.filters input,.filters select{background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:8px 12px;color:var(--text);font-size:.85rem;outline:none;width:140px}.filters input:focus,.filters select:focus{border-color:var(--accent)}.results-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.results-header h2{font-size:1.1rem;font-weight:600}.results-header .count{color:var(--text-dim);font-size:.85rem}.raw-toggle{background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:6px 12px;color:var(--text-dim);font-size:.75rem;cursor:pointer}.raw-toggle.active{border-color:var(--accent);color:var(--accent)}.raw-json{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;font-family:JetBrains Mono,monospace;font-size:.75rem;color:var(--text-dim);overflow-x:auto;white-space:pre-wrap;word-break:break-all;max-height:600px;overflow-y:auto}.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;cursor:pointer;transition:border-color .2s,transform .15s}.product-card:hover{border-color:var(--accent);transform:translateY(-2px)}.product-card .product-title{font-weight:600;font-size:.95rem;margin-bottom:6px;line-height:1.3}.product-card .product-desc{font-size:.8rem;color:var(--text-dim);margin-bottom:10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card .product-meta{display:flex;justify-content:space-between;align-items:center}.product-card .price{font-weight:700;font-size:1rem;color:var(--green)}.product-card .shop-count{font-size:.75rem;color:var(--text-dim);background:var(--surface2);padding:3px 8px;border-radius:6px}.detail-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100;padding:24px}.detail-content{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;max-width:700px;width:100%;max-height:80vh;overflow-y:auto;position:relative}.detail-content h2{font-size:1.3rem;margin-bottom:8px}.detail-content .desc{color:var(--text-dim);margin-bottom:16px;line-height:1.5}.detail-content .close-btn{position:absolute;top:16px;right:16px;background:var(--surface2);border:1px solid var(--border);color:var(--text);border-radius:8px;width:32px;height:32px;cursor:pointer;font-size:1.1rem;display:flex;align-items:center;justify-content:center}.offers-list{display:flex;flex-direction:column;gap:10px}.offer-card{background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:14px}.offer-card .offer-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.offer-card .shop-name{font-weight:600;font-size:.9rem}.offer-card .offer-price{font-weight:700;color:var(--green)}.offer-card .variant-info{font-size:.8rem;color:var(--text-dim)}.offer-card a{display:inline-block;margin-top:8px;color:var(--accent);font-size:.8rem;text-decoration:none}.loading{text-align:center;padding:48px;color:var(--text-dim)}.loading .spinner{display:inline-block;width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:12px}@keyframes spin{to{transform:rotate(360deg)}}.error{background:#ef44441a;border:1px solid var(--red);border-radius:12px;padding:16px;color:var(--red);margin-bottom:16px}.empty{text-align:center;padding:64px 24px;color:var(--text-dim)}.empty .icon{font-size:3rem;margin-bottom:12px}.empty h3{margin-bottom:6px;color:var(--text)}.api-log{margin-top:24px;border-top:1px solid var(--border);padding-top:16px}.api-log summary{cursor:pointer;color:var(--text-dim);font-size:.8rem;margin-bottom:8px}
