/* MNR Mobile Search */
.mms-bar{display:none;box-sizing:border-box;width:100%;flex:0 0 100%;max-width:100%;margin:6px 0 4px;font-family:inherit}
.mms-bar *{box-sizing:border-box}
.mms-trigger{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;height:46px;padding:0 14px;border-radius:12px;background:#f1f2f4;color:#81858b;font:inherit;font-size:14px;cursor:text;-webkit-tap-highlight-color:transparent;transition:background .15s,box-shadow .15s}
.mms-trigger:active{background:#e9eaed}
.mms-trigger:focus-visible{box-shadow:0 0 0 2px var(--mms-accent)}
.mms-trigger svg{flex:0 0 auto;width:22px;height:22px;color:#a1a3a8}
.mms-trigger span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.mms-trigger b{color:var(--mms-accent);font-weight:800}
.mms-spacer{display:none}

/* overlay */
.mms-lock{overflow:hidden!important;touch-action:none}
.mms-ov{position:fixed;inset:0;z-index:2147483000;background:#fff;display:flex;flex-direction:column;direction:rtl;font-family:inherit;color:#232933;opacity:0;transform:translateY(12px);transition:opacity .18s ease,transform .18s ease;visibility:hidden}
.mms-ov.is-open{opacity:1;transform:none;visibility:visible}
.mms-ov *{box-sizing:border-box}
.mms-head{display:flex;align-items:center;gap:6px;padding:10px 10px 10px 12px;padding-top:calc(10px + env(safe-area-inset-top));border-bottom:1px solid #eef0f2;background:#fff}
.mms-back{all:unset;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#3f4064;cursor:pointer;flex:0 0 auto;-webkit-tap-highlight-color:transparent}
.mms-back:active{background:#f1f2f4}
.mms-back svg{width:24px;height:24px}
.mms-form{flex:1;display:flex;align-items:center;gap:8px;height:46px;padding:0 12px;border-radius:12px;background:#f1f2f4;margin:0}
.mms-form svg{width:20px;height:20px;color:#a1a3a8;flex:0 0 auto}
.mms-input{all:unset;flex:1;min-width:0;height:100%;font:inherit;font-size:16px;color:#232933;text-align:right;direction:rtl}
.mms-input::placeholder{color:#a1a3a8}
.mms-input::-webkit-search-cancel-button{display:none}
.mms-clear{all:unset;display:none;place-items:center;width:28px;height:28px;border-radius:50%;cursor:pointer;color:#81858b}
.mms-clear svg{width:18px;height:18px}
.mms-form.has-val .mms-clear{display:grid}
.mms-bar-progress{height:2px;background:transparent;overflow:hidden;position:relative}
.mms-ov.is-loading .mms-bar-progress::after{content:"";position:absolute;top:0;right:-40%;width:40%;height:100%;background:var(--mms-accent);animation:mms-load 1s infinite ease-in-out}
@keyframes mms-load{to{right:100%}}

.mms-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:6px 0 calc(24px + env(safe-area-inset-bottom))}
.mms-sec{padding:14px 16px 6px}
.mms-sec-h{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;font-size:14px;font-weight:700;color:#232933}
.mms-sec-h .mms-link{all:unset;font-size:12px;font-weight:500;color:#81858b;cursor:pointer;padding:4px}
.mms-sec-h svg{width:18px;height:18px;vertical-align:-4px;margin-left:6px;color:#a1a3a8}
.mms-chips{display:flex;flex-wrap:wrap;gap:8px}
.mms-chip{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid #e0e0e2;border-radius:18px;background:#fff;color:#3f4064;font-size:13px;text-decoration:none!important;cursor:pointer;max-width:100%;-webkit-tap-highlight-color:transparent}
.mms-chip:active{background:#f7f7f8}
.mms-chip .mms-x{display:grid;place-items:center;width:18px;height:18px;margin-left:-4px;border-radius:50%;color:#a1a3a8;font-size:15px;line-height:1}
.mms-chip.hot{border-color:transparent;background:color-mix(in srgb,var(--mms-accent) 10%,#fff);color:var(--mms-accent);font-weight:600}
.mms-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 8px}
.mms-cat{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none!important;color:#3f4064;font-size:12px;text-align:center;line-height:1.5}
.mms-cat i{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:#f5f5f7;overflow:hidden;font-style:normal;font-weight:800;font-size:20px;color:var(--mms-accent)}
.mms-cat img{width:100%;height:100%;object-fit:cover}
.mms-cat span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* results */
.mms-list{list-style:none;margin:0;padding:0}
.mms-item a{display:flex;gap:12px;padding:12px 16px;text-decoration:none!important;color:inherit;border-bottom:1px solid #f1f2f4;-webkit-tap-highlight-color:transparent}
.mms-item a:active{background:#fafafa}
.mms-thumb{position:relative;flex:0 0 72px;width:72px;height:72px;border-radius:10px;overflow:hidden;background:#f5f5f7}
.mms-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mms-thumb.oos img{filter:grayscale(1);opacity:.55}
.mms-info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:6px}
.mms-title{font-size:13px;line-height:1.8;color:#232933;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.mms-title mark{background:none;color:var(--mms-accent);font-weight:700;padding:0}
.mms-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.mms-price{font-size:14px;font-weight:700;color:#232933;direction:rtl}
.mms-price del{color:#a1a3a8;font-weight:400;font-size:12px;margin-left:6px}
.mms-price ins{text-decoration:none}
.mms-price .woocommerce-Price-currencySymbol{font-size:11px;font-weight:400;margin:0 3px}
.mms-badge{display:inline-block;padding:1px 8px;border-radius:10px;font-size:11px;font-weight:700;line-height:20px}
.mms-badge.off{background:var(--mms-accent);color:#fff}
.mms-badge.oos{background:#f1f2f4;color:#81858b}
.mms-catrow a{display:flex;align-items:center;gap:10px;padding:12px 16px;text-decoration:none!important;color:#3f4064;font-size:13px;border-bottom:1px solid #f1f2f4}
.mms-catrow svg{width:20px;height:20px;color:#a1a3a8}
.mms-catrow b{color:var(--mms-accent)}
.mms-all{display:flex;align-items:center;justify-content:center;gap:6px;margin:16px;height:46px;border-radius:12px;background:var(--mms-accent);color:#fff!important;font-size:14px;font-weight:700;text-decoration:none!important}
.mms-all svg{width:18px;height:18px}
.mms-empty{padding:48px 24px;text-align:center;color:#81858b;font-size:14px;line-height:2}
.mms-empty svg{width:64px;height:64px;color:#dcdde0;margin-bottom:8px}
.mms-empty b{color:#232933}

/* skeleton */
.mms-sk{display:flex;gap:12px;padding:12px 16px;border-bottom:1px solid #f1f2f4}
.mms-sk i,.mms-sk b{display:block;border-radius:8px;background:linear-gradient(90deg,#f1f2f4 25%,#e7e8ea 50%,#f1f2f4 75%);background-size:200% 100%;animation:mms-sh 1.1s infinite linear}
.mms-sk i{width:72px;height:72px;flex:0 0 72px}
.mms-sk div{flex:1;display:flex;flex-direction:column;gap:10px;padding-top:4px}
.mms-sk b{height:12px}
.mms-sk b:nth-child(2){width:60%}
.mms-sk b:nth-child(3){width:35%;margin-top:10px}
@keyframes mms-sh{to{background-position:-200% 0}}

@media (prefers-reduced-motion:reduce){.mms-ov{transition:none}.mms-sk i,.mms-sk b,.mms-ov.is-loading .mms-bar-progress::after{animation:none}}
