/* Поиск CHERNiCO. Все правила изолированы собственным префиксом. */
.chernico-search {
    width: 100%;
    min-width: 0;
    margin: 0 0 24px;
    font-family: Inter, Arial, sans-serif;
    color: #25362d;
}
.chernico-search * { box-sizing: border-box; }
.chernico-search [hidden],
.chernico-search-original[hidden] { display: none !important; }
.chernico-search__form {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 6px 6px 6px 48px;
    border: 1px solid #d5e4e1;
    background: #f5f8f7;
    border-radius: 14px;
    gap: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.chernico-search__form:focus-within { border-color: #42685d; box-shadow: 0 0 0 3px rgba(66, 104, 93, .12); }
.chernico-search__label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.chernico-search__icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); display: flex; color: #42685d; }
.chernico-search__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #25362d;
    font: inherit;
    font-size: 15px;
}
.chernico-search__input::placeholder { color: #667b75; opacity: 1; }
.chernico-search__clear {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    line-height: 1;
    color: #667b75;
    padding: 8px;
    cursor: pointer;
}
.chernico-search__submit {
    flex: none;
    min-width: 96px;
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    background: #42685d;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.chernico-search__submit:hover { background: #25362d; }
.chernico-search__hint { font-size: 12px; color: #6a817a; margin: 7px 2px 0; }
.chernico-search__results { padding: 12px 0 0; min-height: 32px; font-size: 14px; }
.chernico-search__section { margin: 10px 0 23px; }
.chernico-search__section-title {
    color: #25362d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 15px;
}
.chernico-search__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chernico-search-card {
    min-width: 0;
    padding: 13px;
    border-radius: 16px;
    background: #f0f6f4;
    display: flex;
    flex-direction: column;
}
.chernico-search-card__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    text-decoration: none;
}
.chernico-search-card__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.chernico-search-card__no-photo { color: #82958e; font-size: 12px; }
.chernico-search-card__info { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 11px; }
.chernico-search-card__title { font-size: 15px; line-height: 1.4; font-weight: 600; color: #25362d; text-decoration: none; }
.chernico-search-card__title:hover { text-decoration: underline; }
.chernico-search-card__sku, .chernico-search-card__category { font-size: 12px; line-height: 1.4; color: #5f756e; }
.chernico-search-card__price { font-size: 15px; font-weight: 700; color: #25362d; margin-top: auto; padding-top: 7px; }
.chernico-search-card__action {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 10px 12px;
    background: #42685d;
    color: #fff !important;
    text-decoration: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}
.chernico-search-card__action:hover { background: #25362d; color: #fff; }
.chernico-search__notice { color: #5f756e; margin: 8px 0 16px; }
.chernico-search__empty { margin: 12px 0; color: #5f756e; }
.chernico-search__terms { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 10px 0 24px; }
.chernico-search__terms > span { width: 100%; font-size: 14px; font-weight: 700; }
.chernico-search__term-link {
    display: inline-flex; align-items: center;
    border-radius: 8px; padding: 9px 12px;
    background: #e4efec; color: #25362d;
    font-size: 13px; text-decoration: none;
}
.chernico-search__term-link:hover { background: #d0e1dc; }
@media (max-width: 960px) { .chernico-search__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
    .chernico-search__form { padding-left: 42px; }
    .chernico-search__icon { left: 13px; }
    .chernico-search__submit { min-width: 70px; padding: 12px; }
    .chernico-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .chernico-search-card { padding: 9px; border-radius: 12px; }
    .chernico-search-card__title { font-size: 13px; }
    .chernico-search__section-title { font-size: 18px; }
}
@media (max-width: 390px) {
    .chernico-search__input { font-size: 13px; }
    .chernico-search__submit { min-width: 62px; padding: 11px 9px; }
}
