.ajb-search-results { position:absolute; z-index:10000; background:#fff; color:#222; border:1px solid #bbb; border-radius:5px; box-shadow:0 4px 12px rgba(0,0,0,.18); max-height:65vh; overflow:auto; }
.ajb-search-result { display:flex; align-items:center; gap:10px; padding:10px; color:#222; text-decoration:none; border-bottom:1px solid #eee; }
.ajb-search-result:hover,.ajb-search-selected { background:#f2f5f8; color:#111; }
.ajb-search-result img { width:60px; height:60px; object-fit:contain; flex-shrink:0; }
.ajb-search-name { flex:1; overflow-wrap:anywhere; }
.ajb-search-price { text-align:right; white-space:nowrap; }
.ajb-search-price del,.ajb-search-price strong { display:block; }
.ajb-search-price strong { color:#a52a2a; }
.ajb-search-hint { text-align:center; font-size:12px; font-weight:bold; padding:7px; }
.ajb-search-more,.ajb-search-all { display:block; width:100%; padding:10px; text-align:center; background:#f6f6f6; color:#222; border:0; }
.ajb-search-message { padding:14px; }
@media(max-width:480px) { .ajb-search-result { gap:7px; padding:9px; } .ajb-search-result img { width:45px; height:45px; } .ajb-search-name { font-size:14px; } .ajb-search-price { font-size:13px; } }

.ajb-search-group { padding:7px 10px; background:#edf2f5; font-weight:bold; font-size:12px; color:#444; }
.ajb-search-description { display:block; color:#555; margin-top:3px; font-size:12px; line-height:1.4; }

/* Prevent focus zoom on small-screen search inputs while preserving pinch zoom. */
@media (max-width: 767px) {
  #search input[name="search"], input[name="search"].form-control { font-size: 16px !important; }
}

.ajb-search-toolbar { display:none; }
.ajb-search-items { min-height:0; }
.ajb-search-results.ajb-search-mobile { display:flex; flex-direction:column; overflow:hidden; z-index:100003; }
.ajb-search-mobile .ajb-search-toolbar { display:flex; align-items:center; justify-content:space-between; padding:4px 10px; border-bottom:1px solid #ddd; flex-shrink:0; }
.ajb-search-close { min-height:36px; padding:6px 10px; border:1px solid #bbb; border-radius:4px; background:#fff; color:#222; }
.ajb-search-mobile .ajb-search-items { overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.ajb-search-mobile .ajb-search-more { flex-shrink:0; border-top:1px solid #ddd; font-weight:bold; }
.ajb-search-mobile .ajb-search-description { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.ajb-search-results { background:var(--ajb-search-card,#fff); }
.ajb-search-results .ajb-search-group { background:var(--ajb-search-section-bg,#edf2f5); color:var(--ajb-search-section-text,#444); }
.ajb-search-results .ajb-search-more,
.ajb-search-results .ajb-search-more:hover,
.ajb-search-results .ajb-search-more:focus { background:var(--ajb-search-more-bg,#f6f6f6); color:var(--ajb-search-more-text,#222); }
