
.live-search {
    display: none;
    position: absolute; /* Оставляем absolute */
    z-index: 1000;
    background-color: #fff;
    border: 2px solid #ddd !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
	box-sizing: border-box;
}

/* Стили для списка */
.live-search__ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fast-oc-search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.fast-oc-search-result-item:last-child {
    border-bottom: none;
}

.fast-oc-search-result-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.fast-oc-search-result-link:hover {
    background-color: #f8f8f8;
}

.fast-oc-search-result-image {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border: 1px solid #eee;
}

.fast-oc-search-result-name {
    margin-right: 5px;
	display: block;
}
.fast-oc-search-result-manufacturer{
    font-size: 0.9em;
    color: #777;
	margin-right: 5px;
    display: block;
}

.fast-oc-search-result-price {
    font-weight: bold;
    color: #d9534f;
	display: block;
}

.fast-oc-search-result-categories {
    margin-top: 5px;
}

/* Стили для "найденных слов" */
.fast-oc-search-keywords {
    font-size: 0.9em;
    color: #777;
    padding: 10px;
    border-top: 1px solid #eee;
}
.fast-oc-search-keyword {
    display: inline-block;
    margin-right: 5px;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f9f9f9;
    cursor: pointer; /*  Меняем курсор */
}

.fast-oc-search-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #337ab7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

.fast-oc-search-loading {
    text-align: center;
    padding: 10px;
}

.fast-oc-search-no-results,
.fast-oc-search-error {
    padding: 10px;
    text-align: center;
    color: #777;
}

/* Стили для заголовков */
.fast-oc-search-manufacturers-title,
.fast-oc-search-categories-title,
.fast-oc-search-products-title{
    font-weight: bold;
    padding: 10px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

/* Стили для кнопки */
.fast-oc-search-submit {
    text-align: left;
    padding: 10px;
    border-top: 1px solid #eee;
}

.fast-oc-search-submit-button {
    /* Стили для кнопки */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.header-search__form {
   position: relative;
}

@media (max-width: 767px) {
    .live-search {
        /* position: fixed;  -  УБИРАЕМ fixed! */
        /* top: 0;  -  УБИРАЕМ top: 0! */
        left: 0;
        width: 100%;
        max-width: 100%; /*  Убираем ограничение ширины */
        border: none;   /*  Убираем границу */
        box-shadow: none; /*  Убираем тень */
		max-height: 90vh;
    }
	 .live-search__ul li a {
        flex-direction: column;
        align-items: flex-start;
    }
    .live-search__ul li img {
        width: 80px;
        height: auto;
        margin-right: 0;
        margin-bottom: 5px;
    }
	.fast-oc-search-result-name{
        font-size: 1.2em;
    }
}

.special-price {
    color: red;
    font-weight: bold;
}
.old-price {
    text-decoration: line-through;
    color: gray;
    margin-left: 0.5em;
}

.live-search__ul {
    display: flex; /*  Делаем контейнер flex */
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
    list-style: none;
    padding: 0;
    margin: 0;
}

.fast-oc-search-categories-column {
    width: 30%; /*  Ширина колонки с категориями */
    padding: 10px;
    box-sizing: border-box;
}

.fast-oc-search-products-column {
    width: 70%; /*  Ширина колонки с товарами */
    padding: 10px;
    box-sizing: border-box;
    border-left: 1px solid #eee; /* Разделитель между колонками */
}

.fast-oc-search-category-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.fast-oc-search-category-item:last-child {
    border-bottom: none;
}

.fast-oc-search-category-link {
    color: #333;
    text-decoration: none;
    display: block;
}

.fast-oc-search-category-link:hover {
    background-color: #f8f8f8;
}

.fast-oc-search-category-name {
    display: block;
}

.fast-oc-search-categories-title {
    font-weight: bold;
    padding: 5px 0;
    margin-bottom: 5px;
}

.fast-oc-search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.fast-oc-search-result-item:last-child {
    border-bottom: none;
}

.fast-oc-search-result-link {
    display: flex; /*  Используем flex для выравнивания изображения и информации */
    align-items: center; /*  Выравниваем по вертикали */
    color: #333;
    text-decoration: none;
}

.fast-oc-search-result-link:hover {
    background-color: #f8f8f8;
}

/* Стили для контейнера изображения */
.fast-oc-search-result-image-container {
    width: 80px; /*  Фиксированная ширина */
    height: 80px; /*  Фиксированная высота */
    margin-right: 10px;
    flex-shrink: 0; /* Запрещаем уменьшаться */
}

.fast-oc-search-result-image {
    width: 100%; /* Заполняем контейнер */
    height: 100%;
    object-fit: contain; /*  Вписываем изображение с сохранением пропорций */
    border: 1px solid #eee;
}

/* Стили для контейнера информации */
.fast-oc-search-result-info {
    display: flex;  /* Flex-контейнер для выстраивания элементов в строку */
    flex-direction: column; /*  Размещаем элементы вертикально */
}

.fast-oc-search-result-name {
    font-weight: bold;
    display: block;
}

.fast-oc-search-result-model,
.fast-oc-search-result-status,
.fast-oc-search-result-manufacturer,
.fast-oc-search-result-price {
    font-size: 0.9em;
    color: #777;
    display: block;
    margin-top: 2px;
}

.fast-oc-search-result-price {
    font-weight: bold;
    color: #d9534f;
}

.special-price {
    color: red;
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: gray;
    margin-left: 0.5em;
}

/* Добавлено для выравнивания категорий */
.fast-oc-search-categories-column {
    width: 30%; /*  Ширина колонки с категориями */
    padding: 10px;
    box-sizing: border-box;
}

/* Добавлено для размещения результатов справа */
.fast-oc-search-products-column {
    width: 70%; /*  Ширина колонки с товарами */
    padding: 10px;
    box-sizing: border-box;
    border-left: 1px solid #eee; /* Разделитель между колонками */
}

@media (max-width: 767px) {
    #column-left > * {
        display: block !important;
    }
}