#e3g-search-models { margin: 0 0 28px; }
#e3g-search-models h2, #e3g-search-products-title { font-family: inherit; font-size: var(--e3g-type-block, 1.125rem); line-height: 1.4; font-weight: 600; margin: 0 0 14px; color: var(--nxr-accent-dark, #212529); }
.e3g-search-models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.e3g-search-model { display: flex; flex-direction: column; justify-content: center; min-height: 76px; padding: 15px 18px; border: 1px solid var(--nxr-line, #e5e9ee); border-radius: 10px; background: var(--nxr-surface, #fff); color: var(--nxr-accent-dark, #212529); text-decoration: none; transition: border-color .15s, background .15s; }
.e3g-search-model strong { font-size: var(--e3g-type-body, 1rem); line-height: 1.4; }
.e3g-search-model span { margin-top: 4px; font-size: var(--e3g-type-meta, .8125rem); line-height: 1.4; color: #525252; }
.e3g-search-model:hover { background: var(--nxr-surface-alt, #e5e9ee); border-color: var(--nxr-accent-dark, #212529); color: var(--nxr-accent-dark, #212529); }
.e3g-search-model:focus-visible { outline: 3px solid var(--nxr-accent-dark, #212529); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .e3g-search-model { transition: none; } }

#nxr_search-overlay .nxrs-overlay__close { background: var(--nxr-accent, #ccff00); color: var(--nxr-accent-contrast, #212529); }

/* The theme's contrast token is dark: pair it with a lime badge, not a dark background. */
#nxr_search-overlay {
  --nxrs-discount-bg: var(--nxr-accent, #ccff00);
  --nxrs-discount-text: var(--nxr-accent-contrast, #212529);
}

/* Adaptación del buscador reutilizable al contrato de esta tienda. */
#nxr_search-overlay .nxrs-product__name { font-size: var(--e3g-type-body) !important; line-height: 1.5; }
#nxr_search-overlay .nxrs-product__price { font-size: var(--e3g-type-list-price) !important; }
#nxr_search-overlay .nxrs-product__discount,
#nxr_search-overlay .nxrs-product__regular-price,
#nxr_search-overlay #nxr_search-status,
#nxr_search-overlay .nxrs-price-display,
#nxr_search-overlay .nxrs-price-reset,
#nxr_search-overlay .nxrs-filter-more { font-size: var(--e3g-type-help); }
#nxr_search-overlay .nxrs-filter-count { font-size: var(--e3g-type-meta); }
#nxr_search-overlay .nxrs-filter-group__title { font-size: var(--e3g-text-18); }

/* nxr_search impone tamaños móviles con !important: estas dos excepciones
 * locales los sustituyen. Los nombres pueden ocupar todas sus líneas. */
#nxr_search-overlay .nxrs-product__name { -webkit-line-clamp: unset; overflow: visible; }
