/* --- Контейнер для результатов поиска --- */
.wd-dropdown-results {
    box-shadow: 0px 8px 10px 0px rgb(0 0 0 / 25%);
}

.mws-results-container {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

/* --- Лоадер и сообщение "Нет результатов" --- */
.mws-loader,
.mws-no-results {
    padding: 25px 15px;
    text-align: center;
    color: #777;
    font-size: 1em;
}

/* --- Блок атрибутов --- */
.mws-attribute-suggestions-block {
    margin-bottom: 0px;
    padding: 5px;
    border-bottom: 1px dashed #eee;
}
.mws-attributes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mws-attribute-suggestion {
    line-height: 1;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #444;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.1s, border-color 0.1s;
    font-size: 13px;
}
.mws-attribute-suggestion:hover {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
    color: #000;
}

/* --- Блок категорий в результатах --- */
.mws-categories-block {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 5px;
    padding-bottom: 7px;
    border-bottom: 1px solid #eee;
}

.mws-category-item {
	display: flex;
    align-items: center;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 1px;
    text-decoration: none !important;
    padding: 0 5px;
    transition: background-color 0.2s ease;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
	width: 100%;
}

.mws-category-item:hover {
  /*  background-color: #f5f5f5;
    border-color: #ddd; */
	filter: brightness(0.95);
}
.mws-category-image {
    width: 70px;
    height: 60px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 3px;
   /* border: 1px solid #eee; */
}
.mws-category-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}


.mws-category-item span{
    font-weight: 400;
	color: #333;
}
.mws-category-name {
    font-weight: 400;
    font-size: 0.95em;
    line-height: 1.3;
    margin-bottom: 2px;
	color: #333;
}
.mws-category-hierarchy {
    font-size: 0.8em;
    color: #777;
    line-height: 1.2;
}
.mws-category-hierarchy .mws-category-hierarchy-item {
    /* Можно добавить стили для иерархии */
}

/* --- Блок товаров (список) --- */
.mws-product-suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mws-product-suggestions li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}
.mws-product-suggestions li:last-child {
    border-bottom: none;
}
.mws-product-suggestions li a {
    display: flex;
    align-items: center;
    padding: 7px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.1s;
}
.mws-product-suggestions li a:hover {
    background-color: #f9f9f9;
	color: black;
}
.mws-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 3px;
}
.mws-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}
.mws-item-name {
    font-weight: 500;
    font-size: 1em;
    line-height: 1.4;
    color: #222;
    margin-bottom: 3px;
}

.mws-item-name mark.mws-highlight {
    background-color: transparent;
    font-weight: bold;
    padding: 0;
    color: inherit;
}
.mws-item-price {
    font-size: 0.9em;
    color: #555;
    font-weight: bold;
}
.mws-item-outofstock {
    font-size: 0.85em;
    color: #e74c3c;
    font-style: italic;
    margin-top: 3px;
    display: none;
}


/* --- Адаптивность --- */
@media (max-width: 768px) {
    .mws-results-container {
        padding: 0 5px;
    }
    .mws-item-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    .mws-item-name {
        font-size: 0.95em;
    }
    .mws-attribute-suggestion {
        font-size: 12px;
        padding: 4px 8px;
    }

}


@media (min-width: 768px) {
	/*.mws-categories-block:before {
    content: "Категории:";
    width: 100%;
    color: black;
    font-weight: bold;
	}
	ul.mws-product-suggestions:before {
    content: "Товары:";
    width: 100%;
    color: black;
    font-weight: bold;
	}
	.mws-product-suggestions {
    width: 60%;
    margin-right: 5px;
	margin-bottom: 10px;
	padding: 5px;
	}	
	.mws-categories-block {
    width: 35%;
    align-content: flex-start;
	border-bottom: 0;
	padding: 5px;
	}*/
	
	
	.mws-products-section {
		width: 55%;
		margin-top: 7px;
        margin-bottom: 10px;		
	}
	.mws-categories-section {
		width: 40%;
		margin-top: 7px;
        margin-bottom: 10px;		
	}

	h5.mws-products-title,
	h5.mws-categories-title {
		margin: 0 0 5px 5px;
	}

	.mws-attribute-suggestions-block {
		width: 100%;
		}
	.mws-product-suggestions li a {
		background-color: white;
		}
	.mws-search-results-content {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		}

}
