.ems-search{position:relative;min-width:0;width:100%;font-family:inherit;color:#333;isolation:isolate}
.ems-search .ems-form{display:flex!important;position:relative;margin:0!important;height:44px;width:100%;background:#fff;border:1px solid #d7d7d7;border-radius:2px;overflow:hidden;box-sizing:border-box}
.ems-search .aws-wrapper{flex:1;min-width:0;position:relative;height:100%}
.ems-search input.ems-input{width:100%!important;height:100%!important;min-height:0!important;padding:10px 12px!important;border:0!important;background:#fff!important;color:#333!important;font:inherit;font-size:14px!important;box-shadow:none!important;border-radius:0!important;box-sizing:border-box}
.ems-search input.ems-input::placeholder{color:#666;opacity:1}
.ems-search .ems-submit{display:flex!important;align-items:center;justify-content:center;width:48px!important;min-width:48px;height:100%!important;padding:0!important;border:0!important;border-left:1px solid #e5ad18!important;border-radius:0!important;background:#fdb819!important;color:#292929!important;cursor:pointer;position:static!important}
.ems-search .ems-submit:hover{background:#e9a80d!important}
.ems-search:focus-within{z-index:1001}
.ems-search .ems-form:focus-within{outline:1px solid #b17800;outline-offset:1px}
.ems-search .ems-panel[hidden]{display:none!important}
.ems-search .ems-panel{position:absolute;top:calc(100% + 2px);left:0;right:0;min-width:290px;max-height:620px;display:flex;flex-direction:column;overflow:auto;background:#fff;border:1px solid #d5d5d5;border-top:2px solid #fdb819;border-radius:2px;box-shadow:0 8px 24px #0002;text-align:left;z-index:1002;font-family:Arial,Helvetica,sans-serif;font-size:13px;letter-spacing:normal;line-height:1.4}
.ems-search .ems-status{padding:9px 12px;color:#666;font-size:12px;border-bottom:1px solid #eee;flex-shrink:0}
.ems-search .ems-list{list-style:none!important;margin:0!important;padding:0!important;overflow:auto;min-height:0;overscroll-behavior:contain}
.ems-search .ems-list:empty,.ems-search .ems-links:empty{display:none}
.ems-search .ems-list li{list-style:none!important;display:block!important;padding:0!important;margin:0!important;border-bottom:1px solid #eee}
.ems-search a.ems-item{display:flex!important;gap:12px;align-items:center;padding:12px!important;margin:0;color:#333!important;text-decoration:none!important;line-height:1.35;white-space:normal!important}
.ems-search .ems-item img{width:64px;height:64px;object-fit:contain;flex-shrink:0;background:#fff}
.ems-search .ems-item-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.ems-search .ems-item strong{font-size:13px;font-weight:600;overflow-wrap:anywhere;line-height:1.4}
.ems-search .ems-item mark{background:#fff0b8;color:inherit;padding:0;border-radius:1px;font-weight:700}
.ems-search .ems-family{color:#555;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ems-search .ems-categories{color:#6d6d6d;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ems-search .ems-list li.ems-section-heading{padding:8px 12px!important;background:#f6f6f6;color:#666;font-size:11px;font-weight:600;letter-spacing:.2px}
.ems-search .ems-list li[aria-selected=true]{background:#fff}
.ems-search .ems-list li[aria-selected=true]>.ems-item,.ems-search .ems-item:hover,.ems-search .ems-item:focus-visible{background:#fff!important;box-shadow:inset 0 3px 0 var(--emalog-brand-yellow,#fdb819),inset 0 -3px 0 var(--emalog-brand-yellow,#fdb819)}
.ems-sku{font-size:12px;color:#626262;overflow-wrap:anywhere}
.ems-search .ems-description{font-size:12px;color:#707070;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ems-archived{font-size:12px;color:#8c4d00}
.ems-search .ems-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:11px 12px;background:#fafafa;border-top:1px solid #e5e5e5;flex-shrink:0}
.ems-search .ems-empty-hint{display:block;margin-top:6px;color:#777}
.ems-search .ems-suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px}
.ems-search .ems-suggestions button{font:600 12px Arial,sans-serif;line-height:1.3;color:#614500;background:#fff8e1;border:1px solid #e8ce87;border-radius:3px;padding:5px 9px;min-height:30px;cursor:pointer;letter-spacing:normal;text-transform:none}
.ems-search .ems-suggestions button:hover{background:#fdb819;color:#222}
.ems-search .ems-suggestions button:focus-visible{outline:2px solid #8b6100;outline-offset:2px}
.ems-suggestion-link{display:inline-block;padding:4px 9px;margin:3px;border:1px solid #e8ce87;border-radius:3px}
.ems-search .ems-links a,.ems-finder-link{font-size:13px;color:#5e450b!important;text-decoration:underline!important;text-underline-offset:3px}
.widget_emalog_search{width:100%;min-width:0}
.ems-results-page{width:min(1200px,calc(100% - 40px));margin:36px auto 60px;clear:both}
.ems-results-page>.ems-search{max-width:720px;margin:20px 0}
.ems-results-page h1{font-size:28px}
.ems-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:24px 0}
.ems-result-card{padding:18px;border:1px solid #e1e1e1;border-radius:3px;background:#fff;min-width:0}
.ems-result-card a{color:inherit;text-decoration:none}
.ems-result-card img{display:block;width:100%;height:160px;object-fit:contain;margin:0 auto 16px}
.ems-result-card h2{font-size:16px;line-height:1.4;margin:0 0 10px;overflow-wrap:anywhere}
.ems-result-card p{font-size:13px;line-height:1.5}
.ems-pagination{display:flex;gap:20px;align-items:center;justify-content:center;margin:28px 0}
@media(max-width:900px){.ems-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.ems-search .ems-panel{min-width:0;max-height:58vh}.ems-search .ems-description{display:none}.ems-search .ems-item img{width:48px;height:48px}.ems-results-page{width:calc(100% - 28px);margin-top:24px}.ems-results-grid{grid-template-columns:1fr}.ems-result-card img{height:140px}}
@media(prefers-reduced-motion:reduce){.ems-search *{scroll-behavior:auto!important}}

/* The standalone results template is a direct child of the theme page grid.
   Span the complete grid instead of inheriting its narrow outer gutter column. */
#page > main.ems-results-page { grid-column:1 / -1; min-width:0; justify-self:center; box-sizing:border-box; }
