/* Ok2Shop — форма поиска с живой выдачей и страница поиска. */
.o2srch { --o2s-acc: var(--ok2shop-primary, var(--wd-primary-color, #439665)); position: relative; width: 100%; }
.o2srch *, .o2srch *::before { box-sizing: border-box; }
.o2srch__form { position: relative; display: flex; align-items: center; height: 48px; margin: 0; border: 2px solid var(--o2s-acc); border-radius: 10px; background: #fff; overflow: hidden; }
.o2srch .o2srch__input { flex: 1; align-self: stretch; box-sizing: border-box; min-width: 0; width: auto; height: 100%; min-height: 0; margin: 0; padding: 0 8px 0 16px; border: 0; border-radius: 0; background: transparent; color: #222; font: inherit; font-size: 15px; line-height: normal; box-shadow: none; -webkit-appearance: none; appearance: none; }
.o2srch .o2srch__input:focus { outline: none; box-shadow: none; border: 0; }
.o2srch .o2srch__input::-webkit-search-cancel-button { display: none; }
.o2srch .o2srch__btn { flex: none; align-self: stretch; display: grid; place-items: center; box-sizing: border-box; width: 52px; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--o2s-acc); color: #fff; line-height: 1; cursor: pointer; box-shadow: none; }
.o2srch .o2srch__btn:hover, .o2srch .o2srch__btn:focus-visible { background: var(--o2s-acc); color: #fff; filter: brightness(.92); }
.o2srch .o2srch__clear { flex: none; display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; margin: 0 6px 0 0; padding: 0; border: 0; border-radius: 50%; background: #f1f1ef; color: #777; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: none; }
.o2srch .o2srch__clear:hover { background: #e7e7e4; color: #333; }
.o2srch .o2srch__clear[hidden] { display: none; }
.o2srch.is-loading .o2srch__btn svg { animation: o2srch-pulse .8s infinite; }
@keyframes o2srch-pulse { 50% { opacity: .45; } }

.o2srch__drop { position: absolute; z-index: 100200; top: calc(100% + 6px); left: 0; right: 0; min-width: min(760px, 92vw); max-height: min(72vh, 640px); overflow: auto; border: 1px solid #e6e6e3; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .14); text-align: left; }
.o2srch__drop[hidden] { display: none; }
.o2srch__cols { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.o2srch__cols.is-one { grid-template-columns: minmax(0, 1fr); }
.o2srch__left { border-right: 1px solid #f0f0ee; background: #fafaf9; }
.o2srch__sec { padding: 8px 0; }
.o2srch__h { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; color: #8a8a87; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.o2srch__x { min-height: 0; padding: 0; border: 0; background: none; color: #8a8a87; font-size: 12px; text-transform: none; cursor: pointer; text-decoration: underline; box-shadow: none; }
.o2srch__q, .o2srch__g { display: flex; justify-content: space-between; gap: 8px; padding: 7px 16px; color: #222; font-size: 14px; line-height: 1.35; text-decoration: none; }
.o2srch__q span + span, .o2srch__g small { color: #9a9a97; font-size: 12px; white-space: nowrap; }
.o2srch__g { flex-direction: column; gap: 1px; }
.o2srch__p { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 16px; color: #222; text-decoration: none; }
.o2srch__p img, .o2srch__ph { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f4f4f2; }
.o2srch__pn { display: grid; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.3; }
.o2srch__pn small { color: #8a8a87; font-size: 12px; }
.o2srch__pn i { font-style: normal; }
.o2srch__pn i.is-in { color: var(--o2s-acc); }
.o2srch__pp { font-size: 14px; white-space: nowrap; }
.o2srch [data-o2srch-item]:hover, .o2srch [data-o2srch-item].is-active { background: color-mix(in srgb, var(--o2s-acc) 9%, #fff); color: #111; }
.o2srch__drop b { font-weight: 700; color: inherit; }
.o2srch__all { display: block; padding: 12px 16px; border-top: 1px solid #f0f0ee; color: var(--o2s-acc); font-weight: 600; text-decoration: none; }
.o2srch__fix { padding: 10px 16px 0; color: #666; font-size: 13px; }
.o2srch__none { padding: 18px 16px; color: #666; }

@media (max-width: 760px) {
	.o2srch__drop { position: fixed; top: auto; left: 8px; right: 8px; min-width: 0; margin-top: 6px; }
	.o2srch__cols { grid-template-columns: minmax(0, 1fr); }
	.o2srch__left { border-right: 0; border-bottom: 1px solid #f0f0ee; }
}

/* Страница поиска */
.o2srch-page__head { display: grid; gap: 10px; margin: 0 0 18px; }
.o2srch-page__head .o2srch { max-width: none; }
.o2srch-page__note { margin: 0; color: #666; font-size: 14px; }
.o2srch-page__note a { color: inherit; text-decoration: underline; }
.o2srch-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: #777; }
.o2srch-chips a, .o2srch-chips span { padding: 4px 10px; border-radius: 999px; background: #f2f2f0; color: #333; text-decoration: none; }
.o2srch-chips a:hover { background: color-mix(in srgb, var(--ok2shop-primary, #439665) 14%, #fff); }
.o2srch-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.o2srch-pages a { padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok2shop-primary, #439665) 10%, #fff); color: #1e4d33; font-weight: 600; text-decoration: none; }
.o2srch-ai { margin: 0 0 22px; padding: 16px 18px; border: 1px dashed color-mix(in srgb, var(--ok2shop-primary, #439665) 50%, #fff); border-radius: 14px; background: #fbfdfb; }
.o2srch-ai__h { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.o2srch-ai__h b { font-size: 16px; }
.o2srch-ai__btn { min-height: 0; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--ok2shop-primary, #439665); color: #fff; font: inherit; font-weight: 600; text-transform: none; cursor: pointer; }
.o2srch-ai__btn[hidden] { display: none; }
.o2srch-ai.is-loading [data-o2srch-ai-out]::before { content: ""; display: block; height: 60px; margin-top: 12px; border-radius: 10px; background: linear-gradient(90deg, #f3f3f1, #fff, #f3f3f1); background-size: 200% 100%; animation: o2srch-load 1s infinite linear; }
@keyframes o2srch-load { to { background-position: -200% 0; } }
.o2srch-ai__exp { margin: 10px 0 6px; }
.o2srch-ai__f { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.o2srch-ai__f span { padding: 3px 10px; border-radius: 999px; background: #eef5f0; font-size: 13px; }
.o2srch-ai__err { margin: 10px 0 0; color: #a5372b; }
.o2srch-empty { padding: 24px 0; }
.o2srch-empty h3 { margin: 0 0 10px; }
