/* Independent Smart Search module. Dark tokens are dormant until the site theme engine exists. */
.zm-smart-search{--zm-search-bg:#fff;--zm-search-surface:#f6f7fa;--zm-search-text:#172033;--zm-search-muted:#667085;--zm-search-border:#e7eaf0;--zm-search-accent:var(--zm-bar-primary,#e9004b);position:fixed;inset:0;z-index:2147483000;background:rgba(10,18,33,.56);display:flex;align-items:stretch;justify-content:center;color:var(--zm-search-text);font-family:inherit;direction:rtl}
.zm-smart-search[hidden]{display:none!important}
.zm-smart-search,.zm-smart-search *{box-sizing:border-box}
.zm-smart-search__panel{background:var(--zm-search-bg);width:min(100%,760px);height:100dvh;min-height:0;display:flex;flex-direction:column;box-shadow:0 15px 50px rgba(0,0,0,.19)}
.zm-smart-search__top{padding:calc(14px + env(safe-area-inset-top,0px)) 18px 14px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--zm-search-border);flex-shrink:0}
.zm-smart-search__form{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:var(--zm-search-surface);border:1px solid var(--zm-search-border);border-radius:16px;padding:0 12px;height:50px;margin:0}
.zm-smart-search__form:focus-within{border-color:var(--zm-search-accent)}
.zm-smart-search__form input{flex:1;min-width:0;background:none;border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;margin:0!important;height:100%;color:var(--zm-search-text);font:inherit;font-size:15px}
.zm-smart-search svg{width:21px;height:21px;display:block}
.zm-smart-search__glass{color:var(--zm-search-muted)}
.zm-smart-search__submit,.zm-smart-search__close{display:grid;place-items:center;border:0;cursor:pointer;background:transparent;color:var(--zm-search-text);padding:10px;border-radius:12px}
.zm-smart-search__submit:hover,.zm-smart-search__close:hover{background:var(--zm-search-surface)}
.zm-smart-search__body{padding:20px 22px calc(26px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}
.zm-smart-search__section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:15px}
.zm-smart-search__section-head button{border:0;background:transparent;color:var(--zm-search-accent);cursor:pointer;font-size:13px;padding:8px}
.zm-smart-search__history{display:flex;gap:9px;flex-wrap:wrap}
.zm-smart-search__history-item{display:flex;align-items:center;border:1px solid var(--zm-search-border);border-radius:40px;overflow:hidden;background:var(--zm-search-surface)}
.zm-smart-search__history-term{display:flex;gap:7px;align-items:center;border:0;background:transparent;padding:9px 12px;cursor:pointer;color:var(--zm-search-text);font-size:13px}
.zm-smart-search__history-term svg{width:15px;height:15px;color:var(--zm-search-muted)}
.zm-smart-search__history-remove{border:0;background:transparent;color:var(--zm-search-muted);cursor:pointer;padding:9px 12px;font-size:18px}
.zm-smart-search__feedback{font-size:14px;color:var(--zm-search-muted);padding:12px 0}
.zm-smart-search__tabs{display:flex;border-bottom:1px solid var(--zm-search-border);gap:20px;margin-bottom:16px}
.zm-smart-search__tabs[hidden]{display:none}
.zm-smart-search__tab{border:0;border-bottom:2px solid transparent;background:none;padding:12px 4px;cursor:pointer;color:var(--zm-search-muted);font-weight:600}
.zm-smart-search__tab.is-active{color:var(--zm-search-accent);border-color:var(--zm-search-accent)}
.zm-smart-search__section h3{font-size:15px;margin:18px 0 12px}
.zm-smart-search__cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.zm-smart-search__card{display:flex;align-items:center;gap:12px;text-decoration:none!important;color:var(--zm-search-text)!important;border:1px solid var(--zm-search-border);border-radius:14px;padding:10px;min-width:0}
.zm-smart-search__card:hover{border-color:var(--zm-search-accent)}
.zm-smart-search__card img{width:58px;height:58px;flex:0 0 58px;object-fit:cover;border-radius:9px}
.zm-smart-search__card-copy{min-width:0;display:grid;gap:5px;overflow-wrap:anywhere}
.zm-smart-search__card-copy strong{font-size:13px;line-height:1.7}
.zm-smart-search__card-copy small{color:var(--zm-search-muted);font-size:12px;line-height:1.6}
.zm-smart-search__empty{padding:25px;text-align:center;background:var(--zm-search-surface);border-radius:14px;color:var(--zm-search-muted)}
.zm-mobile-nav-item.zm-smart-search-trigger-active{color:var(--zm-bar-primary,#e9004b)}
[data-zm-theme="dark"] .zm-smart-search{--zm-search-bg:#181d29;--zm-search-surface:#252c3a;--zm-search-text:#f8fafc;--zm-search-muted:#aeb8c8;--zm-search-border:#374255;--zm-search-accent:#ff3975}
@media(max-width:640px){.zm-smart-search__top{padding-inline:12px}.zm-smart-search__body{padding-inline:15px}.zm-smart-search__cards{grid-template-columns:1fr}}
@media(min-width:800px){.zm-smart-search__panel{height:min(92dvh,900px);margin:auto;border-radius:22px;overflow:hidden}}
@media(prefers-reduced-motion:reduce){.zm-smart-search *{scroll-behavior:auto!important;transition:none!important}}
/* Responsive desktop dialog / full-screen mobile overlay: token-based and dark-ready. */
.zm-smart-search__retry{margin-inline-start:8px;border:1px solid var(--zm-search-border);background:var(--zm-search-surface);color:var(--zm-search-accent);border-radius:9px;padding:6px 12px;cursor:pointer}
.zm-smart-search :is(button,a,input):focus-visible{outline:2px solid var(--zm-search-accent)!important;outline-offset:2px}
@media(min-width:769px){.zm-smart-search__panel{width:min(90vw,880px);height:min(86dvh,840px);margin:auto;border-radius:20px;overflow:hidden}}
@media(max-width:768px){.zm-smart-search__panel{width:100%;height:100dvh;border-radius:0}.zm-smart-search__top{padding-inline:12px}.zm-smart-search__body{padding-inline:15px}}
@media(max-width:359px){.zm-smart-search__top{gap:6px}.zm-smart-search__form{height:45px;padding-inline:8px}.zm-smart-search__close{padding:7px}.zm-smart-search__card{padding:8px}}

/* 3.9.23: Search experience and discovery; all styles scoped to the module. */
.zm-smart-search{--zm-search-accent:var(--zm-color-primary,var(--zm-bar-primary,#e9004b));--zm-search-price:var(--zm-search-accent)}
.zm-smart-search__top{gap:10px}
.zm-smart-search__form{transition:border-color .16s ease,box-shadow .16s ease}
.zm-smart-search__form:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--zm-search-accent) 12%,transparent)}
.zm-smart-search__form input[type=search]{-webkit-appearance:none;appearance:none;outline:none!important;border:0!important;min-height:0!important}
.zm-smart-search__form input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
.zm-smart-search__body{display:flex;flex-direction:column;gap:16px}
.zm-smart-search__section-head{margin-bottom:10px}
.zm-smart-search__popular h3,.zm-smart-search__discovery-group h3{font-size:14px;line-height:1.6;margin:0 0 10px;font-weight:700;color:var(--zm-search-text)}
.zm-smart-search__popular[hidden],.zm-smart-search__results[hidden],.zm-smart-search__recent[hidden]{display:none!important}
.zm-smart-search__chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.zm-smart-search__chip{border:1px solid var(--zm-search-border)!important;border-radius:999px!important;background:var(--zm-search-bg)!important;color:var(--zm-search-text)!important;padding:8px 12px!important;display:inline-flex;align-items:center;gap:7px;font-size:12px!important;font-weight:500;cursor:pointer;text-decoration:none!important;line-height:1.5!important;min-height:34px}
.zm-smart-search__chip:hover{border-color:var(--zm-search-accent)!important;color:var(--zm-search-accent)!important}
.zm-smart-search__inline-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;font-size:16px;line-height:1;color:var(--zm-search-accent)}
.zm-smart-search__discovery-group{margin:0 0 12px}
.zm-smart-search__cards{gap:10px}
.zm-smart-search__card{position:relative;min-height:88px;align-items:center;background:var(--zm-search-bg);transition:border-color .18s ease,background .18s ease}
.zm-smart-search__card-media{width:68px;height:68px;flex:0 0 68px;border-radius:11px;display:grid;place-items:center;background:var(--zm-search-surface);overflow:hidden}
.zm-smart-search__card-media img{width:100%!important;height:100%!important;max-width:none!important;border-radius:0;object-fit:contain}
.zm-smart-search__card-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.zm-smart-search__card-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.8;font-weight:650}
.zm-smart-search__card-copy .zm-smart-search__meta{font-size:11px;color:var(--zm-search-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zm-smart-search__card-copy .zm-smart-search__price{font-size:12px;font-weight:700;color:var(--zm-search-price);unicode-bidi:plaintext}
.zm-smart-search__card-copy .zm-smart-search__excerpt{font-size:11px;color:var(--zm-search-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.zm-smart-search__status{position:absolute;inset-inline-end:8px;bottom:8px;font-size:10px;padding:3px 6px;border-radius:6px;background:var(--zm-search-surface);color:var(--zm-search-muted)}
.zm-smart-search__promo{display:block;width:100%;overflow:hidden;border-radius:14px;text-decoration:none;line-height:0}
.zm-smart-search__promo img{display:block;width:100%;height:auto;max-height:210px;object-fit:contain;object-position:center}
.zm-smart-search__banner-slot:empty{display:none}
.zm-smart-search__results{min-width:0}
.zm-smart-search__feedback:empty{display:none}
.zm-smart-search__empty{line-height:1.8}
.zm-smart-search .zm-ss-skeleton-image{width:68px;height:68px;flex:0 0 68px;border-radius:11px}
.zm-smart-search .zm-ss-skeleton-card{pointer-events:none}
.zm-smart-search .zm-ss-skeleton-line{height:12px;width:90%;margin-block:4px}
.zm-smart-search .zm-ss-skeleton-line:nth-child(2){width:65%;height:9px}
.zm-smart-search .zm-ss-skeleton-line.is-short{width:45%;height:11px}
.zm-smart-search .zm-ss-skeleton-chip{width:88px;height:31px;border-radius:999px}
@media(max-width:640px){.zm-smart-search__body{gap:13px}.zm-smart-search__card{padding:10px}.zm-smart-search__card-copy strong{font-size:12px}.zm-smart-search__promo img{max-height:180px}.zm-smart-search__top{padding-top:calc(10px + env(safe-area-inset-top,0px))}}
@media(max-width:359px){.zm-smart-search__card-media,.zm-smart-search .zm-ss-skeleton-image{width:56px;height:56px;flex-basis:56px}.zm-smart-search__status{font-size:9px}}
/* 3.9.24 – refined search experience and accessible motion */
.zm-smart-search__submit[hidden]{display:none!important}
.zm-smart-search__submit{min-width:40px;min-height:40px;color:var(--zm-search-muted)}
.zm-smart-search__submit:hover{color:var(--zm-search-text)}
.zm-smart-search__history{gap:8px 10px}
.zm-smart-search__history-item{background:var(--zm-search-surface);border-color:transparent;transition:background .15s,border-color .15s}
.zm-smart-search__history-item:hover{border-color:var(--zm-search-border)}
.zm-smart-search__history-term{font-weight:500;line-height:1.5}
.zm-smart-search__history-remove{font-size:16px;padding-inline:10px;opacity:.75}
.zm-smart-search__history-remove:hover{opacity:1;background:color-mix(in srgb,var(--zm-search-text) 6%,transparent)}
.zm-smart-search__section-head button{color:var(--zm-search-muted);border:1px solid var(--zm-search-border);border-radius:9px;background:var(--zm-search-bg);padding:7px 11px}
.zm-smart-search__section-head button:hover{color:var(--zm-search-text);background:var(--zm-search-surface)}
.zm-smart-search__discovery-group{background:var(--zm-search-surface);border-radius:14px;padding:12px;margin-bottom:12px}
.zm-smart-search__discovery-group .zm-smart-search__chips{margin:0}
.zm-smart-search__discovery-group .zm-smart-search__chip{background:var(--zm-search-bg)!important;border-color:var(--zm-search-border)!important;transition:transform .15s,border-color .15s}
.zm-smart-search__discovery-group .zm-smart-search__chip:hover{transform:translateY(-1px)}
.zm-smart-search__price-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.7;direction:rtl;font-size:12px}
.zm-smart-search__price-row del{color:var(--zm-search-muted);font-size:11px;font-weight:400;white-space:nowrap}
.zm-smart-search__price-row b{color:var(--zm-search-price);font-size:12px;font-weight:700;line-height:1.65;white-space:normal}
.zm-smart-search__status:empty{display:none}
.zm-smart-search__empty{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;padding:30px 15px;background:var(--zm-search-surface);border:1px dashed var(--zm-search-border);border-radius:16px}
.zm-smart-search__empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--zm-search-bg);color:var(--zm-search-muted);font-size:30px}
.zm-smart-search__empty strong{font-size:15px;color:var(--zm-search-text)}
.zm-smart-search__empty p{margin:0;color:var(--zm-search-muted);font-size:12px;line-height:1.9}
.zm-smart-search__empty button,.zm-smart-search__more-btn{cursor:pointer;border:1px solid var(--zm-search-border);background:var(--zm-search-bg);color:var(--zm-search-text);border-radius:11px;padding:10px 18px;margin:10px auto 0;display:block;font-weight:600;font-size:12px}
.zm-smart-search__empty button:hover,.zm-smart-search__more-btn:hover{border-color:var(--zm-search-accent)}
.zm-smart-search__more-btn:disabled{opacity:.5;cursor:wait}
.zm-smart-search__more-skeleton{margin-top:10px}
.zm-smart-search__promo{display:block;width:100%;border-radius:18px;overflow:hidden;background:var(--zm-search-surface)}
.zm-smart-search__promo picture{display:block;width:100%}
.zm-smart-search__promo img{width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;display:block;object-fit:contain}
.zm-smart-search{transition:opacity .2s ease;opacity:1}
.zm-smart-search__panel{animation:zm-search-enter-mobile .23s cubic-bezier(.2,.7,.1,1) both}
.zm-smart-search.is-closing{opacity:1}
.zm-smart-search.is-closing .zm-smart-search__panel{animation:zm-search-exit-mobile .19s ease-in both}
@keyframes zm-search-enter-mobile{from{opacity:.75;transform:translateY(22px)}to{opacity:1;transform:translateY(0)}}
@keyframes zm-search-exit-mobile{from{opacity:1;transform:translateY(0)}to{opacity:.7;transform:translateY(18px)}}
@media(min-width:769px){.zm-smart-search__panel{animation-name:zm-search-enter-desktop}.zm-smart-search.is-closing .zm-smart-search__panel{animation-name:zm-search-exit-desktop}}
@keyframes zm-search-enter-desktop{from{opacity:0;transform:scale(.97) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes zm-search-exit-desktop{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.98)}}
@media(prefers-reduced-motion:reduce){.zm-smart-search,.zm-smart-search__panel,.zm-smart-search.is-closing .zm-smart-search__panel{animation:none!important;transition:none!important}}

/* 3.9.25 — Compact discovery, accessible history and append-only pagination. */
.zm-smart-search__section-head{gap:10px;margin-bottom:12px}
.zm-smart-search__section-head strong{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:700}
.zm-smart-search__section-head strong>.zarinIcons{font-size:17px;color:var(--zm-search-muted);line-height:1}
.zm-smart-search__section-head button[data-zm-search-clear]{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:7px!important;padding:3px 5px!important;min-height:29px!important;color:var(--zm-search-muted)!important;font-size:12px!important;font-weight:500!important}
.zm-smart-search__section-head button[data-zm-search-clear]:hover{color:var(--zm-search-accent)!important;background:var(--zm-search-surface)!important}
.zm-smart-search__history{gap:7px;align-items:center}
.zm-smart-search__history-item{height:35px;min-height:35px;border:1px solid transparent!important;border-radius:999px;background:var(--zm-search-surface);max-width:100%;box-shadow:none}
.zm-smart-search__history-item:hover{border-color:var(--zm-search-border)!important}
.zm-smart-search__history-term{min-height:33px!important;height:33px!important;padding:0 11px!important;gap:0!important;font-size:12px!important;font-weight:500!important;white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis;color:var(--zm-search-text)!important}
.zm-smart-search__history-term span{overflow:hidden;text-overflow:ellipsis}
.zm-smart-search__history-remove{display:inline-flex;align-items:center;justify-content:center;height:30px;min-width:30px;padding:0 7px!important;border-radius:999px;color:var(--zm-search-muted)!important;opacity:.85}
.zm-smart-search__history-remove:hover{color:var(--zm-search-accent)!important;background:color-mix(in srgb,var(--zm-search-accent) 9%,transparent)!important;opacity:1}
.zm-smart-search__history-remove .zm-smart-search__inline-icon{color:inherit;width:15px;height:15px;font-size:13px}
.zm-smart-search__inline-icon .zarinIcons{font-size:inherit;line-height:1}
.zm-smart-search__category-chip{background:var(--zm-search-surface)!important;border-color:transparent!important;border-radius:12px!important;min-height:35px!important;font-size:12px!important;padding:7px 11px!important;box-shadow:none!important}
.zm-smart-search__category-chip:hover{border-color:var(--zm-search-border)!important;background:var(--zm-search-bg)!important}
.zm-smart-search__category-chip .zm-smart-search__inline-icon{color:var(--zm-search-muted);font-size:14px}
.zm-smart-search__categories{margin-bottom:14px}
.zm-smart-search__section[hidden]{display:none!important}
.zm-smart-search__more-btn{display:flex!important;align-items:center;justify-content:center;gap:8px;min-width:168px;max-width:100%;min-height:38px;margin:14px auto 4px!important;padding:8px 14px!important;border-radius:11px!important;font-weight:600;font-size:12px!important;background:var(--zm-search-surface)!important;box-shadow:none!important;transition:background .15s,border-color .15s}
.zm-smart-search__more-btn:not(:disabled):hover{background:var(--zm-search-bg)!important;border-color:var(--zm-search-accent)!important}
.zm-smart-search__more-btn.is-loading{opacity:.8;cursor:progress!important}
.zm-smart-search__more-btn.is-loading:before{content:'';width:13px;height:13px;border:2px solid var(--zm-search-border);border-top-color:var(--zm-search-accent);border-radius:50%;animation:zm-ss-more-spin .75s linear infinite}
.zm-smart-search__more-error{color:var(--zm-search-muted);font-size:12px;text-align:center;margin:12px 0 3px}
.zm-smart-search__sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
@keyframes zm-ss-more-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.zm-smart-search__more-btn.is-loading:before{animation:none}}
@media(max-width:640px){.zm-smart-search__history-term{max-width:150px}.zm-smart-search__more-btn{min-height:40px}}

/* Clear-input is a small delete glyph; close-overlay remains the separate X. */
.zm-smart-search__submit[data-zm-search-clear-input]{height:29px;width:29px;min-width:29px;padding:0!important;border-radius:50%!important;background:color-mix(in srgb,var(--zm-search-text) 7%,transparent)!important;color:var(--zm-search-muted)!important;font-size:14px!important}
.zm-smart-search__submit[data-zm-search-clear-input]:hover{background:color-mix(in srgb,var(--zm-search-text) 12%,transparent)!important;color:var(--zm-search-text)!important}
.zm-smart-search__submit[data-zm-search-clear-input][hidden]{display:none!important}

/* 3.9.26 — Consistent search glyph and low-contrast clear action. */
.zm-smart-search__glass{display:inline-flex;align-items:center;justify-content:center;min-width:20px;font-size:19px;line-height:1;color:var(--zm-search-muted)}
.zm-smart-search__glass .zarinIcons{font-size:19px;line-height:1}
.zm-smart-search__submit[data-zm-search-clear-input]{width:36px!important;height:36px!important;min-width:36px!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;color:var(--zm-search-muted)!important;font-size:15px!important}
.zm-smart-search__submit[data-zm-search-clear-input] .zarinIcons{font-size:15px!important;line-height:1}
.zm-smart-search__submit[data-zm-search-clear-input]:hover{background:color-mix(in srgb,var(--zm-search-text) 5%,transparent)!important;color:var(--zm-search-accent)!important}
.zm-smart-search__submit[data-zm-search-clear-input]:focus-visible{outline:2px solid var(--zm-search-accent)!important;outline-offset:1px}

/* 3.9.27 — scoped UX polish / reliable exit / device-specific banner. */
.zm-smart-search__promo-mobile,.zm-smart-search__promo-desktop{display:none!important;width:100%!important;height:auto!important;max-height:none!important;border-radius:inherit!important;object-fit:cover}
@media(max-width:768px){.zm-smart-search__promo-mobile{display:block!important}}
@media(min-width:769px){.zm-smart-search__promo-desktop{display:block!important}}
.zm-smart-search__promo:has(img){border-radius:18px;overflow:hidden}
.zm-smart-search__promo:not(:has(img)){display:none}
.zm-smart-search__history-item{transition:opacity .16s ease,transform .16s ease,border-color .16s ease}
.zm-smart-search__history-item.is-removing{opacity:.45;pointer-events:none;transform:scale(.97)}
.zm-smart-search__history-remove{transition:color .14s,background .14s,transform .14s;outline-offset:1px}
.zm-smart-search__history-remove:hover,.zm-smart-search__history-remove:focus-visible{background:color-mix(in srgb,var(--zm-search-accent) 7%,transparent)!important;color:var(--zm-search-text)!important}
.zm-smart-search__history-remove:active{transform:scale(.96);background:color-mix(in srgb,var(--zm-search-text) 7%,transparent)!important}
.zm-smart-search__history-item:has(.zm-smart-search__history-remove:hover){border-color:transparent!important}
.zm-smart-search__section-head button[data-zm-search-clear]{display:inline-flex;align-items:center;gap:6px;transition:color .15s,background .15s;min-width:0!important}
.zm-smart-search__section-head button[data-zm-search-clear]:active{background:color-mix(in srgb,var(--zm-search-text) 5%,transparent)!important;color:var(--zm-search-muted)!important}
.zm-smart-search__recent.is-clearing .zm-smart-search__history{opacity:.42;pointer-events:none;transition:opacity .16s}
.zm-smart-search__recent.is-clearing button[data-zm-search-clear]:before{content:'';width:11px;height:11px;border:1.5px solid var(--zm-search-border);border-top-color:var(--zm-search-accent);border-radius:50%;animation:zm-ss-more-spin .7s linear infinite}
.zm-smart-search__popular{margin-top:8px;margin-bottom:6px}
.zm-smart-search__popular h3{margin-bottom:14px!important}
.zm-smart-search__popular .zm-smart-search__chips{gap:10px 9px}
.zm-smart-search__status.is-view-product{border-radius:8px;background:color-mix(in srgb,var(--zm-search-accent) 7%,var(--zm-search-surface));color:var(--zm-search-accent);font-weight:600;padding-inline:8px}
.zm-smart-search__more-btn.is-loading{border:0!important;background:transparent!important;min-width:0!important;cursor:progress;opacity:1!important;color:var(--zm-search-muted)!important;box-shadow:none!important}
.zm-smart-search__more-btn.is-loading:before{width:12px;height:12px}
.zm-smart-search__panel{animation:none}
.zm-smart-search.is-opening .zm-smart-search__panel{animation:zm-search-enter-mobile .26s cubic-bezier(.18,.75,.17,1) both}
.zm-smart-search.is-closing{animation:zm-search-backdrop-out .21s ease both;pointer-events:none}
.zm-smart-search.is-closing .zm-smart-search__panel{animation:zm-search-exit-mobile .21s cubic-bezier(.4,0,1,1) both}
@keyframes zm-search-backdrop-out{from{opacity:1}to{opacity:0}}
@media(min-width:769px){.zm-smart-search.is-opening .zm-smart-search__panel{animation-name:zm-search-enter-desktop}.zm-smart-search.is-closing .zm-smart-search__panel{animation-name:zm-search-exit-desktop}}
@media(prefers-reduced-motion:reduce){.zm-smart-search.is-opening .zm-smart-search__panel,.zm-smart-search.is-closing,.zm-smart-search.is-closing .zm-smart-search__panel{animation:none!important}}

/* 3.9.28: Stable public CSS hooks for Smart Search; selectors are kept module-scoped. */
.zm-smart-search__inline-icon .zarinIcons {
    line-height: 1;
}
/* Compact history deletion keeps its own visual size despite the shared glyph baseline. */
.zm-smart-search__history-remove .zm-smart-search__inline-icon .zarinIcons { font-size: 13px; top: 0; }
.zm-smart-search__card--product, .zm-smart-search__card--post { min-width: 0; }

/* 3.9.29: keyboard-visible focus without rectangular red tap outlines on result tabs. */
.zm-smart-search .zm-smart-search__tab {border-radius:8px 8px 0 0;-webkit-tap-highlight-color:transparent}
.zm-smart-search .zm-smart-search__tab:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
.zm-smart-search .zm-smart-search__tab:focus-visible{outline:none!important;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--zm-search-accent) 24%,transparent)!important}
.zm-smart-search__correction{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:11px 13px;margin-bottom:12px;border:1px solid var(--zm-search-border);border-radius:12px;background:var(--zm-search-surface)}
.zm-smart-search__correction-label{color:var(--zm-search-muted);font-size:12px}
.zm-smart-search__correction-action{border:0;background:transparent;color:var(--zm-search-accent);font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:5px 7px;border-radius:8px}
.zm-smart-search__correction-action:hover{background:color-mix(in srgb,var(--zm-search-accent) 8%,transparent)}

