/* Smart search — shared component. Each site themes it with the --ss-* variables on .ss. */
.ss {
    --ss-accent: #7E2320;
    --ss-accent-ink: #fff;
    --ss-ink: #1D1A18;
    --ss-mute: #6B6460;
    --ss-line: rgba(86, 86, 86, .22);
    --ss-tint: #FBEFED;
    --ss-mark: #FDE6C4;
    --ss-h: 60px;
    --ss-radius: 999px;
    --ss-panel-radius: 18px;
    position: relative; width: 100%; max-width: 640px; margin: 0; font: inherit; color: var(--ss-ink); text-align: left;
}
.ss__bar { display: flex; align-items: center; gap: 10px; height: var(--ss-h); padding: 0 6px 0 20px; background: #fff; border: 1.5px solid var(--ss-line); border-radius: var(--ss-radius); box-shadow: 0 12px 32px rgba(40, 14, 12, .12); transition: border-color .2s, box-shadow .2s; }
.ss.is-open .ss__bar, .ss__bar:focus-within { border-color: var(--ss-accent); box-shadow: 0 0 0 4px rgba(126, 35, 32, .12), 0 12px 32px rgba(40, 14, 12, .12); }
.ss__bar > .ss__i { width: 22px; height: 22px; flex: none; color: var(--ss-mute); }
.ss__input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; font: inherit; font-size: max(16px, 1rem); color: var(--ss-ink); -webkit-appearance: none; appearance: none; }
.ss__input::placeholder { color: var(--ss-mute); opacity: 1; }
.ss__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ss__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: calc(var(--ss-h) - 12px); min-width: 44px; padding: 0 24px; border: 0; border-radius: var(--ss-radius); background: var(--ss-accent); color: var(--ss-accent-ink); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; transition: filter .2s, transform .2s; }
.ss__btn:hover { filter: brightness(1.08); }
.ss__btn:active { transform: scale(.98); }
.ss__btn .ss__i { width: 18px; height: 18px; }
.ss__btn:focus-visible, .ss__opt:focus-visible, .ss__chip:focus-visible, .ss__fl:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; }

.ss__panel { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; max-height: min(62vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: #fff; border: 1px solid var(--ss-line); border-radius: var(--ss-panel-radius); box-shadow: 0 24px 60px rgba(40, 14, 12, .22); color: var(--ss-ink); animation: ss-in .16s ease-out; }
.ss__panel[hidden] { display: none; }
@keyframes ss-in { from { opacity: 0; transform: translateY(-4px); } }
.ss__group + .ss__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--ss-line); }
.ss__gh { margin: 0; padding: 10px 12px 6px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ss-accent); }
.ss__opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; color: var(--ss-ink); text-decoration: none; }
.ss__opt:hover, .ss__opt.is-active { background: var(--ss-tint); }
.ss__oi { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ss-tint); color: var(--ss-accent); }
.ss__opt:hover .ss__oi, .ss__opt.is-active .ss__oi { background: #fff; }
.ss__oi .ss__i { width: 18px; height: 18px; }
.ss__ot { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ss__on { font-weight: 600; font-size: .9375rem; line-height: 1.35; overflow-wrap: anywhere; }
.ss__os { margin-top: 2px; font-size: .8125rem; line-height: 1.35; color: var(--ss-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss__opt > .ss__i { width: 16px; height: 16px; flex: none; color: var(--ss-mute); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.ss__opt:hover > .ss__i, .ss__opt.is-active > .ss__i { opacity: 1; transform: none; color: var(--ss-accent); }
.ss mark { background: var(--ss-mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.ss__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 10px; }
.ss__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ss-line); border-radius: 999px; background: #fff; color: var(--ss-ink); font-size: .875rem; font-weight: 500; text-decoration: none; }
.ss__chip .ss__i { width: 14px; height: 14px; color: var(--ss-mute); }
.ss__chip:hover, .ss__chip.is-active { border-color: var(--ss-accent); background: var(--ss-tint); }
.ss__empty { padding: 14px 12px; font-size: .9375rem; line-height: 1.5; color: var(--ss-mute); }
.ss__empty strong { color: var(--ss-ink); }
.ss__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; padding: 12px 12px 6px; border-top: 1px solid var(--ss-line); font-size: .8125rem; color: var(--ss-mute); }
.ss__foot > span { flex: 1 1 100%; }
.ss__fl { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .875rem; text-decoration: none; color: var(--ss-accent); background: var(--ss-tint); }
.ss__fl .ss__i { width: 16px; height: 16px; }
.ss__fl--wa { color: #0E7A3C; background: #EAF7EF; }
.ss-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 560px) {
    .ss { --ss-h: 56px; }
    .ss__bar { padding-left: 14px; gap: 8px; }
    .ss__btn { padding: 0 16px; }
    .ss__panel { padding: 6px; }
    .ss__opt { padding: 8px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ss__panel { animation: none; } .ss__opt > .ss__i { transition: none; } }

.ss .ss__input:focus, .ss .ss__input:focus-visible { outline: none; box-shadow: none; }
.ss, .ss__bar { min-width: 0; }
.ss__input { width: 100%; }
