.sm-search-enhanced{position:relative}.sm-search-enhanced .result{padding:0!important;border:1px solid #d7e9e6!important;border-radius:16px!important;box-shadow:0 10px 30px #014a4617;overflow:hidden;z-index:1003;max-width:100%;right:0!important;left:0!important;top:calc(100% + 8px)!important}.sm-search-enhanced .search_content{max-height:min(65vh,540px);overflow:auto;padding:0!important}.sm-search-results{direction:rtl;color:#193a37;font-family:inherit;text-align:right;width:100%;box-sizing:border-box;background:#fff}.sm-search-results *{box-sizing:border-box}.sm-search-item{display:grid!important;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 16px!important;min-height:80px;width:100%;border:0!important;border-bottom:1px solid #edf3f1!important;border-radius:0!important;background:#fff!important;color:#193a37!important;text-decoration:none!important;line-height:1.8;font-size:13px!important}.sm-search-item:hover,.sm-search-item[aria-selected=true]{background:#f2fefc!important}.sm-search-image{display:flex;align-items:center;justify-content:center;width:52px;height:56px}.sm-search-image img{display:block;max-width:100%;max-height:100%;object-fit:contain;border:0!important;margin:0!important}.sm-search-copy{display:flex;flex-direction:column;min-width:0}.sm-search-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:500}.sm-search-variant{font-size:11px;color:#5d7772;margin-top:2px}.sm-search-price{text-align:left;white-space:nowrap;font-size:13px;font-weight:700;color:#016d67}.sm-search-price small{display:block;font-size:10px;color:#687b77;font-weight:400}.sm-search-note,.sm-search-empty{padding:12px 16px!important;font-size:12px!important;margin:0!important;line-height:1.9;color:#647972}.sm-search-note{background:#f5fbf9}.sm-search-all{display:flex!important;justify-content:space-between;align-items:center;padding:13px 16px!important;color:#016d67!important;font-size:13px!important;font-weight:700;text-decoration:none!important;border:0!important;border-radius:0!important;background:#fff!important}.sm-search-all:hover{background:#f2fefc!important}.sm-search-guide{padding:18px;line-height:1.9}.sm-search-guide strong{color:#014a46}.sm-search-guide p{font-size:13px;color:#647972}.sm-search-guide a{display:inline-block!important;margin:6px 0 0 12px!important;color:#016d67!important;border:0!important;font-size:13px!important}.sm-search-page-form{display:flex;gap:8px;margin:16px 0 24px;direction:rtl}.sm-search-page-form input{flex:1;min-width:0;border:1px solid #d8e7e3;border-radius:12px;padding:12px 16px;font-family:inherit;font-size:14px}.sm-search-page-form button{border:0;border-radius:12px;background:#016d67;color:#fff;padding:12px 22px;font-family:inherit}.sm-search-full .sm-search-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sm-search-full .sm-search-item{border:1px solid #e2eeea!important;border-radius:14px!important}.sm-search-pagination{display:flex;justify-content:center;gap:18px;margin:24px 0}.sm-search-pagination a{display:inline-block;background:#e1f6f3;color:#016d67;padding:10px 18px;border-radius:12px}.sm-search-page .p-search{padding:0!important}.sm-search-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sm-search-item:focus-visible,.sm-search-all:focus-visible{outline:2px solid #04a198;outline-offset:-3px}@media(max-width:767px){.sm-search-enhanced .result{border-radius:12px!important}.sm-search-item{grid-template-columns:44px minmax(0,1fr) auto;gap:9px;padding:11px 12px!important}.sm-search-image{width:44px;height:50px}.sm-search-title{font-size:12px}.sm-search-price{font-size:12px}.sm-search-price small{font-size:10px}.sm-search-note,.sm-search-empty{padding:10px 12px!important}.sm-search-full .sm-search-items{grid-template-columns:minmax(0,1fr)}.sm-search-page-form button{padding:12px 16px}}@media(prefers-reduced-motion:reduce){.sm-search-results *{scroll-behavior:auto!important}}
/* One scroll container, sized to the visible viewport by the existing search controller. */
.search-form.sm-search-enhanced .result {
 height:auto!important;
 min-height:0!important;
 max-height:var(--sm-search-panel-max, min(65vh, 540px))!important;
 box-sizing:border-box;
 overflow:hidden!important;
}
.search-form.sm-search-enhanced .search_content {
 height:auto!important;
 min-height:0!important;
 max-height:var(--sm-search-content-max, min(65vh, 538px))!important;
 overflow-x:hidden!important;
 overflow-y:auto!important;
 overscroll-behavior-y:contain;
 -webkit-overflow-scrolling:touch;
 touch-action:pan-y;
}
/* Preserve the native submit/clear controls and reserve only the space they use. */
.header .search-form.sd-search-enhanced.sm-search-enhanced>input[name=q] {
 padding-left:118px!important;
 padding-right:12px!important;
}
#sd-app-nav .sm-search-nav-icon {
 position:relative;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 width:23px;
 height:23px;
 flex-shrink:0;
}
#sd-app-nav .sm-search-ai {
 position:absolute;
 top:-4px;
 left:-12px;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-width:18px;
 height:14px;
 padding:0 2px;
 border:1px solid #cce8e2;
 border-radius:4px;
 background:#e1f6f3;
 color:#016d67;
 font-family:Vazirmatn,Vazir,vazir,sans-serif;
 font-size:9px;
 font-weight:700;
 line-height:1;
 direction:ltr;
 box-sizing:border-box;
}
@media(max-width:767px) {
 .header .search-form.sd-search-enhanced.sm-search-enhanced>input[name=q] {font-size:16px!important;padding-left:54px!important;}
 .header .search-form.sd-search-enhanced.sm-search-enhanced>input[name=q]:not(:placeholder-shown) {padding-left:82px!important;}
 .header .search-form.sd-search-enhanced.sm-search-enhanced>.sd-search-submit {width:44px!important;padding:0!important;font-size:11px!important;}
 .header .search-form.sd-search-enhanced.sm-search-enhanced>.sd-search-clear {left:52px!important;width:26px!important;}
 .header .search-form.sm-search-enhanced>input[name=q]::placeholder {font-size:12px!important;}
}
@media(max-width:359px) {
 .header .search-form.sm-search-enhanced>input[name=q]::placeholder {font-size:10.5px!important;}
}