/* 3.9.31 — stable, independently customizable icon rules. */
.zm-smart-search .zm-smart-search__category-chip .zm-smart-search__inline-icon--category .zarinIcons {
    position: relative;
    top: 2px;
    font-size: 18px;
}
.zm-smart-search .zm-smart-search__inline-icon--search .zarinIcons {
    position: static;
    font-size: 16px;
}
.zm-smart-search .zm-smart-search__history-remove .zm-smart-search__inline-icon--delete .zarinIcons {
    position: static;
    font-size: 13px;
}
.zm-smart-search .zm-smart-search__input,
.zm-smart-search .zm-smart-search__form input[type="search"] {
    font-size: 16px !important;
    line-height: 1.5;
}
.zm-smart-search .zm-smart-search__section-head strong > .zarinIcons {
    font-size: 25px;
    font-weight: 300;
    position: relative;
    top: 1px;
    color: var(--zm-search-muted);
    line-height: 1;
}
/* Overlay and panel use coordinated entry/exit, with no idle animation. */
.zm-smart-search { transition: none; opacity: 1; }
.zm-smart-search.is-opening { animation: zm-ss31-backdrop-in .24s ease-out both; }
.zm-smart-search.is-opening .zm-smart-search__panel {
    animation: zm-ss31-panel-in-mobile .28s cubic-bezier(.2,.75,.17,1) both;
}
.zm-smart-search.is-closing { animation: zm-ss31-backdrop-out .19s ease-in both; pointer-events: none; }
.zm-smart-search.is-closing .zm-smart-search__panel {
    animation: zm-ss31-panel-out-mobile .19s cubic-bezier(.4,0,1,1) both;
}
@media (min-width:769px) {
    .zm-smart-search.is-opening .zm-smart-search__panel { animation-name: zm-ss31-panel-in-desktop; animation-duration: .24s; }
    .zm-smart-search.is-closing .zm-smart-search__panel { animation-name: zm-ss31-panel-out-desktop; animation-duration: .18s; }
}
@keyframes zm-ss31-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zm-ss31-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes zm-ss31-panel-in-mobile { from { opacity: .65; transform: translate3d(0,28px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes zm-ss31-panel-out-mobile { from { opacity: 1; transform: translate3d(0,0,0); } to { opacity: .5; transform: translate3d(0,20px,0); } }
@keyframes zm-ss31-panel-in-desktop { from { opacity: 0; transform: translate3d(0,10px,0) scale(.975); } to { opacity: 1; transform: translate3d(0,0,0) scale(1); } }
@keyframes zm-ss31-panel-out-desktop { from { opacity: 1; transform: translate3d(0,0,0) scale(1); } to { opacity: 0; transform: translate3d(0,6px,0) scale(.985); } }
@media (prefers-reduced-motion: reduce) {
    .zm-smart-search.is-opening, .zm-smart-search.is-closing,
    .zm-smart-search.is-opening .zm-smart-search__panel,
    .zm-smart-search.is-closing .zm-smart-search__panel {
        animation: none !important;
        transition: none !important;
    }
}

/* 3.9.32 — independent clear-input and empty-state icon styling. */
.zm-smart-search .zm-smart-search__submit[data-zm-search-clear-input] .zarinIcons {
    font-size: 20px !important;
    position: relative;
    top: 2px;
    right: 5px;
}
.zm-smart-search .zm-smart-search__empty-icon .zarinIcons.search {
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
}

/* 3.9.33: category placement can be above tabs, below tabs or after the results. */
.zm-smart-search__category-placement[hidden]{display:none!important}
.zm-smart-search__category-placement{width:100%;min-width:0}
.zm-smart-search__category-placement .zm-smart-search__categories{margin-block:12px}
.zm-smart-search__category-placement + .zm-smart-search__tabs{margin-top:0}
