.cse-smart-search{position:relative;width:100%;direction:rtl;--cse-smart-bg:#fff;--cse-smart-border:#dfe3e8;--cse-smart-text:#111827;--cse-smart-primary:#0868e8}
.cse-smart-search-form{display:flex;align-items:stretch;width:100%;min-height:56px;background:var(--cse-smart-bg);border:1px solid var(--cse-smart-border);border-radius:20px;overflow:visible;box-sizing:border-box;position:relative}
.cse-smart-search-button{order:0;flex:0 0 56px;width:56px;min-width:0;border:0!important;background:#0868e8;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:22px;line-height:1;margin:3px;padding:0!important;border-radius:12px;box-shadow:none!important;outline:0!important;box-sizing:border-box}
.cse-smart-search-button i{display:block;line-height:1;color:inherit}.cse-smart-search-button svg{display:block;width:22px;height:22px;fill:currentColor;stroke:currentColor;color:inherit}
.cse-smart-search-input{order:1;min-width:0;flex:1;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0 20px!important;margin:0!important;font:inherit;color:#111827;text-align:right;line-height:1.5;border-radius:0!important}.cse-smart-search-input::placeholder{color:#737982;opacity:1}
.cse-smart-search-scope-wrap{order:2;position:relative;flex:0 0 132px;width:132px;min-width:132px;max-width:132px;border-right:1px solid var(--cse-smart-border);box-sizing:border-box;display:flex;align-items:stretch;padding:0}
.cse-smart-search-scope-trigger{appearance:none;-webkit-appearance:none;width:100%;min-width:0;border:0!important;background:transparent!important;color:var(--cse-smart-text);display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px 10px 14px!important;margin:0!important;outline:0!important;box-shadow:none!important;font:inherit;font-weight:600;cursor:pointer;text-align:center;border-radius:0!important;box-sizing:border-box;line-height:1.4}
.cse-smart-search-scope-trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cse-smart-search-scope-arrow{width:8px;height:8px;flex:0 0 8px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg) translateY(-1px);opacity:.72;transition:transform .18s ease}.cse-smart-search.is-scope-open .cse-smart-search-scope-arrow{transform:rotate(135deg) translate(-1px,-1px)}
.cse-smart-search-scope-menu{position:absolute;top:calc(100% + 9px);left:0;right:auto;width:max(100%,220px);max-width:min(320px,88vw);max-height:320px;overflow:auto;padding:7px;background:var(--cse-smart-bg);border:1px solid var(--cse-smart-border);border-radius:14px;box-shadow:0 18px 50px rgba(17,24,39,.14);z-index:100002;box-sizing:border-box}.cse-smart-search-scope-menu[hidden]{display:none!important}
.cse-smart-search-scope-option{appearance:none;-webkit-appearance:none;width:100%;min-height:38px;display:flex;align-items:center;border:0;background:transparent;color:var(--cse-smart-text);border-radius:9px;padding:8px 10px;margin:0;text-align:right;cursor:pointer;font:inherit;font-size:12px;line-height:1.55;box-shadow:none}.cse-smart-search-scope-option:hover,.cse-smart-search-scope-option:focus-visible,.cse-smart-search-scope-option.is-selected{background:rgba(8,104,232,.08);color:var(--cse-smart-primary);outline:0}.cse-smart-search-scope-option.is-selected{font-weight:700}
.cse-smart-search-results{position:absolute;top:calc(100% + 8px);right:0;left:0;z-index:99999;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.12);overflow:hidden;max-height:520px;overflow-y:auto}
.cse-smart-search-result{--cse-search-result-image:100px;display:grid;grid-template-columns:var(--cse-search-result-image) minmax(0,1fr);grid-template-areas:"image content";align-items:center;column-gap:14px;padding:10px;text-decoration:none;color:#111827;background:#fff;border-bottom:1px solid #eef1f4;box-sizing:border-box;direction:ltr;transition:background-color .16s ease}
.cse-smart-search-result:last-child{border-bottom:0}.cse-smart-search-result:hover{background:#f8fafc}
.cse-smart-search-result-image{grid-area:image;display:block;width:var(--cse-search-result-image);height:var(--cse-search-result-image);border-radius:10px;background:#f2f4f7;overflow:hidden;align-self:center}
.cse-smart-search-result-image img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:inherit!important;object-fit:cover;background:#f2f4f7}
.cse-smart-search-result-content{grid-area:content;display:flex;flex-direction:column;justify-content:center;align-items:stretch;min-width:0;gap:10px;direction:rtl;text-align:right}
.cse-smart-search-result-title{display:-webkit-box;max-width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;white-space:normal;color:#111827;font-size:14px;font-weight:700;line-height:1.8}
.cse-smart-search-result-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;width:100%;direction:rtl}
.cse-smart-search-result-price{--cse-search-price-normal:#1359f5;display:flex;align-items:baseline;justify-content:flex-start;flex-wrap:wrap;gap:6px;min-width:0;max-width:68%;overflow:hidden;color:var(--cse-search-price-normal);font-size:13px;font-weight:700;line-height:1.7;text-align:right;direction:rtl}
.cse-smart-search-price-current{color:var(--cse-search-price-normal);white-space:nowrap}
.cse-smart-search-price-regular{color:#dc2626;text-decoration:line-through;text-decoration-thickness:1.5px;white-space:nowrap}
.cse-smart-search-price-sale{color:#16a34a;text-decoration:none;white-space:nowrap}
.cse-smart-search-price-zero{color:#b45309;white-space:nowrap}
.cse-smart-search-result-update{display:block;min-width:0;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px;line-height:1.7;text-align:left;direction:rtl}
.cse-smart-search-result-type{display:block;color:#64748b;font-size:11px;line-height:1.6}
.cse-smart-search-empty{padding:18px;text-align:center;font-size:12px;color:#6b7280}.cse-smart-search.is-loading .cse-smart-search-button{opacity:.7}
@media(max-width:680px){.cse-smart-search-scope-wrap{flex-basis:112px;width:112px;min-width:112px;max-width:112px}.cse-smart-search-scope-trigger{font-size:11px;padding:10px!important;gap:7px}.cse-smart-search-input{padding:0 11px!important}.cse-smart-search-button{flex-basis:50px;width:50px}.cse-smart-search-scope-menu{width:max(100%,190px)}.cse-smart-search-result{--cse-search-result-image:82px;column-gap:10px;padding:8px}.cse-smart-search-result-content{gap:7px}.cse-smart-search-result-title{font-size:12px}.cse-smart-search-result-price{font-size:11px}.cse-smart-search-result-update{font-size:9px}}
/* 2.0.120: search intelligence - retain the existing search bar styling. */
.cse-smart-search-voice{order:2;align-self:center;flex:0 0 38px;width:38px;height:38px;margin:0 3px!important;padding:0!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:#64748b;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:color .2s,background .2s}
.cse-smart-search-voice[hidden]{display:none!important}.cse-smart-search-voice:hover,.cse-smart-search-voice:focus-visible{background:rgba(8,104,232,.08)!important;color:var(--cse-smart-primary);outline:2px solid transparent}
.cse-smart-search-voice.is-listening{color:#dc2626!important;background:#fef2f2!important;animation:cse-mic-pulse 1.25s infinite}
@keyframes cse-mic-pulse{50%{box-shadow:0 0 0 5px rgba(220,38,38,.13)!important}}
.cse-smart-search-scope-wrap{order:3}
.cse-smart-search-hints{position:absolute;top:calc(100% + 8px);right:0;left:0;z-index:99998;background:var(--cse-smart-bg);border:1px solid var(--cse-smart-border);border-radius:16px;box-shadow:0 19px 42px rgba(15,23,42,.12);padding:14px 16px;max-height:330px;overflow:auto;direction:rtl;box-sizing:border-box}
.cse-smart-search-hints[hidden],.cse-smart-search-voice-status[hidden]{display:none!important}
.cse-smart-search-hint-group+.cse-smart-search-hint-group{border-top:1px solid #eef2f7;margin-top:12px;padding-top:12px}
.cse-smart-search-hint-title{color:var(--cse-smart-primary);font-weight:700;font-size:12px;line-height:1.8;margin-bottom:10px}
.cse-smart-search-hint-tags{display:flex;flex-wrap:wrap;gap:8px}
.cse-smart-search-suggestion{appearance:none;display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 12px!important;margin:0!important;border:1px solid #e7ecf4!important;border-radius:9px!important;background:#f8fafc!important;box-shadow:none!important;color:var(--cse-smart-text);font-size:12px;font-family:inherit;line-height:1.5;cursor:pointer;transition:background .15s,color .15s,border .15s}
.cse-smart-search-suggestion:hover,.cse-smart-search-suggestion:focus-visible{background:#eef5ff!important;border-color:#dbeafe!important;color:var(--cse-smart-primary)!important}
.cse-smart-search-hint-symbol{font-size:15px;opacity:.6}
.cse-smart-search-voice-status{position:absolute;top:calc(100% + 8px);right:0;z-index:100002;max-width:100%;padding:8px 13px;border-radius:10px;background:#f1f5f9;color:#334155;font-size:12px;box-shadow:0 5px 15px rgba(15,23,42,.1)}
@media(max-width:680px){.cse-smart-search-voice{flex-basis:32px;width:32px;height:32px;margin:0!important}.cse-smart-search-voice svg{width:18px;height:18px}.cse-smart-search-hints{padding:12px}.cse-smart-search-hint-tags{gap:5px}.cse-smart-search-suggestion{font-size:11px;padding:6px 9px!important}}
@media(prefers-reduced-motion:reduce){.cse-smart-search-voice.is-listening{animation:none}}
