.es-dialog, .es-dialog *, .es-results, .es-results * { box-sizing: border-box; }
.es-dialog { position: fixed; inset: 0; width: min(680px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 40px; border: 0; border-radius: 10px; background: #fff; color: #111316; font-family: Arial, Helvetica, sans-serif; box-shadow: 0 18px 70px #0004; }
.es-dialog:not([open]) { display: none; }
.es-dialog::backdrop { background: rgba(0,0,0,.58); }
body.es-search-open { overflow: hidden; }
.es-dialog h2 { margin: 0 32px 24px 0; font-size: 28px; line-height: 1.25; font-weight: 600; }
.es-dialog .es-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f3f4f5; color: #333; font-size: 28px; line-height: 40px; cursor: pointer; }
.es-label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.es-input-row { display: flex; gap: 10px; }
.es-form { margin: 0; }
.es-form input[type="search"] { flex: 1 1 auto; width: 100%; min-width: 0; height: 50px; min-height: 50px; margin: 0; padding: 0 15px; border: 1px solid #bfc3c9; border-radius: 4px; background: #fff; color: #111316; font: 16px Arial, sans-serif; }
.es-form button, .es-results .es-action { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid #e31722; border-radius: 4px; background: #e31722; color: #fff; font: 600 16px Arial, sans-serif; cursor: pointer; text-decoration: none; }
.es-form button:hover, .es-results .es-action:hover { background: #bc111a; border-color: #bc111a; color: #fff; }
.es-form input:focus-visible, .es-dialog button:focus-visible, .es-results a:focus-visible, .es-form button:focus-visible { outline: 2px solid #e31722; outline-offset: 3px; }
.es-hint { margin: 16px 0 0; color: #626b76; font-size: 14px; line-height: 1.5; }
.es-results { padding: 42px 0 64px; background: #f5f5f5; }
.es-results .es-container { width: min(1280px, 90%); margin: 0 auto; }
.es-search-panel { max-width: 820px; margin: 0 auto 36px; }
.es-summary { margin: 28px 0 20px; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.es-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.es-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e8e9ec; border-radius: 6px; background: #fff; transition: box-shadow .2s; }
.es-card:hover { box-shadow: 0 8px 25px #00000012; }
.es-image { display: grid; place-items: center; aspect-ratio: 4/3; overflow: hidden; padding: 20px; border-bottom: 1px solid #f2f2f2; background: #fff; }
.es-image img { width: 100%; height: 100%; max-height: 250px; object-fit: contain; transition: transform .25s; }
.es-card:hover .es-image img { transform: scale(1.04); }
.es-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.es-model { margin: 0 0 10px; color: #666; font-size: 13px; overflow-wrap: anywhere; }
.es-card h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.es-card h2 a:hover { color: #e31722; }
.es-description { margin: 0 0 22px; color: #626b76; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.es-results .es-product-link { align-self: flex-start; margin-top: auto; color: #e31722; font-size: 14px; font-weight: 600; }
.es-results .es-product-link:hover { text-decoration: underline; }
.es-empty { padding: 40px 20px; border: 1px solid #e8e9ec; background: #fff; text-align: center; border-radius: 6px; }
.es-empty h2 { font-size: 24px; margin: 0 0 12px; }
.es-empty p { margin: 0 auto 24px; max-width: 580px; color: #626b76; }
.es-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.es-suggestions a { padding: 8px 16px; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.es-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.es-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 13px; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.es-pagination .current, .es-pagination a:hover { border-color: #e31722; background: #e31722; color: #fff; }
@media (max-width: 960px) { .es-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .es-dialog { padding: 32px 22px; } .es-dialog h2 { font-size: 24px; } .es-input-row { flex-direction: column; } .es-form button { min-height: 48px; } .es-results { padding-top: 28px; } .es-grid { grid-template-columns: 1fr; gap: 18px; } .es-card-body { padding: 20px; } .es-summary { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .es-card, .es-image img { transition: none; } }
/* Keep the existing inner-page search icon accessible when the slogan is hidden. */
@media (max-width: 760px) {
    .ep-topbar .ep-topline { display: flex; position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; padding: 0; z-index: 2; }
    .ep-topbar .ep-tools { display: flex; margin: 0; padding: 0; }
    .ep-topbar .ep-topline .ep-kicker, .ep-topbar .ep-tool-language { display: none; }
}
