/* کادر ورودی */
.wcis-search-wrap{ position: relative; display:flex; align-items:center; gap:8px; background:#f2f2f2; border-radius:16px; padding:10px 14px; }
.wcis-search-wrap .wcis-input{ flex:1; border:none; outline:none; background:transparent; font:inherit; padding:8px 12px; }

/* Placeholder به‌صورت لایه (برای رنگ/بولد شدن بخشی از متن) */
.wcis-ph{ position:absolute; top:50%; transform:translateY(-50%); pointer-events:auto; cursor:text; user-select:none; opacity:.88; font-family:inherit; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; z-index:1; }
.wcis-search-wrap[dir="rtl"] .wcis-ph, [dir="rtl"] .wcis-ph{ right:44px; left:auto; }
.wcis-search-wrap:not([dir="rtl"]) .wcis-ph{ left:44px; right:auto; }

/* آیکون‌ها (در صورت فعال بودن از تنظیمات) */
.wcis-icon{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; color:#6e6e6e; cursor:pointer; user-select:none; flex:0 0 auto; }
.wcis-icon:hover{ color:#444; }
[dir="rtl"] .wcis-icon-search{ position:absolute; right:12px; top:50%; transform:translateY(-50%); z-index:0; }
[dir="rtl"] .wcis-icon-camera{ position:absolute; left:12px; top:50%; transform:translateY(-50%); }
.wcis-search-wrap:not([dir="rtl"]) .wcis-icon-search{ position:absolute; left:12px; top:50%; transform:translateY(-50%); z-index:0; }
.wcis-search-wrap:not([dir="rtl"]) .wcis-icon-camera{ position:absolute; right:12px; top:50%; transform:translateY(-50%); }
.wcis-search-wrap.has-value .wcis-icon-camera{ display:none; } /* هنگام تایپ دوربین مخفی شود */

/* پنل نتایج */
#wc-instant-search-panel.wcis{ position: fixed; z-index: 9999; margin:0; inset:auto auto auto auto; font-family: inherit; }
.wcis.hidden { display: none; }
.wcis .wcis-inner { background:#fff; border:1px solid rgba(0,0,0,.08); box-shadow:0 10px 30px rgba(0,0,0,.12); border-radius:12px; padding:12px; }

/* متن پیش‌بارگذار */
.wcis-preloader{ display:none; padding:8px 10px; margin-bottom:8px; background:#fafafa; border:1px dashed rgba(0,0,0,.08); border-radius:10px; font-size:13px; }
.wcis-section-title { font-size:13px; font-weight:600; margin:2px 0 8px; color:#5f6b7a; }

/* لیست محصولات */
.wcis-list-vert { max-height: 270px; overflow-y: auto; padding-right: 2px; }
.wcis-product { display:grid; grid-template-columns:64px 1fr auto; gap:10px; align-items:center; padding:8px; border-radius:10px; text-decoration:none; color:inherit; }
.wcis-product:hover { background:#f7f7f9; }
.wcis-product img { width:64px; height:64px; object-fit:cover; border-radius:8px; }
.wcis-title { font-size:14px; line-height:1.35; color:#223; }
.wcis-price { font-size:13px; }
.wcis-price-old { text-decoration: line-through; color:#888; margin-bottom:2px; }
.wcis-price-new { color: #22a06b; font-weight:600; }
.wcis-badge { font-size:11px; padding:2px 6px; border-radius:999px; background:#ffeff0; color:#d12a3a; }
.wcis-empty { padding:8px; color:#666; font-size:13px; }
.wcis-divider { height:1px; background:rgba(0,0,0,.06); margin:10px 0; }

/* دسته‌ها: 3.5 در دسکتاپ / 2.2 در موبایل */
.wcis-list-horz { display:grid; grid-auto-flow:column; gap:12px; overflow-x:auto; padding-bottom:4px; grid-auto-columns: calc(100% / 3.5); }
@media (max-width: 640px){ .wcis-list-horz { grid-auto-columns: calc(100% / 2.2); } }
.wcis-cat { display:grid; grid-template-columns:64px 1fr; gap:10px; align-items:center; border:1px solid rgba(0,0,0,.06); border-radius:16px; padding:12px; background:#f6f8ff; text-decoration:none; color:inherit; }
.wcis-cat img { width:64px; height:64px; border-radius:12px; object-fit:cover; }
.wcis-cat-name { font-size:14px; color:#223; }
.wcis-cat-count { font-size:12px; color:#6a7785; }

/* دکمه "نمایش همه نتایج" زیر لیست */
.wcis-viewall-wrap { padding: 10px 0 4px; }
.wcis-viewall-btn { display:block; width:100%; text-align:center; padding:10px 12px; border-radius:10px; background:#e7e7e7; color:#111; text-decoration:none; font-size:14px; font-weight:600; transition: background .18s ease, color .18s ease; }
.wcis-viewall-btn:hover { background:#0f8b8d; color:#fff; }
