.smart-search-host{position:relative!important}
.smart-search-input-enhanced{padding-inline-end:86px!important}
.smart-search-inline-actions{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:4px;z-index:6}
.smart-search-icon-btn{width:34px;height:34px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:#475569;cursor:pointer;transition:.18s ease}
.smart-search-icon-btn:hover,.smart-search-icon-btn:focus-visible{background:#ecfdf5;color:#047857;outline:0}
.smart-search-icon-btn.is-listening{background:#fee2e2;color:#dc2626;box-shadow:0 0 0 5px rgba(220,38,38,.09)}
.smart-search-overlay{position:fixed;inset:0;z-index:1085;background:rgba(15,23,42,.58);display:none;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(5px)}
.smart-search-overlay.is-open{display:flex}
.smart-search-dialog{width:min(760px,100%);max-height:min(86vh,860px);overflow:auto;background:#fff;border-radius:24px;box-shadow:0 28px 80px rgba(15,23,42,.28);border:1px solid rgba(148,163,184,.22)}
.smart-search-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 14px;border-bottom:1px solid #e2e8f0}
.smart-search-dialog-head h3{font-size:1.12rem;margin:0;color:#0f172a;font-weight:800}
.smart-search-dialog-head p{margin:4px 0 0;color:#64748b;font-size:.88rem}
.smart-search-close{border:0;background:#f1f5f9;width:36px;height:36px;border-radius:50%;font-size:20px;line-height:1;color:#334155}
.smart-search-dialog-body{padding:18px 22px 24px}
.smart-search-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.smart-search-source-btn{border:1px solid #d1fae5;border-radius:16px;background:#f0fdf4;color:#065f46;padding:14px 12px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.smart-search-source-btn.secondary{background:#f8fafc;color:#334155;border-color:#e2e8f0}
.smart-search-camera-wrap{display:none;margin-top:14px;border-radius:18px;overflow:hidden;background:#0f172a;position:relative}
.smart-search-camera-wrap.is-open{display:block}
.smart-search-camera-wrap video{display:block;width:100%;max-height:360px;object-fit:cover;background:#0f172a}
.smart-search-capture{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);border:5px solid rgba(255,255,255,.85);width:58px;height:58px;border-radius:50%;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.28)}
.smart-search-preview{display:none;margin-top:14px;gap:14px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}
.smart-search-preview.is-open{display:flex}
.smart-search-preview img{width:90px;height:90px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid #e2e8f0}
.smart-search-status{font-size:.9rem;color:#475569;line-height:1.5}
.smart-search-status strong{color:#0f172a}
.smart-search-spinner{display:inline-block;width:16px;height:16px;border:2px solid #cbd5e1;border-top-color:#059669;border-radius:50%;animation:smartSpin .75s linear infinite;vertical-align:-3px;margin-inline-end:6px}
@keyframes smartSpin{to{transform:rotate(360deg)}}
.smart-search-results{margin-top:14px;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;background:#fff}
.smart-search-result{position:relative;display:flex;align-items:center;gap:12px;padding:11px 12px;border-bottom:1px solid #eef2f7;text-decoration:none;color:#0f172a}
.smart-search-result:last-child{border-bottom:0}
.smart-search-result:hover{background:#f8fafc;color:#0f172a}
.smart-search-result img{flex:0 0 64px;width:64px;height:64px;object-fit:contain;border-radius:12px;background:#f8fafc;border:1px solid #eef2f7}
.smart-search-result-body{display:flex;min-width:0;flex-direction:column;gap:2px;padding-inline-end:110px}
.smart-search-result-body strong{font-size:.94rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smart-search-result-body small{color:#64748b}
.smart-search-price{font-size:.9rem;font-weight:800;color:#047857}
.smart-match-badge{position:absolute;inset-inline-end:10px;top:12px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:999px;padding:4px 8px;font-size:.7rem;font-weight:800}
.smart-match-badge.code{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.smart-search-empty{display:flex;align-items:center;justify-content:center;gap:8px;color:#64748b;padding:22px;text-align:center}
.smart-voice-popover{position:fixed;z-index:1090;width:min(420px,calc(100vw - 24px));max-height:420px;overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 18px 50px rgba(15,23,42,.2);display:none}
.smart-voice-popover.is-open{display:block}
.smart-voice-popover-head{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:8px 12px;font-size:.78rem;color:#475569;font-weight:700}
.smart-voice-popover .d-flex{padding:10px!important}
.smart-voice-popover img{width:48px!important;height:48px!important}
.smart-search-toast{position:fixed;z-index:1100;left:50%;bottom:22px;transform:translateX(-50%);background:#0f172a;color:white;border-radius:999px;padding:10px 16px;font-size:.85rem;box-shadow:0 12px 30px rgba(15,23,42,.3)}
@media(max-width:575.98px){.smart-search-dialog{border-radius:20px}.smart-search-dialog-head,.smart-search-dialog-body{padding-left:16px;padding-right:16px}.smart-search-source-grid{grid-template-columns:1fr}.smart-search-result-body{padding-inline-end:0}.smart-match-badge{position:static;margin-inline-start:auto;white-space:nowrap}.smart-search-result{align-items:flex-start;flex-wrap:wrap}.smart-search-result-body{flex:1;min-width:160px}}
@media(prefers-reduced-motion:reduce){.smart-search-icon-btn,.smart-search-spinner{animation:none!important;transition:none!important}}
