/* Zilideon search auto-suggest dropdown (see includes/class-zl-search-suggest.php).
   Drawn in <body> and positioned under the search box, so no parent can clip it.
   Highlight colour follows the theme accent when there is one. */
.zl-sg {
    position: absolute;
    z-index: 100000;
    max-height: min(70vh, 460px);
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .16);
    padding: 6px;
    font: 14px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111827;
    text-align: left;
}
.zl-sg[hidden] { display: none; }
.zl-sg-sr {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.zl-sg-head {
    padding: 8px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
}
.zl-sg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.zl-sg-item:hover,
.zl-sg-item.is-active {
    background: color-mix(in srgb, var(--zl-accent, #f59e0b) 12%, #fff);
    color: inherit;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .zl-sg-item:hover, .zl-sg-item.is-active { background: #f3f4f6; }
}
.zl-sg-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    overflow: hidden;
}
.zl-sg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zl-sg-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zl-sg-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zl-sg-title strong { font-weight: 800; }
.zl-sg-price { font-size: 12px; font-weight: 700; color: #4b5563; }
.zl-sg-cat::before {
    content: '';
    flex: 0 0 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zl-accent, #f59e0b);
}
.zl-sg-all {
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    color: #374151;
}
.zl-sg-empty { padding: 14px 12px; color: #6b7280; }
@media (max-width: 600px) {
    .zl-sg { border-radius: 12px; max-height: 60vh; }
    .zl-sg-item { padding: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
    .zl-sg:not([hidden]) { animation: zl-sg-in .12s ease-out; }
    @keyframes zl-sg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* Place suggestions share the compact product row but identify storefronts. */
.zl-sg-place-thumb { display: flex; align-items: center; justify-content: center; }
/* Place logos are usually wide wordmarks: show the whole logo (never crop it) on a clean
   background, in a slightly wider tile than the square product thumbnail. */
.zl-sg-thumb.zl-sg-place-thumb { flex: 0 0 56px; width: 56px; background: #fff; border: 1px solid #eceef2; box-sizing: border-box; padding: 3px; }
.zl-sg-thumb.zl-sg-place-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.zl-sg-place-mark { font-size: 19px; font-weight: 800; color: var(--zl-accent, #b7791f); }
.zl-sg-place .zl-sg-price { font-weight: 500; }
