/* Shared visitor search; scoped to avoid changing the legacy theme. */
.sh-search { color: #25282d; padding: 36px 0 28px; text-align: left; }
.sh-search [hidden] { display: none !important; }
.sh-search *, .sh-search *::before, .sh-search *::after { box-sizing: border-box; }
.sh-search-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 28px; }
.sh-search-eyebrow { display: block; color: #bc2027; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 10px; }
.sh-search .sh-search-title { margin: 0; color: #25282d; font-size: 32px; line-height: 1.2; letter-spacing: -.7px; font-weight: 700; }
.sh-search-intro > p { max-width: 290px; margin: 0 0 2px; color: #646970; font-size: 14px; line-height: 1.7; }
.sh-search-form {
    display: flex; align-items: stretch; gap: 8px; margin: 0; padding: 7px;
    background: #fff; border: 1px solid #cfd3d7; border-radius: 8px;
    box-shadow: 0 6px 24px rgba(25,30,35,.04); transition: border-color .15s, box-shadow .15s;
}
.sh-search-form:focus-within { border-color: #b92229; box-shadow: 0 0 0 3px rgba(185,34,41,.09); }
.sh-search-field { display: flex; align-items: center; flex: 1; min-width: 0; }
.sh-search-icon { flex: 0 0 22px; margin: 0 16px 0 14px; color: #747b83; pointer-events: none; }
.sh-search input[type="search"] {
    width: 100%; min-width: 0; height: 50px; margin: 0; padding: 0; border: 0; border-radius: 0;
    box-shadow: none; outline: none; background: transparent; color: #25282d;
    font-family: inherit; font-size: 17px; -webkit-appearance: none; appearance: none;
}
.sh-search input::placeholder { color: #6b7178; opacity: 1; font-size: 15px; }
.sh-search input::-webkit-search-cancel-button,
.sh-search input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.sh-search input::-ms-clear { display: none; }
.sh-search button { font: inherit; cursor: pointer; }
.sh-search-clear { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 5px; background: transparent; color: #737980; }
.sh-search-clear:hover { background: #f0f1f3; color: #b92229; }
.sh-search-submit { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 130px; padding: 0 24px; border: 0; border-radius: 5px; background: #bf232b; color: #fff; font-weight: 700 !important; transition: background .15s; }
.sh-search-submit:hover { background: #9e1921; }
.sh-search button:focus-visible, .sh-product-link:focus-visible { outline: 3px solid #24282d; outline-offset: 3px; }
.sh-search-hint { color: #626970; font-size: 12px; margin: 12px 0 0; line-height: 1.6; }
.sh-search-status { margin: 0; }
.sh-search-status:empty { display: none; }
.sh-search:not(.is-searching):not(.has-search-error) .sh-search-status,
.sh-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.is-searching .sh-search-status, .has-search-error .sh-search-status { padding: 24px 0 0; color: #646970; font-size: 14px; }
.has-search-error .sh-search-status { color: #a31b23; }
.sh-search-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: sh-search-spin .7s linear infinite; }
.is-searching .sh-search-spinner { display: block; }
.is-searching .sh-search-arrow { display: none; }
@keyframes sh-search-spin { to { transform: rotate(360deg); } }
.sh-search-results { margin-top: 30px; }
.sh-results-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sh-results-heading h3 { margin: 0; font-size: 17px; letter-spacing: 0; color: #30353a; }
.sh-results-summary { font-size: 12px; color: #747b83; }
.sh-search .sh-product-grid {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px;
    list-style: none; margin: 0; padding: 2px 6px 12px 2px;
}
.sh-product-card { min-width: 0; margin: 0; padding: 0; }
.sh-search .sh-product-link {
    display: flex; flex-direction: column; height: 100%; color: #25282d; background: #fff;
    border: 1px solid #e0e3e6; border-radius: 7px; overflow: hidden; text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.sh-product-link:hover { border-color: #bb777b; box-shadow: 0 5px 18px rgba(34,38,42,.07); }
.sh-product-media { position: relative; display: flex; align-items: center; justify-content: center; height: 160px; background: #fff; border-bottom: 1px solid #f0f1f2; }
.sh-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.sh-product-placeholder { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #8c9298; font-size: 11px; }
.sh-product-media.is-missing { background: #f5f6f7; }
.sh-product-media.is-missing img { display: none; }
.sh-product-media.is-missing .sh-product-placeholder { display: flex; }
.sh-product-info { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 20px; }
.sh-product-brand { color: #b52129; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; }
.sh-search .sh-product-name { color: #25282d; margin: 0 0 18px; font-family: inherit; font-size: 17px; line-height: 1.4; font-weight: 700; letter-spacing: 0; overflow-wrap: break-word; }
.sh-product-codes { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 12px; margin: auto 0 0; }
.sh-product-codes > div { min-width: 0; }
.sh-product-codes dt { color: #6b7178; font-size: 10px; font-weight: 400; margin-bottom: 3px; }
.sh-product-codes dd { color: #33383d; font-size: 13px; line-height: 1.6; margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sh-product-codes > div:first-child dd { font-weight: 700; }
.sh-product-open { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid #eef0f2; color: #626970; font-size: 11px; }
.sh-product-open > span { color: #b52129; font-size: 17px; line-height: 1; }
.sh-product-link:hover .sh-product-open { color: #b52129; }
.sh-search-empty { padding: 42px 20px; border: 1px dashed #d4d8dc; border-radius: 7px; text-align: center; color: #747b83; }
.sh-search-empty h3 { margin: 0 0 8px; font-size: 18px; color: #30353a; }
.sh-search-empty p { margin: 0; font-size: 13px; }
.sh-search-page { padding: 32px 0 0; background: #f7f8f9; }
.sh-search-page > .container { max-width: 1170px; }
@media (max-width: 991px) {
    .sh-search .sh-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sh-search .sh-search-title { font-size: 28px; }
}
@media (max-width: 575px) {
    .sh-search { padding-top: 24px; }
    .sh-search-intro { display: block; margin-bottom: 22px; }
    .sh-search .sh-search-title { font-size: 26px; }
    .sh-search-intro > p { margin-top: 12px; max-width: none; font-size: 13px; }
    .sh-search-form { gap: 4px; padding: 5px; }
    .sh-search-icon { margin: 0 9px 0 5px; width: 18px; flex-basis: 18px; }
    .sh-search input[type="search"] { font-size: 16px; height: 48px; }
    .sh-search input::placeholder { font-size: 12px; }
    .sh-search-submit { min-width: 64px; padding: 0 13px; gap: 6px; font-size: 13px !important; }
    .sh-search-arrow { display: none; }
    .sh-search-clear { flex-basis: 40px; width: 40px; }
    .sh-search .sh-product-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .sh-product-media { height: 180px; }
    .sh-product-info { padding: 18px; }
    .sh-product-codes { grid-template-columns: 100px minmax(0,1fr); }
    .sh-search-page { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-search *, .sh-search *::before, .sh-search *::after { transition: none; animation-duration: 1.5s; }
}
